(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7216a335"],{"263f":function(e,t,r){"use strict";r.d(t,"e",(function(){return s})),r.d(t,"b",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"f",(function(){return l})),r.d(t,"c",(function(){return u})),r.d(t,"g",(function(){return i})),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 a=r("6b2d");const s=e=>a.a.get("/user.labelGroup/list",{params:e}),n=e=>a.a.post("/user.labelGroup/create",e),o=e=>a.a.get("/user.labelGroup/detail",{params:e}),l=e=>a.a.post("/user.labelGroup/update",e),u=e=>a.a.get("/user.labelGroup/del",{params:e}),i=e=>a.a.post("/user.labelItem/create",e),c=e=>a.a.get("/user.labelItem/list",{params:e}),m=e=>a.a.get("/user.labelItem/detail",{params:e}),d=e=>a.a.post("/user.labelItem/update",e),f=e=>a.a.get("/user.labelItem/del",{params:e}),p=e=>a.a.post("/settings.user.userLabel/setConfig",e),b=e=>a.a.get("/settings.user.userLabel/getConfig",{params:e})},"3d71":function(e,t,r){"use strict";r.r(t);var a=r("263f"),s=r("b3ad"),n=(r("b6c4"),{data:()=>({form:{name:"",desc:"",sort:""}}),components:{MaterialSelect:s.a},methods:{submitForm(e){this.$refs[e].validate(e=>{if(!e)return!1;this.addGroup()})},addGroup(){Object(a.b)(this.form).then(e=>{1==e.code?(this.$message.success("创建成功!"),setTimeout(()=>this.$router.go(-1),500)):this.$message.error(e.msg)})}},mounted(){}}),o=r("2877"),l=Object(o.a)(n,(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=l.exports}}]);