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
10 KiB
1 line
10 KiB
9 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f1eea91e"],{"016c":function(t,e,a){"use strict";a("e574")},1336:function(t,e,a){"use strict";a.d(e,"h",(function(){return r})),a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"l",(function(){return s})),a.d(e,"e",(function(){return c})),a.d(e,"k",(function(){return l})),a.d(e,"i",(function(){return u})),a.d(e,"f",(function(){return d})),a.d(e,"a",(function(){return m})),a.d(e,"g",(function(){return f})),a.d(e,"d",(function(){return p})),a.d(e,"j",(function(){return g}));var i=a("0c6d");function r(){return i["a"].get("system/article/category/lst")}function n(){return i["a"].get("system/article/category/select")}function o(){return i["a"].get("system/article/category/create/form")}function s(t){return i["a"].get("system/article/category/update/form/".concat(t))}function c(t){return i["a"].delete("system/article/category/delete/".concat(t))}function l(t,e){return i["a"].post("system/article/category/status/".concat(t),{status:e})}function u(t){return i["a"].get("system/article/article/lst",t)}function d(t){return i["a"].get("system/article/article/detail/".concat(t))}function m(t){return i["a"].post("system/article/article/create",t)}function f(t,e){return i["a"].post("system/article/article/update/".concat(e),t)}function p(t){return i["a"].delete("system/article/article/delete/".concat(t))}function g(t,e){return i["a"].post("system/article/article/status/".concat(t),{status:e})}},c3b3:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",[a("el-page-header",{attrs:{content:t.$route.params.id?"编辑文章":"添加文章"},on:{back:t.back}})],1),t._v(" "),a("el-card",{staticClass:"box-card mt14"},[a("el-form",{ref:"formValidate",staticClass:"form",attrs:{size:"small",model:t.formValidate,"label-width":"100px",rules:t.ruleValidate},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"文章信息",name:"first"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"文章内容",name:"second"}})],1),t._v(" "),"first"==t.activeName?a("el-row",{attrs:{gutter:10}},[a("el-col",t._b({},"el-col",t.grid,!1),[a("el-form-item",{attrs:{label:"标题:",prop:"title","label-for":"title"}},[a("el-input",{staticStyle:{width:"90%"},attrs:{placeholder:"请输入","element-id":"title"},model:{value:t.formValidate.title,callback:function(e){t.$set(t.formValidate,"title",e)},expression:"formValidate.title"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"作者:",prop:"author","label-for":"author"}},[a("el-input",{staticStyle:{width:"90%"},attrs:{placeholder:"请输入",maxLength:"32","element-id":"author"},model:{value:t.formValidate.author,callback:function(e){t.$set(t.formValidate,"author",e)},expression:"formValidate.author"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"文章分类:","label-for":"cid",prop:"cid"}},[a("el-select",{ref:"configSelect",staticClass:"mb15",staticStyle:{width:"90%"},attrs:{clearable:"",placeholder:"请选择"},model:{value:t.formValidate.cid,callback:function(e){t.$set(t.formValidate,"cid",e)},expression:"formValidate.cid"}},t._l(t.treeData,(function(e,i){return a("el-option",{key:i,attrs:{label:e.title,value:e.article_category_id}},[t._v("\n "+t._s(e.title)+"\n ")])})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"文章简介:",prop:"synopsis","label-for":"synopsis"}},[a("el-input",{staticStyle:{width:"90%"},attrs:{type:"textarea",placeholder:"请输入"},model:{value:t.formValidate.synopsis,callback:function(e){t.$set(t.formValidate,"synopsis",e)},expression:"formValidate.synopsis"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"图文封面:",prop:"image_input"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("1")}}},[t.formValidate.image_input?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:t.formValidate.image_input}})]):
|