(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e35beaaa"],{"6b2d":function(t,e,r){"use strict";var a=r("0613"),o=r("bc3a"),s=r.n(o),n=r("d70b"),i=r("afbc"),u=r("5c96"),c=r("6ddb");const l={baseURL:n.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},m=(Object(c.g)(()=>(a.a.commit("setToken",""),a.a.commit("setUserInfo",{}),a.a.commit("setPermission",{}),i.b.push("/account/login"),Promise.reject())),s.a.create(l));m.interceptors.request.use(t=>{const e=a.a.getters.token;return e&&(t.headers.token=e),t.headers.version=n.a.version,t},t=>Promise.reject(t)),m.interceptors.response.use(t=>t.data,t=>(Object(u.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=m},8478:function(t,e,r){"use strict";r.d(e,"d",(function(){return s})),r.d(e,"c",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"e",(function(){return u})),r.d(e,"a",(function(){return c})),r.d(e,"i",(function(){return l})),r.d(e,"f",(function(){return m})),r.d(e,"h",(function(){return d})),r.d(e,"g",(function(){return p})),r.d(e,"k",(function(){return f})),r.d(e,"l",(function(){return b})),r.d(e,"o",(function(){return g})),r.d(e,"j",(function(){return h})),r.d(e,"r",(function(){return v})),r.d(e,"q",(function(){return G})),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 s=t=>a.a.get("/group.GroupCategory/list",{params:t}),n=t=>a.a.get("/group.GroupCategory/detail",{params:t}),i=t=>a.a.get("/group.GroupCategory/del",{params:t}),u=t=>a.a.post("/group.GroupCategory/update",t),c=t=>a.a.post("/group.GroupCategory/create",t),l=t=>a.a.get("/group.GroupLabel/list",{params:t}),m=t=>a.a.post("/group.GroupLabel/create",t),d=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),b=t=>o.a.get("/chat.Group/list",{params:t}),g=t=>o.a.get("/chat.Group/details",{params:t}),h=t=>o.a.get("/group.GroupLabel/list",{params:t}),v=t=>a.a.post("/chat.Group/update",t),G=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})},b611:function(t,e,r){"use strict";r.r(e);var a=r("8478"),o=r("b3ad"),s=(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))})}},mounted(){this.loadDetail()},created(){const t=this.$route.query;this.form.id=t.id}}),n=r("2877"),i=Object(n.a)(s,(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.edit}},[t._v("编辑")])],1)])])}),[],!1,null,null,null);e.default=i.exports}}]);