1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-37db4fa4"],{1896:function(t,e,n){"use strict";var r=n("d92c");n.n(r).a},"1a79":function(t,e,n){"use strict";n.r(e);var r=n("2f62"),o=n("9b41"),a={name:"sideMenuItem",props:{parentItem:{type:Object,default:function(){}}}},u=n("2877");function c(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 i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={name:"",data:function(){return{activeName:1,menuList:[],tableFrom:{department:"",name:"",page:1,limit:15},loading:!1,columns1:[{title:"ID",key:"id",minWidth:60},{title:"员工名称",key:"name",minWidth:100},{title:"所属部门",slot:"department_list",minWidth:140},{title:"客户数量",slot:"clientFollow",minWidth:110},{title:"所在外部群数量",slot:"chat",minWidth:110},{title:"邮箱",key:"biz_mail",minWidth:130},{title:"激活状态",slot:"status",minWidth:60},{title:"创建时间",key:"create_time",minWidth:120}],tableData:[],openMenu:[]}},components:{sideMenuItem:Object(u.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Submenu",{attrs:{name:t.parentItem.department_id}},[n("template",{slot:"title"},[n("Icon",{attrs:{type:"ios-folder",size:"15",color:"#FFCA28"}}),n("span",[t._v(t._s(t.parentItem.name))])],1),t._l(t.parentItem.children,(function(e){return[e.children&&0!==e.children.length?n("side-menu-item",{key:"menu-"+e.name,attrs:{"parent-item":e}}):n("menu-item",{key:"menu-"+e.name,attrs:{name:e.department_id}},[n("Icon",{attrs:{type:"ios-folder",size:"15",color:"#FFCA28"}}),n("span",[t._v(t._s(e.name)+" ("+t._s(e.count)+")")])],1)]}))],2)}),[],!1,null,null,null).exports},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(n,!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(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"}}),filters:{typeFilter:function(t){return{1:"已激活",2:"已禁用",4:"未激活",5:"退出企业"}[t]}},created:function(){this.getWorkTree(),this.getMemberList()},methods:{synchMember:function(){var t=this;Object(o.U)().then((function(e){t.$Message.success("同步成功")})).catch((function(e){t.$Message.error(e.msg)}))},getMemberList:function(){var t=this;this.loading=!0,Object(o.Q)(this.tableFrom).then((function(e){t.tableData=e.data,t.loading=!1})).catch((function(e){t.$Message.error(e.msg),t.loading=!1}))},search:function(){this.tableFrom.page=1,this.getMemberList()},setDefault:function(){this.tableFrom.page=1,this.tableFrom.department="",this.tableFrom.name="",this.getMemberList()},onOpenChange:function(t){var e=this;t.length?this.$nextTick((function(){e.tableFrom.department=1==e.activeName?"":e.activeName,e.getMemberList()})):(this.tableFrom.department="",this.tableFrom.page=1,this.getMemberList())},onselect:function(t){this.activeName=t,this.tableFrom.department=t,this.tableFrom.page=1,this.getMemberList()},getWorkTree:function(){var t=this;Object(o.F)().then((function(e){t.menuList=e.data,t.activeName,e.data[0].department_id,t.getTreeId(t.menuList),t.$nextTick((function(){t.$refs.side_menu.updateOpened(),t.$refs.side_menu.updateActiveName()}))}))},getTreeId:function(t){for(var e in t)this.openMenu.push(t[e].department_id),t[e].children&&this.getTreeId(t[e].children)},pageChange:function(t){this.tableFrom.page=t,this.getMemberList()}}},l=(n("1896"),Object(u.a)(s,(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("Form",{attrs:{"label-width":100,inline:"","label-colon":!0}},[n("FormItem",{attrs:{label:"员工搜索"}},[n("Input",{staticClass:"input-add",attrs:{placeholder:"请输入员工 ID 名称 手机号"},model:{value:t.tableFrom.name,callback:function(e){t.$set(t.tableFrom,"name",e)},expression:"tableFrom.name"}}),n("Button",{staticClass:"mx-14",attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("查询")])],1)],1)],1)]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Row",{attrs:{type:"flex",wrap:!1}},[n("Col",{staticStyle:{width:"260px"}},[t.menuList.length?n("Menu",{ref:"side_menu",attrs:{width:"260px","active-name":t.activeName,"open-names":t.openMenu},on:{"on-select":t.onselect,"on-open-change":t.onOpenChange}},[t._l(t.menuList,(function(e){return[e.children&&0!==e.children.length?n("side-menu-item",{key:"menu-"+e.name,attrs:{name:e.department_id,"parent-item":e}}):n("menu-item",{key:"menu-"+e.name,attrs:{name:e.department_id}},[n("Icon",{attrs:{type:"ios-folder",size:"15",color:"#FFCA28"}}),n("span",[t._v(t._s(e.name))])],1)]}))],2):t._e()],1),n("Col",{staticClass:"auto"},[n("Button",{staticClass:"btn-add",attrs:{type:"primary"},on:{click:function(e){return t.synchMember()}}},[t._v("同步企业微信")]),n("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns1,data:t.tableData.list,loading:t.loading},scopedSlots:t._u([{key:"chat",fn:function(e){var r=e.row;return[r.chat?n("span",[t._v(t._s(r.chat.sum_chat))]):t._e()]}},{key:"clientFollow",fn:function(e){var r=e.row;return[r.clientFollow?n("span",[t._v(t._s(r.clientFollow.sum_follow))]):t._e()]}},{key:"status",fn:function(e){var r=e.row;return[n("span",[t._v(t._s(t._f("typeFilter")(r.status)))])]}},{key:"department_list",fn:function(e){var r=e.row;return t._l(r.department_list,(function(e,r){return n("Tag",{key:r,attrs:{size:"medium"}},[t._v(t._s(e.name))])}))}}])}),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)],1)],1)],1)}),[],!1,null,"67ba632d",null));e.default=l.exports},"9b41":function(t,e,n){"use strict";n.d(e,"V",(function(){return o})),n.d(e,"P",(function(){return a})),n.d(e,"U",(function(){return u})),n.d(e,"y",(function(){return c})),n.d(e,"v",(function(){return i})),n.d(e,"x",(function(){return s})),n.d(e,"w",(function(){return l})),n.d(e,"z",(function(){return m})),n.d(e,"s",(function(){return d})),n.d(e,"k",(function(){return f})),n.d(e,"j",(function(){return h})),n.d(e,"E",(function(){return p})),n.d(e,"u",(function(){return b})),n.d(e,"F",(function(){return g})),n.d(e,"Q",(function(){return w})),n.d(e,"G",(function(){return _})),n.d(e,"J",(function(){return O})),n.d(e,"W",(function(){return k})),n.d(e,"h",(function(){return j})),n.d(e,"g",(function(){return v})),n.d(e,"t",(function(){return y})),n.d(e,"m",(function(){return F})),n.d(e,"c",(function(){return M})),n.d(e,"b",(function(){return C})),n.d(e,"a",(function(){return L})),n.d(e,"i",(function(){return I})),n.d(e,"d",(function(){return D})),n.d(e,"D",(function(){return P})),n.d(e,"H",(function(){return W})),n.d(e,"I",(function(){return x})),n.d(e,"f",(function(){return T})),n.d(e,"N",(function(){return $})),n.d(e,"M",(function(){return N})),n.d(e,"l",(function(){return z})),n.d(e,"T",(function(){return S})),n.d(e,"e",(function(){return A})),n.d(e,"L",(function(){return E})),n.d(e,"K",(function(){return B})),n.d(e,"O",(function(){return J})),n.d(e,"B",(function(){return Q})),n.d(e,"r",(function(){return R})),n.d(e,"q",(function(){return U})),n.d(e,"n",(function(){return q})),n.d(e,"o",(function(){return G})),n.d(e,"p",(function(){return H})),n.d(e,"A",(function(){return K})),n.d(e,"R",(function(){return V})),n.d(e,"S",(function(){return X})),n.d(e,"C",(function(){return Y}));var r=n("b6bd");function o(){return Object(r.a)({url:"work/tree",method:"get"})}function a(){return Object(r.a)({url:"work/label",method:"get"})}function u(){return Object(r.a)({url:"work/synchMember",method:"post"})}function c(){return Object(r.a)({url:"work/channel/cate",method:"get"})}function i(){return Object(r.a)({url:"work/channel/cate/create",method:"get"})}function s(t){return Object(r.a)({url:"/work/channel/cate/".concat(t,"/edit"),method:"get"})}function l(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 f(t){return Object(r.a)({url:"work/channel/code/".concat(t),method:"get"})}function h(t){return Object(r.a)({url:"work/channel/code/client",method:"get",params:t})}function p(t,e){return Object(r.a)({url:"work/channel/code/".concat(t),method:"put",data:e})}function b(t){return Object(r.a)({url:"work/channel/code/bactch/cate",method:"post",data:t})}function g(){return Object(r.a)({url:"work/department",method:"get"})}function w(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 O(){return Object(r.a)({url:"work/group_chat/synch",method:"post"})}function k(t){return Object(r.a)({url:"work/welcome",method:"post",data:t})}function j(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 y(t,e){return Object(r.a)({url:"work/welcome/".concat(t),method:"put",data:e})}function F(t){return Object(r.a)({url:"work/group_chat_auth",method:"post",data:t})}function M(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 L(t,e){return Object(r.a)({url:"work/group_chat_auth/".concat(t),method:"put",data:e})}function I(t){return Object(r.a)({url:"work/client",method:"get",params:t})}function D(t){return Object(r.a)({url:"work/group_chat/member",method:"get",params:t})}function P(){return Object(r.a)({url:"work/client/synch",method:"get"})}function W(t){return Object(r.a)({url:"work/group_chat/statistics",method:"get",params:t})}function x(t){return Object(r.a)({url:"work/group_chat/statisticsList",method:"get",params:t})}function T(t){return Object(r.a)({url:"work/group_template",method:"get",params:t})}function $(t){return Object(r.a)({url:"work/group_template",method:"post",data:t})}function N(t){return Object(r.a)({url:"work/group_template/".concat(t),method:"get"})}function z(t){return Object(r.a)({url:"work/moment",method:"get",params:t})}function S(t){return Object(r.a)({url:"/work/moment",method:"post",data:t})}function A(t){return Object(r.a)({url:"work/group_template_chat",method:"get",params:t})}function E(t){return Object(r.a)({url:"work/group_template_chat",method:"post",data:t})}function B(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 Q(t){return Object(r.a)({url:"work/client/count",method:"post",data:t})}function R(t,e){return Object(r.a)({url:"work/group_template/memberList/".concat(t),method:"get",params:e})}function U(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 G(t,e){return Object(r.a)({url:"work/group_template_chat/groupChatOwnerList/".concat(t),method:"get",params:e})}function H(t){return Object(r.a)({url:"work/group_template_chat/getOwnerChatList",method:"get",params:t})}function K(t){return Object(r.a)({url:"work/client/batchLabel",method:"post",data:t})}function V(t){return Object(r.a)({url:"work/moment/".concat(t),method:"get"})}function X(t){return Object(r.a)({url:"work/moment_list",method:"get",params:t})}function Y(t,e){return Object(r.a)({url:"work/client/".concat(t),method:"put",data:e})}},d92c:function(t,e,n){}}]);
|