(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-9baa0934"],{"263f":function(t,e,a){"use strict";a.d(e,"e",(function(){return l})),a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"f",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"g",(function(){return u})),a.d(e,"j",(function(){return c})),a.d(e,"i",(function(){return d})),a.d(e,"k",(function(){return b})),a.d(e,"h",(function(){return p})),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}),s=t=>r.a.post("/user.labelGroup/create",t),o=t=>r.a.get("/user.labelGroup/detail",{params:t}),n=t=>r.a.post("/user.labelGroup/update",t),i=t=>r.a.get("/user.labelGroup/del",{params:t}),u=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}),b=t=>r.a.post("/user.labelItem/update",t),p=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})},"6b2d":function(t,e,a){"use strict";var r=a("0613"),l=a("bc3a"),s=a.n(l),o=a("d70b"),n=a("afbc"),i=a("5c96"),u=a("6ddb");const c={baseURL:o.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},d=(Object(u.g)(()=>(r.a.commit("setToken",""),r.a.commit("setUserInfo",{}),r.a.commit("setPermission",{}),n.b.push("/account/login"),Promise.reject())),s.a.create(c));d.interceptors.request.use(t=>{const e=r.a.getters.token;return e&&(t.headers.token=e),t.headers.version=o.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},a72e:function(t,e,a){"use strict";a.r(e);var r=a("263f"),l={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null},id:0}),methods:{handleSizeChange(t){},handleCurrentChange(t){this.table.currentPage=t},getData(t,e){Object(r.j)({gid:this.id}).then(t=>{this.table.currentPage=e,this.table.total=t.data.length,this.table.data=t.data;for(var a=0;a<this.table.data.length;a++)1==this.table.data[a].color_type&&(-1!=this.table.data[a].color.indexOf(",")?(this.table.data[a].color1=this.table.data[a].color.split(",")[0],this.table.data[a].color2=this.table.data[a].color.split(",")[1]):(this.table.data[a].color1=this.table.data[a].color,this.table.data[a].color2=this.table.data[a].color))})},jumpAdd(){this.$router.push({path:"/user/label/listAdd",query:{gid:this.id}})},edit(t){this.$router.push({path:"/user/label/listEdit",query:{id:t}})},del(t){this.$confirm("此操作将永久删除该标签, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(r.h)({id:t}).then(t=>{1==t.code?(this.$message.success("删除成功!"),this.getData(10,this.table.currentPage)):this.$message.error(t.msg)})}).catch(()=>{})}},mounted(){this.getData(10,1)},created(){const t=this.$route.query;this.id=t.id}},s=a("2877"),o=Object(s.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("新建")])],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:"group_id",label:"分类ID"}}),a("el-table-column",{attrs:{label:"颜色类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.color_type?a("span",[t._v("普通颜色")]):t._e(),1==e.row.color_type?a("span",[t._v("渐变色")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"颜色"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.color_type?a("div",{staticStyle:{width:"80px",height:"50px"},style:"background-color: "+e.row.color+";"}):t._e(),1==e.row.color_type?a("div",{staticStyle:{width:"80px",height:"50px"},style:"background: linear-gradient(90deg, "+e.row.color1+", "+e.row.color2+");"}):t._e()]}}])}),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",{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=o.exports}}]);