(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-078b621f"],{"263f":function(e,t,r){"use strict";r.d(t,"e",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"d",(function(){return n})),r.d(t,"f",(function(){return i})),r.d(t,"c",(function(){return u})),r.d(t,"g",(function(){return l})),r.d(t,"j",(function(){return c})),r.d(t,"i",(function(){return m})),r.d(t,"k",(function(){return d})),r.d(t,"h",(function(){return f})),r.d(t,"l",(function(){return p})),r.d(t,"a",(function(){return b}));var s=r("6b2d");const a=e=>s.a.get("/user.labelGroup/list",{params:e}),o=e=>s.a.post("/user.labelGroup/create",e),n=e=>s.a.get("/user.labelGroup/detail",{params:e}),i=e=>s.a.post("/user.labelGroup/update",e),u=e=>s.a.get("/user.labelGroup/del",{params:e}),l=e=>s.a.post("/user.labelItem/create",e),c=e=>s.a.get("/user.labelItem/list",{params:e}),m=e=>s.a.get("/user.labelItem/detail",{params:e}),d=e=>s.a.post("/user.labelItem/update",e),f=e=>s.a.get("/user.labelItem/del",{params:e}),p=e=>s.a.post("/settings.user.userLabel/setConfig",e),b=e=>s.a.get("/settings.user.userLabel/getConfig",{params:e})},e7b1:function(e,t,r){"use strict";r.r(t);var s=r("263f"),a=r("b3ad"),o=(r("b6c4"),{data:()=>({form:{name:"",desc:""}}),components:{MaterialSelect:a.a},methods:{submitForm(e){this.$refs[e].validate(e=>{if(!e)return!1;this.editGroup()})},addGroup(){Object(s.b)(this.form).then(e=>{1==e.code?(this.$message.success("创建成功!"),setTimeout(()=>this.$router.go(-1),500)):this.$message.error(e.msg)})},editGroup(){Object(s.f)(this.form).then(e=>{1==e.code?(this.$message.success("编辑成功!"),setTimeout(()=>this.$router.go(-1),500)):this.$message.error(e.msg)})},getGroupInfo(){Object(s.d)({id:this.form.id}).then(e=>{1==e.code?this.form=e.data:this.$message.error(e.msg)})}},mounted(){this.getGroupInfo()},created(){const e=this.$route.query;this.form.id=e.id}}),n=r("2877"),i=Object(n.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"ls-card"},[r("el-page-header",{attrs:{content:"新建标签类型"},on:{back:function(t){return e.$router.go(-1)}}})],1),r("div",{staticClass:"ls-card m-t-16"},[r("div",{staticClass:"card-title"},[e._v("新建标签类型")]),r("div",{staticClass:"card-content m-t-24"},[r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px"}},[r("el-form-item",{attrs:{required:"",prop:"name",label:"标签类型名称"}},[r("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),r("el-form-item",{attrs:{prop:"desc",label:"标签类型描述"}},[r("el-input",{model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1),r("el-form-item",{attrs:{prop:"sort",label:"排序"}},[r("el-input",{attrs:{type:"number"},model:{value:e.form.sort,callback:function(t){e.$set(e.form,"sort",t)},expression:"form.sort"}}),r("span",{staticStyle:{"margin-left":"10px",color:"gray"}},[e._v("值越大排的位置越前")])],1)],1)],1)]),r("div",{staticClass:"bg-white ls-fixed-footer"},[r("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[r("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$router.go(-1)}}},[e._v("取消")]),r("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("编辑")])],1)])])}),[],!1,null,null,null);t.default=i.exports}}]);