(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-938d749a"],{8478:function(t,e,r){"use strict";r.d(e,"d",(function(){return n})),r.d(e,"c",(function(){return s})),r.d(e,"b",(function(){return u})),r.d(e,"e",(function(){return i})),r.d(e,"a",(function(){return l})),r.d(e,"i",(function(){return c})),r.d(e,"f",(function(){return d})),r.d(e,"h",(function(){return m})),r.d(e,"g",(function(){return p})),r.d(e,"k",(function(){return f})),r.d(e,"l",(function(){return h})),r.d(e,"o",(function(){return g})),r.d(e,"j",(function(){return b})),r.d(e,"r",(function(){return G})),r.d(e,"q",(function(){return v})),r.d(e,"p",(function(){return k})),r.d(e,"n",(function(){return y})),r.d(e,"m",(function(){return C}));var a=r("f175"),o=r("6b2d");const n=t=>a.a.get("/group.GroupCategory/list",{params:t}),s=t=>a.a.get("/group.GroupCategory/detail",{params:t}),u=t=>a.a.get("/group.GroupCategory/del",{params:t}),i=t=>a.a.post("/group.GroupCategory/update",t),l=t=>a.a.post("/group.GroupCategory/create",t),c=t=>a.a.get("/group.GroupLabel/list",{params:t}),d=t=>a.a.post("/group.GroupLabel/create",t),m=t=>a.a.get("/group.GroupLabel/detail",{params:t}),p=t=>a.a.get("/group.GroupLabel/del",{params:t}),f=t=>a.a.post("/group.GroupLabel/update",t),h=t=>o.a.get("/chat.Group/list",{params:t}),g=t=>o.a.get("/chat.Group/details",{params:t}),b=t=>o.a.get("/group.GroupLabel/list",{params:t}),G=t=>o.a.post("/chat.Group/update",t),v=t=>o.a.get("/chat.Group/enable",{params:t}),k=t=>o.a.get("/chat.Group/disable",{params:t}),y=t=>o.a.get("/chat.Group/del",{params:t}),C=t=>o.a.get("/chat.Group/chat",{params:t})},dd0c:function(t,e,r){"use strict";r.r(e);var a=r("8478"),o=r("b3ad"),n=(r("b6c4"),{data:()=>({form:{id:0,sort:0},options:[]}),components:{MaterialSelect:o.a},methods:{formatItem(t){return{id:t.id,name:t.name,sub:t.sub?t.sub.map(t=>this.formatItem(t)):null}},formattedOptions(){return this.options.map(t=>this.formatItem(t))},loadDetail(){0!=this.form.id&&Object(a.h)({id:this.form.id}).then(t=>{this.form=t})},loadAllCategory(){Object(a.i)().then(t=>{this.options=t})},edit(){delete this.form.create_time,delete this.form.delete_time,delete this.form.update_time,Object(a.k)(this.form).then(t=>{null!=t&&Array.isArray(t)&&0==t.length&&(this.$message.success("修改成功!"),setTimeout(()=>this.$router.go(-1),500))})},add(){Object(a.f)(this.form).then(t=>{null!=t&&Array.isArray(t)&&0==t.length&&(this.$message.success("新增成功!"),setTimeout(()=>this.$router.go(-1),500))})}},mounted(){},created(){const t=this.$route.query;this.form.id=t.id}}),s=r("2877"),u=Object(s.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"ls-card"},[r("el-page-header",{attrs:{content:"新增群标签"},on:{back:function(e){return t.$router.go(-1)}}})],1),r("div",{staticClass:"ls-card m-t-16"},[r("div",{staticClass:"card-title"},[t._v("新增群标签")]),r("div",{staticClass:"card-content m-t-24"},[r("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"群标签名称"}},[r("el-input",{model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),r("el-form-item",{attrs:{label:"标签备注"}},[r("el-input",{model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}})],1),r("el-form-item",{attrs:{label:"标签排序"}},[r("el-input",{model:{value:t.form.sort,callback:function(e){t.$set(t.form,"sort",e)},expression:"form.sort"}})],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(e){return t.$router.go(-1)}}},[t._v("取消")]),r("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("新增")])],1)])])}),[],!1,null,null,null);e.default=u.exports}}]);