1 |
- webpackJsonp([7],{"3+6R":function(t,e){},"4H2r":function(t,e){},"6z9m":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("fGUm"),s=i("gzej"),n={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:"detialCon"},[i("div",{staticClass:"memBox_item"},[i("img",{attrs:{src:t.rowInfo.sender_avatar,alt:""}}),t._v(" "),i("div",[i("div",{staticClass:"flex-align-center"},[i("span",{staticClass:"name"},[t._v(t._s(t.rowInfo&&t.rowInfo.sender_name?t.rowInfo.sender_name:"-"))]),t._v(" "),i("span",{staticClass:"noCss"},[t._v("\n "+t._s(t.rowInfo&&1==t.rowInfo.filter_type?"企业发表":t.rowInfo&&2==t.rowInfo.filter_type?"个人发表":"")+"\n ")])]),t._v(" "),i("div",{staticClass:"tMar8 f13"},[t._v(t._s(t.rowInfo&&t.rowInfo.send_time?t.rowInfo.send_time:"-"))])])]),t._v(" "),i("div",{staticStyle:{"margin-left":"60px"}},[[i("div",{staticClass:"fc_txt"},[t._v(t._s(t.rowInfo&&t.rowInfo.content?t.rowInfo.content:""))]),t._v(" "),t.rowInfo&&t.rowInfo.attachments&&t.rowInfo.attachments.length>0?i("div",{staticClass:"tMar6 fc_con pyq_img_box"},[t._l(t.rowInfo.attachments,function(e){return["image"==e.msgtype?i("img",{key:e.media_id,style:t.rowInfo.attachments&&t.rowInfo.attachments.length>1?"":"width:200px",attrs:{src:e[e.msgtype].pic_url,alt:""}}):t._e(),t._v(" "),"video"==e.msgtype?i("video",{key:e.media_id,staticStyle:{width:"300px",height:"200px"},attrs:{src:e[e.msgtype].pic_url,controls:"controls"}}):t._e(),t._v(" "),"link"==e.msgtype?i("div",{staticClass:"flex-align-center"},[i("img",{staticStyle:{width:"30px","margin-right":"6px","margin-top":"0"},attrs:{src:e.link.pic_url,alt:""}}),t._v(" "),i("span",{staticClass:"f14 line18"},[i("a",{staticClass:"c-676C97",attrs:{href:e.link.url,target:"_blank"}},[t._v("\n "+t._s(e.link.title?e.link.title:"-")+"\n ")])])]):t._e(),t._v(" "),"radar"==e.msgtype?i("div",{staticClass:"phoneLinkCon",staticStyle:{"align-items":"center"}},[e.radar.pic_url?i("img",{staticClass:"phoneLinkImg radarImg",attrs:{src:e.radar.pic_url,alt:""}}):i("div",{staticClass:"phoneLinkImgNo"},[i("i",{staticClass:"el-icon-link"})]),t._v(" "),i("div",[i("div",{staticClass:"phoneLinkTitle",staticStyle:{"font-size":"13px"}},[t._v(t._s(e.radar.title))]),t._v(" "),i("div",{staticClass:"phoneLinkDesc clampTwo",staticStyle:{"font-size":"11px"}},[t._v(t._s(e.radar.description))])])]):t._e()]})],2):t._e()],t._v(" "),t.rowInfo&&t.rowInfo.like_total>0?[i("div",{staticClass:"small_bg"},[i("div",{staticClass:"small_title"},[t._v("点赞数 "),i("span",[t._v(t._s(t.rowInfo&&t.rowInfo.like_total?t.rowInfo.like_total:"-"))])]),t._v(" "),i("div",{staticClass:"fc_con"},[t._l(t.like_userList,function(t){return[i("img",{key:t.external_userid,staticClass:"pyq_img",attrs:{src:t.avatar,alt:""}})]})],2)])]:t._e(),t._v(" "),t.rowInfo&&t.rowInfo.comment_total>0?[i("div",{staticClass:"small_bg"},[i("div",{staticClass:"small_title"},[t._v("评论数 "),i("span",[t._v(t._s(t.rowInfo&&t.rowInfo.comment_total?t.rowInfo.comment_total:"-"))])]),t._v(" "),i("div",{staticClass:"fc_con"},[t._l(t.comment_userList,function(t){return[i("img",{key:t.external_userid,staticClass:"pyq_img",attrs:{src:t.avatar,alt:""}})]})],2)])]:t._e()],2)])},staticRenderFns:[]};var r=i("VU/8")({name:"q-wdetial",props:["rowInfo","detialFlag"],data:function(){return{loading:!1,like_userList:[],comment_userList:[]}},watch:{detialFlag:function(){this.getImg()}},created:function(){this.getImg()},methods:{getImg:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.getfclikeInfo,{params:{moment_id:this.rowInfo.moment_id,userid:this.rowInfo.sender}}).then(function(e){t.loading=!1,(e=e.data)&&0==e.errno?(t.like_userList=e.rst.like_users,t.comment_userList=e.rst.comment_users):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}}},n,!1,function(t){i("JMcU")},"data-v-8393d1fa",null).exports,l={name:"customerFriendsCircle",components:{datePicker:s.a,detial:r,selfCustomerservice:a.a},data:function(){return{loading:!1,type:2,detialDialog:!1,detialFlag:!1,page:1,pages:0,total:0,page_size:20,pageOptionValue:2,tableData:[],user_id_list:[],add_date_start:"",add_date_end:"",resetFlag:!1,height:"",circleType_val:"",rowInfo:{}}},created:function(){this.height=document.documentElement.clientHeight-320>400?document.documentElement.clientHeight-320:400,this.init(1)},methods:{remindClick:function(){},changeType:function(){},goDetail:function(t){this.detialFlag=!this.detialFlag,this.detialDialog=!0,this.rowInfo=t},changeTime:function(t){!t||t&&0==t.length?(this.add_date_start="",this.add_date_end=""):(this.add_date_start=t[0],this.add_date_end=t[1]),this.init(1)},init:function(t,e){var i=this;if("export"!=e)this.page=t||this.page;else if(0==this.total)return void this.$message({message:"暂无数据可导出",type:"warning"});this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.FriendsCircleReleaseList,{params:{user_id_list:this.user_id_list,send_time_start:this.add_date_start?this.add_date_start+" 00:00:00":"",send_time_end:this.add_date_end?this.$day_format(this.$date_compatible(this.add_date_end+" 24:00:00")):"",page:"export"==e?1:this.page,page_size:"export"==e?this.$store.state.exportNumber:this.page_size}}).then(function(t){t=t.data;i.loading=!1,t&&0==t.errno?(t.rst.data.forEach(function(t){t.attachments=JSON.parse(t.attachments),t.content&&t.attachments&&t.attachments.length>0?t.attachments.forEach(function(e){"image"==e.msgtype?t.con_type="图片+文字":"video"==e.msgtype?t.con_type="视频+文字":"link"==e.msgtype?t.con_type="链接+文字":"radar"==e.msgtype?t.con_type="雷达+文字":t.con_type="空白+文字"}):t.content&&(t.attachments&&0==t.attachments.length||!t.attachments)?t.con_type="文字":!t.content&&t.attachments&&t.attachments.length>0?t.attachments.forEach(function(e){"image"==e.msgtype?t.con_type="图片":"video"==e.msgtype?t.con_type="视频":"link"==e.msgtype?t.con_type="链接":"radar"==e.msgtype?t.con_type="雷达":t.con_type="空白"}):t.con_type="-"}),"export"==e?i.exportEvent(t.rst.data):(i.tableData=t.rst.data,i.total=t.rst.pageInfo.total,i.pages=t.rst.pageInfo.pages)):4002!=t.errno&&i.$message({message:t.err,type:"warning"})}).catch(function(t){i.loading=!1})},handleCurrentChange:function(t){this.init(t)},exportEvent:function(t){var e=t;e.forEach(function(t){t.send_type_name=1==t.send_type?"立即发送":2==t.send_type?"定时发送":"",t.enable_name=-2==t.enable?"已删除":-1==t.enable?"发送失败":1==t.enable?"待发送":2==t.enable?"正在发送中":3==t.enable?"发送完成":""});var i=[{tHeader:["企业ID","群发标题","发送类型","发送时间","消息文本内容","附件信息","发送状态","消息内容总数","创建人","消息送达数","消息发送失败数","总发送数"],filterVal:["corpid","name","send_type_name","send_time","content","attachments","enable_name","msg_count","creator","send_success","send_fail","send_total"],tableDatas:e,sheetName:""}];this.$exportOrder({excelDatas:i,name:"员工群发消息(导出时间:"+this.$getDay(0)+")"})}}},o={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"}]},[i("div",{staticClass:"screenBox"},[i("self-customerservice",{attrs:{title:"发布成员",reset:t.resetFlag,labelWidth:"auto"},on:{customerDefine:function(e){t.user_id_list=e,t.init(1)}}}),t._v(" "),i("date-picker",{attrs:{title:"发布时间"},on:{changeTime:t.changeTime}})],1),t._v(" "),i("div",{staticClass:"tableInfo"},[i("div",{staticClass:"flex"},[i("div",{staticClass:"totalCustom"},[t._v("共"),i("span",[t._v(t._s(t.total))]),t._v("条朋友圈")])])]),t._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:t.height,data:t.tableData,"tooltip-effect":"dark"}},[i("el-table-column",{attrs:{label:"内容","show-overflow-tooltip":"","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.content?[e.row.attachments&&e.row.attachments.length>0?i("div",["image"==e.row.attachments[0].msgtype?[i("div",{staticClass:"flex-align-center"},[i("img",{staticStyle:{width:"60px","margin-right":"6px"},attrs:{src:e.row.attachments[0].image.pic_url,alt:""}}),t._v(" "),i("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.content,disabled:e.row.content&&e.row.content.length<28,placement:"top"}},[i("div",{staticClass:"clampTwo",staticStyle:{flex:"1","flex-shrink":"0"}},[t._v(t._s(e.row.content?e.row.content:"-"))])])],1)]:"video"==e.row.attachments[0].msgtype?[i("div",{staticClass:"flex-align-center"},[i("video",{staticStyle:{width:"60px",height:"160px","margin-right":"6px"},attrs:{src:e.row.attachments[0].video.pic_url}}),t._v(" "),i("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.content,disabled:e.row.content&&e.row.content.length<28,placement:"top"}},[i("div",{staticClass:"clampTwo",staticStyle:{flex:"1","flex-shrink":"0"}},[t._v(t._s(e.row.content?e.row.content:"-"))])])],1)]:"link"==e.row.attachments[0].msgtype?[i("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.content,disabled:e.row.content&&e.row.content.length<15,placement:"top"}},[i("div",{staticClass:"clampTwo",staticStyle:{flex:"1","flex-shrink":"0"}},[t._v(t._s(e.row.content?e.row.content:"-"))])]),t._v(" "),i("div",{staticClass:"flex-align-center"},[i("img",{staticStyle:{width:"30px",height:"30px","margin-right":"6px"},attrs:{src:e.row.attachments[0].link.pic_url,alt:""}}),t._v(" "),i("span",{staticStyle:{"line-height":"16px","margin-top":"5px",cursor:"pointer"}},[i("a",{staticClass:"c-676C97",attrs:{href:e.row.attachments[0].link.url,target:"_blank"}},[i("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.content,disabled:e.row.content&&e.row.content.length<35,placement:"top"}},[i("span",{staticClass:"clampTwo"},[t._v(t._s(e.row.attachments[0].link.title?e.row.attachments[0].link.title:"-"))])])],1)])])]:"radar"==e.row.attachments[0].msgtype?[i("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.content,disabled:e.row.content&&e.row.content.length<20,placement:"top"}},[i("div",{staticClass:"clampTwo contentCss"},[t._v(t._s(e.row.content?e.row.content:"-"))])]),t._v(" "),i("div",{staticClass:"flex-align-center tMar5"},[i("img",{staticStyle:{width:"40px",height:"40px","margin-right":"6px","flex-shrink":"0"},attrs:{src:e.row.attachments[0].radar.pic_url,alt:""}}),t._v(" "),i("div",[i("div",{staticClass:"phoneLinkTitle",staticStyle:{"font-size":"13px"}},[t._v(t._s(e.row.attachments[0].radar.title))]),t._v(" "),i("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.attachments[0].radar.description,disabled:e.row.attachments[0].radar.description&&e.row.attachments[0].radar.description.length<34,placement:"top"}},[i("div",{staticClass:"phoneLinkDesc clampTwo",staticStyle:{"font-size":"11px"}},[t._v(t._s(e.row.attachments[0].radar.description))])])],1)])]:[t._v("-")]],2):i("div",{staticClass:"clampTwo"},[t._v(t._s(e.row.content?e.row.content:"-"))])]:e.row.content?[t._v("-")]:["image"==e.row.attachments[0].msgtype?[i("img",{staticStyle:{width:"60px",height:"100%"},attrs:{src:e.row.attachments[0].image.pic_url,alt:""}})]:t._e(),t._v(" "),"video"==e.row.attachments[0].msgtype?[i("video",{staticStyle:{width:"60px",height:"160px"},attrs:{src:e.row.attachments[0].video.pic_url}})]:t._e(),t._v(" "),"link"==e.row.attachments[0].msgtype?[i("div",{staticClass:"flex-align-center"},[i("img",{staticStyle:{width:"30px",height:"30px","margin-right":"6px"},attrs:{src:e.row.attachments[0].link.pic_url,alt:""}}),t._v(" "),i("span",{staticStyle:{"line-height":"16px","margin-top":"5px",cursor:"pointer"}},[i("a",{staticClass:"c-676C97",attrs:{href:e.row.attachments[0].link.url,target:"_blank"}},[i("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.content,disabled:e.row.content&&e.row.content.length<35,placement:"top"}},[i("span",{staticClass:"clampTwo"},[t._v(t._s(e.row.attachments[0].link.title?e.row.attachments[0].link.title:"-"))])])],1)])])]:"radar"==e.row.attachments[0].msgtype?[i("div",{staticClass:"flex-align-center"},[i("img",{staticStyle:{width:"40px",height:"40px","margin-right":"6px","flex-shrink":"0"},attrs:{src:e.row.attachments[0].radar.pic_url,alt:""}}),t._v(" "),i("div",[i("div",{staticClass:"phoneLinkTitle",staticStyle:{"font-size":"13px"}},[t._v(t._s(e.row.attachments[0].radar.title))]),t._v(" "),i("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.attachments[0].radar.description,disabled:e.row.attachments[0].radar.description&&e.row.attachments[0].radar.description.length<34,placement:"top"}},[i("div",{staticClass:"phoneLinkDesc clampTwo",staticStyle:{"font-size":"11px"}},[t._v(t._s(e.row.attachments[0].radar.description))])])],1)])]:t._e()]]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"朋友圈类型",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(1==e.row.filter_type?"企业发表":2==e.row.filter_type?"个人发表":""))])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"con_type",label:"类别","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{label:"发布成员","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"flex-align-center"},[i("img",{staticStyle:{width:"30px","margin-right":"10px"},attrs:{src:e.row.sender_avatar,alt:""}}),t._v(" "),i("span",[t._v(t._s(e.row.sender_name?e.row.sender_name:"-"))])])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"send_time","min-width":"100px",label:"发布时间","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"like_total",label:"点赞数","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"comment_total",label:"评论数","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[i("div",{staticClass:"c-00B38A pointer table_button",on:{click:function(i){return t.goDetail(e.row)}}},[t._v("详情")])])]}}])})],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination"},[i("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(" "),i("el-dialog",{attrs:{title:"朋友圈详情",visible:t.detialDialog,width:"600px"},on:{"update:visible":function(e){t.detialDialog=e}}},[i("detial",{ref:"detial",attrs:{rowInfo:t.rowInfo,detialFlag:t.detialFlag}}),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){t.detialDialog=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(e){t.detialDialog=!1}}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var c=i("VU/8")(l,o,!1,function(t){i("4H2r")},"data-v-32f9d765",null).exports,d=i("Xxa5"),_=i.n(d),p=i("exGp"),u=i.n(p),h=i("erru"),m=i("XdcG"),v=i("Gu7T"),g=i.n(v),f={name:"q-wdetial",props:["rule_id","detialFlag"],data:function(){return{loading:!0,info:{},sendMember:[{txt:"全部发送成员",num:"",key:"published_total",memListKey:"all_user"},{txt:"已发送成员",num:"",key:"published_count",memListKey:"published_user"},{txt:"未发送成员",num:"published_user",key:"unpublished_count",memListKey:"unpublished_user"}],acIdx:0}},watch:{detialFlag:function(){var t=this;this.$nextTick(function(){t.loading=!0,t.acIdx=0,t.init()})}},created:function(){var t=this;this.$nextTick(function(){t.loading=!0,t.init()})},methods:{switchStatus:function(t){this.acIdx=t},changeWidth:function(){this.$emit("changeDrawerSize")},close:function(){this.$emit("closeDrawer")},init:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.FriendsCircleDetial,{params:{rule_id:this.rule_id}}).then(function(e){(e=e.data)&&0==e.errno?(t.info=e.rst,t.info.publish_list.all_user=[],t.info.publish_list.all_user=[].concat(g()(t.info.publish_list.published_user),g()(t.info.publish_list.unpublished_user)),t.info.attachments=JSON.parse(t.info.attachments),t.info.content&&t.info.attachments&&t.info.attachments.length>0?t.info.attachments.forEach(function(e){"image"==e.msgtype?t.info.con_type="图片+文字":"video"==e.msgtype?t.info.con_type="视频+文字":"link"==e.msgtype?t.info.con_type="链接+文字":t.info.con_type="空白+文字"}):t.info.content&&t.info.attachments&&0==t.info.attachments.length?t.info.con_type="文字":!t.info.content&&t.info.attachments&&t.info.attachments.length>0?t.info.attachments.forEach(function(e){"image"==e.msgtype?t.info.con_type="图片":"video"==e.msgtype?t.info.con_type="视频":"link"==e.msgtype?t.info.con_type="链接":t.info.con_type="空白"}):t.info.con_type="-",t.loading=!1):4002!=e.errno&&(t.$message({message:e.err,type:"warning"}),t.loading=!1)}).catch(function(e){t.loading=!1})}}},y={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"detialCon"},[a("div",{staticClass:"title padCon"},[a("div",{staticClass:"flex"},[t._v("\n 朋友圈详情\n ")]),t._v(" "),a("div",{staticClass:"flex-align-center"},[a("img",{staticStyle:{width:"13px","margin-right":"6px",cursor:"pointer"},attrs:{src:i("FNRU"),alt:""},on:{click:t.changeWidth}}),t._v(" "),a("i",{staticClass:"el-icon-close pointer",on:{click:t.close}})])]),t._v(" "),a("div",{staticClass:"splitLine"}),t._v(" "),a("div",{staticClass:"padCon"},[a("div",{staticClass:"info"},[a("div",{staticClass:"info_left"},[a("div",[a("span",{staticClass:"lable"},[t._v("朋友圈类型:")]),t._v(" "),a("span",{staticClass:"txt"},[t._v(t._s(t.info&&t.info.filter_type?1==t.info.filter_type?"企业发表":2==t.info.filter_type?"个人发表":"":"-"))])]),t._v(" "),a("div",{staticClass:"tMar20"},[a("span",{staticClass:"lable"},[t._v("类别:")]),t._v(" "),a("span",{staticClass:"txt"},[t._v(t._s(t.info.con_type))])]),t._v(" "),a("div",{staticClass:"tMar20"},[a("span",{staticClass:"lable"},[t._v("创建时间:")]),t._v(" "),a("span",{staticClass:"txt"},[t._v(t._s(t.info&&t.info.send_time?t.info.send_time:"-"))])]),t._v(" "),a("div",{staticClass:"tMar20"},[a("span",{staticClass:"lable"},[t._v("创建人:")]),t._v(" "),a("span",{staticClass:"txt"},[t._v(t._s(t.info&&t.info.creator?t.info.creator:"-"))])])]),t._v(" "),a("div",{staticClass:"info_right"},[a("div",{staticClass:"lable"},[t._v("内容:")]),t._v(" "),a("div",{staticClass:"txt"},[a("div",[t._v(t._s(t.info&&t.info.content?t.info.content:""))]),t._v(" "),t.info&&t.info.attachments&&t.info.attachments.length>0?a("div",{class:t.info&&t.info.content?"tMar6":""},[t._l(t.info.attachments,function(e){return["image"==e.msgtype?a("img",{key:e.media_id,attrs:{src:e[e.msgtype].pic_url,alt:""}}):t._e(),t._v(" "),"video"==e.msgtype?a("video",{key:e.media_id,staticStyle:{width:"200px",height:"200px"},attrs:{src:e[e.msgtype].pic_url,controls:"controls"}}):t._e(),t._v(" "),"link"==e.msgtype?a("div",{staticClass:"flex-align-center"},[a("img",{staticStyle:{width:"20px",height:"20px","margin-right":"6px","flex-shrink":"0"},attrs:{src:e.link.pic_url,alt:""}}),t._v(" "),a("span",[a("a",{staticClass:"c-676C97",attrs:{href:e.link.url,target:"_blank"}},[t._v("\n "+t._s(e.link.title?e.link.title:"-")+"\n ")])])]):t._e(),t._v(" "),"radar"==e.msgtype?a("div",{staticClass:"phoneLinkCon",staticStyle:{"align-items":"center"}},[e.radar.pic_url?a("img",{staticClass:"phoneLinkImg radarImg",attrs:{src:e.radar.pic_url,alt:""}}):a("div",{staticClass:"phoneLinkImgNo"},[a("i",{staticClass:"el-icon-link"})]),t._v(" "),a("div",[a("div",{staticClass:"phoneLinkTitle",staticStyle:{"font-size":"13px"}},[t._v(t._s(e.radar.title))]),t._v(" "),a("div",{staticClass:"phoneLinkDesc clampTwo",staticStyle:{"font-size":"11px"}},[t._v(t._s(e.radar.description))])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"splitLine",staticStyle:{margin:"20px 0"}}),t._v(" "),a("div",{staticClass:"member"},[a("div",{staticClass:"big_title"},[t._v("发送成员")]),t._v(" "),a("div",{staticClass:"member_total"},[t._l(t.sendMember,function(e,i){return[a("div",{key:i,staticClass:"member_total_item pointer",on:{click:function(e){return t.switchStatus(i)}}},[a("div",{staticClass:"num",class:i==t.acIdx?"c-009976":""},[t._v(t._s(t.info&&t.info[e.key]||0==t.info[e.key]?t.info[e.key]:"-"))]),t._v(" "),a("div",{staticClass:"txt",class:i==t.acIdx?"c-009976":""},[t._v(t._s(e.txt))])]),t._v(" "),i<t.sendMember.length-1?a("div",{staticClass:"splitLine_small"}):t._e()]})],2),t._v(" "),t.info&&t.info.publish_list&&t.info.publish_list[t.sendMember[t.acIdx].memListKey]&&t.info.publish_list[t.sendMember[t.acIdx].memListKey].length>0?[a("div",{staticClass:"small_title"},[t._v("共"+t._s(t.info.publish_list[t.sendMember[t.acIdx].memListKey].length)+"名成员")]),t._v(" "),a("div",{staticClass:"memBox"},t._l(t.info.publish_list[t.sendMember[t.acIdx].memListKey],function(e,s){return a("div",{key:s,staticClass:"memBox_item"},[a("img",{attrs:{src:i("pIyw")}}),t._v(" "),a("div",[a("div",{staticClass:"name"},[t._v(t._s(e.sender))]),t._v(" "),a("div",{class:1==e.publish_status?"yesCss":"noCss"},[t._v(t._s(1==e.publish_status?"已发送":"未发送"))])])])}),0)]:t._e()],2)])])},staticRenderFns:[]};var w=i("VU/8")(f,y,!1,function(t){i("Qdvd")},"data-v-40db14d6",null).exports,C={props:{dialogVisible:{type:Boolean,default:function(){return!1}},link:{type:String,default:function(){return""}}},data:function(){return{loading:!1}},computed:{title:function(){return""}},watch:{dialogVisible:function(t){}},methods:{handleCancel:function(){this.$emit("close")},handleClearFormData:function(){this.form.app_id="",this.form.account_id=[]}}},b={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{staticClass:"video-dialog",attrs:{visible:t.dialogVisible,"before-close":t.handleCancel,title:t.title,width:"550px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"content-wrap"},[i("video",{attrs:{src:t.link,width:"60%",controls:""}})]),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.handleCancel}},[t._v("关 闭")])],1)])},staticRenderFns:[]};var k=i("VU/8")(C,b,!1,function(t){i("W7TB")},"data-v-492af224",null).exports,x=i("bqGD"),L={name:"customerFriendsCircle",components:{datePicker:s.a,selfChannel:h.a,detial:w,createFriendsCircle:m.a,videoDialog:k,cancelSendListDialog:x.a},watch:{tableData:{handler:function(){var t=this;this.$nextTick(function(){t.$refs.multipleTable.bodyWrapper.scrollTop=0})},deep:!0,immediate:!0}},data:function(){return{loading:!1,type:2,detialDrawer:!1,detialFlag:!0,drawerSize:"60%",page:1,pages:0,total:0,page_size:20,pageOptionValue:2,tableData:[],user_id_list:[],add_date_start:"",add_date_end:"",resetFlag:!1,height:"",circleCreate_val:"",circleType_val:"",rule_id:"",editFlag:!1,is_copy:!1,sort_field:"send_time",videoDialogVisible:!1,currentVideoLink:"",cancelSendListType:4,cancelSendDialogVisible:!1}},created:function(){this.height=document.documentElement.clientHeight-320>400?document.documentElement.clientHeight-320:400,this.init(1)},methods:{sortFieldEvent:function(t){t!=this.sort_field&&(this.sort_field=t,this.init(1))},copyDetail:function(t){this.editFlag=!0,this.is_copy=!0,this.rule_id=t.rule_id},enableForbidden:function(t){var e=this;this.$confirm("确定"+(1==t.enable?"禁用":"启用")+"【"+t.name+"】?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$loading(e.$loadingConfig),e.$axios.get(e.URL.BASEURL+e.URL.FriendsCircleChangeStatus,{params:{rule_id:t.rule_id,status:1==t.enable?0:1}}).then(function(t){t=t.data;e.$loading(e.$loadingConfig).close(),t&&0==t.errno?(e.$message({message:"操作成功!",type:"success"}),e.init(e.page)):e.$message({message:t.err,type:"warning"})}).catch(function(){e.$loading(e.$loadingConfig).close()})}).catch(function(){})},detailClose:function(t){"update"==t?this.init(this.page):"update_new"==t&&(this.sort_field="updated_at",this.init(1)),this.editFlag=!1},changeDrawerSize:function(){this.drawerSize="100%"==this.drawerSize?"60%":"100%"},closeDrawer:function(){this.detialDrawer=!1},remindClick:function(t){var e=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.noticeUserFc,{params:{rule_id:t}}).then(function(t){e.loading=!1;t=t.data;e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},createFriCircle:function(t,e){this.is_copy=!1,this.rule_id="edit"==t?e:"",this.editFlag=!0},goDetail:function(t){this.detialFlag=!this.detialFlag,this.rule_id=t,this.detialDrawer=!0},changeTime:function(t){!t||t&&0==t.length?(this.add_date_start="",this.add_date_end=""):(this.add_date_start=t[0],this.add_date_end=t[1]),this.init(1)},init:function(t,e){var i=this;if("export"!=e)this.page=t||this.page;else if(0==this.total)return void this.$message({message:"暂无数据可导出",type:"warning"});this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.FriendsCircleList,{params:{creator_id:this.circleCreate_val,send_time_start:this.add_date_start?this.add_date_start+" 00:00:00":"",send_time_end:this.add_date_end?this.$day_format(this.$date_compatible(this.add_date_end+" 24:00:00")):"",filter_type:this.circleType_val,page:"export"==e?1:this.page,page_size:"export"==e?this.$store.state.exportNumber:this.page_size,sort_column:this.sort_field}}).then(function(t){t=t.data;i.loading=!1,t&&0==t.errno?(t.rst.data.forEach(function(t){t.attachments=JSON.parse(t.attachments),t.attachments&&0==t.attachments.length&&(t.attachments=null),t.content&&t.attachments&&t.attachments.length>0?t.attachments.forEach(function(e){"image"==e.msgtype?t.con_type="图片+文字":"video"==e.msgtype?t.con_type="视频+文字":"link"==e.msgtype?t.con_type="链接+文字":"radar"==e.msgtype?t.con_type="雷达+文字":t.con_type="空白+文字"}):t.content&&(t.attachments&&0==t.attachments.length||!t.attachments)?t.con_type="文字":!t.content&&t.attachments&&t.attachments.length>0?t.attachments.forEach(function(e){"image"==e.msgtype?t.con_type="图片":"video"==e.msgtype?t.con_type="视频":"link"==e.msgtype?t.con_type="链接":"radar"==e.msgtype?t.con_type="雷达":t.con_type="空白"}):t.con_type="-"}),"export"==e?i.exportEvent(t.rst.data):(i.tableData=t.rst.data,i.$nextTick(function(){i.$refs.multipleTable.doLayout()}),i.total=t.rst.pageInfo.total,i.pages=t.rst.pageInfo.pages)):4002!=t.errno&&i.$message({message:t.err,type:"warning"})}).catch(function(t){i.loading=!1})},handleCurrentChange:function(t){this.init(t)},exportEvent:function(t){var e=t;e.forEach(function(t){t.filter_type=1==t.filter_type?"企业发表":2==t.filter_type?"个人发表":"",t.operate_type_name=1==t.operate_type?"单个企微主体":"多个企微主体","图片"==t.con_type?t.content="图片":"视频"==t.con_type?t.content="视频":"链接"==t.con_type&&(t.content=t.attachments[0].link.title?t.attachments[0].link.title:t.attachments[0].link.url)});var i=[{tHeader:["内容","朋友圈主题","模式","朋友圈类型","类别","创建人","创建时间","已发送人数","未发送人数"],filterVal:["content","name","operate_type_name","filter_type","con_type","creator","send_time","published_count","unpublished_count"],tableDatas:e,sheetName:""}];this.$exportOrder({excelDatas:i,name:"企微朋友圈(导出时间:"+this.$getDay(0)+")"})},onClickShowVideo:function(t){if(!t)return!1;this.currentVideoLink=t,this.videoDialogVisible=!0},onCloseVideo:function(){this.currentVideoLink="",this.videoDialogVisible=!1},onClickCancelSend:function(t){var e=this,i=t.name,a=t.rule_id;return u()(_.a.mark(function t(){return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.$confirm("确定停止当前群发任务吗?",""+i,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:e.handleCancelSend(a),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.log("error => ",t.t0);case 9:case"end":return t.stop()}},t,e,[[0,6]])}))()},handleCancelSend:function(t){var e=this;return u()(_.a.mark(function i(){var a,s,n,r,l;return _.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,e.loading=!0,a=""+e.URL.BASEURL+e.URL.massMsgCancel_setConfig,s={rule_id:t,type:e.cancelSendListType},i.next=6,e.$axios.post(a,s);case 6:n=i.sent,r=n.data,(l=void 0===r?{}:r)&&0==l.errno?(e.$message.success("操作成功"),e.init(e.page)):4002!=l.errno&&e.$message.warning(l.err),i.next=15;break;case 12:i.prev=12,i.t0=i.catch(0),console.log(i.t0);case 15:return i.prev=15,e.loading=!1,i.finish(15);case 18:case"end":return i.stop()}},i,e,[[0,12,15,18]])}))()},onClickCancelSendList:function(){this.cancelSendDialogVisible=!0},onCloseCancelSendDialog:function(){this.cancelSendDialogVisible=!1}}},S={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("div",{staticClass:"screenBox flex",staticStyle:{"flex-wrap":"nowrap"}},[a("self-channel",{attrs:{title:"创建人",type:"circleCreate",labelWidth:!0},on:{channelDefine:function(e){t.circleCreate_val=e,t.init(1)}}}),t._v(" "),a("date-picker",{attrs:{title:"发送时间"},on:{changeTime:t.changeTime}}),t._v(" "),a("self-channel",{attrs:{title:"朋友圈类型",type:"circleType",labelWidth:!0},on:{channelDefine:function(e){t.circleType_val=e,t.init(1)}}}),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.createFriCircle("new")}}},[t._v("创建朋友圈")])],1)],1),t._v(" "),a("div",{staticClass:"tableInfo"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"totalCustom"},[t._v("共"),a("span",[t._v(t._s(t.total))]),t._v("条朋友圈")])]),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:t.onClickCancelSendList}},[t._v("停止群发记录")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return t.init(1,"export")}}},[t._v("导出Excel")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:t.height,data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"内容","show-overflow-tooltip":"","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.content?[e.row.attachments&&e.row.attachments.length>0?a("div",["image"==e.row.attachments[0].msgtype?[a("div",{staticClass:"flex-align-center"},[a("img",{staticStyle:{width:"60px","margin-right":"6px"},attrs:{src:e.row.attachments[0].image.pic_url,alt:""}}),t._v(" "),a("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.content,disabled:e.row.content&&e.row.content.length<20,placement:"top"}},[a("div",{staticClass:"clampTwo contentCss"},[t._v(t._s(e.row.content?e.row.content:"-"))])])],1)]:"video"==e.row.attachments[0].msgtype?[a("div",{staticClass:"flex-align-center"},[a("div",{staticClass:"flex-column flex-align-jus-center",staticStyle:{"margin-right":"6px"},on:{click:function(i){return t.onClickShowVideo(e.row.attachments[0].video.pic_url)}}},[a("img",{staticClass:"pointer",staticStyle:{width:"60px",height:"60px"},attrs:{src:i("qWwJ")}}),t._v(" "),e.row.attachments[0].video.pic_url?a("el-button",{attrs:{type:"text",size:"mini"}},[t._v("查看视频")]):t._e()],1),t._v(" "),a("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.content,disabled:e.row.content&&e.row.content.length<20,placement:"top"}},[a("div",{staticClass:"clampTwo contentCss"},[t._v(t._s(e.row.content?e.row.content:"-"))])])],1)]:"link"==e.row.attachments[0].msgtype?[a("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.content,disabled:e.row.content&&e.row.content.length<20,placement:"top"}},[a("div",{staticClass:"clampTwo contentCss"},[t._v(t._s(e.row.content?e.row.content:"-"))])]),t._v(" "),a("div",{staticClass:"flex-align-center tMar5"},[a("img",{staticStyle:{width:"30px",height:"30px","margin-right":"6px","flex-shrink":"0"},attrs:{src:e.row.attachments[0].link.pic_url,alt:""}}),t._v(" "),a("span",{staticStyle:{"line-height":"16px",cursor:"pointer","font-size":"12px"}},[a("a",{staticClass:"c-676C97",attrs:{href:e.row.attachments[0].link.url,target:"_blank"}},[a("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.attachments[0].link.title,disabled:e.row.attachments[0].link.title&&e.row.attachments[0].link.title.length<34,placement:"top"}},[a("span",{staticClass:"clampTwo"},[t._v(t._s(e.row.attachments[0].link.title?e.row.attachments[0].link.title:"-"))])])],1)])])]:"radar"==e.row.attachments[0].msgtype?[a("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.content,disabled:e.row.content&&e.row.content.length<20,placement:"top"}},[a("div",{staticClass:"clampTwo contentCss"},[t._v(t._s(e.row.content?e.row.content:"-"))])]),t._v(" "),a("div",{staticClass:"flex-align-center tMar5"},[a("img",{staticStyle:{width:"40px",height:"40px","margin-right":"6px","flex-shrink":"0"},attrs:{src:e.row.attachments[0].radar.pic_url,alt:""}}),t._v(" "),a("div",[a("div",{staticClass:"phoneLinkTitle",staticStyle:{"font-size":"13px"}},[t._v(t._s(e.row.attachments[0].radar.title))]),t._v(" "),a("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.attachments[0].radar.description,disabled:e.row.attachments[0].radar.description&&e.row.attachments[0].radar.description.length<34,placement:"top"}},[a("div",{staticClass:"phoneLinkDesc clampTwo",staticStyle:{"font-size":"11px"}},[t._v(t._s(e.row.attachments[0].radar.description))])])],1)])]:[t._v("-")]],2):a("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.content,disabled:e.row.content&&e.row.content.length<31,placement:"top"}},[a("div",{staticClass:"clampTwo contentCss"},[t._v(t._s(e.row.content?e.row.content:"-"))])])]:e.row.content?[t._v("-")]:[e.row.attachments&&e.row.attachments.length>0?["image"==e.row.attachments[0].msgtype?[a("img",{staticStyle:{width:"60px",height:"100%"},attrs:{src:e.row.attachments[0].image.pic_url,alt:""}})]:"video"==e.row.attachments[0].msgtype?[a("div",{staticClass:"flex-column flex-align-jus-center",staticStyle:{width:"60px"},on:{click:function(i){return t.onClickShowVideo(e.row.attachments[0].video.pic_url)}}},[a("img",{staticClass:"pointer",staticStyle:{width:"60px",height:"60px"},attrs:{src:i("qWwJ")}}),t._v(" "),e.row.attachments[0].video.pic_url?a("el-button",{attrs:{type:"text",size:"mini"}},[t._v("查看视频")]):t._e()],1)]:"link"==e.row.attachments[0].msgtype?[a("div",{staticClass:"flex-align-center"},[a("img",{staticStyle:{width:"30px",height:"30px","margin-right":"6px"},attrs:{src:e.row.attachments[0].link.pic_url,alt:""}}),t._v(" "),a("span",{staticStyle:{"line-height":"16px",cursor:"pointer"}},[a("a",{staticClass:"c-676C97",attrs:{href:e.row.attachments[0].link.url,target:"_blank"}},[a("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.attachments[0].link.title,disabled:e.row.attachments[0].link.title&&e.row.attachments[0].link.title.length<34,placement:"top"}},[a("span",{staticClass:"clampTwo"},[t._v(t._s(e.row.attachments[0].link.title?e.row.attachments[0].link.title:"-"))])])],1)])])]:"radar"==e.row.attachments[0].msgtype?[a("div",{staticClass:"flex-align-center"},[a("img",{staticStyle:{width:"40px",height:"40px","margin-right":"6px","flex-shrink":"0"},attrs:{src:e.row.attachments[0].radar.pic_url,alt:""}}),t._v(" "),a("div",[a("div",{staticClass:"phoneLinkTitle",staticStyle:{"font-size":"13px"}},[t._v(t._s(e.row.attachments[0].radar.title))]),t._v(" "),a("el-tooltip",{staticClass:"disinblock",attrs:{content:e.row.attachments[0].radar.description,disabled:e.row.attachments[0].radar.description&&e.row.attachments[0].radar.description.length<34,placement:"top"}},[a("div",{staticClass:"phoneLinkDesc clampTwo",staticStyle:{"font-size":"11px"}},[t._v(t._s(e.row.attachments[0].radar.description))])])],1)])]:[t._v("-")]]:[t._v("-")]]]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name","min-width":"120",label:"朋友圈主题",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"模式",align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("div",[t._v(t._s(1==i.operate_type?"单个企微主体":"多个企微主体"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"朋友圈类型","min-width":"120",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(1==e.row.filter_type?"企业发表":2==e.row.filter_type?"个人发表":""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"con_type","min-width":"100",label:"类别","show-overflow-tooltip":"",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"creator",label:"创建人",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间","min-width":"110","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[a("div",{class:["flex-align-jus-center","pointer","updated_at"==t.sort_field?"sortFieldStyle":""],on:{click:function(e){return t.sortFieldEvent("updated_at")}}},[t._v("\n 创建时间\n "),a("i",{staticClass:"el-icon-caret-bottom"})])]},proxy:!0},{key:"default",fn:function(e){return[a("div",{class:"updated_at"==t.sort_field?"sortFieldStyle":""},[a("div",[t._v(t._s(e.row.updated_at.split(" ")[0]))]),t._v(" "),a("div",[t._v(t._s(e.row.updated_at.split(" ")[1]))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"发送时间","min-width":"110","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[a("div",{class:["flex-align-jus-center","pointer","send_time"==t.sort_field?"sortFieldStyle":""],on:{click:function(e){return t.sortFieldEvent("send_time")}}},[t._v("\n 发送时间\n "),a("i",{staticClass:"el-icon-caret-bottom"})])]},proxy:!0},{key:"default",fn:function(e){return[a("div",[a("div",[t._v(t._s(1==e.row.send_type?"立即发送":2==e.row.send_type?"定时发送":""))]),t._v(" "),e.row.send_time?a("div",{class:"send_time"==t.sort_field?"sortFieldStyle":""},[a("div",[t._v(t._s(e.row.send_time.split(" ")[0]))]),t._v(" "),a("div",[t._v(t._s(e.row.send_time.split(" ")[1]))])]):t._e()])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"published_count","min-width":"100",label:"已发送人数","show-overflow-tooltip":"",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"unpublished_count","min-width":"100",label:"未发送人数","show-overflow-tooltip":"",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"发送状态",width:"140",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("div",{staticClass:"status-wrap"},[-1==i.status?a("span",{staticClass:"c-666"},[t._v("发送失败")]):1==i.status?a("span",{staticClass:"c-FFB055"},[t._v("待发送")]):2==i.status?a("span",{staticClass:"c-448AFF"},[t._v("正在发送中")]):3==i.status?a("span",{staticClass:"c-F03F5C"},[t._v("待客服确认")]):4==i.status?a("span",{staticClass:"c-58BCA6"},[t._v("发送完成")]):5==i.status?a("span",{staticClass:"c-757D9C"},[t._v("已停止发送")]):a("span",[t._v("-")]),t._v(" "),i.err_msg?[i.err_msg.length>9?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"left",content:i.err_msg}},[a("div",{staticClass:"c-666 reason"},[t._v(t._s(i.err_msg))])]):a("div",{staticClass:"c-666",attrs:{title:i.err_msg}},[t._v(t._s(i.err_msg))])]:t._e()],2)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",align:"center",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex",staticStyle:{"justify-content":"center","flex-wrap":"wrap"}},[a("el-popconfirm",{attrs:{title:"猎羽将提醒未发送朋友圈的"+e.row.unpublished_count+"名员工发朋友圈,是否确认提醒 ?"},on:{confirm:function(i){return t.remindClick(e.row.rule_id)}}},[1==e.row.status||2==e.row.status||3==e.row.status?a("div",{staticClass:"c-00B38A pointer table_button lMar5",attrs:{slot:"reference"},slot:"reference"},[t._v("提醒")]):t._e()]),t._v(" "),1==e.row.status?a("div",{class:["pointer","table_button","lMar5",1==e.row.enable?"c-FF604D":"c-007AFF"],on:{click:function(i){return t.enableForbidden(e.row)}}},[t._v("\n "+t._s(1==e.row.enable?"禁用":0==e.row.enable?"启用":"")+"\n ")]):t._e(),t._v(" "),a("div",{staticClass:"c-00B38A pointer table_button lMar5",on:{click:function(i){1==e.row.status?t.createFriCircle("edit",e.row.rule_id):t.goDetail(e.row.rule_id)}}},[t._v("详情")]),t._v(" "),a("el-popconfirm",{attrs:{title:"确定复制【"+e.row.name+"】朋友圈?"},on:{confirm:function(i){return t.copyDetail(e.row)}}},[a("div",{staticClass:"lMar5 c-00B38A pointer table_button",attrs:{slot:"reference"},slot:"reference"},[t._v("复制")])]),t._v(" "),3==e.row.status?a("div",{staticClass:"pointer table_button c-FF604D lMar5",on:{click:function(i){return t.onClickCancelSend(e.row)}}},[t._v("\n 停止群发\n ")]):t._e()],1)]}}])})],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination"},[a("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(" "),a("el-drawer",{attrs:{size:t.drawerSize,visible:t.detialDrawer,"with-header":!1},on:{"update:visible":function(e){t.detialDrawer=e}}},[a("detial",{attrs:{rule_id:t.rule_id,detialFlag:t.detialFlag},on:{changeDrawerSize:t.changeDrawerSize,closeDrawer:t.closeDrawer}})],1),t._v(" "),a("el-drawer",{attrs:{size:"1100px",visible:t.editFlag,"with-header":!1},on:{"update:visible":function(e){t.editFlag=e}}},[t.editFlag?a("createFriendsCircle",{attrs:{is_copy:t.is_copy,title:t.rule_id?"朋友圈详情":"新建朋友圈",rule_id:t.rule_id},on:{close:t.detailClose}}):t._e()],1),t._v(" "),a("videoDialog",{attrs:{dialogVisible:t.videoDialogVisible,link:t.currentVideoLink},on:{close:t.onCloseVideo}}),t._v(" "),a("cancelSendListDialog",{attrs:{dialogVisible:t.cancelSendDialogVisible,listType:t.cancelSendListType},on:{close:t.onCloseCancelSendDialog}})],1)},staticRenderFns:[]};var D={components:{fcList:c,QWfc:i("VU/8")(L,S,!1,function(t){i("Kiba")},"data-v-5895b319",null).exports},data:function(){return{loading:!1,type:2}},created:function(){},methods:{changeType:function(t){this.type=t}}},U={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"}]},[i("div",{staticClass:"topTagBox flex"},[i("div",{staticClass:"left flex-align-center"},[i("div",{class:["tagItem",2==t.type?"tagItem_active":""],on:{click:function(e){return t.changeType(2)}}},[t._v("企微朋友圈")]),t._v(" "),i("div",{class:["tagItem",1==t.type?"tagItem_active":""],on:{click:function(e){return t.changeType(1)}}},[t._v("朋友圈发布记录")])]),t._v(" "),i("div",{staticClass:"right f14 c-F03F5C flex"},[t._v("\n 每位客户的朋友圈每天最多可展示3条同一成员发布的朋友圈内容\n "),t._v(" "),i("instructions",{staticStyle:{"margin-left":"20px"},attrs:{doc:"customerFriendsCircle"}})],1)]),t._v(" "),2==t.type?i("QWfc"):t._e(),t._v(" "),1==t.type?i("fcList"):t._e()],1)},staticRenderFns:[]};var T=i("VU/8")(D,U,!1,function(t){i("3+6R")},"data-v-2f97df9a",null);e.default=T.exports},JMcU:function(t,e){},Kiba:function(t,e){},Qdvd:function(t,e){},SkW7:function(t,e){},W7TB:function(t,e){},XdcG:function(t,e,i){"use strict";var a=i("//Fk"),s=i.n(a),n=i("Xxa5"),r=i.n(n),l=i("mvHQ"),o=i.n(l),c=i("exGp"),d=i.n(c),_=i("Gu7T"),p=i.n(_),u={components:{selfInput:i("McOJ").a},props:["partUser","partDepart"],data:function(){return{loading:!1,visible:!1,userList:[],new_userList:[],userTotal:"",userTotal_new:"",showSelectUsers_val:"",searchWord:"",chooseAllList:[],departList:[],userListRight:[],resetFlag:!1,input_keyword:""}},created:function(){this.init()},methods:{userSearch:function(){if(this.fuzzySearchChoose(),""==this.input_keyword)return this.userTotal_new="",void(this.new_userList=[]);var t=this.input_keyword.split(" ");0==(t=t.filter(function(t){return""!=t})).length&&(t=[""]);var e=[],i=0;this.userList.forEach(function(i){var a=i.user_list.filter(function(e){var i=!1;return t.forEach(function(t){i||(i=e.name&&-1!=e.name.indexOf(t))}),i});if(a&&a.length>0){var s=JSON.parse(o()(i));s.user_list=a,e.push(s)}}),this.new_userList=e,this.new_userList.forEach(function(t){i+=t.user_list.length}),this.userTotal_new=i},fuzzySearchChoose:function(){var t=this,e=!0;this.userList.forEach(function(i,a){i.user_list.forEach(function(t){0==t.choose&&(e=!1)}),e?t.$set(t.userList[a],"choose",!0):t.$set(t.userList[a],"choose",!1)}),this.chooseLeftToRight()},clearAll:function(){this.departList=[],this.userListRight=[],this.userList.forEach(function(t){t.choose=!1,t.user_list.forEach(function(t){t.choose=!1})})},deledepartItem:function(t,e){var i=this;this.departList.splice(t,1),this.userList.forEach(function(t,a){t.department_id==e&&i.switchDepartChoose(a)})},deleuserItem:function(t,e,i){var a=this;this.userListRight.splice(t,1),this.userList.forEach(function(t,s){t.department_id==i&&t.user_list.forEach(function(t,i){t.user_id==e&&a.$set(t,"choose",!1)})})},switchZhan:function(t){var e=this.userList[t];e.departZhan=!e.departZhan,this.$set(this.userList,t,e)},switchDepartChoose:function(t,e){var i=this,a=e?this.new_userList:this.userList,s=a[t];s.choose=!s.choose,this.$set(a,t,s),s.user_list.forEach(function(e,s){a[t].choose?i.$set(e,"choose",!0):i.$set(e,"choose",!1)}),this.chooseLeftToRight()},switchUserChoose:function(t,e,i){var a=i?this.new_userList:this.userList,s=a[e].user_list[t];s.choose=!s.choose,this.$set(a[e].user_list,t,s);var n=!0;a[e].user_list.forEach(function(t){0==t.choose&&(n=!1)}),n?this.$set(a[e],"choose",!0):this.$set(a[e],"choose",!1),this.chooseLeftToRight()},chooseLeftToRight:function(){var t=this;this.userListRight=[],this.departList=[],this.userList.forEach(function(e){e.choose?(t.userListRight&&t.userListRight.length>0&&e.user_list.forEach(function(i){t.userListRight.forEach(function(a,s){a.user_id==i.user_id&&e.department_id==a.department_id&&t.userListRight.splice(s,1)})}),t.departList.push(e)):(t.departList&&t.departList.length>0&&t.departList.forEach(function(i,a){i.department_id==e.department_id&&t.departList.splice(a,1)}),e.user_list.forEach(function(i){i.choose?t.userListRight.push(i):t.departList&&t.departList.length>0&&t.userListRight.forEach(function(a,s){a.user_id==i.user_id&&e.department_id==a.department_id&&t.userListRight.splice(s,1)})}))})},init:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.userList,{params:{}}).then(function(e){e=e.data;if(t.loading=!1,e&&0==e.errno){if(t.userList=e.rst.list,t.userList.forEach(function(t){t.departZhan=!0,t.choose=!1,t.user_list.forEach(function(e){e.choose=!1,e.department_id=t.department_id})}),t.userTotal=e.rst.count,t.partUser||t.partDepart){if(t.partDepart)t.partDepart.split(",").forEach(function(e){t.userList.forEach(function(i,a){i.department_id==e&&(t.showSelectUsers_val+=i.department_name+",",t.switchDepartChoose(a))})});if(t.partUser)t.partUser.split(",").forEach(function(e){t.userList.forEach(function(i,a){i.user_list.forEach(function(i,s){e==i.user_id&&(t.showSelectUsers_val+=i.name+",",t.switchUserChoose(s,a))})})})}}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})},save:function(){var t=[],e=[],i="",a="";this.showSelectUsers_val="",this.departList.forEach(function(e){t.push(e.department_id),a+=e.department_name+","}),this.userListRight.forEach(function(t){e.push(t.user_id),i+=t.name+","}),this.$emit("getSenderList",e.toString()),this.$emit("getDepartList",t.toString()),this.showSelectUsers_val=i+a,this.visible=!1}}},h={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:"conBox"},[i("el-popover",{attrs:{"append-to-body":"",trigger:"click"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[i("div",{staticClass:"popCon"},[i("div",{staticClass:"con_left"},[i("self-input",{staticStyle:{"margin-top":"0","margin-bottom":"4px"},attrs:{reset:t.resetFlag,hasLabel:!1,inputFlag:!0,width:"380px"},on:{inputChange:function(e){t.input_keyword=e,t.userSearch()}}}),t._v(" "),i("div",{staticStyle:{"font-size":"12px",color:"#f9a527"}},[t._v("添加 空格 可进行多成员搜索")]),t._v(" "),i("div",{staticClass:"userTotal"},[t._v("全部成员: ("+t._s(t.userTotal_new?t.userTotal_new:t.userTotal)+")")]),t._v(" "),i("div",{staticClass:"userTree"},[""!==t.input_keyword&&0==t.userTotal_new?[i("div",{staticClass:"fWeight600 f14 text-center"},[t._v("暂无搜索到成员")])]:t._l(t.new_userList&&t.new_userList.length>0?t.new_userList:t.userList,function(e,a){return i("div",{key:e.department_id,staticClass:"parentBox"},[i("div",{staticClass:"departInfo",on:{click:function(e){return e.stopPropagation(),t.switchZhan(a)}}},[i("i",{class:[e.departZhan?"el-icon-caret-top":"el-icon-caret-bottom","c-46a7ff"]}),t._v(" "),i("div",[i("i",{staticClass:"el-icon-s-cooperation c-46a7ff"}),t._v(" "),i("span",[t._v(t._s(e.department_name))])]),t._v(" "),i("div",{staticClass:"lMarauto",on:{click:function(e){return e.stopPropagation(),t.switchDepartChoose(a,t.new_userList&&t.new_userList.length>0?"new_userList":"")}}},[e.choose?i("i",{staticClass:"el-icon-circle-check pointer c-00b38a f17"}):i("span",{staticClass:"checkNo"})])]),t._v(" "),i("el-collapse-transition",[e.departZhan?i("div",t._l(e.user_list,function(e,s){return i("div",{key:s+e.user_id,staticClass:"userInfo"},[i("img",{staticStyle:{width:"40px","margin-right":"10px"},attrs:{src:e.avatar,alt:""}}),t._v(" "),i("div",[i("div",{staticClass:"c-333"},[t._v(t._s(e.name))]),t._v(" "),i("div",{staticClass:"f12"},[t._v("\n 部门:\n "),t._l(e.department_list,function(e){return i("span",{staticClass:"f12 c-ddd"},[t._v(t._s(e))])})],2)]),t._v(" "),i("div",{staticClass:"lMarauto",on:{click:function(e){return e.stopPropagation(),t.switchUserChoose(s,a,t.new_userList&&t.new_userList.length>0?"new_userList":"")}}},[e.choose?i("i",{staticClass:"el-icon-circle-check pointer c-00b38a f17"}):i("span",{staticClass:"checkNo"})])])}),0):t._e()])],1)})],2)],1),t._v(" "),i("div",{staticClass:"con_right"},[i("div",{staticClass:"c-000 fWeight600 f14"},[t._v("已选择的成员")]),t._v(" "),i("div",{staticClass:"flex tMar6"},[i("span",{staticClass:"clear",on:{click:t.clearAll}},[t._v("全部清空")]),t._v(" "),i("span",[t._v("已选择"+t._s(t.departList&&t.departList.length)+"个部门和"+t._s(t.userListRight&&t.userListRight.length)+"人")])]),t._v(" "),i("div",{staticClass:"right_scroll"},[t._l(t.departList,function(e,a){return i("div",{key:a+e.department_id,staticClass:"chooseNape"},[i("i",{staticClass:"el-icon-s-cooperation c-46a7ff rMar10"}),t._v(" "),i("span",[t._v(t._s(e.department_name))]),t._v(" "),i("i",{staticClass:"el-icon-close lMarauto pointer",on:{click:function(i){return t.deledepartItem(a,e.department_id)}}})])}),t._v(" "),t._l(t.userListRight,function(e,a){return i("div",{key:a+e.user_id,staticClass:"chooseNape"},[i("img",{staticStyle:{width:"40px","margin-right":"10px"},attrs:{src:e.avatar,alt:""}}),t._v(" "),i("div",[i("div",{staticClass:"c-333"},[t._v(t._s(e.name))]),t._v(" "),i("div",{staticClass:"f12"},[t._v("\n 部门:\n "),t._l(e.department_list,function(e){return i("span",{staticClass:"f12 c-ddd"},[t._v(t._s(e))])})],2)]),t._v(" "),i("i",{staticClass:"el-icon-close lMarauto pointer",on:{click:function(i){return t.deleuserItem(a,e.user_id,e.department_id)}}})])})],2),t._v(" "),i("div",{staticClass:"footer"},[i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){t.visible=!1}}},[t._v("取消")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.save()}}},[t._v("确定")])],1)])]),t._v(" "),i("div",{attrs:{slot:"reference"},slot:"reference"},[i("el-input",{attrs:{placeholder:"请选择",size:"mini"},model:{value:t.showSelectUsers_val,callback:function(e){t.showSelectUsers_val=e},expression:"showSelectUsers_val"}},[i("template",{slot:"append"},[i("i",{staticClass:"el-icon-arrow-down pointer"})])],2)],1)])],1)},staticRenderFns:[]};var m=i("VU/8")(u,h,!1,function(t){i("pOcQ")},"data-v-131ef890",null).exports,v=i("UOPL"),g=i("zifI"),f=i("sPH2"),y=i("gzej"),w=i("34d2"),C=i("7Sep"),b={name:"conTwo",props:["conType","reBackData","disabled"],components:{radarEntrance:w.a,selectMaterials:C.a},data:function(){return{imageFileList:[],coverFileList:[],videoFileList:{},loading:!1,dialogImageUrl:!1,imgVisible:!1,imgFileData:{admin_id:this.$cookie.getCookie("admin_id"),ttl:this.$cookie.getCookie("ttl"),sign:this.$cookie.getCookie("sign"),corpid:this.$localSelfStore.getLocal("defaultCorp")&&"undefined"!=this.$localSelfStore.getLocal("defaultCorp")?JSON.parse(this.$localSelfStore.getLocal("defaultCorp")).corpid:"",type:1},coverVisible:!1,dialogcoverUrl:"",videoVisible:!1,videoFileData:{admin_id:this.$cookie.getCookie("admin_id"),ttl:this.$cookie.getCookie("ttl"),sign:this.$cookie.getCookie("sign"),corpid:this.$localSelfStore.getLocal("defaultCorp")&&"undefined"!=this.$localSelfStore.getLocal("defaultCorp")?JSON.parse(this.$localSelfStore.getLocal("defaultCorp")).corpid:"",type:3},imgUrls:[],videoUrls:{msgtype:"video",video:{media_id:"",pic_url:""}},linkUrl:{msgtype:"link",link:{title:"",url:"",media_id:"",pic_url:""}},attachments:[],fromRebackGetInfo:!0,videoFlag:!1,hoverInFlag:!1,radarIds:[],radar_attach:[],selectMaterialsVisible:!1,selectMaterialsSource:""}},created:function(){var t=this;this.$nextTick(function(){t.rebackInit()})},methods:{radarShow:function(){var t=this;this.$nextTick(function(){t.radarids_reset(),t.$refs.radarEntranceRef.dialogVisible=!0})},radarids_reset:function(){var t=this;this.radarIds=[],this.radar_attach.forEach(function(e){"radar"==e.msgtype&&t.radarIds.push(e.radar.radar_id)})},getFinallyAttach:function(t){this.attachments=[],0==this.conType?this.attachments=this.imgUrls:1==this.conType?this.attachments.push(this.videoUrls):2==this.conType?this.attachments.push(this.linkUrl):3==this.conType&&(this.attachments=this.radar_attach),this.$parent.createFriendsCircleSend(this.attachments)},rebackInit:function(){var t=this,e=this.reBackData;this.imageFileList=e.imageFileList,this.coverFileList=e.coverFileList,this.videoFileList=e.videoFileList?e.videoFileList:{},this.imageFileList&&(this.imgUrls=[],this.imageFileList.forEach(function(e){t.imgUrls.push({msgtype:"image",image:{media_id:e.media_id,pic_url:e.url}})})),e.videoFileList.media_id&&(this.videoUrls.video.media_id=this.videoFileList.media_id),e.videoFileList.url&&(this.videoUrls.video.pic_url=this.videoFileList.url,this.videoFlag=!0),e.linkUrl.title&&(this.linkUrl.link.title=e.linkUrl.title),e.linkUrl.url&&(this.linkUrl.link.url=e.linkUrl.url),e.linkUrl.media_id&&(this.linkUrl.link.media_id=e.linkUrl.media_id),e.linkUrl.pic_url&&(this.linkUrl.link.pic_url=e.linkUrl.pic_url)},handleExceed:function(t){0==this.conType?this.$message({message:"最多上传9张图片",type:"warning"}):2==this.conType&&this.$message({message:"最多上传1张图片",type:"warning"})},uploadSuccess:function(t,e,i){var a=this;0==t.errno?(0==this.conType?(this.imgUrls=[],i.forEach(function(t){t.media_id?a.imgUrls.push({msgtype:"image",image:{media_id:t.media_id,pic_url:t.url}}):a.imgUrls.push({msgtype:"image",image:{media_id:t.response.rst.material_id,pic_url:t.response.rst.url}})}),this.$loading(this.$loadingConfig).close()):1==this.conType?(i.forEach(function(t){var e=a.videoUrls.video;t.media_id?(e.media_id=t.media_id,e.pic_url=t.url):(e.media_id=t.response.rst.material_id,e.pic_url=t.response.rst.url)}),this.videoFlag=!0,this.$loading(this.$loadingConfig).close()):2==this.conType&&(this.linkUrl.link.media_id=t.rst.material_id,this.linkUrl.link.pic_url=t.rst.url,this.handleSetCoverFileList(),this.$loading(this.$loadingConfig).close()),this.fromRebackGetInfo=!1):this.$message({message:t.err,type:"warning"})},uploadFail:function(){this.$message({message:"上传失败",type:"fail"})},handleRemove:function(t,e){if("success"==t.status)if(0==this.conType){var i=t.media_id||t.response.rst.material_id,a=[];this.imgUrls.forEach(function(t){a.push(t.image.media_id)});var s=a.indexOf(i);this.imgUrls.splice(s,1),this.handleSetImageFileList()}else 2==this.conType&&(this.linkUrl.link.media_id="",this.linkUrl.link.pic_url="",this.handleSetCoverFileList())},handleSee:function(t){0==this.conType?(this.dialogImageUrl=t.url,this.imgVisible=!0):2==this.conType&&(this.dialogcoverUrl=t.url,this.coverVisible=!0)},beforeUploadUpload:function(t){this.$loading(this.$loadingConfig)},onClickSelectMaterials:function(t){return this.selectMaterialsSource=t,"TP"==this.selectMaterialsSource&&this.imgUrls&&9==this.imgUrls.length?(this.handleExceed(),!1):"TWLJ"==this.selectMaterialsSource&&this.linkUrl&&this.linkUrl.link.media_id?(this.handleExceed(),!1):void(this.selectMaterialsVisible=!0)},selectMaterialsConfirm:function(t){t&&t.url?("TP"==this.selectMaterialsSource?(this.imgUrls.push({msgtype:"image",image:{media_id:t.material_id,pic_url:t.url}}),this.handleSetImageFileList()):"TWLJ"==this.selectMaterialsSource&&(this.linkUrl.link.media_id=t.material_id,this.linkUrl.link.pic_url=t.url,this.handleSetCoverFileList()),this.selectMaterialsVisible=!1):this.$message({message:"所选素材不可用,请重新选择!",type:"warning"})},handleSetImageFileList:function(){var t=this;return d()(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.imageFileList=[],e.next=3,t.$nextTick();case 3:t.imgUrls.forEach(function(e){t.imageFileList.push({media_id:e.image.media_id,url:e.image.pic_url})});case 4:case"end":return e.stop()}},e,t)}))()},handleSetCoverFileList:function(){var t=this;return d()(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.coverFileList=[],e.next=3,t.$nextTick();case 3:t.linkUrl.link.media_id&&t.coverFileList.push({media_id:t.linkUrl.link.media_id,url:t.linkUrl.link.pic_url});case 4:case"end":return e.stop()}},e,t)}))()}}},k={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"}]},[i("div",{staticClass:"conBcg"},[t.disabled?i("div",{staticClass:"disabled-wrap"}):t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:0==t.conType,expression:"conType==0"}],staticClass:"friendCircleUploader"},[i("el-upload",{key:"imgUpload",staticClass:"imgUploader",attrs:{multiple:"",action:t.URL.BASEURL+t.URL.material_upload,data:t.imgFileData,"file-list":t.imageFileList,name:"material_file",accept:".jpg,.jpeg,.png","list-type":"picture-card",limit:9,"before-upload":t.beforeUploadUpload,"on-preview":t.handleSee,"on-remove":t.handleRemove,"on-success":t.uploadSuccess,"on-error":t.uploadFail,"on-exceed":t.handleExceed}},[i("div",[i("div",{staticClass:"el-icon-circle-plus f16"}),t._v(" "),i("div",{staticClass:"f14"},[t._v("添加图片")])])]),t._v(" "),i("div",{staticClass:"flex-align-center",staticStyle:{"margin-top":"10px"}},[i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.onClickSelectMaterials("TP")}}},[t._v("选择素材")]),t._v(" "),i("div",{staticClass:"uploadImgHint",staticStyle:{margin:"0"}},[t._v("可直接从素材库选择图片。")])],1),t._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:t.imgVisible},on:{"update:visible":function(e){t.imgVisible=e}}},[i("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.conType,expression:"conType==1"}],staticClass:"friendCircleUploader",staticStyle:{display:"flex","align-items":"center"}},[t.videoFlag?i("div",{staticStyle:{width:"100px",height:"100px",position:"relative","margin-right":"10px"},on:{mouseover:function(e){t.hoverInFlag=!0},mouseleave:function(e){t.hoverInFlag=!1}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.hoverInFlag,expression:"hoverInFlag"}],staticClass:"videoHoverCss"},[i("i",{staticClass:"el-icon-zoom-in rMar10",on:{click:function(e){t.videoVisible=!0}}}),t._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(e){t.videoFlag=!1,t.hoverInFlag=!1}}})]),t._v(" "),i("video",{attrs:{src:t.videoUrls.video.pic_url,width:"100px",height:"100px"}})]):t._e(),t._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:t.videoVisible,width:"20%"},on:{"update:visible":function(e){t.videoVisible=e}}},[i("video",{attrs:{src:t.videoUrls.video.pic_url,width:"100%",controls:""}})]),t._v(" "),i("el-upload",{key:"videoUpload",staticClass:"imgUploader",attrs:{action:t.URL.BASEURL+t.URL.material_upload,data:t.videoFileData,name:"material_file",accept:".mp4","list-type":"picture-card","show-file-list":!1,"before-upload":t.beforeUploadUpload,"on-success":t.uploadSuccess,"on-error":t.uploadFail}},[i("div",[i("div",{staticClass:"el-icon-circle-plus f16"}),t._v(" "),i("div",{staticClass:"f14"},[t._v("添加视频")])])])],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:2==t.conType,expression:"conType==2"}],staticStyle:{width:"100%"}},[i("div",{staticClass:"box"},[i("div",{staticClass:"itemBox"},[t._m(0),t._v(" "),i("div",{staticClass:"conEle textInput"},[i("el-input",{attrs:{size:"mini",placeholder:"链接地址请以http或https开头",type:"textarea",rows:6},model:{value:t.linkUrl.link.url,callback:function(e){t.$set(t.linkUrl.link,"url",e)},expression:"linkUrl.link.url"}}),t._v(" "),i("i",{directives:[{name:"show",rawName:"v-show",value:t.linkUrl.link.url,expression:"linkUrl.link.url"}],staticClass:"clearButton el-input__icon el-icon-circle-close el-input__clear",on:{click:function(e){e.preventDefault(),t.linkUrl.link.url=""}}})],1)]),t._v(" "),i("div",{staticClass:"itemBox"},[t._m(1),t._v(" "),i("div",{staticClass:"conEle",staticStyle:{width:"62%"}},[i("div",{staticClass:"flex"},[i("el-input",{attrs:{size:"mini",placeholder:"请输入链接标题"},model:{value:t.linkUrl.link.title,callback:function(e){t.$set(t.linkUrl.link,"title",e)},expression:"linkUrl.link.title"}}),t._v(" "),i("span",{staticClass:"font_zj"},[t._v(t._s(t.$getStrBytes(t.linkUrl.link.title))+"/64字节")])],1),t._v(" "),t.$getStrBytes(t.linkUrl.link.title)>64?i("div",{staticClass:"warning_hint f12",staticStyle:{"margin-left":"0"}},[i("i",{staticClass:"el-icon-warning-outline"}),t._v(" 链接标题,最多64个字节,已超出!")]):t._e()])]),t._v(" "),i("div",{staticClass:"itemBox",staticStyle:{"align-items":"flex-start"}},[t._m(2),t._v(" "),i("div",{staticClass:"conEle friendCircleUploader"},[i("el-upload",{key:"coverUpload",staticClass:"imgUploader",attrs:{action:t.URL.BASEURL+t.URL.material_upload,data:t.imgFileData,"file-list":t.coverFileList,name:"material_file",accept:".jpg,.jpeg,.png","list-type":"picture-card",limit:1,"before-upload":t.beforeUploadUpload,"on-preview":t.handleSee,"on-remove":t.handleRemove,"on-success":t.uploadSuccess,"on-error":t.uploadFail,"on-exceed":t.handleExceed}},[i("div",[i("div",{staticClass:"el-icon-circle-plus f16"}),t._v(" "),i("div",{staticClass:"f14"},[t._v("添加封面")])])]),t._v(" "),i("div",{staticClass:"flex-align-center",staticStyle:{"margin-top":"10px"}},[i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.onClickSelectMaterials("TWLJ")}}},[t._v("选择素材")]),t._v(" "),i("div",{staticClass:"uploadImgHint",staticStyle:{margin:"0"}},[t._v("可直接从素材库选择图片。")])],1),t._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:t.coverVisible},on:{"update:visible":function(e){t.coverVisible=e}}},[i("img",{attrs:{width:"100%",src:t.dialogcoverUrl,alt:""}})])],1)])])]),t._v(" "),t.radar_attach&&t.radar_attach.length>0&&3==t.conType?i("div",{staticClass:"flex",staticStyle:{width:"100%"}},[i("div",{staticClass:"phoneLinkCon",staticStyle:{"align-items":"center"}},[t.radar_attach[0].radar.pic_url?i("img",{staticClass:"phoneLinkImg radarImg",attrs:{src:t.radar_attach[0].radar.pic_url,alt:""}}):i("div",{staticClass:"phoneLinkImgNo"},[i("i",{staticClass:"el-icon-link"})]),t._v(" "),i("div",[i("div",{staticClass:"phoneLinkTitle",staticStyle:{"font-size":"13px"}},[t._v(t._s(t.radar_attach[0].radar.name))]),t._v(" "),i("div",{staticClass:"phoneLinkDesc clampTwo",staticStyle:{"font-size":"11px"}},[t._v(t._s(t.radar_attach[0].radar.description))])])]),t._v(" "),i("i",{staticClass:"el-icon-edit-outline pointer",staticStyle:{"margin-left":"auto"},on:{click:t.radarShow}})]):t._e(),t._v(" "),i("radarEntrance",{ref:"radarEntranceRef",attrs:{ids_comeBack:t.radarIds},on:{getRadarAttach:function(e){t.radar_attach=e}}})],1),t._v(" "),i("div",{staticClass:"tips"},[0==t.conType?[t._v("因企业微信限制,图片长宽建议不超过1440x1080,大小不超过10M,最多9张图片")]:t._e(),t._v(" "),1==t.conType?[t._v("因企业微信限制,视频建议不超过1280X720,帧率30FPS,视频码率1.67Mbps,最长不超过30s,最大不超过10MB,最多1个视频")]:t._e()],2),t._v(" "),i("selectMaterials",{attrs:{selectVisible:t.selectMaterialsVisible},on:{cancel:function(e){t.selectMaterialsVisible=!1},selectObj:t.selectMaterialsConfirm}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"txt"},[e("em",[this._v("*")]),this._v("图文链接:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"txt"},[e("em",{staticStyle:{opacity:"0"}},[this._v("*")]),this._v("链接标题:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"txt"},[e("em",[this._v("*")]),this._v("链接封面:")])}]};var x=i("VU/8")(b,k,!1,function(t){i("jm62"),i("w87Y")},"data-v-49c72878",null).exports,L=i("erru"),S=i("xcuB"),D={name:"createFriendsCircle",components:{selfCustomerserviceFC:m,editCon:v.a,welcomEdit:g.a,enterpriseTag:f.a,datePicker:y.a,conTwo:x,selfChannel:L.a,customerServiceCorpV2:S.a},props:["title","rule_id","is_copy","sysMsgCorpid"],data:function(){return{loading:!1,user_id_list:[],fc_type:1,is_for_all:1,customer_filter:0,gender:3,customerMatchCountLoading:!1,isLookCount:!0,msg_count:"",afferent_tag_obj:{tag_id_list:[]},resetFlag:!1,send_type:1,processFlag:!1,send_time:{date:"",time:""},pickerOptions:{disabledDate:function(t){return t<Date.now()-864e5},shortcuts:[{text:"今天",onClick:function(t){t.$emit("pick",new Date)}},{text:"明天",onClick:function(t){var e=new Date;e.setTime(e.getTime()+864e5),t.$emit("pick",e)}},{text:"一周后",onClick:function(t){var e=new Date;e.setTime(e.getTime()+6048e5),t.$emit("pick",e)}}]},content1:"",con_type:0,themeName:"",tag_info:[],department_list:"",sender_list:"",sendStatus:1,partUser:"",partDepart:"",reBackData:{imageFileList:[],videoFileList:{url:"",media_id:""},linkUrl:{url:"",media_id:"",pic_url:"",title:""},coverFileList:[]},operate_type:1,is_operation:1,operator_group_id:"",afferent_multiple_senders:[],multiple_senders:[]}},computed:{isDisabled:function(){return!!this.sysMsgCorpid}},created:function(){this.loading=!1,this.rule_id&&this.editInfo_reback()},methods:{editInfo_reback:function(){var t=this;this.loading=!0;var e={rule_id:this.rule_id};this.sysMsgCorpid&&(e.corpid=this.sysMsgCorpid),this.$axios.get(this.URL.BASEURL+this.URL.FriendsCircleDetial,{params:e}).then(function(e){if(t.loading=!1,(e=e.data)&&0==e.errno){var i=e.rst;if(t.operate_type=e.rst.operate_type?e.rst.operate_type:1,t.is_operation=e.rst.is_operation||0===e.rst.is_operation?e.rst.is_operation:1,t.operator_group_id=e.rst.operator_group_id?e.rst.operator_group_id:"",2==t.operate_type&&0==t.is_operation&&Array.isArray(JSON.parse(e.rst.multiple_senders))){var a=JSON.parse(e.rst.multiple_senders);t.multiple_senders=[].concat(p()(a));var s=[];a.forEach(function(t){t&&t.user_list&&Array.isArray(t.user_list)&&t.user_list.forEach(function(e){s.push({user_id:e,corpid:t.corpid})})}),t.afferent_multiple_senders=[].concat(s)}i.attachments=JSON.parse(i.attachments),t.sendStatus=i.status,t.fc_type=i.filter_type,t.themeName=i.name,t.customer_filter=1==t.operate_type?i.customer_filter:0,t.content1=i.content,t.send_type=2,t.send_time.date=i.send_time.split(" ")[0],t.send_time.time=i.send_time.split(" ")[1],i.attachments&&i.attachments.length>0&&("image"==i.attachments[0].msgtype?(t.con_type=0,i.attachments.forEach(function(e){t.$nextTick(function(){t.reBackData.imageFileList.push({media_id:e.image.media_id,url:e.image.pic_url})})})):"video"==i.attachments[0].msgtype?(t.con_type=1,t.$nextTick(function(){i.attachments.forEach(function(e){t.reBackData.videoFileList.media_id=e.video.media_id,t.reBackData.videoFileList.url=e.video.pic_url})})):"link"==i.attachments[0].msgtype?(t.con_type=2,t.$nextTick(function(){t.reBackData.linkUrl.title=i.attachments[0].link.title,t.reBackData.linkUrl.url=i.attachments[0].link.url,t.reBackData.linkUrl.media_id=i.attachments[0].link.media_id,t.reBackData.linkUrl.pic_url=i.attachments[0].link.pic_url,t.reBackData.coverFileList.push({media_id:i.attachments[0].link.media_id,url:i.attachments[0].link.pic_url})})):"radar"==i.attachments[0].msgtype&&(t.con_type=3,t.$nextTick(function(){t.$refs.conTwo.radar_attach=i.attachments}))),1==t.operate_type&&(i.sender_list||i.department_list?(t.is_for_all=0,t.sender_list=i.sender_list,t.department_list=i.department_list,t.partUser=i.sender_list,t.partDepart=i.department_list):t.is_for_all=1,i.customer_tag_list?i.customer_tag_list.indexOf(",")>-1?(t.afferent_tag_obj.tag_id_list=i.customer_tag_list.split(","),t.tag_info=i.customer_tag_list.split(",")):(t.afferent_tag_obj.tag_id_list.push(i.customer_tag_list),t.tag_info.push(i.customer_tag_list)):(t.afferent_tag_obj.tag_id_list=[],t.tag_info=[])),t.is_copy&&(t.send_type=2,t.send_time={date:"",time:""})}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})},getAttachments:function(){var t=this;this.$nextTick(function(){var e="created";t.rule_id&&(e="edit"),t.$refs.conTwo.getFinallyAttach(e)})},createFriendsCircleSend:function(t){var e=this;return d()(r.a.mark(function i(){var a,s,n;return r.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(""!=e.fc_type){i.next=3;break}return e.$message({message:"请选择朋友圈类型!",type:"warning"}),i.abrupt("return");case 3:if(""!=e.themeName){i.next=6;break}return e.$message({message:"请输入朋友圈主题!",type:"warning"}),i.abrupt("return");case 6:if(1!=e.operate_type){i.next=14;break}if(0!=e.is_for_all||""!=e.department_list||""!=e.sender_list){i.next=10;break}return e.$message({message:"请选择成员!",type:"warning"}),i.abrupt("return");case 10:if(1!=e.customer_filter){i.next=14;break}if(e.tag_info&&(!e.tag_info||0!=e.tag_info.length)){i.next=14;break}return e.$message({message:"请选择客户!",type:"warning"}),i.abrupt("return");case 14:if(2!=e.operate_type){i.next=21;break}if(1!=e.is_operation||e.operator_group_id){i.next=18;break}return e.$message.warning("请选择运营组"),i.abrupt("return");case 18:if(0!=e.is_operation||e.multiple_senders&&e.multiple_senders.length){i.next=21;break}return e.$message.warning("请选择成员"),i.abrupt("return");case 21:if(""!=e.content1){i.next=59;break}if(!(t&&0==t.length||"[]"==t)){i.next=25;break}return e.$message({message:"消息内容1与消息内容2不能同时为空!",type:"warning"}),i.abrupt("return");case 25:if("image"!=(a=t[0].msgtype)){i.next=34;break}if(s=!0,t.forEach(function(t){""==t.image.media_id&&(s=!1)}),s){i.next=32;break}return e.$message({message:"图片为必传内容!",type:"warning"}),i.abrupt("return");case 32:i.next=59;break;case 34:if("video"!=a){i.next=40;break}if(""!=t[0].video.media_id){i.next=38;break}return e.$message({message:"视频为必传内容!",type:"warning"}),i.abrupt("return");case 38:i.next=59;break;case 40:if("link"!=a){i.next=51;break}if(""!=t[0].link.media_id&&""!=t[0].link.url){i.next=44;break}return e.$message({message:"链接为必传内容!",type:"warning"}),i.abrupt("return");case 44:return i.next=46,e.handleConfirmLink(t[0].link.url);case 46:if(i.sent){i.next=49;break}return i.abrupt("return");case 49:i.next=59;break;case 51:if("radar"!=a){i.next=57;break}if(""!=t[0].radar.radar_id){i.next=55;break}return e.$message({message:"雷达id错误!",type:"warning"}),i.abrupt("return");case 55:i.next=59;break;case 57:return e.$message({message:"attachments错误,请找开发人员!",type:"warning"}),i.abrupt("return");case 59:if(""!=e.send_type){i.next=62;break}return e.$message({message:"请选择发布方式!",type:"warning"}),i.abrupt("return");case 62:if(n="",1!=e.send_type){i.next=67;break}n=e.$getDay(0,!0).now,i.next=74;break;case 67:if(""!=e.send_time.date){i.next=70;break}return e.$message({message:"请选择定时发送的日期!",type:"warning"}),i.abrupt("return");case 70:if(""!=e.send_time.time){i.next=73;break}return e.$message({message:"请选择定时发送的时间!",type:"warning"}),i.abrupt("return");case 73:n=e.send_time.date+" "+e.send_time.time;case 74:e.$loading(e.$loadingConfig),e.$axios.post(e.URL.BASEURL+e.URL.createFriendsCircleSend,{rule_id:e.is_copy?"":e.rule_id?e.rule_id:"",name:e.themeName,filter_type:e.fc_type,send_type:e.send_type,send_time:n,sender_list:1==e.operate_type?e.sender_list:"",department_list:1==e.operate_type?e.department_list:"",customer_filter:1==e.operate_type?e.customer_filter:0,customer_tag_list:1==e.operate_type&&e.tag_info&&e.tag_info.length>0?e.tag_info.join(","):"",content:e.content1,attachments:t?o()(t):"",operate_type:e.operate_type,is_operation:1==e.operate_type?0:e.is_operation,operator_group_id:2==e.operate_type&&1==e.is_operation?e.operator_group_id:"",multiple_senders:2==e.operate_type&&0==e.is_operation&&e.multiple_senders.length?o()(e.multiple_senders):""}).then(function(t){t=t.data;e.$loading(e.$loadingConfig).close(),t&&0==t.errno?(e.is_copy||!e.rule_id?e.$emit("close","update_new"):e.$emit("close","update"),e.$message({message:t.err,type:"success"})):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.$loading(e.$loadingConfig).close()});case 76:case"end":return i.stop()}},i,e)}))()},changeEvent:function(){this.isLookCount=!0},tagDefine:function(t){this.isLookCount=!0,t.tag_id_list&&0!=t.tag_id_list.length?this.tag_info=t.tag_id_list:this.tag_info=[]},massMsg_customerMatchCount:function(){var t=this;if(!this.customerMatchCountLoading){this.customerMatchCountLoading=!0;var e={filter_type:this.fc_type,sender_list:this.sender_list,department_list:this.department_list,customer_filter:this.customer_filter,customer_tag_list:this.tag_info&&this.tag_info.length>0?this.tag_info.join(","):""};this.$axios.get(this.URL.BASEURL+this.URL.getcustomerMatchCount,{params:e}).then(function(e){e=e.data;t.customerMatchCountLoading=!1,t.isLookCount=!1,e&&0==e.errno?t.msg_count=e.rst.total:4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.customerMatchCountLoading=!1})}},handleConfirmLink:function(t){var e,i=this;return new s.a((e=d()(r.a.mark(function e(a,s){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.split("?").length>2)){e.next=13;break}return e.prev=2,e.next=5,i.$confirm("请确认链接地址:"+t,"提示",{closeOnClickModal:!1,type:"warning",showCancelButton:!0,confirmButtonText:"确认无误",cancelButtonText:"去修改"});case 5:a(!0),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),a(!1);case 11:e.next=14;break;case 13:a(!0);case 14:case"end":return e.stop()}},e,i,[[2,8]])})),function(t,i){return e.apply(this,arguments)}))},onChangeOperatorGroupId:function(t){this.operator_group_id=t,this.changeEvent()},onChangeMultiCorpUsers:function(t){var e=t.res_format_2;e&&e.length?this.multiple_senders=e.map(function(t){return{corpid:t.corpid,user_list:t.user_list.map(function(t){return t.user_id})}}):this.multiple_senders=[],this.changeEvent()}}},U={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"createMassMsg"},[a("div",{staticClass:"self_drawer_title"},[a("div",{staticClass:"flex"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),a("div",{staticClass:"flex-align-center"},[a("i",{staticClass:"el-icon-close pointer",on:{click:function(e){return t.$emit("close")}}})])]),t._v(" "),t.loading?t._e():a("div",{staticClass:"bg-ffffff",staticStyle:{padding:"15px 30px"}},[a("h3",{staticClass:"bigTitle"},[t._v("\n 朋友圈类型\n "),t.rule_id&&!t.is_copy?[-1==t.sendStatus?a("span",{staticClass:"detail_status c-666 status_fail"},[t._v("发送失败")]):1==t.sendStatus?a("span",{staticClass:"detail_status c-FFB055 status_wait"},[t._v("待发送")]):2==t.sendStatus?a("span",{staticClass:"detail_status c-448AFF status_ing"},[t._v("正在发送中")]):3==t.sendStatus?a("span",{staticClass:"detail_status c-F03F5C status_del"},[t._v("待客服确认")]):4==t.sendStatus?a("span",{staticClass:"detail_status c-58BCA6 status_success"},[t._v("发送完成")]):a("span",[t._v("-")])]:t._e()],2),t._v(" "),a("div",{staticClass:"self-hint",staticStyle:{"margin-top":"10px",width:"730px"}},[a("i",{staticClass:"el-icon-message-solid"}),t._v(" "),1==t.fc_type?a("div",[t._v("管理员可创建客户朋友圈发表任务,成员确认内容后即可发布到朋友圈中,每位客户的朋友圈每个月最多展示4条企业发表的内容电脑上暂不支持发送企微朋友圈。 ")]):t._e(),t._v(" "),2==t.fc_type?a("div",[t._v("管理员可创建客户朋友圈发表任务,成员确认内容后即可发布到朋友圈中,每位客户的朋友圈每天最多展示3条个人发表的内容。电脑上暂不支持发送企微朋友圈。 ")]):t._e()]),t._v(" "),a("div",{staticClass:"regulations"},[t._m(0),t._v(" "),a("div",[a("div",{staticStyle:{display:"flex"}},[a("el-radio",{attrs:{label:1,disabled:t.isDisabled},model:{value:t.fc_type,callback:function(e){t.fc_type=e},expression:"fc_type"}},[t._v("企业发表")]),t._v(" "),a("el-radio",{attrs:{label:2,disabled:t.isDisabled},model:{value:t.fc_type,callback:function(e){t.fc_type=e},expression:"fc_type"}},[t._v("个人发表")])],1)])]),t._v(" "),a("div",{staticClass:"line",staticStyle:{"margin-top":"20px"}}),t._v(" "),a("h3",{staticClass:"bigTitle"},[t._v("编辑朋友圈")]),t._v(" "),a("div",{staticClass:"regulations"},[t._m(1),t._v(" "),a("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"例:活动推送/拉新等",clearable:"",size:"small",disabled:t.isDisabled},model:{value:t.themeName,callback:function(e){t.themeName="string"==typeof e?e.trim():e},expression:"themeName"}}),t._v(" "),a("p",{staticStyle:{"font-size":"13px","line-height":"30px",color:"#f9a527","margin-left":"10px"}},[t._v("*仅作为企业内部人员记录朋友圈摘要,不会推送给客户")])],1),t._v(" "),a("div",{staticClass:"regulations"},[t._m(2),t._v(" "),a("div",{staticStyle:{display:"flex"}},[a("el-radio",{attrs:{label:1,disabled:t.isDisabled},on:{input:t.changeEvent},model:{value:t.operate_type,callback:function(e){t.operate_type=e},expression:"operate_type"}},[t._v("单个企微主体")]),t._v(" "),a("el-radio",{attrs:{label:2,disabled:t.isDisabled},on:{input:t.changeEvent},model:{value:t.operate_type,callback:function(e){t.operate_type=e},expression:"operate_type"}},[t._v("多个企微主体")])],1)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.operate_type,expression:"operate_type == 1"}],staticClass:"regulations"},[t._m(3),t._v(" "),a("div",[a("div",{staticStyle:{display:"flex"}},[a("el-radio",{attrs:{label:1,disabled:t.isDisabled},on:{change:t.changeEvent},model:{value:t.is_for_all,callback:function(e){t.is_for_all=e},expression:"is_for_all"}},[t._v("全部员工")]),t._v(" "),a("el-radio",{attrs:{label:0,disabled:t.isDisabled},on:{change:t.changeEvent},model:{value:t.is_for_all,callback:function(e){t.is_for_all=e},expression:"is_for_all"}},[t._v("部分员工")])],1),t._v(" "),0==t.is_for_all?a("self-customerservice-f-c",{staticStyle:{"margin-top":"10px",width:"300px"},attrs:{partDepart:t.partDepart,partUser:t.partUser},on:{getSenderList:function(e){t.sender_list=e,t.isLookCount=!0},getDepartList:function(e){t.department_list=e,t.isLookCount=!0}}}):t._e()],1)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:2==t.operate_type,expression:"operate_type == 2"}],staticClass:"regulations"},[t._m(4),t._v(" "),a("div",[a("div",{staticStyle:{display:"flex"}},[a("el-radio",{attrs:{label:1,disabled:t.isDisabled},on:{input:t.changeEvent},model:{value:t.is_operation,callback:function(e){t.is_operation=e},expression:"is_operation"}},[t._v("运营组")]),t._v(" "),a("el-radio",{attrs:{label:0,disabled:t.isDisabled},on:{input:t.changeEvent},model:{value:t.is_operation,callback:function(e){t.is_operation=e},expression:"is_operation"}},[t._v("选择成员")])],1),t._v(" "),a("selfChannel",{directives:[{name:"show",rawName:"v-show",value:1==t.is_operation,expression:"is_operation == 1"}],ref:"operatorIdEl",attrs:{afferent_value:t.operator_group_id,title:"",type:"operatorGroup",width:"300px",disabled:t.isDisabled},on:{channelDefine:t.onChangeOperatorGroupId}}),t._v(" "),a("customerServiceCorpV2",{directives:[{name:"show",rawName:"v-show",value:0==t.is_operation,expression:"is_operation == 0"}],attrs:{title:"",width:"300px",afferent_users:t.afferent_multiple_senders,disabled:t.isDisabled},on:{customerDefine:t.onChangeMultiCorpUsers}})],1)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.operate_type,expression:"operate_type == 1"}],staticClass:"regulations"},[t._m(5),t._v(" "),a("div",[a("div",[a("el-radio",{attrs:{label:0,disabled:t.isDisabled},on:{change:t.changeEvent},model:{value:t.customer_filter,callback:function(e){t.customer_filter=e},expression:"customer_filter"}},[t._v("全部客户")]),t._v(" "),a("el-radio",{attrs:{label:1,disabled:t.isDisabled},on:{change:t.changeEvent},model:{value:t.customer_filter,callback:function(e){t.customer_filter=e},expression:"customer_filter"}},[t._v("筛选客户")])],1),t._v(" "),1==t.customer_filter?a("div",{},[a("enterprise-tag",{staticStyle:{margin:"0","margin-top":"10px"},attrs:{title:"",width:"300px",afferent_obj:t.afferent_tag_obj,reset:t.resetFlag,disabled:t.isDisabled},on:{tagDefine:t.tagDefine}})],1):t._e(),t._v(" "),a("div",{staticClass:"customer_all"},[t._v("将群发消息给"+t._s(0==t.customer_filter?"全部客户的":1==t.customer_filter?"筛选客户的":"")+"\n "),t.isLookCount?a("span",{staticClass:"pointer",on:{click:t.massMsg_customerMatchCount}},[t.customerMatchCountLoading?a("i",{staticClass:"el-icon-loading"}):t._e(),t._v("\n "+t._s(t.customerMatchCountLoading?"":"查看")+"\n ")]):a("span",[t._v(t._s(t.msg_count))]),t._v("\n 个客户\n ")])])]),t._v(" "),a("div",{staticClass:"regulations"},[a("label",[t._v("消息内容1")]),t._v(" "),a("div",{staticStyle:{flex:"1"}},[a("div",{staticStyle:{position:"relative"}},[a("el-input",{staticClass:"contentOne",staticStyle:{width:"56%"},attrs:{type:"textarea",rows:"6",autocomplete:"off",placeholder:"请输入消息内容",clearable:"",disabled:t.isDisabled},model:{value:t.content1,callback:function(e){t.content1=e},expression:"content1"}}),t._v(" "),a("span",{staticClass:"f_zj"},[t._v(t._s(t.$getStrBytes(t.content1))+"/2000字节")])],1),t._v(" "),t.$getStrBytes(t.content1)>2e3?a("div",{staticClass:"warning_hint_fc f12",staticStyle:{"margin-left":"0"}},[a("i",{staticClass:"el-icon-warning-outline"}),t._v(" 消息内容1,最多2000个字节,已超出!")]):t._e()])]),t._v(" "),a("div",{staticClass:"regulations"},[a("label",[t._v("消息内容2")]),t._v(" "),a("div",{staticStyle:{flex:"1"}},[a("div",{staticStyle:{display:"flex"}},[a("el-radio",{staticStyle:{width:"60px"},attrs:{label:0,disabled:t.isDisabled},model:{value:t.con_type,callback:function(e){t.con_type=e},expression:"con_type"}},[t._v("图片")]),t._v(" "),a("el-radio",{staticStyle:{width:"60px"},attrs:{label:1,disabled:t.isDisabled},model:{value:t.con_type,callback:function(e){t.con_type=e},expression:"con_type"}},[t._v("视频")]),t._v(" "),a("el-radio",{attrs:{label:2,disabled:t.isDisabled},model:{value:t.con_type,callback:function(e){t.con_type=e},expression:"con_type"}},[t._v("图文链接")]),t._v(" "),a("div",{on:{click:function(e){return t.$refs.conTwo.radarShow()}}},[a("el-radio",{attrs:{label:3,disabled:t.isDisabled},model:{value:t.con_type,callback:function(e){t.con_type=e},expression:"con_type"}},[t._v("智能雷达")])],1)],1),t._v(" "),a("conTwo",{ref:"conTwo",attrs:{conType:t.con_type,reBackData:t.reBackData,disabled:t.isDisabled}})],1)]),t._v(" "),a("div",{staticClass:"line",staticStyle:{"margin-top":"20px"}}),t._v(" "),a("h3",{staticClass:"bigTitle",staticStyle:{"margin-top":"20px"}},[t._v("高级设置: ")]),t._v(" "),a("div",{staticClass:"regulations"},[t._m(6),t._v(" "),a("div",[a("div",{staticStyle:{display:"flex"}},[a("el-radio",{attrs:{label:1,disabled:t.isDisabled},model:{value:t.send_type,callback:function(e){t.send_type=e},expression:"send_type"}},[t._v("立即发送")]),t._v(" "),a("el-radio",{attrs:{label:2,disabled:t.isDisabled},model:{value:t.send_type,callback:function(e){t.send_type=e},expression:"send_type"}},[t._v("定时发送")])],1),t._v(" "),2==t.send_type?a("div",{staticStyle:{"margin-top":"15px"}},[a("el-date-picker",{staticStyle:{width:"160px"},attrs:{"picker-options":t.pickerOptions,size:"small","value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",disabled:t.isDisabled},model:{value:t.send_time.date,callback:function(e){t.$set(t.send_time,"date",e)},expression:"send_time.date"}}),t._v(" "),a("el-time-picker",{staticStyle:{width:"130px"},attrs:{size:"small",format:"HH:mm","value-format":"HH:mm:ss",placeholder:"请输入时间",disabled:t.isDisabled},model:{value:t.send_time.time,callback:function(e){t.$set(t.send_time,"time",e)},expression:"send_time.time"}})],1):t._e()])]),t._v(" "),a("div",{staticClass:"regulations regulations2"},[a("label"),t._v(" "),a("div",{staticClass:"operationProcess"},[a("div",{staticClass:"process-title"},[a("h3",[t._v("企业发表朋友圈的操作流程")]),t._v(" "),a("div",{staticClass:"zhankai",on:{click:function(e){t.processFlag=!t.processFlag}}},[t._v("展开 "),a("i",{class:["el-icon-arrow-down",t.processFlag?"reversalAnimation":""]})])]),t._v(" "),a("p",{staticClass:"process-hint"},[t._v("1、创建完朋友圈后,员工将在企业微信上收到【客户朋友圈】新消息通知")]),t._v(" "),a("p",{staticClass:"process-hint"},[t._v("2、员工点击【客户朋友圈】,点击待发送的朋友圈,可一键将朋友圈内容发表")]),t._v(" "),t.processFlag?a("img",{staticClass:"img",attrs:{src:i("xA3B"),alt:""}}):t._e()])]),t._v(" "),t.isDisabled?t._e():a("div",{staticClass:"flex-align-center lMar100 tMar20"},[a("button",{staticClass:"button",on:{click:t.getAttachments}},[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",[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("发布方式:")])}]};var T=i("VU/8")(D,U,!1,function(t){i("hmBP"),i("SkW7")},"data-v-9c01d754",null);e.a=T.exports},hmBP:function(t,e){},jm62:function(t,e){},pOcQ:function(t,e){},qWwJ:function(t,e){t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjkxMDQ4MDAwMTA1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjY0OTAiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTAwMCIgaGVpZ2h0PSIxMDAwIj48cGF0aCBkPSJNODkwLjUgMjUwLjVsLTIxMy0yMTNDNjUzLjUgMTMuNSA2MjAuOSAwIDU4NyAwSDE2MGMtMzUuMyAwLTY0IDI4LjYtNjQgNjR2ODk2YzAgMzUuMyAyOC43IDY0IDY0IDY0aDcwNGMzNS4zIDAgNjQtMjguNyA2NC02NFYzNDFjMC0zMy45LTEzLjUtNjYuNS0zNy41LTkwLjV6TTY0MCA5MC41TDgzNy41IDI4OEg3MDRjLTM1LjMgMC02NC0yOC43LTY0LTY0VjkwLjV6TTM1MyA1MDIuOWMwLTI0LjUgMjYuNS0zOS45IDQ3LjgtMjcuOGwyNzAuMSAxNTMuMWMyMS42IDEyLjMgMjEuNiA0My40IDAgNTUuN2wtMjcwLjEgMTUzYy0yMS4zIDEyLjEtNDcuOC0zLjMtNDcuOC0yNy44VjUwMi45eiIgcC1pZD0iNjQ5MSIgZmlsbD0iIzAwYjM4YSI+PC9wYXRoPjxwYXRoIGQ9Ik01NjUuNiA2NjkuOWwtMTI0LjggNzAuN2MtMTAuNyA2LTIzLjktMS43LTIzLjktMTMuOVY1ODUuM2MwLTEyLjMgMTMuMi0yMCAyMy45LTEzLjlsMTI0LjggNzAuN2MxMC45IDYuMSAxMC45IDIxLjcgMCAyNy44eiIgcC1pZD0iNjQ5MiIgZmlsbD0iIzAwYjM4YSI+PC9wYXRoPjwvc3ZnPg=="},w87Y:function(t,e){},xA3B:function(t,e,i){t.exports=i.p+"static/img/friendsCircleSend.289dbc8.png"}});
|