(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1d6dbea6"],{"263f":function(t,e,a){"use strict";a.d(e,"e",(function(){return s})),a.d(e,"b",(function(){return n})),a.d(e,"d",(function(){return l})),a.d(e,"f",(function(){return u})),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 m})),a.d(e,"a",(function(){return h}));var r=a("6b2d");const s=t=>r.a.get("/user.labelGroup/list",{params:t}),n=t=>r.a.post("/user.labelGroup/create",t),l=t=>r.a.get("/user.labelGroup/detail",{params:t}),u=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}),m=t=>r.a.post("/settings.user.userLabel/setConfig",t),h=t=>r.a.get("/settings.user.userLabel/getConfig",{params:t})},"6b2d":function(t,e,a){"use strict";var r=a("0613"),s=a("bc3a"),n=a.n(s),l=a("d70b"),u=a("afbc"),i=a("5c96"),o=a("6ddb");const c={baseURL:l.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},d=(Object(o.g)(()=>(r.a.commit("setToken",""),r.a.commit("setUserInfo",{}),r.a.commit("setPermission",{}),u.b.push("/account/login"),Promise.reject())),n.a.create(c));d.interceptors.request.use(t=>{const e=r.a.getters.token;return e&&(t.headers.token=e),t.headers.version=l.a.version,t},t=>Promise.reject(t)),d.interceptors.response.use(t=>t.data,t=>(Object(i.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=d},e6a9:function(t,e,a){"use strict";a.r(e);var r=a("263f"),s={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"),l=Object(n.a)(s,(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=l.exports}}]);