(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-23a40157"],{"20ac":function(t,e,a){"use strict";a.r(e);var r=a("8478"),o=a("b3ad"),s=(a("b6c4"),{data:()=>({form:{},allLabel:null}),components:{MaterialSelect:o.a},methods:{getGroupDetail(){Object(r.o)({id:this.form.id}).then(t=>{this.form=t.data})},getGroupLabelList(){Object(r.j)().then(t=>{this.allLabel=t.data})},updateGroup(){Object(r.r)(this.form).then(t=>{1==t.code?(this.$message.success("修改成功!"),setTimeout(()=>this.$router.go(-1),500)):this.$message.error("修改失败!")})}},mounted(){this.getGroupDetail()},created(){const t=this.$route.query;this.form.id=t.id}}),n=a("2877"),u=Object(n.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ls-card"},[a("el-page-header",{attrs:{content:"群详情"},on:{back:function(e){return t.$router.go(-1)}}})],1),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[t._v("群详情")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"群名称"}},[a("el-input",{model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"描述"}},[a("el-input",{model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),a("el-form-item",{attrs:{label:"群头像"}},[a("el-image",{staticStyle:{width:"120px",height:"120px"},attrs:{src:t.form.image}})],1),a("el-form-item",{attrs:{label:"状态"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}})],1),a("el-form-item",{attrs:{label:"推荐"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.form.home_show,callback:function(e){t.$set(t.form,"home_show",e)},expression:"form.home_show"}})],1)],1)],1)])])}),[],!1,null,null,null);e.default=u.exports},"6b2d":function(t,e,a){"use strict";var r=a("0613"),o=a("bc3a"),s=a.n(o),n=a("d70b"),u=a("afbc"),i=a("5c96"),c=a("6ddb");const l={baseURL:n.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},p=(Object(c.g)(()=>(r.a.commit("setToken",""),r.a.commit("setUserInfo",{}),r.a.commit("setPermission",{}),u.b.push("/account/login"),Promise.reject())),s.a.create(l));p.interceptors.request.use(t=>{const e=r.a.getters.token;return e&&(t.headers.token=e),t.headers.version=n.a.version,t},t=>Promise.reject(t)),p.interceptors.response.use(t=>t.data,t=>(Object(i.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=p},8478:function(t,e,a){"use strict";a.d(e,"d",(function(){return s})),a.d(e,"c",(function(){return n})),a.d(e,"b",(function(){return u})),a.d(e,"e",(function(){return i})),a.d(e,"a",(function(){return c})),a.d(e,"i",(function(){return l})),a.d(e,"f",(function(){return p})),a.d(e,"h",(function(){return m})),a.d(e,"g",(function(){return d})),a.d(e,"k",(function(){return f})),a.d(e,"l",(function(){return g})),a.d(e,"o",(function(){return h})),a.d(e,"j",(function(){return b})),a.d(e,"r",(function(){return v})),a.d(e,"q",(function(){return G})),a.d(e,"p",(function(){return w})),a.d(e,"n",(function(){return j})),a.d(e,"m",(function(){return k}));var r=a("f175"),o=a("6b2d");const s=t=>r.a.get("/group.GroupCategory/list",{params:t}),n=t=>r.a.get("/group.GroupCategory/detail",{params:t}),u=t=>r.a.get("/group.GroupCategory/del",{params:t}),i=t=>r.a.post("/group.GroupCategory/update",t),c=t=>r.a.post("/group.GroupCategory/create",t),l=t=>r.a.get("/group.GroupLabel/list",{params:t}),p=t=>r.a.post("/group.GroupLabel/create",t),m=t=>r.a.get("/group.GroupLabel/detail",{params:t}),d=t=>r.a.get("/group.GroupLabel/del",{params:t}),f=t=>r.a.post("/group.GroupLabel/update",t),g=t=>o.a.get("/chat.Group/list",{params:t}),h=t=>o.a.get("/chat.Group/details",{params:t}),b=t=>o.a.get("/group.GroupLabel/list",{params:t}),v=t=>r.a.post("/chat.Group/update",t),G=t=>o.a.get("/chat.Group/enable",{params:t}),w=t=>o.a.get("/chat.Group/disable",{params:t}),j=t=>o.a.get("/chat.Group/del",{params:t}),k=t=>o.a.get("/chat.Group/chat",{params:t})}}]);