You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
12 KiB
1 line
12 KiB
4 months ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1a63c80a"],{"0d5a":function(t,e,a){"use strict";var r=a("43c4");a.n(r).a},1336:function(t,e,a){"use strict";a.d(e,"e",(function(){return i})),a.d(e,"d",(function(){return n})),a.d(e,"f",(function(){return o})),a.d(e,"a",(function(){return s})),a.d(e,"c",(function(){return c})),a.d(e,"b",(function(){return l})),a.d(e,"h",(function(){return u})),a.d(e,"g",(function(){return d}));var r=a("b6bd");function i(t){return Object(r.a)({url:"cms/cms",method:"get",params:t})}function n(t){return Object(r.a)({url:"cms/cms",method:"post",data:t})}function o(t){return Object(r.a)({url:"cms/cms/".concat(t),method:"get"})}function s(){return Object(r.a)({url:"cms/category/create",method:"GET"})}function c(t){return Object(r.a)({url:"cms/category",method:"GET",params:t})}function l(t){return Object(r.a)({url:"cms/category/".concat(t,"/edit"),method:"GET"})}function u(t){return Object(r.a)({url:"cms/category/set_status/".concat(t.id,"/").concat(t.status),method:"put"})}function d(t,e){return Object(r.a)({url:"cms/cms/relation/".concat(e),method:"put",data:t})}},"43c4":function(t,e,a){},f164:function(t,e,a){"use strict";a.r(e);var r,i=a("a34a"),n=a.n(i),o=a("2f62"),s=a("b0e7"),c=a("a069"),l=a("1336"),u=a("d708");function d(t,e,a,r,i,n,o){try{var s=t[n](o),c=s.value}catch(t){return void a(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function m(t){return function(){var e=this,a=arguments;return new Promise((function(r,i){var n=t.apply(e,a);function o(t){d(n,r,i,o,s,"next",t)}function s(t){d(n,r,i,o,s,"throw",t)}o(void 0)}))}}function p(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function f(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?p(a,!0).forEach((function(e){h(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):p(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function h(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var b=(h(r={name:"addArticle",components:{uploadPictures:s.a,WangEditor:c.a},computed:f({},Object(o.e)("admin/layout",["isMobile","menuCollapse"])),data:function(){var t=this;return{roterPre:u.a.roterPre,dialog:{},isChoice:"单选",grid:{xl:8,lg:8,md:12,sm:24,xs:24},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},loading:!1,formValidate:{id:0,title:"",author:"",image_input:"",content:"",synopsis:"",url:"",is_hot:0,is_banner:0,cid:"",visit:0},content:"",ruleValidate:{title:[{required:!0,message:"请输入标题",trigger:"blur"}],cid:[{required:!0,validator:function(e,a,r){t.formValidate.cid?r():r(new Error("请选择文章分类"))},trigger:"change",type:"number"}],image_input:[{required:!0,validator:function(e,a,r){t.formValidate.image_input?r():r(new Error("请上传图文封面"))},trigger:"change"}],content:[{required:!0,message:"请输入文章内容",trigger:"change"}]},value:"",modalPic:!1,template:!1,treeData:[],formValidate2:{type:1},current:0}}},"computed",f({},Object(o.e)("admin/layout",["isMobile","menuCollapse"]),{labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"}})),h(r,"watch",{$route:function(t,e){this.$route.params.id?this.getDetails():(this.formValidate={id:0,title:"",author:"",image_input:"",content:"",synopsis:"",url:"",is_hot:0,is_banner:0},this.content="")}}),h(r,"methods",f({},Object(o.d)("admin/layout",["setCopyrightShow"]),{back:function(){this.current=(Number(this.current)-1).toString()},next:function(){this.current=(Number(this.current)+1).toString()},changeTab:function(t){this.current=t},getEditorContent:function(t){this.content=t},modalPicTap:function(){this.modalPic=!0},getPic:function(t){this.formValidate.image_input=t.att_dir,this.modalPic=!1},getClass:function(){var t=this;Obje
|