new_naweigete/crmeb/public/admin/dist/system_static/js/chunk-7d4eef5c.07b96802.js
2025-03-13 09:24:48 +08:00

1 line
7.0 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7d4eef5c"],{"35de":function(t,e,a){a("bd32")},"9a53":function(t,e,a){a.r(e);var i=a("c7eb"),n=a("1da1"),r=a("5530"),o=(a("14d9"),a("2f62")),s=a("d4f4");r={name:"articleCategory",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,formValidate:{status:"",page:1,limit:20,type:0},status:"",total:0,columns1:[{title:"ID",key:"id",width:80},{title:"分类昵称",key:"title",minWidth:130},{title:"分类图片",slot:"images",minWidth:130},{title:"状态",slot:"statuss",minWidth:130},{title:"操作",slot:"action",fixed:"right",minWidth:120}],FromData:null,modalTitleSs:"",categoryId:0,categoryList:[]}},computed:Object(r.a)(Object(r.a)({},Object(o.c)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getList()},methods:Object(r.a)(Object(r.a)({},Object(o.b)("userLevel",["getCategoryId"])),{},{add:function(){var t=this;this.$modalForm(Object(s.c)()).then((function(){return t.getList()}))},edit:function(t){var e=this;this.$modalForm(Object(s.d)(t.id)).then((function(){return e.getList()}))},del:function(t,e){var a=this;e={title:e,num:0,url:"caseinfo/category/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){a.$message.success(t.msg),a.getList()})).catch((function(t){a.$message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,this.formValidate.status="all"===this.status?"":this.status,Object(s.e)(this.formValidate).then((()=>{var e=Object(n.a)(Object(i.a)().mark((function e(a){var n;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.data,t.categoryList=n.list,t.total=n.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}})()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},userSearchs:function(){this.formValidate.page=1,this.getList()},onchangeIsShow:function(t){var e=this;t={id:t.id,status:t.status};Object(s.i)(t).then((()=>{var t=Object(n.a)(Object(i.a)().mark((function t(a){return Object(i.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success(a.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}})()).catch((function(t){e.$message.error(t.msg)}))},lookUp:function(t){this.$router.push({path:this.$routeProStr+"/ caseinfo/article/index",query:{id:t.id}}),this.getCategoryId(t.id)}})},a("35de"),o=a("2877"),a=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"是否显示:","label-for":"status"}},[e("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择",clearable:""},on:{change:t.userSearchs},model:{value:t.status,callback:function(e){t.status=e},expression:"status"}},[e("el-option",{attrs:{value:"all",label:"全部"}}),e("el-option",{attrs:{value:"1",label:"显示"}}),e("el-option",{attrs:{value:"0",label:"不显示"}})],1)],1),e("el-form-item",{attrs:{label:"分类昵称:",prop:"title","label-for":"status2"}},[e("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入分类昵称"},model:{value:t.formValidate.title,callback:function(e){t.$set(t.formValidate,"title",e)},expression:"formValidate.title"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1)]),e("el-card",{attrs:{bordered:!1,shadow:"never"}},[e("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["caseinfo-cate-add"],expression:"['caseinfo-cate-add']"}],attrs:{type:"primary"},on:{click:t.add}},[t._v("添加案例分类")]),e("vxe-table",{staticClass:"vxeTable mt14",attrs:{"highlight-hover-row":"",loading:t.loading,"header-row-class-name":"false","tree-config":{children:"children"},data:t.categoryList}},[e("vxe-table-column",{attrs:{field:"id",title:"ID",tooltip:"",width:"80"}}),e("vxe-table-column",{attrs:{field:"title","tree-node":"",title:"分类昵称","min-width":"130"}}),e("vxe-table-column",{attrs:{field:"image",title:"分类图片","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return a=a.row,[a.image?e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:a.image,expression:"row.image"}]})]):t._e()]}}])}),e("vxe-table-column",{attrs:{field:"status",title:"状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(a){var i=a.row;return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,value:i.status,size:"large"},on:{change:function(e){return t.onchangeIsShow(i)}},model:{value:i.status,callback:function(e){t.$set(i,"status",e)},expression:"row.status"}})]}}])}),e("vxe-table-column",{attrs:{field:"date",title:"操作",width:"160",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(a){var i=a.row;return[e("a",{on:{click:function(e){return t.edit(i)}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.del(i,"删除案例分类",t.index)}}},[t._v("删除")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.lookUp(i)}}},[t._v("查看案例")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1)],1)}),[],!1,null,"370afbb8",null);e.default=a.exports},bd32:function(t,e,a){},d4f4:function(t,e,a){a.d(e,"b",(function(){return n})),a.d(e,"a",(function(){return r})),a.d(e,"g",(function(){return o})),a.d(e,"c",(function(){return s})),a.d(e,"e",(function(){return c})),a.d(e,"f",(function(){return l})),a.d(e,"d",(function(){return u})),a.d(e,"i",(function(){return d})),a.d(e,"h",(function(){return f})),a("99af");var i=a("6b6c");function n(t){return Object(i.a)({url:"caseinfo/caseinfo",method:"get",params:t})}function r(t){return Object(i.a)({url:"caseinfo/caseinfo",method:"post",data:t})}function o(t){return Object(i.a)({url:"caseinfo/caseinfo/".concat(t),method:"get"})}function s(){return Object(i.a)({url:"caseinfo/category/create",method:"GET"})}function c(t){return Object(i.a)({url:"caseinfo/category",method:"GET",params:t})}function l(){return Object(i.a)({url:"caseinfo/category_tree_list",method:"GET"})}function u(t){return Object(i.a)({url:"caseinfo/category/".concat(t,"/edit"),method:"GET"})}function d(t){return Object(i.a)({url:"caseinfo/category/set_status/".concat(t.id,"/").concat(t.status),method:"put"})}function f(t,e){return Object(i.a)({url:"caseinfo/caseinfo/relation/".concat(e),method:"put",data:t})}}}]);