(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-786abef7"],{"263f":function(t,e,a){"use strict";a.d(e,"e",(function(){return l})),a.d(e,"b",(function(){return n})),a.d(e,"d",(function(){return u})),a.d(e,"f",(function(){return s})),a.d(e,"c",(function(){return i})),a.d(e,"g",(function(){return o})),a.d(e,"j",(function(){return c})),a.d(e,"i",(function(){return d})),a.d(e,"k",(function(){return p})),a.d(e,"h",(function(){return b})),a.d(e,"l",(function(){return h})),a.d(e,"a",(function(){return m}));var r=a("6b2d");const l=t=>r.a.get("/user.labelGroup/list",{params:t}),n=t=>r.a.post("/user.labelGroup/create",t),u=t=>r.a.get("/user.labelGroup/detail",{params:t}),s=t=>r.a.post("/user.labelGroup/update",t),i=t=>r.a.get("/user.labelGroup/del",{params:t}),o=t=>r.a.post("/user.labelItem/create",t),c=t=>r.a.get("/user.labelItem/list",{params:t}),d=t=>r.a.get("/user.labelItem/detail",{params:t}),p=t=>r.a.post("/user.labelItem/update",t),b=t=>r.a.get("/user.labelItem/del",{params:t}),h=t=>r.a.post("/settings.user.userLabel/setConfig",t),m=t=>r.a.get("/settings.user.userLabel/getConfig",{params:t})},e6a9:function(t,e,a){"use strict";a.r(e);var r=a("263f"),l={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null}}),methods:{handleSizeChange(t){},handleCurrentChange(t){this.table.currentPage=t},getData(t,e){Object(r.e)({page_no:e}).then(t=>{this.table.total=t.data.length,this.table.data=t.data})},jumpAdd(){this.$router.push({path:"/user/label/labelGroupAdd",query:{}})},list(t){this.$router.push({path:"/user/label/list",query:{id:t}})},edit(t){this.$router.push({path:"/user/label/labelGroupEdit",query:{id:t}})},del(t){this.$confirm("此操作将永久删除该分类, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(r.c)(t).then(t=>{1==t.code?(this.$message({type:"success",message:"删除成功!"}),this.getData(10,this.table.currentPage)):this.$message.error(t.msg)})}).catch(()=>{})},jumpSetting(){this.$router.push({path:"/user/label/setting",query:{}})}},mounted(){this.getData(10,1)}},n=a("2877"),u=Object(n.a)(l,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ls-card m-b-12"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.jumpAdd}},[t._v("新增")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.jumpSetting}},[t._v("设置")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:null==t.table.data?[]:t.table.data}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"80"}}),a("el-table-column",{attrs:{prop:"name",label:"分类名称",width:"180"}}),a("el-table-column",{attrs:{prop:"desc",label:"描述"}}),a("el-table-column",{attrs:{prop:"sort",label:"排序",width:"80"}}),a("el-table-column",{attrs:{label:"编辑"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.edit(e.row.id)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.list(e.row.id)}}},[t._v("列表")]),a("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(a){return t.del(e.row.id)}}},[t._v("删除")])]}}])})],1)],1)}),[],!1,null,null,null);e.default=u.exports}}]);