(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-71a05cb4"],{"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(){delete this.form.memeber,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}}),u=a("2877"),n=Object(u.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("material-select",{attrs:{limit:1},model:{value:t.form.image,callback:function(e){t.$set(t.form,"image",e)},expression:"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)]),a("div",{staticClass:"bg-white ls-fixed-footer"},[a("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.updateGroup()}}},[t._v("保存")])],1)])])}),[],!1,null,null,null);e.default=n.exports},8478:function(t,e,a){"use strict";a.d(e,"d",(function(){return s})),a.d(e,"c",(function(){return u})),a.d(e,"b",(function(){return n})),a.d(e,"e",(function(){return i})),a.d(e,"a",(function(){return l})),a.d(e,"i",(function(){return c})),a.d(e,"f",(function(){return m})),a.d(e,"h",(function(){return p})),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 k})),a.d(e,"m",(function(){return $}));var r=a("f175"),o=a("6b2d");const s=t=>r.a.get("/group.GroupCategory/list",{params:t}),u=t=>r.a.get("/group.GroupCategory/detail",{params:t}),n=t=>r.a.get("/group.GroupCategory/del",{params:t}),i=t=>r.a.post("/group.GroupCategory/update",t),l=t=>r.a.post("/group.GroupCategory/create",t),c=t=>r.a.get("/group.GroupLabel/list",{params:t}),m=t=>r.a.post("/group.GroupLabel/create",t),p=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=>o.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}),k=t=>o.a.get("/chat.Group/del",{params:t}),$=t=>o.a.get("/chat.Group/chat",{params:t})}}]);