chunk-0d93d568.ed17c50c.js 14 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0d93d568"],{"0898":function(t,e,n){"use strict";n.r(e);var r=n("2f62"),a=n("9b41"),o=n("0b65"),u=n("d708");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={name:"",data:function(){return{loading:!1,userLoading:!1,formInline:{},clentStatus:!1,options:o.a,columns1:[{title:"ID",key:"id",minWidth:40,maxWidth:80},{title:"群名称",key:"name",minWidth:80},{title:"群主",slot:"ownerInfo",minWidth:100},{title:"群公告",key:"notice",minWidth:100},{title:"管理员",slot:"admin_user_list",minWidth:120},{title:"创建时间",key:"group_create_time",minWidth:110},{title:"群人数",key:"member_num",minWidth:80},{title:"退群人数",key:"retreat_group_num",minWidth:80},{title:"操作",slot:"action",minWidth:130}],tableData:[],clientColumn:[{title:"ID",key:"id",minWidth:60,align:"center"},{title:"姓名",slot:"member",minWidth:80,align:"center"},{title:"成员类型",slot:"type",minWidth:80,align:"center"},{title:"入群方式",slot:"join_scene",minWidth:80,align:"center"},{title:"群昵称",key:"group_nickname",minWidth:60,align:"center"},{title:"入群时间",slot:"join_time",minWidth:100,align:"center"}],clientList:[],grid:{xl:7,lg:10,md:12,sm:24,xs:24},timeVal:[],tableFrom:{time:"",name:"",page:1,limit:15},clientForm:{page:1,limit:15},total:0}},filters:{scene:function(t){return 1==t?"直接邀请":2==t?"链接邀请":3==t?"扫码入群":void 0}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(n,!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(r.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),created:function(){this.getWorkGroupChat()},methods:{getWorkGroupChat:function(){var t=this;this.loading=!0,Object(a.G)(this.tableFrom).then((function(e){t.tableData=e.data,t.loading=!1})).catch((function(e){t.$Message.error(e.msg),t.loading=!1}))},groupSynch:function(){var t=this;Object(a.J)().then((function(e){t.$Message.success(e.msg)}))},statistical:function(t,e){this.$router.push(u.a.roterPre+"/work/client/statistical/"+t.id)},groupMember:function(t,e){var n=this;this.clentStatus=!0,this.userLoading=!0,this.$set(this.clientForm,"id",t.id),Object(a.d)(this.clientForm).then((function(t){n.clientList=t.data,n.userLoading=!1})).catch((function(t){n.$Message.error(t.msg)}))},onchangeTime:function(t){this.timeVal=t,this.tableFrom.time=this.timeVal.join("-"),this.tableFrom.page=1,this.getWorkGroupChat()},searchData:function(){this.tableFrom.page=1,this.getWorkGroupChat()},pageChange:function(t){this.tableFrom.page=t,this.getWorkGroupChat()},clientChange:function(t){var e=this;this.clientForm.page=t,this.userLoading=!0,Object(a.d)(this.clientForm).then((function(t){e.clientList=t.data,e.userLoading=!1})).catch((function(t){e.$Message.error(t.msg)}))}}},s=(n("52f1"),n("2877")),m=Object(s.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[n("div",{staticClass:"new_card_pd"},[n("Alert",{attrs:{closable:"","show-icon":""}},[t._v("\n 客户群,是由具有客户群使用权限的成员创建的外部群。成员在手机端创建群后,自动显示在后台列表中,群聊上限人数500人,包含成员+外部联系人\n ")]),n("Form",{attrs:{"label-width":96,inline:"","label-colon":!0}},[n("FormItem",{attrs:{label:"创建时间"}},[n("DatePicker",{staticClass:"input-add",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),n("FormItem",{attrs:{label:"群名称"}},[n("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入群名称"},model:{value:t.tableFrom.name,callback:function(e){t.$set(t.tableFrom,"name",e)},expression:"tableFrom.name"}}),n("Button",{attrs:{type:"primary"},on:{click:function(e){return t.searchData()}}},[t._v("查询")])],1)],1)],1)]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"acea-row"},[n("Button",{staticClass:"mr-12",attrs:{type:"primary"},on:{click:function(e){return t.groupSynch()}}},[t._v("同步企微群")])],1),n("Table",{ref:"selection",staticClass:"ivu-mt",attrs:{columns:t.columns1,data:t.tableData.list,loading:t.loading},scopedSlots:t._u([{key:"ownerInfo",fn:function(e){var r=e.row;return[n("span",[t._v(t._s(r.ownerInfo.name))])]}},{key:"admin_user_list",fn:function(e){var r=e.row;return[r.admin_user_list?n("div",t._l(r.admin_user_list,(function(e,r){return n("Tag",{key:r,attrs:{size:"medium"}},[t._v(t._s(e.name))])})),1):t._e()]}},{key:"action",fn:function(e){var r=e.row,a=e.index;return[n("a",{on:{click:function(e){return t.statistical(r,a)}}},[t._v("群统计")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.groupMember(r,a)}}},[t._v("群成员")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.tableData.count,current:t.tableFrom.page,"show-elevator":"","show-total":"","page-size":t.tableFrom.limit},on:{"on-change":t.pageChange}})],1)],1),n("Modal",{attrs:{title:"群成员","footer-hide":!0,width:"900"},model:{value:t.clentStatus,callback:function(e){t.clentStatus=e},expression:"clentStatus"}},[n("Table",{attrs:{columns:t.clientColumn,data:t.clientList.list,loading:t.userLoading},scopedSlots:t._u([{key:"type",fn:function(e){var r=e.row;return[n("span",[t._v(t._s(1==r.type?"企业成员":"外部联系人"))])]}},{key:"join_scene",fn:function(e){var r=e.row;return[n("span",[t._v(t._s(t._f("scene")(r.join_scene)))])]}},{key:"member",fn:function(e){var r=e.row;return[r.member&&1==r.type?n("span",[t._v(t._s(r.member.name))]):t._e(),r.client&&2==r.type?n("span",[t._v(t._s(r.client.name))]):t._e()]}},{key:"join_time",fn:function(e){var r=e.row;return[r.join_time?n("span",[t._v(t._s(t._f("formatDate")(r.join_time)))]):t._e()]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.clientList.count,current:t.clientForm.page,"show-elevator":"","show-total":"","page-size":t.clientForm.limit},on:{"on-change":t.clientChange}})],1)],1)],1)}),[],!1,null,"077c7c94",null);e.default=m.exports},"0b65":function(t,e,n){"use strict";e.a={shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,n=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,n))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]}},"52f1":function(t,e,n){"use strict";var r=n("7301");n.n(r).a},7301:function(t,e,n){},"9b41":function(t,e,n){"use strict";n.d(e,"V",(function(){return a})),n.d(e,"P",(function(){return o})),n.d(e,"U",(function(){return u})),n.d(e,"y",(function(){return i})),n.d(e,"v",(function(){return c})),n.d(e,"x",(function(){return l})),n.d(e,"w",(function(){return s})),n.d(e,"z",(function(){return m})),n.d(e,"s",(function(){return d})),n.d(e,"k",(function(){return h})),n.d(e,"j",(function(){return f})),n.d(e,"E",(function(){return g})),n.d(e,"u",(function(){return p})),n.d(e,"F",(function(){return w})),n.d(e,"Q",(function(){return b})),n.d(e,"G",(function(){return _})),n.d(e,"J",(function(){return k})),n.d(e,"W",(function(){return j})),n.d(e,"h",(function(){return O})),n.d(e,"g",(function(){return v})),n.d(e,"t",(function(){return D})),n.d(e,"m",(function(){return y})),n.d(e,"c",(function(){return F})),n.d(e,"b",(function(){return C})),n.d(e,"a",(function(){return M})),n.d(e,"i",(function(){return T})),n.d(e,"d",(function(){return W})),n.d(e,"D",(function(){return L})),n.d(e,"H",(function(){return x})),n.d(e,"I",(function(){return P})),n.d(e,"f",(function(){return S})),n.d(e,"N",(function(){return I})),n.d(e,"M",(function(){return Y})),n.d(e,"l",(function(){return $})),n.d(e,"T",(function(){return G})),n.d(e,"e",(function(){return V})),n.d(e,"L",(function(){return z})),n.d(e,"K",(function(){return E})),n.d(e,"O",(function(){return J})),n.d(e,"B",(function(){return B})),n.d(e,"r",(function(){return H})),n.d(e,"q",(function(){return A})),n.d(e,"n",(function(){return q})),n.d(e,"o",(function(){return K})),n.d(e,"p",(function(){return N})),n.d(e,"A",(function(){return Q})),n.d(e,"R",(function(){return R})),n.d(e,"S",(function(){return U})),n.d(e,"C",(function(){return X}));var r=n("b6bd");function a(){return Object(r.a)({url:"work/tree",method:"get"})}function o(){return Object(r.a)({url:"work/label",method:"get"})}function u(){return Object(r.a)({url:"work/synchMember",method:"post"})}function i(){return Object(r.a)({url:"work/channel/cate",method:"get"})}function c(){return Object(r.a)({url:"work/channel/cate/create",method:"get"})}function l(t){return Object(r.a)({url:"/work/channel/cate/".concat(t,"/edit"),method:"get"})}function s(t){return Object(r.a)({url:"/work/channel/cate/".concat(t),method:"delete"})}function m(t){return Object(r.a)({url:"work/channel/code",method:"get",params:t})}function d(t){return Object(r.a)({url:"work/channel/code",method:"post",data:t})}function h(t){return Object(r.a)({url:"work/channel/code/".concat(t),method:"get"})}function f(t){return Object(r.a)({url:"work/channel/code/client",method:"get",params:t})}function g(t,e){return Object(r.a)({url:"work/channel/code/".concat(t),method:"put",data:e})}function p(t){return Object(r.a)({url:"work/channel/code/bactch/cate",method:"post",data:t})}function w(){return Object(r.a)({url:"work/department",method:"get"})}function b(t){return Object(r.a)({url:"work/member",method:"get",params:t})}function _(t){return Object(r.a)({url:"work/group_chat",method:"get",params:t})}function k(){return Object(r.a)({url:"work/group_chat/synch",method:"post"})}function j(t){return Object(r.a)({url:"work/welcome",method:"post",data:t})}function O(t){return Object(r.a)({url:"work/welcome",method:"get",params:t})}function v(t){return Object(r.a)({url:"work/welcome/".concat(t),method:"get"})}function D(t,e){return Object(r.a)({url:"work/welcome/".concat(t),method:"put",data:e})}function y(t){return Object(r.a)({url:"work/group_chat_auth",method:"post",data:t})}function F(t){return Object(r.a)({url:"work/group_chat_auth",method:"get",params:t})}function C(t){return Object(r.a)({url:"work/group_chat_auth/".concat(t),method:"get"})}function M(t,e){return Object(r.a)({url:"work/group_chat_auth/".concat(t),method:"put",data:e})}function T(t){return Object(r.a)({url:"work/client",method:"get",params:t})}function W(t){return Object(r.a)({url:"work/group_chat/member",method:"get",params:t})}function L(){return Object(r.a)({url:"work/client/synch",method:"get"})}function x(t){return Object(r.a)({url:"work/group_chat/statistics",method:"get",params:t})}function P(t){return Object(r.a)({url:"work/group_chat/statisticsList",method:"get",params:t})}function S(t){return Object(r.a)({url:"work/group_template",method:"get",params:t})}function I(t){return Object(r.a)({url:"work/group_template",method:"post",data:t})}function Y(t){return Object(r.a)({url:"work/group_template/".concat(t),method:"get"})}function $(t){return Object(r.a)({url:"work/moment",method:"get",params:t})}function G(t){return Object(r.a)({url:"/work/moment",method:"post",data:t})}function V(t){return Object(r.a)({url:"work/group_template_chat",method:"get",params:t})}function z(t){return Object(r.a)({url:"work/group_template_chat",method:"post",data:t})}function E(t){return Object(r.a)({url:"work/group_template_chat/".concat(t),method:"get"})}function J(t){return Object(r.a)({url:"work/group_template/sendMessage",method:"post",data:t})}function B(t){return Object(r.a)({url:"work/client/count",method:"post",data:t})}function H(t,e){return Object(r.a)({url:"work/group_template/memberList/".concat(t),method:"get",params:e})}function A(t,e){return Object(r.a)({url:"work/group_template/clientList/".concat(t),method:"get",params:e})}function q(t,e){return Object(r.a)({url:"work/group_template_chat/groupChatList/".concat(t),method:"get",params:e})}function K(t,e){return Object(r.a)({url:"work/group_template_chat/groupChatOwnerList/".concat(t),method:"get",params:e})}function N(t){return Object(r.a)({url:"work/group_template_chat/getOwnerChatList",method:"get",params:t})}function Q(t){return Object(r.a)({url:"work/client/batchLabel",method:"post",data:t})}function R(t){return Object(r.a)({url:"work/moment/".concat(t),method:"get"})}function U(t){return Object(r.a)({url:"work/moment_list",method:"get",params:t})}function X(t,e){return Object(r.a)({url:"work/client/".concat(t),method:"put",data:e})}}}]);