1 |
- webpackJsonp([71],{"1yAI":function(t,e){},i3SB:function(t,e){},jZ15:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("gzej"),a=s("erru"),n=s("/X3M"),l=s("mvHQ"),r=s.n(l),o=s("Dd8w"),_=s.n(o),c=s("fGUm"),d=s("sazF"),u=s("UOPL"),m=s("cHmb"),h=s("M4fF"),g=s.n(h),p=s("2Uyi"),f={components:{selfCustomerservice:c.a,datePicker:i.a,enterpriseTag:d.a,editCon:u.a,screenPay:m.a},props:["title","rule_id","isCopy"],data:function(){return{loading:!0,resetFlag:!1,processFlag:!1,is_all:1,user_id_list:[],gender:[],payInfo:{},afferent_tag_obj:{tag_id_list:[],tag:1},tag_info:{},addCustomerTime:{days:"",hour:"",minute:"",type:1,type1_timeNums:[""],type2_hour:""},afferent_exclude_tag_obj:{tag_id_list:[],tag:1},exclude_tag_info:{},name:"",content:"",attachments:[],oldParams:{}}},created:function(){this.rule_id?this.detail():this.loading=!1},methods:{payChange:function(t){this.payInfo={pay_status:t.radio,pay_num_min:t.minValue,pay_num_max:t.maxValue}},detail:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.smartPush_detail,{params:{rule_id:this.rule_id}}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(t.user_id_list=e.rst.senders?e.rst.senders.split(","):[],e.rst.senders&&e.rst.senders.length>0&&(t.is_all=0),t.gender=e.rst.gender?e.rst.gender.split(","):[],t.payInfo={pay_status:e.rst.pay_status,pay_num_min:e.rst.pay_num_min,pay_num_max:e.rst.pay_num_max},t.afferent_tag_obj={tag_id_list:e.rst.tag_list?e.rst.tag_list.split(","):[],tag:e.rst.tag_screen_type},t.tag_info=_()({},g.a.cloneDeep(t.afferent_tag_obj),{tag_type:t.afferent_tag_obj.tag}),t.addCustomerTime.days=parseInt(Number(e.rst.interval_time)/60/24)||0,t.addCustomerTime.hour=parseInt(Number(e.rst.interval_time)/60%24)||0,t.addCustomerTime.minute=Number(e.rst.interval_time)%60||0,t.addCustomerTime.type=Number(e.rst.interval_type),1==t.addCustomerTime.type?t.addCustomerTime.type1_timeNums=e.rst.time_points?e.rst.time_points:[""]:2==t.addCustomerTime.type&&(t.addCustomerTime.type2_hour=e.rst.interval),t.afferent_exclude_tag_obj.tag_id_list=e.rst.exclude_tag_list?e.rst.exclude_tag_list.split(","):[],t.exclude_tag_info=t.afferent_exclude_tag_obj,t.name=e.rst.name,t.content=e.rst.content,t.attachments=e.rst.attachments&&""!=e.rst.attachments&&"null"!=e.rst.attachments?JSON.parse(e.rst.attachments):[],t.isCopy&&t.handleGetOldParams()):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})},getAttachment:function(t){this.attachments=t},handleGetIntervalTime:function(){var t=this.addCustomerTime,e=t.days,s=t.hour,i=t.minute;return 24*Number(e)*60+60*Number(s)+Number(i)},massMsg_set:function(){var t=this;if(0!=this.is_all||this.user_id_list&&0!=this.user_id_list.length){var e=this.handleGetIntervalTime();if(e){var s=this.addCustomerTime,i=s.type,a=s.type1_timeNums,n=s.type2_hour,l=a.some(function(t){return!t});if(1==i&&l||2==i&&!n)this.$message.warning('请完善"添加客服时间"');else if(""!=this.name)if(""!=this.content||this.attachments&&""!=this.attachments&&0!=this.attachments.length)if(""!=this.content&&this.$getStrBytes(this.content)>4e3)this.$message.error("请检查消息文本内容,最多4000个字节,已超出!");else{var o={name:this.name,is_all:this.is_all,senders:0==this.is_all?this.user_id_list.join(","):"",content:this.content,attachments:""==this.attachments||0==this.attachments.length?"":r()(this.attachments),gender:this.gender&&this.gender.join(","),interval_type:this.addCustomerTime.type,interval_time:e,interval:2==this.addCustomerTime.type?Number(this.addCustomerTime.type2_hour):"",time_points:1==this.addCustomerTime.type?r()(this.addCustomerTime.type1_timeNums):"",tag_screen_type:this.tag_info&&this.tag_info.tag_type?this.tag_info.tag_type:0,tag_list:this.tag_info&&this.tag_info.tag_id_list?this.tag_info.tag_id_list.join(","):"",exclude_tag_list:this.exclude_tag_info&&this.exclude_tag_info.tag_id_list?this.exclude_tag_info.tag_id_list.join(","):"",pay_status:this.payInfo.pay_status||0==this.payInfo.pay_status?this.payInfo.pay_status:"",pay_num_min:this.payInfo.pay_num_min||0==this.payInfo.pay_num_min?Number(this.payInfo.pay_num_min):"",pay_num_max:this.payInfo.pay_num_max||0==this.payInfo.pay_num_max?Number(this.payInfo.pay_num_max):""};if(this.isCopy)if(this.handleGetIsSameParams(o))return void this.$message.warning("推送规则及内容重复!");o.rule_id=this.isCopy?"":this.rule_id?this.rule_id:"",this.$loading(this.$loadingConfig),this.$axios.post(this.URL.BASEURL+this.URL.smartPush_set,o).then(function(e){e=e.data;t.$loading(t.$loadingConfig).close(),e&&0==e.errno?t.rule_id?t.$emit("close","update"):t.$emit("close","update_new"):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.$loading(t.$loadingConfig).close()})}else this.$message.warning("请输入内容!");else this.$message.warning("请输入标题!")}else this.$message.warning('请输入"添加客服时间"')}else this.$message.warning("请选择使用员工!")},handleGetOldParams:function(){var t=this.handleGetIntervalTime(),e={name:this.name,is_all:this.is_all,senders:0==this.is_all?this.user_id_list.join(","):"",content:this.content,attachments:""==this.attachments||0==this.attachments.length?"":r()(this.attachments),gender:this.gender&&this.gender.join(","),interval_type:this.addCustomerTime.type,interval_time:t,interval:2==this.addCustomerTime.type?this.addCustomerTime.type2_hour:"",time_points:1==this.addCustomerTime.type?r()(this.addCustomerTime.type1_timeNums):"",tag_screen_type:this.tag_info&&this.tag_info.tag_type?this.tag_info.tag_type:0,tag_list:this.tag_info&&this.tag_info.tag_id_list?this.tag_info.tag_id_list.join(","):"",exclude_tag_list:this.exclude_tag_info&&this.exclude_tag_info.tag_id_list?this.exclude_tag_info.tag_id_list.join(","):"",pay_status:this.payInfo.pay_status||0==this.payInfo.pay_status?this.payInfo.pay_status:"",pay_num_min:this.payInfo.pay_num_min||0==this.payInfo.pay_num_min?this.payInfo.pay_num_min:"",pay_num_max:this.payInfo.pay_num_max||0==this.payInfo.pay_num_max?this.payInfo.pay_num_max:""};this.oldParams=JSON.parse(r()(e))},handleGetIsSameParams:function(t){var e=this,s=!0,i=JSON.parse(r()(t));delete i.senders,delete i.gender,delete i.tag_list,delete i.exclude_tag_list;var a=JSON.parse(r()(this.oldParams));if(delete a.senders,delete a.gender,delete a.tag_list,delete a.exclude_tag_list,g.a.isEqual(i,a)){var n=t.senders,l=t.gender,o=t.tag_list,_=t.exclude_tag_list;if(n.length!==this.oldParams.senders.length)s=!1;else n.split(",").some(function(t){return!e.oldParams.senders.includes(t)})&&(s=!1);if(l.length!==this.oldParams.gender.length)s=!1;else l.split(",").some(function(t){return!e.oldParams.gender.includes(t)})&&(s=!1);if(o.length!==this.oldParams.tag_list.length)s=!1;else o.split(",").some(function(t){return!e.oldParams.tag_list.includes(t)})&&(s=!1);if(_.length!==this.oldParams.exclude_tag_list.length)s=!1;else _.split(",").some(function(t){return!e.oldParams.exclude_tag_list.includes(t)})&&(s=!1)}else s=!1;return s},tagDefine:function(t){1==t.tag||2==t.tag?t.tag_id_list&&0!=t.tag_id_list.length?this.tag_info={tag_id_list:t.tag_id_list,tag_type:t.tag}:this.tag_info={tag_id_list:[],tag_type:0}:this.tag_info={tag_id_list:[],tag_type:t.tag}},exclude_tagDefine:function(t){1==t.tag||2==t.tag?t.tag_id_list&&0!=t.tag_id_list.length?this.exclude_tag_info={tag_id_list:t.tag_id_list,tag_type:t.tag}:this.exclude_tag_info={tag_id_list:[],tag_type:0}:this.exclude_tag_info={tag_id_list:[],tag_type:t.tag}},onInputDays:function(t){this.addCustomerTime.days=Object(p.k)(t)},onInputHour:function(t){this.addCustomerTime.hour=Object(p.k)(t)},onInputMinute:function(t){this.addCustomerTime.minute=Object(p.k)(t)},onClickAddTimeNums:function(){this.addCustomerTime.type1_timeNums.push("")},onClickDelTimeNums:function(t){this.addCustomerTime.type1_timeNums.splice(t,1)},onInputType2Hour:function(t){this.addCustomerTime.type2_hour=Object(p.k)(t)}}},v={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"createMassMsg"},[i("div",{staticClass:"self_drawer_title"},[i("div",{staticClass:"flex"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),i("div",{staticClass:"flex-align-center"},[i("i",{staticClass:"el-icon-close pointer",on:{click:function(e){return t.$emit("close")}}})])]),t._v(" "),t.loading?t._e():i("div",{staticClass:"bg-ffffff",staticStyle:{padding:"15px 30px"}},[i("h3",{staticClass:"bigTitle"},[t._v("基础信息")]),t._v(" "),i("div",{staticClass:"regulations"},[t._m(0),t._v(" "),i("div",[i("div",{staticStyle:{display:"flex"}},[i("el-radio",{attrs:{label:1},model:{value:t.is_all,callback:function(e){t.is_all=e},expression:"is_all"}},[t._v("全部员工")]),t._v(" "),i("el-radio",{attrs:{label:0},model:{value:t.is_all,callback:function(e){t.is_all=e},expression:"is_all"}},[t._v("部分员工")])],1),t._v(" "),0==t.is_all?i("self-customerservice",{attrs:{title:"",width:"300px",afferent_users:t.user_id_list},on:{customerDefine:function(e){t.user_id_list=e}}}):t._e()],1)]),t._v(" "),i("div",{staticClass:"regulations"},[t._m(1),t._v(" "),i("div",{staticClass:"screeningCustomers",staticStyle:{"margin-top":"10px"}},[i("div",{staticClass:"screeningItem"},[i("label",[t._v("性别:")]),t._v(" "),i("el-checkbox-group",{staticClass:"checkboxGroup",model:{value:t.gender,callback:function(e){t.gender=e},expression:"gender"}},[i("el-checkbox",{attrs:{label:"1"}},[t._v("男性")]),t._v(" "),i("el-checkbox",{attrs:{label:"2"}},[t._v("女性")]),t._v(" "),i("el-checkbox",{attrs:{label:"0"}},[t._v("未知性别")])],1)],1),t._v(" "),i("div",{staticClass:"screeningItem"},[i("label",[t._v("付费情况:")]),t._v(" "),i("screen-pay",{staticStyle:{margin:"0"},attrs:{title:"",width:"355px",reset:t.resetFlag,afferent_obj:t.payInfo},on:{payChange:t.payChange}})],1),t._v(" "),i("div",{staticClass:"screeningItem"},[i("label",[t._v("标签:")]),t._v(" "),i("enterprise-tag",{staticStyle:{margin:"0"},attrs:{title:"",width:"355px",afferent_obj:t.afferent_tag_obj,reset:t.resetFlag},on:{tagDefine:t.tagDefine}})],1),t._v(" "),i("div",{staticClass:"screeningItem",staticStyle:{"align-items":"flex-start"}},[t._m(2),t._v(" "),i("div",{staticClass:"send-time-wrap"},[i("div",{staticClass:"send-time-item"},[i("el-input",{attrs:{size:"mini",maxlength:"3",clearable:""},on:{input:t.onInputDays},model:{value:t.addCustomerTime.days,callback:function(e){t.$set(t.addCustomerTime,"days","string"==typeof e?e.trim():e)},expression:"addCustomerTime.days"}}),t._v(" "),i("span",{staticClass:"text"},[t._v("天")]),t._v(" "),i("el-input",{attrs:{size:"mini",maxlength:"3",clearable:""},on:{input:t.onInputHour},model:{value:t.addCustomerTime.hour,callback:function(e){t.$set(t.addCustomerTime,"hour","string"==typeof e?e.trim():e)},expression:"addCustomerTime.hour"}}),t._v(" "),i("span",{staticClass:"text"},[t._v("小时")]),t._v(" "),i("el-input",{attrs:{size:"mini",maxlength:"3",clearable:""},on:{input:t.onInputMinute},model:{value:t.addCustomerTime.minute,callback:function(e){t.$set(t.addCustomerTime,"minute","string"==typeof e?e.trim():e)},expression:"addCustomerTime.minute"}}),t._v(" "),i("span",{staticClass:"text"},[t._v("分钟后")])],1),t._v(" "),i("div",{staticClass:"send-time-item"},[i("el-radio",{attrs:{label:1},model:{value:t.addCustomerTime.type,callback:function(e){t.$set(t.addCustomerTime,"type",e)},expression:"addCustomerTime.type"}},[i("span")]),t._v(" "),i("span",{staticClass:"text"},[t._v("当天")]),t._v(" "),i("div",{staticClass:"timeNums-wrap"},t._l(t.addCustomerTime.type1_timeNums,function(e,s){return i("div",{key:s,staticClass:"timeNums"},[i("el-time-picker",{attrs:{size:"mini",placeholder:"请选择","value-format":"HH:mm:ss",clearable:!1},model:{value:t.addCustomerTime.type1_timeNums[s],callback:function(e){t.$set(t.addCustomerTime.type1_timeNums,s,e)},expression:"addCustomerTime.type1_timeNums[idx]"}}),t._v(" "),0!==s?i("i",{staticClass:"el-icon-error",on:{click:function(e){return t.onClickDelTimeNums(s)}}}):t._e()],1)}),0),t._v(" "),i("i",{staticClass:"el-icon-circle-plus-outline",on:{click:t.onClickAddTimeNums}}),t._v(" "),i("span",{staticClass:"text"},[t._v("提醒发送")])],1),t._v(" "),i("div",{staticClass:"send-time-item"},[i("el-radio",{attrs:{label:2},model:{value:t.addCustomerTime.type,callback:function(e){t.$set(t.addCustomerTime,"type",e)},expression:"addCustomerTime.type"}},[i("span")]),t._v(" "),i("span",{staticClass:"text"},[t._v("后台每")]),t._v(" "),i("el-input",{attrs:{size:"mini",maxlength:"3",clearable:""},on:{input:t.onInputType2Hour},model:{value:t.addCustomerTime.type2_hour,callback:function(e){t.$set(t.addCustomerTime,"type2_hour","string"==typeof e?e.trim():e)},expression:"addCustomerTime.type2_hour"}}),t._v(" "),i("span",{staticClass:"text"},[t._v("小时分批提醒发送")])],1)])]),t._v(" "),i("div",{staticClass:"screeningItem",staticStyle:{"align-items":"flex-start"}},[i("label",[t._v("排除客户:")]),t._v(" "),i("div",{staticStyle:{flex:"1"}},[i("enterprise-tag",{staticStyle:{margin:"0"},attrs:{title:"",width:"355px",afferent_obj:t.afferent_exclude_tag_obj,excludeFlag:!0,reset:t.resetFlag},on:{tagDefine:t.exclude_tagDefine}}),t._v(" "),i("p",{staticClass:"screening-hint"},[t._v("可根据标签选择客户,群发时将不会发送给该标签内的客户。若选择了排除的客户,需要较长时间创建本条群发消息哦~")])],1)])])]),t._v(" "),i("div",{staticClass:"line"}),t._v(" "),i("h3",{staticClass:"bigTitle"},[t._v("编辑群发消息")]),t._v(" "),i("div",{staticClass:"regulations regulations2"},[t._m(3),t._v(" "),i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"例:活动推送/拉新等",clearable:"",size:"small"},model:{value:t.name,callback:function(e){t.name="string"==typeof e?e.trim():e},expression:"name"}}),t._v(" "),i("p",{staticStyle:{"font-size":"13px","line-height":"30px",color:"#f9a527","margin-left":"10px"}},[t._v("*仅作为企业内部人员记录群发摘要,不会推送给客户")])],1),t._v(" "),i("div",{staticClass:"regulations regulations2"},[t._m(4),t._v(" "),i("edit-con",{ref:"editCon",attrs:{afferent_content:t.content,afferent_attachments:t.attachments},on:{editContent:function(e){t.content=e},changeAttachment:t.getAttachment}})],1),t._v(" "),i("div",{staticClass:"regulations regulations2"},[i("label"),t._v(" "),i("div",{staticClass:"operationProcess"},[i("div",{staticClass:"process-title"},[i("h3",[t._v("企业群发的操作流程")]),t._v(" "),i("div",{staticClass:"zhankai",on:{click:function(e){t.processFlag=!t.processFlag}}},[t._v("展开 "),i("i",{class:["el-icon-arrow-down",t.processFlag?"reversalAnimation":""]})])]),t._v(" "),i("p",{staticClass:"process-hint"},[t._v("1、创建完群发任务后,员工将在企业微信上收到【客户联系】新消息通知")]),t._v(" "),i("p",{staticClass:"process-hint"},[t._v("2、员工点击【客户联系】,打开待发送的企业消息,可一键将消息发送给客户")]),t._v(" "),t.processFlag?i("img",{staticClass:"img",attrs:{src:s("fgle"),alt:""}}):t._e()])]),t._v(" "),i("div",{staticClass:"button_box"},[i("button",{staticClass:"button",on:{click:t.massMsg_set}},[t._v("应用规则")])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("使用员工:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("规则配置")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("添加客服时间:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("标题")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticStyle:{"margin-top":"4px"}},[e("em",[this._v("*")]),this._v("内容")])}]};var y=s("VU/8")(f,v,!1,function(t){s("1yAI")},"data-v-227f45c4",null).exports,C={components:{datePicker:i.a,selfChannel:a.a,createMassMsg:y,userTag:n.a},data:function(){return{massMsgFlag:!1,loading:!1,page:1,pages:0,total:0,page_size:20,tableData:[],create_time_start:"",create_time_end:"",resetFlag:!1,height:"",detail_rule_id:"",creator_id:"",isCopy:!1}},created:function(){this.height=document.documentElement.clientHeight-260>400?document.documentElement.clientHeight-260:400,this.init(1)},beforeRouteEnter:function(t,e,s){"/pushRecords"===e.path?s(function(t){t.init()}):s(function(t){t.creator_id="",t.create_time_start="",t.create_time_end="",t.page=1,t.resetFlag=!t.resetFlag,t.init(1)})},methods:{detailClose:function(t){"update"==t?this.init(this.page):"update_new"==t&&(this.init(1),this.$refs.multipleTable.bodyWrapper.scrollTop=0),this.massMsgFlag=!1},onClickCreatedRule:function(){this.detail_rule_id="",this.isCopy=!1,this.massMsgFlag=!0},onClickEditRule:function(t){this.detail_rule_id=t.rule_id,this.isCopy=!1,this.massMsgFlag=!0},onClickCopyRule:function(t){this.detail_rule_id=t.rule_id,this.isCopy=!0,this.massMsgFlag=!0},onClickPushRecords:function(t){this.$router.push({path:"/pushRecords",query:{rule_id:t.rule_id}})},onClickStatus:function(t){var e=this;this.$confirm("确定"+(0==t.status?"启用":"禁用")+"【"+t.name+"】?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$loading(e.$loadingConfig),e.$axios.get(e.URL.BASEURL+e.URL.smartPush_updateStatus,{params:{rule_id:t.rule_id,status:0==t.status?1:0}}).then(function(t){t=t.data;e.$loading(e.$loadingConfig).close(),t&&0==t.errno?(e.$message({message:"操作成功!",type:"success"}),e.init()):e.$message({message:t.err,type:"warning"})}).catch(function(){e.$loading(e.$loadingConfig).close()})}).catch(function(){})},onChangeCreatorId:function(t){this.creator_id=t,this.init(1)},onChangeTime:function(t){!t||t&&0==t.length?(this.create_time_start="",this.create_time_end=""):(this.create_time_start=t[0],this.create_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 i={creator_id:this.creator_id,create_time_start:this.create_time_start?this.create_time_start+" 00:00:00":"",create_time_end:this.create_time_end?this.$day_format(this.$date_compatible(this.create_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.smartPush_lists,{params:i}).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=t;e.forEach(function(t){t.status=1==t.status?"启用":"禁用"});var s=[{tHeader:["企业ID","标题","创建人","规则","创建时间","状态"],filterVal:["corpid","name","creator","desc","created_at","status"],tableDatas:e,sheetName:""}];this.$exportOrder({excelDatas:s,name:"智能推送-规则列表(导出时间:"+this.$getDay(0)+")"})}}},x={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("datePicker",{attrs:{title:"创建时间",reset:t.resetFlag},on:{changeTime:t.onChangeTime}}),t._v(" "),s("selfChannel",{attrs:{title:"创建人",reset:t.resetFlag,type:"circleCreate",labelWidth:!0},on:{channelDefine:t.onChangeCreatorId}})],1),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.onClickCreatedRule}},[t._v("新建智能推送")])],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(t){var e=t.row;return[s("userTag",{attrs:{icon:"el-icon-user-solid",list:e.creator?[e.creator]:[]}})]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"desc",label:"规则",align:"center","min-width":"200"}}),t._v(" "),s("el-table-column",{attrs:{label:"创建时间",prop:"created_at","min-width":"120","show-overflow-tooltip":"",align:"center"}}),t._v(" "),s("el-table-column",{attrs:{label:"状态","show-overflow-tooltip":"",align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[s("el-switch",{attrs:{"active-value":1,"inactive-value":0,disabled:""},nativeOn:{click:function(e){return t.onClickStatus(i)}},model:{value:i.status,callback:function(e){t.$set(i,"status",e)},expression:"row.status"}})]}}])}),t._v(" "),s("el-table-column",{attrs:{label:"操作",align:"center",fixed:"right",width:"150"},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.onClickEditRule(e.row)}}},[t._v("编辑")]),t._v(" "),s("el-popconfirm",{attrs:{title:"确定复制【"+e.row.name+"】的智能推送任务?"},on:{confirm:function(s){return t.onClickCopyRule(e.row)}}},[s("div",{staticClass:"c-00B38A pointer table_button",attrs:{slot:"reference"},slot:"reference"},[t._v("复制")])]),t._v(" "),s("div",{staticClass:"c-00B38A pointer table_button",on:{click:function(s){return t.onClickPushRecords(e.row)}}},[t._v("推送记录")])],1)]}}])})],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.massMsgFlag,"with-header":!1},on:{"update:visible":function(e){t.massMsgFlag=e}}},[t.massMsgFlag?s("createMassMsg",{ref:"createMassMsg",attrs:{title:t.detail_rule_id?"编辑智能推送":"新建智能推送",rule_id:t.detail_rule_id,isCopy:t.isCopy},on:{close:t.detailClose}}):t._e()],1)],1)},staticRenderFns:[]};var b=s("VU/8")(C,x,!1,function(t){s("i3SB")},"data-v-85a68f1a",null);e.default=b.exports}});
|