1 |
- webpackJsonp([59],{ZO2B:function(e,t){},p8TO:function(e,t){},pBKQ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("Gu7T"),r=i.n(s),a=i("Xxa5"),n=i.n(a),l=i("Dd8w"),o=i.n(l),c=i("bOdI"),p=i.n(c),u=i("exGp"),d=i.n(u),f=i("gzej"),_=i("FsX6"),h=i("lFm0"),m=i("xcuB"),v=i("mvHQ"),g=i.n(v),b=i("McOJ"),C=(i("M4fF"),{components:{selfInput:b.a},props:{title:{type:String,default:"所属客服"},clearable:{type:Boolean,default:!0},reset:{type:Boolean,default:!1},width:{type:String},labelWidth:{type:String},afferent_users:{type:Array},disabled:{type:Boolean,default:!1},icon_arrow_bg:{type:Boolean,default:!0},isRequired:{type:Boolean,default:function(){return!0}},placeholder:{type:String,default:function(){return"请选择"}},source:{type:String,default:function(){return"operation"}}},watch:{reset:function(){this.selectUser=[],this.final_result=[],this.changeSelect()},afferent_users:function(){this.page_init()}},data:function(){return{input_keyword:"",visible:!1,resetFlag:!1,loading:!1,userList:[],old_user_list:[],userTotal:0,selectUser:[],final_result:[]}},computed:{corpTotal:function(){return this.userList&&this.userList.length?this.userList.length:0},selectedCorpList:function(){var e=[];return this.selectUser&&this.selectUser.length&&this.selectUser.forEach(function(t){var i={user_id:t.user_id,user_name:t.name,avatar:t.avatar,corp_name:t.corp_name,corpid:t.corpid,active_desc:t.active_desc,expire_time:t.expire_time,is_active:t.is_active};if(e&&!e.length)e.push({corpid:t.corpid,corp_name:t.corp_name,user_list:[i]});else{var s=e.findIndex(function(e){return e.corpid===t.corpid});-1===s?e.push({corpid:t.corpid,corp_name:t.corp_name,user_list:[i]}):e[s].user_list.push(i)}}),e},rtSelectedCorpList:function(){var e=this,t=[];return this.selectedCorpList&&this.selectedCorpList.length&&this.selectedCorpList.forEach(function(i){var s=e.old_user_list.find(function(e){return e.corpid===i.corpid});s&&s.user_list.length===i.user_list.length&&t.push({corp_name:s.corp_name,corpid:s.corpid})}),t},rtSelectedUserList:function(){var e=this,t=[];return this.selectedCorpList&&this.selectedCorpList.length&&this.selectedCorpList.forEach(function(i){var s=e.old_user_list.find(function(e){return e.corpid===i.corpid});s&&s.user_list.length!==i.user_list.length&&(t=[].concat(r()(t),r()(i.user_list)))}),t}},created:function(){this.page_init()},methods:{page_init:function(){0==this.userList.length?this.init():(this.selectUser=JSON.parse(g()(this.final_result)),this.changeSelect(),this.afferent_init())},afferent_init:function(){var e=[];if(this.afferent_users&&this.afferent_users.length>=0){var t=this.afferent_users.map(function(e){return e.corpid+"-"+e.user_id});this.userList.forEach(function(i){i.user_list.forEach(function(i){var s=i.corpid+"-"+i.user_id;-1!=t.indexOf(s)&&e.push(i)})}),this.selectUser=e;var i=JSON.parse(g()(e)),s={};i=i.reduce(function(e,t){return!s[t.user_id]&&(s[t.user_id]=e.push(t)),e},[]),this.final_result=i,this.changeSelect()}},clear:function(){this.disabled||(this.selectUser&&0!=this.selectUser.length?(this.selectUser=[],this.final_result=[],this.changeSelect(),this.$emit("customerDefine",{}),""!=this.input_keyword&&(this.input_keyword="",this.resetFlag=!this.resetFlag,this.init())):this.visible=!this.visible)},defineEvent:function(){this.final_result=JSON.parse(g()(this.selectUser)),this.isRequired&&0==this.selectUser.length?this.$message({message:"请选择"+("chatGroup"==this.source?"群主":"成员"),type:"warning"}):(this.visible=!1,this.$emit("customerDefine",{res_format_1:this.selectUser,res_format_2:this.selectedCorpList,res_format_3:{corpList:[].concat(r()(this.rtSelectedCorpList)),userList:[].concat(r()(this.rtSelectedUserList))}}))},userSearch:function(){var e=this,t=this.input_keyword.split(" "),i=[];0==(t=t.filter(function(e){return""!=e})).length&&(t=[""]),this.old_user_list.forEach(function(e){var s=e.user_list.filter(function(e){var i=!1;return t.forEach(function(t){i||(i=e.name&&-1!=e.name.indexOf(t)||e.corp_name&&-1!=e.corp_name.indexOf(t))}),i});if(s&&s.length>0){var r=JSON.parse(g()(e));r.user_list=s,i.push(r)}}),this.userList=i;var s=0;this.userList.forEach(function(t){""===e.input_keyword?t.is_open=!0:t.is_open=!1,t.is_select=!1,t.user_list.forEach(function(e){e.is_select=!1}),s+=t.user_list.length}),this.changeSelect(),this.userTotal=s},init:function(e){var t=this;this.loading=!0;var i=this.URL.BASEURL+this.URL.warn_djuserList,s={sys_group_id:1==this.$cookie.getCookie("isSuperManage")?sessionStorage.getItem("company_session_defaultCorp_level_1").toString():""};this.$axios.get(i,{params:s}).then(function(i){i=i.data;if(t.loading=!1,i&&0==i.errno){var s=i.rst;s.forEach(function(e){e.user_list.forEach(function(t){t.corp_name=e.corp_name})}),t.userList=s,t.old_user_list=JSON.parse(g()(s));var r=0;t.userList.forEach(function(e){r+=e.user_list.length,e.is_open=!0,e.is_select=!1,e.user_list.forEach(function(e){e.is_select=!1})}),"userSearch"!=e&&(t.selectUser=JSON.parse(g()(t.final_result)),t.afferent_init()),t.changeSelect(),t.userTotal=r}else 4002!=i.errno&&t.$message({message:i.err,type:"warning"})}).catch(function(e){t.loading=!1})},openEvent:function(e){var t=this.userList[e];t.is_open=!t.is_open,this.$set(this.userList,e,t)},selectUserEvent:function(e,t,i){var s=this.selectUser,r=this.userList[t];if("all"==e)if(r.is_select){var a=r.user_list.map(function(e){return e.user_id});s=s.filter(function(e){return-1==a.indexOf(e.user_id)})}else s=s.concat(r.user_list);else{var n=r.user_list[i];n.is_select?s=s.filter(function(e){return e.corpid+"&&&"+e.user_id!=n.corpid+"&&&"+n.user_id}):s.push(n)}this.$set(this.userList,t,r);var l={};s=s.reduce(function(e,t){return!l[t.corpid+"&&&"+t.user_id]&&(l[t.corpid+"&&&"+t.user_id]=e.push(t)),e},[]),this.selectUser=s,this.changeSelect()},changeSelect:function(){var e=this,t=JSON.parse(g()(this.userList)),i=this.selectUser.map(function(e){return e.corpid+"-"+e.user_id});t.forEach(function(t){t.user_list=t.user_list.filter(function(e){var t=e.corpid+"-"+e.user_id;return-1!=i.indexOf(t)}),e.userList.forEach(function(e){e.corpid==t.corpid&&(t.user_list.length==e.user_list.length&&0!==t.user_list.length?e.is_select=!0:e.is_select=!1)})}),this.userList.forEach(function(e){e.user_list.forEach(function(e){var t=e.corpid+"-"+e.user_id;-1==i.indexOf(t)?e.is_select=!1:e.is_select=!0})})},closeUser:function(e){if(-1==e)this.selectUser=[];else{var t=this.selectUser.findIndex(function(t){return t.corpid===e.corpid&&t.user_id===e.user_id});-1!==t&&this.selectUser.splice(t,1)}this.changeSelect()},onClickDelSelectedCorp:function(e){var t=[];this.selectUser.forEach(function(i){i.corpid!==e.corpid&&t.push(i)}),this.selectUser=[].concat(t),this.changeSelect()},handleCloseAllOpen:function(){this.userList.forEach(function(e){e.is_open=!0})}}}),x={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"common-screen-item"},[e.title&&""!=e.title?i("label",{staticClass:"common-screen-label",style:e.labelWidth?"width:"+e.labelWidth:""},[e._v(e._s(e.title))]):e._e(),e._v(" "),i("el-popover",{attrs:{"append-to-body":"",placement:"bottom",trigger:"click",disabled:e.disabled},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[i("div",{class:["common-screen-self-box","common-input-select",e.final_result&&0!=e.final_result.length&&e.clearable&&!e.disabled?"common-input-select-hover":"",e.disabled?"pointer-drop":""],style:e.width?"width:"+e.width:"",attrs:{slot:"reference"},slot:"reference"},[i("div",{class:["common-screen-self-con",e.final_result&&0!=e.final_result.length?"":"common-screen-self-placeholder"]},[i("div",{staticClass:"common-screen-self-con-div"},[e.final_result&&0!=e.final_result.length?[e._l(e.rtSelectedCorpList,function(t,s){return i("span",{key:t.corpid+"-"+s},[e._v(e._s(t.corp_name)+e._s(s==e.rtSelectedCorpList.length-1?"":","))])}),e._v(" "),e.rtSelectedCorpList.length&&e.rtSelectedUserList.length?i("span",[e._v(",")]):e._e(),e._v(" "),e._l(e.rtSelectedUserList,function(t,s){return i("span",{key:t.corpid+"-"+s},[e._v(e._s(t.user_name)+e._s(s==e.rtSelectedUserList.length-1?"":","))])})]:i("span",[e._v(e._s(e.placeholder||"请选择"))])],2),e._v(" "),i("i",{staticClass:"el-icon-circle-close other-icon",on:{click:function(t){return t.stopPropagation(),e.clear.apply(null,arguments)}}})]),e._v(" "),i("div",{staticClass:"common-screen-self-icon",style:e.icon_arrow_bg?"":"background: none;border: none;color:#c2c6cd"},[i("i",{staticClass:"el-icon-arrow-down"})])]),e._v(" "),i("div",{staticClass:"flex",staticStyle:{padding:"10px"}},[i("div",{staticClass:"propoverItem"},[i("selfInput",{staticStyle:{"margin-top":"0","margin-bottom":"4px"},attrs:{reset:e.resetFlag,hasLabel:!1,inputFlag:!0,width:"270px",label_name:"chatGroup"==e.source?"企微主体或群主昵称":"企微主体或成员昵称"},on:{inputChange:function(t){e.input_keyword=t,e.userSearch()}}}),e._v(" "),i("div",{staticStyle:{"font-size":"12px",color:"#f9a527"}},[e._v("添加 空格 可进行多成员搜索")]),e._v(" "),i("div",{staticClass:"allMember"},[e._v("全部企微主体("+e._s(e.corpTotal)+"):")]),e._v(" "),i("div",{staticClass:"memberBoxBig self-scrollbar-3"},[e._l(e.userList,function(t,s){return[i("div",{key:s+"userList1"+t.corpid,staticClass:"memberBox"},[i("i",{class:["el-icon-caret-bottom",t.is_open?"reversalAnimation":""],on:{click:function(t){return e.openEvent(s)}}}),e._v(" "),i("div",{staticClass:"meberList"},[i("div",{staticClass:"department"},[i("div",{staticClass:"flex",staticStyle:{"align-items":"flex-start"}},[i("i",{staticClass:"el-icon-s-cooperation",staticStyle:{"margin-top":"3px"}}),e._v(" "),i("span",[e._v(e._s(t.corp_name?t.corp_name:"主体"+(s+1)))])]),e._v(" "),e.input_keyword?e._e():i("div",{class:["checkbox",t.is_select?"checkbox_active":""],on:{click:function(t){return e.selectUserEvent("all",s)}}},[i("i",{staticClass:"el-icon-check"})])]),e._v(" "),e._l(t.user_list,function(r,a){return i("div",{key:r.user_id+"-"+a,staticClass:"memberItem",style:t.is_open?"display:none":"",on:{click:function(t){return e.selectUserEvent("user",s,a)}}},[i("div",{staticClass:"flex",staticStyle:{flex:"1"}},[i("img",{staticClass:"memberImg",attrs:{src:r.avatar,alt:""}}),e._v(" "),i("div",{staticClass:"memberInfo"},[i("div",{staticClass:"name"},[e._v("\n "+e._s(r.name)+"\n "),i("span",{class:["status-tag",0==r.is_active?"disabled":""]},[e._v(e._s(1==r.is_active?"已激活":"未激活"))])]),e._v(" "),i("div",{staticClass:"other"},[e._v("部门:"+e._s(r.corp_name))]),e._v(" "),"即将过期"===r.active_desc?i("div",{staticClass:"other"},[i("span",[e._v(e._s(r.active_desc))]),e._v(" "),r.expire_time?i("span",[e._v("("+e._s(r.expire_time.slice(0,10))+")")]):e._e()]):e._e()])]),e._v(" "),i("div",{class:["checkbox",r.is_select?"checkbox_active":""]},[i("i",{staticClass:"el-icon-check"})])])})],2)])]})],2)],1),e._v(" "),i("div",{staticClass:"line"}),e._v(" "),i("div",{staticClass:"propoverItem",staticStyle:{"padding-left":"20px"}},[i("div",{staticClass:"title"},[e._v("已选择的"+e._s("chatGroup"==e.source?"群主":"成员"))]),e._v(" "),i("div",{staticClass:"choice_result_top"},[i("div",{staticClass:"clear",on:{click:function(t){return e.closeUser(-1)}}},[e._v("全部清空")]),e._v(" "),i("div",{staticClass:"result_num"},[e._v("已选择"),i("span",[e._v(e._s(e.rtSelectedCorpList&&e.rtSelectedCorpList.length))]),e._v("个主体和"),i("span",[e._v(e._s(e.rtSelectedUserList&&e.rtSelectedUserList.length))]),e._v("名"+e._s("chatGroup"==e.source?"群主":"成员"))])]),e._v(" "),i("div",{staticClass:"member_result self-scrollbar-3"},[e._l(e.rtSelectedCorpList,function(t,s){return i("div",{key:t.corpid},[i("div",{staticClass:"corp-wrap"},[i("div",{staticClass:"corp-info"},[i("i",{staticClass:"el-icon-s-cooperation c-46a7ff"}),e._v(" "),i("span",[e._v(e._s(t.corp_name))])]),e._v(" "),i("i",{staticClass:"el-icon-close pointer",on:{click:function(i){return e.onClickDelSelectedCorp(t)}}})])])}),e._v(" "),e._l(e.rtSelectedUserList,function(t,s){return i("div",{key:t.user_id+"-"+t.corpid,staticClass:"memberItem"},[i("div",{staticClass:"flex",staticStyle:{flex:"1"}},[i("img",{staticClass:"memberImg",attrs:{src:t.avatar,alt:""}}),e._v(" "),i("div",{staticClass:"memberInfo"},[i("div",{staticClass:"name"},[e._v("\n "+e._s(t.user_name)+"\n "),i("span",{class:["status-tag",0==t.is_active?"disabled":""]},[e._v(e._s(1==t.is_active?"已激活":"未激活"))])]),e._v(" "),i("div",{staticClass:"other"},[e._v("部门:"+e._s(t.corp_name))]),e._v(" "),"即将过期"===t.active_desc?i("div",{staticClass:"other"},[i("span",[e._v(e._s(t.active_desc))]),e._v(" "),t.expire_time?i("span",[e._v("("+e._s(t.expire_time.slice(0,10))+")")]):e._e()]):e._e()])]),e._v(" "),i("i",{staticClass:"el-icon-close",staticStyle:{"margin-left":"10px"},on:{click:function(i){return e.closeUser(t)}}})])})],2),e._v(" "),i("div",{staticClass:"buttons"},[i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.defineEvent}},[e._v("确定")])],1)])])])],1)},staticRenderFns:[]};var w=i("VU/8")(C,x,!1,function(e){i("p8TO")},"data-v-002b9695",null).exports,y=i("la//"),S=i("KnvP"),L={name:"orderData",components:{datePicker:f.a,selfChannelV2:_.a,selfSelectCorp:h.a,customerServiceCorpV2:m.a,customerServiceCorpV3:w,inputRange:S.a},data:function(){return{dataLoading:!1,loading:!1,page:1,pages:0,total:0,page_size:20,default_time:[this.$getDay(0,!1),this.$getDay(0,!1)],height:"",resetFlag:!1,dataInfo:{},dataInfoArrs:[{prop:"member_total",label:"累计群人数",img:i("OTHY")},{prop:"member_count",label:"留存群人数",img:i("OTHY")},{prop:"member_quit_count",label:"流失群人数",img:i("OTHY")},{prop:"group_count",label:"群聊总数",img:i("8tyP")},{prop:"today_join_count",label:"今日净增群人数",img:i("r6SD"),size:"17"},{prop:"today_create_count",label:"今日新增群聊数",img:i("r6SD"),size:"17"}],desCol:[{prop:"name",label:"群名称",min_width:180,fixed:"left"},{prop:"owner_name",label:"群主",min_width:160},{prop:"create_time",label:"创建时间",min_width:160},{prop:"corp_name",label:"主体",min_width:180},{prop:"member_count",label:"群人数",min_width:160},{prop:"member_total",label:"累计群人数",min_width:160},{prop:"member_quit_count",label:"流失群人数",min_width:160},{prop:"status",label:"群状态",min_width:160}],filter:{time:[],corpid:"",owner:"",multiple_senders:[],member:["",""],dataType:"qwzt",corpid2:""}}},computed:{isCanExport:function(){return!!this.$store.state.dataBoardAuth.can_export}},created:function(){this.height=document.documentElement.clientHeight-280>400?document.documentElement.clientHeight-280:400,this.filter.time=this.default_time,this.init(1),this.init_predata()},methods:{getChatGroupStatusDesc:function(e){return y.e.get(e)||{}},headerColor:function(e){e.row,e.column,e.rowIndex,e.columnIndex;return{backgroundColor:"#FFFFFF !important",border:"none!important"}},init_predata:function(){var e=this;return d()(n.a.mark(function t(){var i,s,r,a,l,c;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s=""+e.URL.BASEURL+e.URL.dataBoard_chatGroupData_summary,i={corpid:e.filter.corpid,owner:e.filter.owner},p()(i,"corpid","qwzt"===e.filter.dataType?e.filter.corpid2:""),p()(i,"owner_list","qz"===e.filter.dataType?e.filter.multiple_senders:[]),p()(i,"create_time_st",e.filter.time[0]||""),p()(i,"create_time_et",e.filter.time[1]||""),p()(i,"min_member",e.filter.member[0]||""),p()(i,"max_member",e.filter.member[1]||""),r=i,t.prev=2,e.dataLoading=!0,t.next=6,e.$axios.post(s,r);case 6:a=t.sent,l=a.data,(c=void 0===l?{}:l)&&0==c.errno?e.dataInfo=o()({},c.rst):4002!=c.errno&&(e.$message({message:c.err,type:"warning"}),e.handleInitSumData()),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(2),console.log("error => ",t.t0),e.handleInitSumData();case 16:return t.prev=16,e.dataLoading=!1,t.finish(16);case 19:case"end":return t.stop()}},t,e,[[2,12,16,19]])}))()},init:function(e){var t=this;return d()(n.a.mark(function i(){var s,r,a,l,o,c;return n.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t.page=e||t.page,t.loading=!0,r=""+t.URL.BASEURL+t.URL.dataBoard_chatGroupData_list,s={corpid:t.filter.corpid,owner:t.filter.owner},p()(s,"corpid","qwzt"===t.filter.dataType?t.filter.corpid2:""),p()(s,"owner_list","qz"===t.filter.dataType?t.filter.multiple_senders:[]),p()(s,"create_time_st",t.filter.time[0]||""),p()(s,"create_time_et",t.filter.time[1]||""),p()(s,"min_member",t.filter.member[0]||""),p()(s,"max_member",t.filter.member[1]||""),p()(s,"page",t.page),p()(s,"page_size",t.page_size),a=s,i.prev=4,i.next=7,t.$axios.post(r,a);case 7:l=i.sent,o=l.data,(c=void 0===o?{}:o)&&0==c.errno?(t.datas=c.rst.data,t.$refs.plxTable.reloadData(t.datas),t.total=c.rst.pageInfo.total,t.pages=c.rst.pageInfo.pages):4002!=c.errno&&(t.$message.warning(c.err),t.handleInitListData()),i.next=17;break;case 13:i.prev=13,i.t0=i.catch(4),console.log("error => ",i.t0),t.handleInitListData();case 17:return i.prev=17,t.loading=!1,i.finish(17);case 20:case"end":return i.stop()}},i,t,[[4,13,17,20]])}))()},handleInitSumData:function(){this.dataInfo={}},handleInitListData:function(){this.datas=[],this.$refs.plxTable.reloadData(this.datas),this.total=0,this.pages=0},onChangeTime:function(e){!e||e&&0==e.length?this.filter.time=[]:this.filter.time=e,this.init_predata(),this.init(1)},onChangeCorpid:function(e){var t=this;return d()(n.a.mark(function i(){return n.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t.filter.corpid=e?e.corpid:"",t.filter.owner="",i.next=4,t.$nextTick();case 4:t.$refs.selectOwnerEl&&t.$refs.selectOwnerEl.handleGetOptions(),t.init(1),t.init_predata();case 7:case"end":return i.stop()}},i,t)}))()},onSelectOwnerVisibleChange:function(e){e&&!this.filter.corpid&&this.$message.warning("请选择企微主体")},onChangeOwner:function(e){this.filter.owner=e,this.init(1),this.init_predata()},onChangeDataType:function(e){this.filter.dataType=e||"qwzt",this.init(1),this.init_predata()},onChangeCorpid2:function(e){this.filter.corpid2=e||"",this.init(1),this.init_predata()},onChangeMultiCorpUsers:function(e){var t=e.res_format_2;t&&t.length?this.filter.multiple_senders=t.map(function(e){return{corpid:e.corpid,user_list:e.user_list.map(function(e){return e.user_id})}}):this.filter.multiple_senders=[],this.init(1),this.init_predata()},handleCurrentChange:function(e){this.init(e)},handleSizeChange:function(e){this.page_size=e,this.init(1)},resetEvent:function(){var e=this;return d()(n.a.mark(function t(){return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.resetFlag=!e.resetFlag,e.filter.time=e.default_time,e.filter.multiple_senders=[],e.filter.corpid="",e.filter.owner="",e.filter.corpid2="",e.filter.member=["",""],e.filter.dataType="qwzt",t.next=10,e.$nextTick();case 10:e.$refs.selectOwnerEl&&e.$refs.selectOwnerEl.handleGetOptions(),e.init_predata(),e.init(1);case 13:case"end":return t.stop()}},t,e)}))()},onClickExport:function(){var e=this;return d()(n.a.mark(function t(){var i,s,r,a,l;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.total){t.next=2;break}return t.abrupt("return",e.$message.warning("暂无数据可导出"));case 2:return e.loading=!0,i=""+e.URL.BASEURL+e.URL.dataBoard_chatGroupData_list,s={corpid:"qwzt"===e.filter.dataType?e.filter.corpid2:"",owner_list:"qz"===e.filter.dataType?e.filter.multiple_senders:[],owner:e.filter.owner,create_time_st:e.filter.time[0]||"",create_time_et:e.filter.time[1]||"",min_member:e.filter.member[0]||"",max_member:e.filter.member[1]||"",page:1,page_size:e.$store.state.exportNumber},t.prev=5,t.next=8,e.$axios.post(i,s);case 8:r=t.sent,a=r.data,(l=void 0===a?{}:a)&&0==l.errno?e.handleExport(l.rst.data):4002!=l.errno&&e.$message.warning(l.err),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(5),console.log("error => ",t.t0);case 17:return t.prev=17,e.loading=!1,t.finish(17);case 20:case"end":return t.stop()}},t,e,[[5,14,17,20]])}))()},handleExport:function(e){var t=this;e.forEach(function(e){e.status=t.getChatGroupStatusDesc(e.status).label});var i=[{tHeader:[].concat(r()(this.desCol.map(function(e){return""+e.label}))),filterVal:[].concat(r()(this.desCol.map(function(e){return""+e.prop}))),tableDatas:[].concat(r()(e)),sheetName:""}];this.$exportOrder({excelDatas:i,name:"客户群数据统计(导出时间:"+this.$getDay(0)+")"})}}},k={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"screenBox"},[i("div",{staticClass:"flex-align-center",staticStyle:{"flex-wrap":"wrap","margin-right":"60px","min-height":"60px"}},[i("el-select",{staticClass:"dataType",attrs:{placeholder:"请选择",size:"small"},on:{change:e.onChangeDataType},model:{value:e.filter.dataType,callback:function(t){e.$set(e.filter,"dataType",t)},expression:"filter.dataType"}},[i("el-option",{attrs:{label:"群主",value:"qz"}}),e._v(" "),i("el-option",{attrs:{label:"企微主体",value:"qwzt"}})],1),e._v(" "),i("customerServiceCorpV2",{directives:[{name:"show",rawName:"v-show",value:"qz"===e.filter.dataType,expression:"filter.dataType === 'qz'"}],attrs:{title:"",placeholder:"请选择群主",reset:e.resetFlag,isRequired:!1,isDisableSelectAllCorp:!0},on:{customerDefine:e.onChangeMultiCorpUsers}}),e._v(" "),i("selfChannelV2",{directives:[{name:"show",rawName:"v-show",value:"qwzt"===e.filter.dataType,expression:"filter.dataType === 'qwzt'"}],staticClass:"qwzt-sl",attrs:{title:"",type:"corpAll",placeholder:"请选择企微主体",labelWidth:""},on:{change:e.onChangeCorpid2},model:{value:e.filter.corpid2,callback:function(t){e.$set(e.filter,"corpid2",t)},expression:"filter.corpid2"}}),e._v(" "),i("datePicker",{staticStyle:{"margin-left":"20px","margin-right":"10px"},attrs:{title:"客户入群时间",quickFlag:!1,afferent_time:e.default_time,clearFlag:!0,reset:e.resetFlag},on:{changeTime:e.onChangeTime}}),e._v(" "),i("inputRange",{staticStyle:{"margin-left":"20px"},attrs:{label:"群人数"},model:{value:e.filter.member,callback:function(t){e.$set(e.filter,"member",t)},expression:"filter.member"}}),e._v(" "),i("div",{staticStyle:{"margin-left":"20px"}},[i("el-button",{attrs:{size:"mini",type:"primary",plain:""},on:{click:function(t){e.init(1),e.init_predata()}}},[e._v("确定")]),e._v(" "),i("el-button",{attrs:{size:"mini",plain:""},on:{click:e.resetEvent}},[e._v("重置")])],1)],1),e._v(" "),e.isCanExport?i("el-button",{staticClass:"export-btn",attrs:{type:"primary",size:"mini"},on:{click:e.onClickExport}},[e._v("导出Excel")]):e._e()],1),e._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.dataLoading,expression:"dataLoading"}],staticClass:"dataInfoBox"},e._l(e.dataInfoArrs,function(t,s){return i("div",{key:s,staticClass:"dataInfoItem"},[i("div",{staticClass:"dataItemTitle"},[t.img?i("img",{staticClass:"titleIcon",style:{height:t.size?t.size+"px":"13px",width:t.size?t.size+"px":"13px"},attrs:{src:t.img}}):e._e(),e._v(" "),i("span",[e._v(e._s(t.label))])]),e._v(" "),i("div",{staticClass:"dataItem-data"},[e._v("\n "+e._s(e.dataInfo&&(e.dataInfo[t.prop]||0==e.dataInfo[t.prop])?e.$formatNum(e.dataInfo[t.prop]):"-")+"\n ")])])}),0),e._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("ux-grid",{ref:"plxTable",staticClass:"uxGridBox",attrs:{border:!1,"header-cell-style":e.headerColor,height:e.height,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini"},on:{"row-click":function(){}}},e._l(e.desCol,function(t){return i("ux-table-column",{key:t.prop,attrs:{resizable:!0,field:t.prop,title:t.label,"min-width":t.min_width?t.min_width:120,fixed:t.fixed?t.fixed:"",align:"center"},scopedSlots:e._u([{key:"header",fn:function(){return[i("div",{staticClass:"flex-align-jus-center"},[e._v(e._s(t.label)+"\n "),t.notes?i("el-tooltip",{attrs:{content:t.notes,placement:"top"}},[i("div",[i("i",{staticClass:"el-icon-question"})])]):e._e()],1)]},proxy:!0},{key:"default",fn:function(s){var r=s.row;return s.$index,["status"==t.prop?i("span",{style:{color:e.getChatGroupStatusDesc(r.status).color}},[e._v("\n "+e._s(e.getChatGroupStatusDesc(r.status).label||"-")+"\n ")]):i("span",[e._v(e._s(0===r[t.prop]?r[t.prop]:r[t.prop]?e.$formatNum(r[t.prop]):"-"))])]}}],null,!0)})}),1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],staticClass:"pagination"},[i("el-pagination",{attrs:{background:"","current-page":e.page,layout:"prev, pager, next, sizes, jumper","page-sizes":[20,50,100],"page-count":Number(e.pages)},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)])},staticRenderFns:[]};var U=i("VU/8")(L,k,!1,function(e){i("ZO2B")},"data-v-ef548b7e",null);t.default=U.exports},r6SD:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABPNJREFUWAntV31MlWUU/z3vhctUREEmXxLiB9r04ioWRIAiEBYVJWG01ofDLmXJYtIfYTrcWjVlbm1uwXStZrUltgsDFvh1nTSTFQxFK0k+1AS5fCnCBYT7Pp33uufuvfe9l676R//4bnfn4znnOef5Peec973Aw+d/RoA9SHzD91mB0pg1XMd0MpPR01xw/Na97ndPCcR/92yAdXQyB+DZYCydcz7HOSAboQ2PQmJVej7b1FxQY3Ve10peJZB7OFf/5/DQu4C8ExzB2m20GsZYDxhKV85f8HXlpkqb1uKu5j8TWPPt+gh5gldxjjhPm8ykp0RO6zEnh9AYcGc3YwKrD6TFQpbr6dRh7py91VGQbl8ffUbLlobLrj4eE6DgIbDJv5FDpKuTkMP8Q+i6Ga7fviFUHikDu6TzC0ho3Vx1U20kqQXBU3ExOvkRkj0G37A0FXV5h1BLv+yYTOHqkXLwFdOTI4dcDXSuCkU2LWp8jcsocrem6PJWZWP32mJ0Dl9Bv3UQr5I8MT2B1r6LnlyEPibsxWVn+2o6O4RCkwBVvG7AOm4ig0BhJKjEJLwf9zaKEoy42N+OLXXFqG5vwBNhsdi48jn462ej6XoLlQwXLhpKxWyw1HaViwVNAvpnwtfKXNacfk3IKuzf8CkyCfqW3jZsa9iBW5MjuGObQn2HGYaFjyJreTrSopPx91AXekctIoYrDV2YvdRkqenqUxY0CQRnLf6Q9AnCa55fAEqStqHk6UIEzQrEDxdM2HlqD8rSd+H55Rn4a+AyLNYBNHSa4e87BylRCXY0IuaGovXGRYzT1bg+VHjX+2q7GhW9pgipqJPVDtHzI+0bdgx3483qQnxxZj9s3Iaum9cQH/E4fso9iNKU7Zir97evvW76AJcGLyN7RSaWBUWrt3LwdA2JQtC04ery1F5aDBUGCs1csg4nun/BtDytVkNJ7qOntiIubA02Vubjn9uKK8FKtbJ+cRKOdZ12sheCxNB6vsD8mCI7JaC0n6EijaJwDTKpUYkI9V8o9nCi4QR3j2oWWKgzTtxF2MlOCIRyb1uBOVyRfYRSoTQ2uaFi/QRBNFutV/i81S8hcZF30/j3nnMzJkCRHC8ppwSUQNRACo5LFV79lJz8HH46vVql4ZX2VAbUcQ/QCwdCwDE6NQmAc2VeaxIYHB8W/m7pG4ZX7MGVsXz4j1q3Ng4lR6fgNXdN8NSJRW+oj6TDW7G5VIzvYeyOFYX1n2BKnprZVcLPwkCDgB+Tqidh+5LuwqlAhYOaKt1R+GQ+HpkXAQWh7cd2o33IcTi1qYMn+Kf41Kx6odAgQJ9VVwmFH4WBJ5ocGY+yjF324I1Xm5B7xIjm3vOezB16OtfBtq11jvvUIKBYMl9pB6ZsOdQNvg5PF6bxWhPKfi3HOXoBefESsntTl41xie1Wb+URZkNFahElsE9t/KA8k9jmNuPJb9T7aN4FYtFS23025IUlUSTbJ5bQ3y+l4bivzWje4+qvqQG1wYKYFCPBtl+tuy+e4bPz75wsdufr8QrUxrEH0vK5Td5LQ0rzjaC2c+XpM8zCJb7tgtF82HVNyF4loBgrf0L46MTHNCvzaVgFiQ3cUWq1fmrjrxYEBe89taly1J2N0HmdgHBYZy71GW5vTLZBTqd+iWTg4eBMpvbqpcBXJLCjLxuTzpSyUln4PKQzIfAvaHudU/gCmt0AAAAASUVORK5CYII="}});
|