1 |
- webpackJsonp([41],{"3Qzq":function(t,e){},"9mdH":function(t,e){},D2QX:function(t,e){},QW1x:function(t,e){},hLx4:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("gzej"),i=s("erru"),n=s("//Fk"),r=s.n(n),l=s("Xxa5"),d=s.n(l),o=s("exGp"),_=s.n(o),c=s("bEx1"),u={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"modular"},[s("div",{staticClass:"big_title flex-align-center"},[t._v("数据统计 ")]),t._v(" "),s("div",{staticClass:"flex"},[s("div",{staticClass:"member_total"},[s("div",{staticClass:"member_total_item"},[s("div",{staticClass:"num"},[t._v(t._s(t.dataInfo.executed_sender_count||0==t.dataInfo.executed_sender_count?t.$formatNum(t.dataInfo.executed_sender_count):"-")),s("span",[t._v("人")])]),t._v(" "),s("div",{staticClass:"txt"},[t._v("已发送成员")])]),t._v(" "),s("div",{staticClass:"splitLine_small"}),t._v(" "),s("div",{staticClass:"member_total_item"},[s("div",{staticClass:"num"},[t._v(t._s(t.dataInfo.receive_customer_count||0==t.dataInfo.receive_customer_count?t.$formatNum(t.dataInfo.receive_customer_count):"-")),s("span",[t._v("人")])]),t._v(" "),s("div",{staticClass:"txt"},[t._v("送达用户")])])]),t._v(" "),s("div",{staticClass:"member_total"},[s("div",{staticClass:"member_total_item"},[s("div",{staticClass:"num"},[t._v(t._s(t.dataInfo.un_execute_sender_count||0==t.dataInfo.un_execute_sender_count?t.$formatNum(t.dataInfo.un_execute_sender_count):"-")),s("span",[t._v("人")])]),t._v(" "),s("div",{staticClass:"txt"},[t._v("未发送成员")])]),t._v(" "),s("div",{staticClass:"splitLine_small"}),t._v(" "),s("div",{staticClass:"member_total_item"},[s("div",{staticClass:"num"},[t._v(t._s(t.dataInfo.un_receive_customer_count||0==t.dataInfo.un_receive_customer_count?t.$formatNum(t.dataInfo.un_receive_customer_count):"-")),s("span",[t._v("人")])]),t._v(" "),s("div",{staticClass:"txt"},[t._v("未送达客户")])])]),t._v(" "),s("div",{staticClass:"member_total"},[s("div",{staticClass:"member_total_item"},[s("div",{staticClass:"num"},[t._v(t._s(t.dataInfo.receive_fail_with_limit||0==t.dataInfo.receive_fail_with_limit?t.$formatNum(t.dataInfo.receive_fail_with_limit):"-")),s("span",[t._v("人")])]),t._v(" "),s("div",{staticClass:"txt flex-align-jus-center"},[t._v("客户接收已达上限\n ")])]),t._v(" "),s("div",{staticClass:"splitLine_small"}),t._v(" "),s("div",{staticClass:"member_total_item"},[s("div",{staticClass:"num"},[t._v(t._s(t.dataInfo.receive_fail_with_not_friend||0==t.dataInfo.receive_fail_with_not_friend?t.$formatNum(t.dataInfo.receive_fail_with_not_friend):"-")),s("span",[t._v("人")])]),t._v(" "),s("div",{staticClass:"txt"},[t._v("因不是好友发送失败")])])])])])},staticRenderFns:[]};var m=s("VU/8")({props:["rule_id","send_num","send_date"],data:function(){return{loading:!1,dataInfo:{}}},created:function(){this.data_overview()},methods:{data_overview:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.smartPushV2_overview,{params:{rule_id:this.rule_id,send_num:this.send_num,send_date:this.send_date}}).then(function(e){e=e.data,t.loading=!1,e&&0==e.errno?t.dataInfo=e.rst:4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}}},u,!1,function(t){s("D2QX")},"data-v-41ec234f",null).exports,v=s("McOJ"),g={components:{noData:s("YLOf").a,selfInput:v.a},props:["rule_id","send_num","send_date"],data:function(){return{memberType:"all",memberTypeList:[{id:"all",name:"全部成员"},{id:"sent",name:"已发送成员"},{id:"unsent",name:"未发送成员"},{id:"fail",name:"发送失败"}],massType:0,massTypeList:[{id:0,name:"全部"},{id:1,name:"已送达"},{id:2,name:"未送达"},{id:3,name:"接收已达上限"},{id:4,name:"已不是好友"}],input_keyword:"",loading:!1,page:1,page_size:20,total:0,pages:0,senderList:[],massSendCustList:[],cy_page:1,cy_total:0,cy_pages:0,cy_loading:!1,input_mass_keyword:"",allMemberOptions:[],user_id:"",exportHref:"",corpid:"",exportHref_send:""}},created:function(){sessionStorage.getItem("company_session_defaultCorp")&&"undefined"!=sessionStorage.getItem("company_session_defaultCorp")?this.corpid=JSON.parse(sessionStorage.getItem("company_session_defaultCorp")).corpid:this.corpid=this.$localSelfStore.getLocal("defaultCorp")&&"undefined"!=this.$localSelfStore.getLocal("defaultCorp")?JSON.parse(this.$localSelfStore.getLocal("defaultCorp")).corpid:"",this.sender_list_change(),this.get_allMemberOptions(),this.sendCustList_change()},methods:{sender_list_change:function(){this.exportHref=this.URL.BASEURL+this.URL.smartPushV2_senderListExport+"?admin_id="+this.$cookie.getCookie("admin_id")+"&ttl="+Number(this.$cookie.getCookie("ttl"))+"&sign="+this.$cookie.getCookie("sign")+"&corpid="+this.corpid+"&rule_id="+this.rule_id+"&type="+this.memberType+"&keyword="+this.input_keyword+"&send_num="+this.send_num+"&send_date="+this.send_date,this.get_sender_list(1)},sendCustList_change:function(){this.exportHref_send=this.URL.BASEURL+this.URL.smartPushV2_massSendCustListExport+"?admin_id="+this.$cookie.getCookie("admin_id")+"&ttl="+Number(this.$cookie.getCookie("ttl"))+"&sign="+this.$cookie.getCookie("sign")+"&corpid="+this.corpid+"&rule_id="+this.rule_id+"&type="+this.massType+"&name="+this.input_mass_keyword+"&sender="+this.user_id+"&send_num="+this.send_num+"&send_date="+this.send_date,this.get_mass_SendCustList(1)},get_allMemberOptions:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.smartPushV2_senderList,{params:{rule_id:this.rule_id,send_num:this.send_num,send_date:this.send_date,page:1,page_size:500,type:"all"}}).then(function(e){(e=e.data)&&0==e.errno?t.allMemberOptions=e.rst.data:4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(t){})},get_sender_list:function(t){var e=this;this.page=t||this.page,this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.smartPushV2_senderList,{params:{rule_id:this.rule_id,send_num:this.send_num,send_date:this.send_date,page:this.page,page_size:this.page_size,type:this.memberType,keyword:this.input_keyword}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?(e.senderList=t.rst.data,e.total=t.rst.pageInfo.total,e.pages=t.rst.pageInfo.pages,document.getElementsByClassName("senderSccrollBox")[0].scrollTop=0):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},handleCurrentChange:function(t){this.get_sender_list(t)},get_mass_SendCustList:function(t){var e=this;this.cy_page=t||this.cy_page,this.cy_loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.smartPushV2_massSendCustList,{params:{rule_id:this.rule_id,send_num:this.send_num,send_date:this.send_date,page:this.cy_page,page_size:this.page_size,type:this.massType,name:this.input_mass_keyword,sender:this.user_id}}).then(function(t){t=t.data;e.cy_loading=!1,t&&0==t.errno?(e.massSendCustList=t.rst.data,e.cy_total=t.rst.pageInfo.total,e.cy_pages=t.rst.pageInfo.pages,document.getElementsByClassName("massSendScroll")[0].scrollTop=0):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.cy_loading=!1})},cy_handleCurrentChange:function(t){this.get_mass_SendCustList(t)}}},p={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modular"},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"modularItem"},[s("div",{staticClass:"flex"},[s("div",{staticClass:"big_title flex-align-center"},[t._v("成员详情")]),t._v(" "),s("a",{staticClass:"selfBtn_detial",attrs:{href:t.exportHref}},[t._v("导出")])]),t._v(" "),s("div",{staticClass:"tabBox"},t._l(t.memberTypeList,function(e){return s("div",{key:e.id+"memberTypeList",class:["tabItem",t.memberType==e.id?"active":""],on:{click:function(s){t.memberType=e.id,t.sender_list_change()}}},[t._v(t._s(e.name))])}),0),t._v(" "),s("div",{staticClass:"flex"},[s("div",{staticClass:"totalCustom"},[s("i",{staticClass:"el-icon-user-solid"}),t._v(" 共"),s("span",[t._v(t._s(t.total))]),t._v("人")]),t._v(" "),s("self-input",{attrs:{label_name:"成员昵称",hasLabel:!1},on:{inputChange:function(e){t.input_keyword=e,t.sender_list_change()}}})],1),t._v(" "),s("div",{staticClass:"userListBox self-scrollbar-3 senderSccrollBox"},[t._l(t.senderList,function(e,a){return s("div",{key:e.user_id+"sender"+a,staticClass:"userItem"},[s("div",{staticClass:"time"},[t._v("群发时间:"+t._s(e.send_time?e.send_time:"-"))]),t._v(" "),s("div",{staticClass:"userBox"},[s("img",{staticClass:"userImg",attrs:{src:e.avatar,alt:""}}),t._v(" "),s("div",[s("div",{staticClass:"userName"},[t._v(t._s(e.name))]),t._v(" "),s("div",{staticClass:"other"},[t._v("共需发送"+t._s(t.$formatNum(e.customer_num))+"个好友,已发送"+t._s(t.$formatNum(e.send_success))+"人")])])])])}),t._v(" "),t.senderList&&t.senderList.length<=0&&!t.loading?s("noData"):t._e()],2),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.total>t.page_size,expression:"total>page_size"}],staticClass:"pagination"},[s("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1)]),t._v(" "),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.cy_loading,expression:"cy_loading"}],staticClass:"modularItem"},[s("div",{staticClass:"flex"},[s("div",{staticClass:"big_title flex-align-center"},[t._v("客户详情")]),t._v(" "),s("div",{staticClass:"flex-align-center"},[s("el-select",{attrs:{size:"mini",clearable:"",placeholder:"请选择客服"},on:{change:function(e){return t.sendCustList_change()}},model:{value:t.user_id,callback:function(e){t.user_id=e},expression:"user_id"}},t._l(t.allMemberOptions,function(t){return s("el-option",{key:t.user_id,attrs:{label:t.name,value:t.user_id}})}),1),t._v(" "),s("a",{staticClass:"selfBtn_detial",staticStyle:{"margin-left":"20px"},attrs:{href:t.exportHref_send}},[t._v("导出")])],1)]),t._v(" "),s("div",{staticClass:"tabBox"},t._l(t.massTypeList,function(e){return s("div",{key:e.id+"massTypeList",class:["tabItem",t.massType==e.id?"active":""],on:{click:function(s){t.massType=e.id,t.sendCustList_change()}}},[t._v(t._s(e.name))])}),0),t._v(" "),s("div",{staticClass:"flex"},[s("div",{staticClass:"totalCustom"},[s("i",{staticClass:"el-icon-user-solid"}),t._v(" 共"),s("span",[t._v(t._s(t.$formatNum(t.cy_total)))]),t._v("人")]),t._v(" "),s("self-input",{attrs:{label_name:"客户昵称",hasLabel:!1},on:{inputChange:function(e){t.input_mass_keyword=e,t.sendCustList_change()}}})],1),t._v(" "),s("div",{staticClass:"userListBox self-scrollbar-3 massSendScroll"},[t._l(t.massSendCustList,function(e,a){return s("div",{key:a+"massSend",staticClass:"userItem massList"},[s("div",{staticClass:"userBox"},[s("img",{staticClass:"userImg",attrs:{src:e.external_avatar,alt:""}}),t._v(" "),s("div",[s("div",{staticClass:"userName"},[t._v(t._s(e.external_username))]),t._v(" "),s("div",{class:["statusBox",1!=e.status?"statusBox2":""]},[t._v(t._s(0==e.status?"未发送":1==e.status?"已发送":2==e.status?"已不是好友":3==e.status?"接收已达上限":e.status_description))])])]),t._v(" "),s("div",{staticClass:"userRight"},[t._v("通过 "+t._s(e.sender_name)+" 发送")])])}),t._v(" "),t.massSendCustList&&t.massSendCustList.length<=0&&!t.cy_loading?s("noData"):t._e()],2),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.cy_total>t.page_size,expression:"cy_total>page_size"}],staticClass:"pagination"},[s("el-pagination",{attrs:{background:"","current-page":t.cy_page,layout:"prev, pager, next","page-count":Number(t.cy_pages)},on:{"current-change":t.cy_handleCurrentChange}})],1)])])},staticRenderFns:[]};var h=s("VU/8")(g,p,!1,function(t){s("3Qzq")},"data-v-7eb6af94",null).exports,f={0:"未知性别",1:"男性",2:"女性"},C={0:"未设置标签筛选",1:"以下标签满足其中之一",2:"以下标签同时满足",3:"无任何标签"},x={components:{phonePreview:c.a,dataTranslate:m,userDetail:h},props:["title","rule_id","send_num","send_date"],data:function(){return{loading:!1,dataInfo:{rule_info:{}},attachments:[],gender:"",pay:"",tagInfo:{}}},created:function(){this.detail()},methods:{detail:function(){var t,e=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.smartPushV2_recordDetail,{params:{rule_id:this.rule_id,send_num:this.send_num,send_date:this.send_date}}).then((t=_()(d.a.mark(function t(s){var a,i,n,r,l,o,_,c;return d.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(s=s.data)||0!=s.errno){t.next=13;break}return e.dataInfo=s.rst,e.attachments=s.rst.attachments&&""!=s.rst.attachments&&"null"!=s.rst.attachments?JSON.parse(s.rst.attachments):[],a=s.rst.rule_info,i=a.gender,n=a.pay_status,r=a.pay_num_min,l=a.pay_num_max,o=a.tag_screen_type,_=a.tag_list,c=a.exclude_tag_list,i&&(e.gender=i.split(",").map(function(t){return f[t]}).join("、")),e.pay=n||"0"===n||0===n?0==n?"未付费":r||l?r||""==l?""==r||l?"已付费("+r+" ~ "+l+"次)":"已付费("+r+"次)以上":"已付费("+l+"次)以下":"已付费":"",t.next=9,e.handleGetTagInfo({tag_screen_type:o,tag_list:_,exclude_tag_list:c});case 9:e.tagInfo=t.sent,e.loading=!1,t.next=14;break;case 13:4002!=s.errno&&(e.$message({message:s.err,type:"warning"}),e.loading=!1);case 14:case"end":return t.stop()}},t,e)})),function(e){return t.apply(this,arguments)})).catch(function(t){console.log(t),e.loading=!1})},handleGetTagInfo:function(t){var e=this,s=t.tag_screen_type,a=t.tag_list,i=t.exclude_tag_list;return _()(d.a.mark(function t(){return d.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new r.a(function(){var t=_()(d.a.mark(function t(n,r){var l,o,_,c;return d.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.handleGetTagOptions();case 2:l=t.sent,o=[],l.forEach(function(t){t.tag_list.forEach(function(t){o.push(t)})}),_=[],a&&a.length&&a.split(",").forEach(function(t){var e=o.find(function(e){return e.tag_id===t});e&&_.push(e.tag_name)}),c=[],i&&i&&i.split(",").forEach(function(t){var e=o.find(function(e){return e.tag_id===t});e&&c.push(e.tag_name)}),n({tag_screen_type:C[s],tag_list:_,exclude_tag_list:c});case 10:case"end":return t.stop()}},t,e)}));return function(e,s){return t.apply(this,arguments)}}()));case 1:case"end":return t.stop()}},t,e)}))()},handleGetTagOptions:function(){var t=this;return new r.a(function(e,s){t.$axios.get(t.URL.BASEURL+t.URL.tagList,{}).then(function(a){(a=a.data)&&0==a.errno?e(a.rst):4002!=a.errno&&(t.$message({message:a.err,type:"warning"}),s(!1))}).catch(function(t){s(!1)})})}}},y={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"self_drawer_title"},[s("div",{staticClass:"flex"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),s("div",{staticClass:"flex-align-center"},[s("i",{staticClass:"el-icon-close pointer",on:{click:function(e){return t.$emit("close")}}})])]),t._v(" "),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"modular"},[s("h3",{staticClass:"bigTitle"},[t._v("基础信息\n "),t.rule_id?[-1==t.dataInfo.status?s("span",{staticClass:"detail_status status_fail"},[t._v("发送失败")]):t._e(),t._v(" "),2==t.dataInfo.status?s("span",{staticClass:"detail_status status_ing"},[t._v("正在发送中")]):t._e(),t._v(" "),3==t.dataInfo.status?s("span",{staticClass:"detail_status status_success"},[t._v("发送完成")]):t._e()]:t._e()],2),t._v(" "),s("div",{staticClass:"flex-start"},[s("div",{staticClass:"dataInfoBox"},[s("div",{staticClass:"tMar20 flex-align-center"},[s("span",{staticClass:"lable"},[t._v("创建人:")]),t._v(" "),s("div",{staticClass:"customerServiceTagBox"},[s("div",{staticClass:"customerServiceTag"},[s("i",{staticClass:"el-icon-user-solid"}),t._v(" "+t._s(t.dataInfo.creator))])])]),t._v(" "),s("div",{staticClass:"tMar20 flex-align-center"},[s("span",{staticClass:"lable"},[t._v("群发标题:")]),t._v(" "),s("span",{staticClass:"txt"},[t._v(t._s(t.dataInfo.rule_info.name))])]),t._v(" "),s("div",{staticClass:"tMar20 flex-start"},[s("span",{staticClass:"lable"},[t._v("群发内容:")]),t._v(" "),s("div",[s("span",{staticClass:"txt"},[t._v(t._s(t.dataInfo.content))]),t._v(" "),s("div",{staticClass:"syllable_ul"},t._l(t.attachments,function(e,a){return s("div",{key:a,staticClass:"fujianItem"},[s("div",{staticClass:"left"},["image"==e.msgtype?s("span",{staticClass:"flex-align-center"},[t._v("【图片】:"),s("img",{staticStyle:{width:"16px",height:"16px"},attrs:{src:e.image.pic_url,alt:""}})]):t._e(),t._v(" "),"link"==e.msgtype?s("span",[t._v("【链接】:"+t._s(e.link.title))]):t._e(),t._v(" "),"miniprogram"==e.msgtype?s("span",[t._v("【小程序】:"+t._s(e.miniprogram.title))]):t._e(),t._v(" "),"radar"==e.msgtype?s("span",[t._v("【智能雷达】:"+t._s(e.radar.title))]):t._e(),t._v(" "),"promote"==e.msgtype?s("span",[t._v("【H5推广】:"+t._s(e.promote.title))]):t._e()])])}),0)])]),t._v(" "),s("div",{staticClass:"tMar20 flex-align-center"},[s("span",{staticClass:"lable"},[t._v("使用员工:")]),t._v(" "),1==t.dataInfo.rule_info.is_all?s("div",{staticClass:"txt"},[t._v("全部员工")]):[t.dataInfo.sender_name&&t.dataInfo.sender_name.length>0?s("div",{staticClass:"flexWrap"},t._l(t.dataInfo.sender_name,function(e,a){return s("div",{key:a,staticClass:"customerServiceTagBox"},[s("div",{staticClass:"customerServiceTag",staticStyle:{background:"transparent",color:"#00b38a"}},[t._v(t._s(e))])])}),0):s("div",{staticClass:"txt"},[t._v("-")])]],2),t._v(" "),s("div",{staticClass:"tMar20 flex-start"},[s("span",{staticClass:"lable"},[t._v("推送规则:")]),t._v(" "),s("div",[t.gender?s("div",{staticClass:"txt mb-4"},[t._v("性别:"+t._s(t.gender)+";")]):t._e(),t._v(" "),t.pay?s("div",{staticClass:"txt mb-4"},[t._v("付费情况:"+t._s(t.pay)+";")]):t._e(),t._v(" "),t.tagInfo.tag_screen_type?s("div",{staticClass:"txt mb-4"},[t._v(t._s(t.tagInfo.tag_screen_type)),t.tagInfo.tag_list&&t.tagInfo.tag_list.length?s("span",[t._v(":"+t._s(t.tagInfo.tag_list.join("、"))+";")]):t._e()]):t._e(),t._v(" "),t.dataInfo.rule_detail?s("div",{staticClass:"txt mb-4"},[t._v(t._s(t.dataInfo.rule_detail)+";")]):t._e(),t._v(" "),t.tagInfo.exclude_tag_list&&t.tagInfo.exclude_tag_list.length?s("div",{staticClass:"txt mb-4"},[t._v("排除客户标签:"+t._s(t.tagInfo.exclude_tag_list.join("、"))+";")]):t._e()])])]),t._v(" "),s("phonePreview",{staticStyle:{"margin-top":"-30px"},attrs:{phone_width:"260px",position_top:"0px",content:t.dataInfo.content,attachments:t.attachments}})],1)]),t._v(" "),s("div",{staticClass:"splitLine"}),t._v(" "),s("dataTranslate",{attrs:{rule_id:t.rule_id,send_num:t.send_num,send_date:t.send_date}}),t._v(" "),s("div",{staticClass:"splitLine"}),t._v(" "),s("userDetail",{attrs:{rule_id:t.rule_id,send_num:t.send_num,send_date:t.send_date}})],1)},staticRenderFns:[]};var b=s("VU/8")(x,y,!1,function(t){s("QW1x")},"data-v-b278fc7a",null).exports,w={components:{datePicker:a.a,massMsgDetail:b,selfChannel:i.a},data:function(){return{detialFlag:!1,loading:!1,page:1,pages:0,total:0,page_size:20,tableData:[],send_time_start:"",send_time_end:"",resetFlag:!1,height:"",detail_rule_id:"",detail_send_num:"",detail_send_date:"",rule_id:"",creator_id:""}},created:function(){this.height=document.documentElement.clientHeight-260>400?document.documentElement.clientHeight-260:400;var t=this.$route.query.rule_id;this.rule_id=t,this.init(1)},methods:{detailClose:function(){this.init(this.page),this.detialFlag=!1},onClickDetail:function(t){this.detail_rule_id=t.rule_id,this.detail_send_num=t.send_num,this.detail_send_date=t.send_date,this.detialFlag=!0},onChangeTime:function(t){!t||t&&0==t.length?(this.send_time_start="",this.send_time_end=""):(this.send_time_start=t[0],this.send_time_end=t[1]),this.init(1)},init:function(t,e){var s=this;if("export"!=e)this.page=t||this.page;else if(0==this.total)return void this.$message({message:"暂无数据可导出",type:"warning"});this.loading=!0;var a={rule_id:this.rule_id,send_time_start:this.send_time_start?this.send_time_start+" 00:00:00":"",send_time_end:this.send_time_end?this.$day_format(this.$date_compatible(this.send_time_end+" 24:00:00")):"",page:"export"==e?1:this.page,page_size:"export"==e?this.$store.state.exportNumber:this.page_size};this.$axios.get(this.URL.BASEURL+this.URL.smartPushV2_recordLists,{params:a}).then(function(t){t=t.data;s.loading=!1,t&&0==t.errno?"export"==e?s.exportEvent(t.rst.data):(s.tableData=t.rst.data,s.total=t.rst.pageInfo.total,s.pages=t.rst.pageInfo.pages):4002!=t.errno&&s.$message({message:t.err,type:"warning"})}).catch(function(t){s.loading=!1})},handleCurrentChange:function(t){this.init(t)},exportEvent:function(t){var e=[{tHeader:["企业ID","标题","创建人","规则","发送时间","送达客户数","失败客户数"],filterVal:["corpid","name","creator","rule_detail","create_time","send_success","send_fail"],tableDatas:t,sheetName:""}];this.$exportOrder({excelDatas:e,name:"推送记录(导出时间:"+this.$getDay(0)+")"})}}},L={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[s("div",{staticClass:"screenBox",staticStyle:{"align-items":"center","padding-right":"16px"}},[s("div",{staticClass:"flex-align-center",staticStyle:{flex:"1"}},[s("div",{on:{click:function(e){return t.$router.go(-1)}}},[s("i",{staticClass:"el-icon-back"})]),t._v(" "),s("datePicker",{attrs:{title:"发送时间",reset:t.resetFlag},on:{changeTime:t.onChangeTime}})],1)]),t._v(" "),s("div",{staticClass:"tableInfo"},[s("div",[s("div",{staticClass:"flex"},[s("div",{staticClass:"totalCustom"},[t._v("共有"),s("span",[t._v(t._s(t.total))]),t._v("条群发内容")])])]),t._v(" "),s("div",{staticClass:"flex"},[s("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return t.init(1,"export")}}},[t._v("导出Excel")])],1)]),t._v(" "),s("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:t.height,data:t.tableData,"tooltip-effect":"dark"}},[s("el-table-column",{attrs:{prop:"name",label:"标题","show-overflow-tooltip":"",align:"center","min-width":"120"}}),t._v(" "),s("el-table-column",{attrs:{label:"创建人",align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"customerServiceTagBox"},[s("div",{staticClass:"customerServiceTag"},[s("i",{staticClass:"el-icon-user-solid"}),t._v(" "+t._s(e.row.creator))])])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"rule_detail",label:"规则",align:"center","min-width":"200"}}),t._v(" "),s("el-table-column",{attrs:{prop:"create_time",label:"发送时间","min-width":"150","show-overflow-tooltip":"",align:"center"}}),t._v(" "),s("el-table-column",{attrs:{prop:"send_success",label:"送达客户数","show-overflow-tooltip":"",align:"center","min-width":"120"}}),t._v(" "),s("el-table-column",{attrs:{prop:"send_fail",label:"失败客户数","show-overflow-tooltip":"",align:"center","min-width":"120"}}),t._v(" "),s("el-table-column",{attrs:{label:"操作",align:"center",fixed:"right",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[s("div",{staticClass:"c-00B38A pointer table_button",on:{click:function(s){return t.onClickDetail(e.row)}}},[t._v("详情")])])]}}])})],1),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination"},[s("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),s("el-drawer",{attrs:{size:"1200px",visible:t.detialFlag,"with-header":!1},on:{"update:visible":function(e){t.detialFlag=e}}},[t.detialFlag?s("massMsgDetail",{attrs:{title:"智能推送详情",rule_id:t.detail_rule_id,send_num:t.detail_send_num,send_date:t.detail_send_date},on:{close:t.detailClose}}):t._e()],1)],1)},staticRenderFns:[]};var I=s("VU/8")(w,L,!1,function(t){s("9mdH")},"data-v-37371b3a",null);e.default=I.exports}});
|