(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e70b1da"],{"5a61":function(t,e,n){"use strict";n.d(e,"i",(function(){return r})),n.d(e,"g",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"m",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"f",(function(){return u})),n.d(e,"k",(function(){return l})),n.d(e,"l",(function(){return d})),n.d(e,"e",(function(){return m})),n.d(e,"h",(function(){return h})),n.d(e,"j",(function(){return f})),n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return b}));var s=n("b775");function r(t){return Object(s["b"])({url:"/cms/cmsClass/list",method:"get",params:t})}function a(t){return Object(s["b"])({url:"/cms/cmsClass/"+t,method:"get"})}function c(t){return Object(s["b"])({url:"/cms/cmsClass",method:"post",data:t})}function i(t){return Object(s["b"])({url:"/cms/cmsClass/edit",method:"post",data:t})}function o(t){return Object(s["b"])({url:"/cms/cmsClass/"+t,method:"post"})}function u(t){return Object(s["b"])({url:"/cms/cmsClass/export",method:"get",params:t})}function l(t){return null!=t&&""!==t||(t="0"),Object(s["b"])({url:"/cms/cmsClass/listTree/"+t,method:"get"})}function d(t){return Object(s["b"])({url:"/cms/cmsClass/search",method:"get",params:t})}function m(t){return Object(s["b"])({url:"/cms/cmsClass/enable/edit",method:"post",data:t})}function h(t){return null!=t&&""!==t||(t="0"),Object(s["b"])({url:"/cms/cmsClass/allTree/"+t,method:"get"})}function f(t){return Object(s["b"])({url:"/cms/cmsClass/recycleList",method:"get",params:t})}function p(t){return Object(s["b"])({url:"/cms/cmsClass/restore",method:"post",data:t})}function b(t){return Object(s["b"])({url:"/cms/cmsClass/expurgate",method:"post",data:t})}},"72ff":function(t,e,n){"use strict";n.d(e,"l",(function(){return r})),n.d(e,"i",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"x",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"g",(function(){return u})),n.d(e,"w",(function(){return l})),n.d(e,"d",(function(){return d})),n.d(e,"u",(function(){return m})),n.d(e,"c",(function(){return h})),n.d(e,"k",(function(){return f})),n.d(e,"b",(function(){return p})),n.d(e,"s",(function(){return b})),n.d(e,"q",(function(){return g})),n.d(e,"j",(function(){return C})),n.d(e,"t",(function(){return y})),n.d(e,"v",(function(){return O})),n.d(e,"n",(function(){return v})),n.d(e,"p",(function(){return A})),n.d(e,"o",(function(){return w})),n.d(e,"m",(function(){return j})),n.d(e,"r",(function(){return S})),n.d(e,"f",(function(){return _})),n.d(e,"h",(function(){return L}));var s=n("b775");function r(t){return Object(s["b"])({url:"/cms/cmsArticle/list",method:"get",params:t})}function a(t){return Object(s["b"])({url:"/cms/cmsArticle/"+t,method:"get"})}function c(t){return Object(s["b"])({url:"/cms/cmsArticle",method:"post",data:t})}function i(t){return Object(s["b"])({url:"/cms/cmsArticle/edit",method:"post",data:t})}function o(t){return Object(s["b"])({url:"/cms/cmsArticle/"+t,method:"post"})}function u(t){return Object(s["b"])({url:"/cms/cmsArticle/export",method:"get",params:t})}function l(t){return Object(s["b"])({url:"/cms/cmsArticle/top/"+t,method:"get"})}function d(t){return Object(s["b"])({url:"/cms/cmsArticle/cancelTop/"+t,method:"get"})}function m(t){return Object(s["b"])({url:"/cms/cmsArticle/slide/"+t,method:"get"})}function h(t){return Object(s["b"])({url:"/cms/cmsArticle/cancelSlide/"+t,method:"get"})}function f(t){return Object(s["b"])({url:"/cms/cmsArticle/hot/"+t,method:"get"})}function p(t){return Object(s["b"])({url:"/cms/cmsArticle/cancelHot/"+t,method:"get"})}function b(t){return Object(s["b"])({url:"/cms/cmsArticle/release/"+t,method:"get"})}function g(t){return Object(s["b"])({url:"/cms/cmsArticle/offline/"+t,method:"get"})}function C(t){return Object(s["b"])({url:"/cms/cmsArticle/getArticleClass/"+t,method:"get"})}function y(t){return Object(s["b"])({url:"/cms/cmsArticle/saveArticleClass",method:"post",data:t})}function O(t){return Object(s["b"])({url:"/cms/cmsArticle/submit/"+t,method:"get"})}function v(t){return Object(s["b"])({url:"/cms/cmsArticle/todoList",method:"get",params:t})}function A(t){return Object(s["b"])({url:"/cms/cmsArticle/migrationClass",method:"post",data:t})}function w(t){return Object(s["b"])({url:"/cms/cmsArticle/migrationArticle",method:"post",data:t})}function j(t){return Object(s["b"])({url:"/cms/cmsArticle/recycleList",method:"get",params:t})}function S(t){return Object(s["b"])({url:"/cms/cmsArticle/recover/"+t,method:"get"})}function _(t){return Object(s["b"])({url:"/cms/cmsArticle/completelyRemove/"+t,method:"post"})}function L(t){return Object(s["b"])({url:"/cms/cmsArticle/auditFlow/"+t,method:"get"})}},f6cd:function(t,e,n){"use strict";n.r(e);n("99af");var s=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[e("div",{staticClass:"table-page-search-wrapper"},[e("a-form",{ref:"queryForm",attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-row",{attrs:{gutter:32}},[e("a-col",{attrs:{span:6}},[e("a-form-item",{attrs:{label:"文章标题"}},[e("a-input",{attrs:{placeholder:"请输入文章标题","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.title,callback:function(e){t.$set(t.queryParam,"title",e)},expression:"queryParam.title"}})],1)],1),e("a-col",{attrs:{span:6}},[e("a-form-item",{attrs:{label:"所属栏目"}},[e("a-tree-select",{staticStyle:{width:"100%"},attrs:{"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":t.cmsClassTreeOptions,placeholder:"请选择",replaceFields:{children:"children",title:"title",key:"id",value:"id"},"load-data":t.onLoadData,"allow-clear":""},model:{value:t.queryParam.classId,callback:function(e){t.$set(t.queryParam,"classId",e)},expression:"queryParam.classId"}})],1)],1),e("a-col",[e("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[e("a-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[e("a-icon",{attrs:{type:"search"}}),t._v("查询")],1),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resetQuery}},[e("a-icon",{attrs:{type:"redo"}}),t._v("重置")],1)],1)])],1)],1)],1)]),e("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e("advance-table",{attrs:{title:"文章回收站",pagination:{current:t.queryParam.pageNum,pageSize:t.queryParam.pageSize,total:t.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(t,e){return"第 ".concat(e[0],"-").concat(e[1]," 条，总计 ").concat(t," 条")},onChange:t.changeSize,onShowSizeChange:t.onShowSizeChange},tableKey:"base-cmsArticle-index-table",rowKey:"id",size:"middle",columns:t.columns,"data-source":t.cmsArticleList,loading:t.loading,"format-conditions":!0,"row-selection":{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange}},on:{change:t.handleTableChange,refresh:t.getList},scopedSlots:t._u([{key:"title",fn:function(n){var s=n.text;n.record;return e("span",{},[t._v(" "+t._s(s||t.defaultValue)+" ")])}},{key:"updateName",fn:function(n){var s=n.text;n.record;return e("span",{},[t._v(" "+t._s(s||t.defaultValue)+" ")])}},{key:"status",fn:function(n){var s=n.text;n.record;return e("span",{},[e("div",{style:{color:t.statusColor(s)}},[t._v(t._s(t.selectDictLabel(t.statusOptions,s)||t.defaultValue))])])}},{key:"updateTime",fn:function(n){var s=n.text;n.record;return e("span",{},[t._v(" "+t._s(s||t.defaultValue)+" ")])}}])},[e("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[e("a-space",{attrs:{align:"center"}},[e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["cms:cmsArticle:recover"],expression:"['cms:cmsArticle:recover']"}],attrs:{type:"primary",disabled:t.multiple},on:{click:t.handleRecover}},[e("a-icon",{attrs:{type:"undo"}}),t._v(" 批量还原 ")],1),e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["cms:cmsArticle:completelyRemove"],expression:"['cms:cmsArticle:completelyRemove']"}],attrs:{type:"danger",disabled:t.multiple},on:{click:t.handleDelete}},[e("a-icon",{attrs:{type:"delete"}}),t._v(" 批量删除 ")],1)],1)],1)])],1)],1)},r=[],a=(n("d81d"),n("d3b7"),n("72ff")),c=n("5a61"),i=n("5d9e"),o={name:"CmsArticle",components:{AdvanceTable:i["a"]},data:function(){return{showAddModal:!1,showEditModal:!1,showArticleClassModal:!1,loading:!0,ids:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,total:0,labelCol:{span:6},wrapperCol:{span:18},cmsArticleList:[],typeOptions:[],topOptions:[],slideOptions:[],hotOptions:[],statusOptions:[],defaultValue:"-/-",cmsClassTreeOptions:[],visible:!1,stateConstants:this.constants,queryParam:{pageNum:1,pageSize:10,classId:void 0,type:void 0,title:void 0,subtitle:void 0},columns:[{title:"文章标题",dataIndex:"title",scopedSlots:{customRender:"title"},ellipsis:!0,align:"left",width:"20%"},{title:"所属栏目",dataIndex:"className",scopedSlots:{customRender:"className"},align:"left",width:"20%"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"},align:"left",width:"20%"},{title:"删除人",dataIndex:"updateName",scopedSlots:{customRender:"updateName"},align:"center",width:"20%"},{title:"删除时间",dataIndex:"updateTime",scopedSlots:{customRender:"createTime"},align:"left",width:"20%"}]}},created:function(){var t=this;this.getTreeSelect(),this.getList(),this.getDicts("cms_yes_no").then((function(e){t.topOptions=e.data,t.slideOptions=e.data,t.hotOptions=e.data})),this.getDicts("cms_article_status").then((function(e){t.statusOptions=e.data})),this.getDicts("cms_article_type").then((function(e){t.typeOptions=e.data}))},activated:function(){var t=this.$route.params;t&&"ok"===t.operate&&this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(a["m"])(this.queryParam).then((function(e){t.cmsArticleList=e.data.list,t.total=e.data.total,t.loading=!1}))},yesOrNoColor:function(t){return t===this.stateConstants.ENABLE?"green":t===this.stateConstants.DISABLE?"red":"black"},statusColor:function(t){return t===this.stateConstants.CMS_ARTICLE_DRAFT?"black":t===this.stateConstants.CMS_ARTICLE_RELEASE?"green":t===this.stateConstants.CMS_ARTICLE_OFFLINE?"red":t===this.stateConstants.CMS_ARTICLE_WAIT_CHECK?"#5F9EA0":t===this.stateConstants.CMS_ARTICLE_CHECK_TRUE?"#1E90FF":t===this.stateConstants.CMS_ARTICLE_CHECK_FALSE?"#8B0000":"black"},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.queryParam=this.$options.data().queryParam,this.handleQuery()},onShowSizeChange:function(t,e){this.queryParam.pageSize=e,this.getList()},onSizeChange:function(t,e){this.queryParam.pageNum=1,this.queryParam.pageSize=e,this.getList()},changeSize:function(t,e){this.queryParam.pageNum=t,this.queryParam.pageSize=e,this.getList()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.ids=this.selectedRows.map((function(t){return t.id})),this.single=1!==t.length,this.multiple=!t.length},handleRecover:function(t){var e=this,n=t.id||this.ids;this.$confirm({title:"是否还原所选中数据?",onOk:function(){return Object(a["r"])(n).then((function(){e.onSelectChange([],[]),e.getList(),e.$message.success("还原成功",3)}))},onCancel:function(){}})},handleDelete:function(t){var e=this,n=t.id||this.ids;e.$confirm({title:"删除后不可恢复，确认删除所选中数据?",content:"数据删除后将不可恢复，请谨慎操作！",onOk:function(){return Object(a["f"])(n).then((function(){e.onSelectChange([],[]),e.getList(),e.$message.success("删除成功",3)}))},onCancel:function(){}})},handleTableChange:function(t,e,n){void 0!==n.field&&null!==n.field&&""!==n.field&&(this.queryParam.orderByColumn="a."+n.field,this.queryParam.isAsc=n.order),this.getList()},handleClass:function(t){var e=this;this.showArticleClassModal=!0,this.$nextTick((function(){return e.$refs.cmsArticleClassForm.show(t)}))},getTreeSelect:function(){var t=this;Object(c["k"])("0").then((function(e){t.cmsClassTreeOptions=e.data}))},onLoadData:function(t){return new Promise((function(e){t.dataRef.children?e():Object(c["k"])(t.dataRef.id).then((function(n){t.dataRef.children=n.data,e()}))}))}}},u=o,l=n("2877"),d=Object(l["a"])(u,s,r,!1,null,null,null);e["default"]=d.exports}}]);