(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-16244fcc"],{"0ee3":function(t,e,a){"use strict";a.r(e);var r=a("8478"),n={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null}}),methods:{handleSizeChange(t){},handleCurrentChange(t){this.getData(10,t)},getData(t,e){Object(r.l)({page:e}).then(t=>{this.table.currentPage=e,this.table.total=t.data.total,this.table.data=t.data.data})},jumpDetail(t){this.$router.push({path:"/group/groupListDetail",query:{id:t}})},doSwitchChange(t,e){1==t&&Object(r.q)({id:e}).then(t=>{1==t.code?this.$message.success("启用成功!"):this.$message.error("启用出错!")}),0==t&&Object(r.p)({id:e}).then(t=>{1==t.code?this.$message.success("禁用成功!"):this.$message.error("禁用出错!")})},groupDel(t){this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(r.n)({id:t}).then(t=>{1==t.code?this.$message({type:"success",message:"解散成功!"}):this.$message({type:"error",message:"解散出错!"}),this.getData(10,this.table.currentPage)})}).catch(()=>{})},jumpHistory(t){this.$router.push({path:"/group/groupListHistroy",query:{id:t}})}},mounted(){this.getData(10,1)}},o=a("2877"),s=Object(o.a)(n,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{staticClass:"ls-card",staticStyle:{width:"100%"},attrs:{data:null==t.table.data?[]:t.table.data}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"80"}}),a("el-table-column",{attrs:{prop:"name",label:"群名称"}}),a("el-table-column",{attrs:{prop:"desc",label:"描述"}}),a("el-table-column",{attrs:{label:"群头像"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{src:t.row.image}})]}}])}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){return t.doSwitchChange(a,e.row.id)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),a("el-table-column",{attrs:{label:"编辑"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.jumpDetail(e.row.id)}}},[t._v("详情")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.jumpHistory(e.row.id)}}},[t._v("聊天记录")]),a("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(a){return t.groupDel(e.row.id)}}},[t._v("群解散")])]}}])})],1),a("el-pagination",{attrs:{"current-page":t.table.currentPage,"page-sizes":t.table.pageSizes,"page-size":10,layout:"total, sizes, prev, pager, next, jumper",total:t.table.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)}),[],!1,null,null,null);e.default=s.exports},"6b2d":function(t,e,a){"use strict";var r=a("0613"),n=a("bc3a"),o=a.n(n),s=a("d70b"),u=a("afbc"),c=a("5c96"),i=a("6ddb");const l={baseURL:s.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},p=(Object(i.g)(()=>(r.a.commit("setToken",""),r.a.commit("setUserInfo",{}),r.a.commit("setPermission",{}),u.b.push("/account/login"),Promise.reject())),o.a.create(l));p.interceptors.request.use(t=>{const e=r.a.getters.token;return e&&(t.headers.token=e),t.headers.version=s.a.version,t},t=>Promise.reject(t)),p.interceptors.response.use(t=>t.data,t=>(Object(c.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=p},8478:function(t,e,a){"use strict";a.d(e,"d",(function(){return o})),a.d(e,"c",(function(){return s})),a.d(e,"b",(function(){return u})),a.d(e,"e",(function(){return c})),a.d(e,"a",(function(){return i})),a.d(e,"i",(function(){return l})),a.d(e,"f",(function(){return p})),a.d(e,"h",(function(){return d})),a.d(e,"g",(function(){return g})),a.d(e,"k",(function(){return h})),a.d(e,"l",(function(){return b})),a.d(e,"o",(function(){return m})),a.d(e,"j",(function(){return f})),a.d(e,"r",(function(){return y})),a.d(e,"q",(function(){return w})),a.d(e,"p",(function(){return G})),a.d(e,"n",(function(){return j})),a.d(e,"m",(function(){return v}));var r=a("f175"),n=a("6b2d");const o=t=>r.a.get("/group.GroupCategory/list",{params:t}),s=t=>r.a.get("/group.GroupCategory/detail",{params:t}),u=t=>r.a.get("/group.GroupCategory/del",{params:t}),c=t=>r.a.post("/group.GroupCategory/update",t),i=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),d=t=>r.a.get("/group.GroupLabel/detail",{params:t}),g=t=>r.a.get("/group.GroupLabel/del",{params:t}),h=t=>r.a.post("/group.GroupLabel/update",t),b=t=>n.a.get("/chat.Group/list",{params:t}),m=t=>n.a.get("/chat.Group/details",{params:t}),f=t=>n.a.get("/group.GroupLabel/list",{params:t}),y=t=>r.a.post("/chat.Group/update",t),w=t=>n.a.get("/chat.Group/enable",{params:t}),G=t=>n.a.get("/chat.Group/disable",{params:t}),j=t=>n.a.get("/chat.Group/del",{params:t}),v=t=>n.a.get("/chat.Group/chat",{params:t})}}]);