(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-23a40157"],{"20ac":function(t,e,r){"use strict";r.r(e);var a=r("8478"),o=r("b3ad"),s=(r("b6c4"),{data:()=>({form:{},allLabel:null}),components:{MaterialSelect:o.a},methods:{getGroupDetail(){Object(a.o)({id:this.form.id}).then(t=>{this.form=t.data})},getGroupLabelList(){Object(a.j)().then(t=>{this.allLabel=t.data})},updateGroup(){delete this.form.memeber,Object(a.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=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":"80px"}},[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.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),r("el-form-item",{attrs:{label:"群头像"}},[r("material-select",{attrs:{limit:1},model:{value:t.form.image,callback:function(e){t.$set(t.form,"image",e)},expression:"form.image"}})],1),r("el-form-item",{attrs:{label:"状态"}},[r("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),r("el-form-item",{attrs:{label:"推荐"}},[r("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)]),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:function(e){return t.updateGroup()}}},[t._v("保存")])],1)])])}),[],!1,null,null,null);e.default=i.exports},"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 p})),r.d(e,"g",(function(){return d})),r.d(e,"k",(function(){return f})),r.d(e,"l",(function(){return g})),r.d(e,"o",(function(){return b})),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 w})),r.d(e,"m",(function(){return j}));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),p=t=>a.a.get("/group.GroupLabel/detail",{params:t}),d=t=>a.a.get("/group.GroupLabel/del",{params:t}),f=t=>a.a.post("/group.GroupLabel/update",t),g=t=>o.a.get("/chat.Group/list",{params:t}),b=t=>o.a.get("/chat.Group/details",{params:t}),h=t=>o.a.get("/group.GroupLabel/list",{params:t}),v=t=>o.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}),w=t=>o.a.get("/chat.Group/del",{params:t}),j=t=>o.a.get("/chat.Group/chat",{params:t})}}]);