企微助手 ,仓库名 短剧

57.06192371caeebc9f27e6.js 15KB

1
  1. webpackJsonp([57],{"3W6a":function(t,e){},"5DZ5":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),n=a.n(s),i=a("exGp"),r=a.n(i),l=a("//Fk"),c=a.n(l),o={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"phonePreview",style:t.phone_width?"width:"+t.phone_width+";top:"+(t.position_top?t.position_top:"120px"):""},[s("img",{staticClass:"phoneImg",attrs:{src:a("5ng9"),alt:""}}),t._v(" "),s("div",{staticClass:"phoneCon self-scrollbar-3"},t._l(t.msgList,function(e,n){return s("div",{key:n,staticClass:"phoneConItem"},[t._m(0,!0),t._v(" "),1==e.msg_type?s("div",{staticClass:"phoneConItemCon"},[s("p",{staticClass:"words"},[t._v(t._s(e.content.content))])]):t._e(),t._v(" "),2==e.msg_type?s("div",{staticClass:"phoneConItemCon"},[s("img",{staticClass:"phoneConImg",attrs:{src:e.content.oss_url}})]):t._e(),t._v(" "),3==e.msg_type?s("div",{staticClass:"phoneConItemCon"},[s("video",{staticStyle:{width:"130px"},attrs:{controls:"controls",src:e.content.oss_url}})]):t._e(),t._v(" "),4==e.msg_type?s("div",{staticClass:"phoneConItemCon"},[s("div",{staticClass:"phoneConItemLink"},[s("div",{staticClass:"phoneLinkCon"},[s("div",{staticClass:"phoneLinkDesc clampTwo"},[t._v(t._s(e.content.oss_url))]),t._v(" "),t._m(1,!0)])])]):t._e(),t._v(" "),5==e.msg_type?s("div",{staticClass:"phoneConItemCon"},[s("div",{staticClass:"phoneConItemLink"},[s("p",{staticClass:"phoneLinkTitle"},[t._v(t._s(e.content.title))]),t._v(" "),s("div",{staticClass:"phoneLinkCon"},[s("div",{staticClass:"phoneLinkDesc clampTwo"},[t._v(t._s(e.content.desc?e.content.desc:e.content.link))]),t._v(" "),e.content.imgUrl?s("img",{staticClass:"phoneLinkImg",attrs:{src:e.content.imgUrl}}):s("div",{staticClass:"phoneLinkImgNo"},[s("i",{staticClass:"el-icon-link"})])])])]):t._e(),t._v(" "),6==e.msg_type?s("div",{staticClass:"phoneConItemCon"},[s("div",{staticClass:"phone_miniprogram"},[s("div",{staticClass:"phone_miniprogram_title"},[s("img",{attrs:{src:a("mKVt")}}),t._v(" "),s("div",{staticClass:"name"},[t._v(t._s(e.content.title))])]),t._v(" "),s("img",{staticClass:"phone_miniprogram_img",attrs:{src:e.content.imgUrl}}),t._v(" "),t._m(2,!0)])]):t._e()])}),0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"phonePeople"},[e("i",{staticClass:"el-icon-s-custom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"phoneLinkImgNo"},[e("i",{staticClass:"el-icon-folder-opened"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"phone_minirpogram_mark"},[e("img",{attrs:{src:a("mKVt"),alt:""}}),this._v(" "),e("span",[this._v("小程序")])])}]};var _={0:"未知性别",1:"男性",2:"女性"},u={0:"未设置标签筛选",1:"以下标签满足其中之一",2:"以下标签同时满足",3:"无任何标签"},d={components:{sopPreview:a("VU/8")({props:["phone_width","msgList","position_top"]},o,!1,function(t){a("3W6a")},"data-v-8f6c2bc0",null).exports},props:["title","rule_id"],data:function(){return{loading:!1,detail:{msg_data:[]},gender:"",pay:"",tagInfo:{}}},created:function(){this.handleGetDetail()},methods:{handleGetDetail:function(){var t=this;return r()(n.a.mark(function e(){var a,s,i,r,l,c,o,u,d,p,v,g,f;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.loading=!0,a=""+t.URL.BASEURL+t.URL.sop_ruleDetail,s={rule_id:t.rule_id},e.next=6,t.$axios.get(a,{params:s});case 6:if(i=e.sent,r=i.data,!(l=void 0===r?{}:r)||0!=l.errno){e.next=20;break}return l.rst.user_listArr=l.rst.user_list.split(","),t.detail=l.rst,c=l.rst,o=c.gender,u=c.pay_status,d=c.pay_num_min,p=c.pay_num_max,v=c.tag_screen_type,g=c.tag_list,f=c.exclude_tag_list,t.gender=o?o.split(",").map(function(t){return _[t]}).join("、"):"",t.pay=0==u?"未付费":d||null!==d||p||null!==p?d||null!==d||!p&&0!==p?!d&&0!==d||p||null!==p?"已付费("+d+" ~ "+p+"次)":"已付费("+d+"次)以上":"已付费("+p+"次)以下":"已付费",e.next=17,t.handleGetTagInfo({tag_screen_type:v,tag_list:g,exclude_tag_list:f});case 17:t.tagInfo=e.sent,e.next=21;break;case 20:t.$message.warning(l.err);case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(0),console.log("error => ",e.t0);case 26:return e.prev=26,t.loading=!1,e.finish(26);case 29:case"end":return e.stop()}},e,t,[[0,23,26,29]])}))()},handleGetTagInfo:function(t){var e=this,a=t.tag_screen_type,s=t.tag_list,i=t.exclude_tag_list;return r()(n.a.mark(function t(){return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new c.a(function(){var t=r()(n.a.mark(function t(r,l){var c,o,_,d;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.handleGetTagOptions();case 2:c=t.sent,o=[],c.forEach(function(t){t.tag_list.forEach(function(t){o.push(t)})}),_=[],s&&s.length&&s.split(",").forEach(function(t){var e=o.find(function(e){return e.tag_id===t});e&&_.push(e.tag_name)}),d=[],i&&i&&i.split(",").forEach(function(t){var e=o.find(function(e){return e.tag_id===t});e&&d.push(e.tag_name)}),r({tag_screen_type:u[a],tag_list:_,exclude_tag_list:d});case 10:case"end":return t.stop()}},t,e)}));return function(e,a){return t.apply(this,arguments)}}()));case 1:case"end":return t.stop()}},t,e)}))()},handleGetTagOptions:function(){var t=this;return new c.a(function(e,a){t.$axios.get(t.URL.BASEURL+t.URL.tagList,{}).then(function(s){(s=s.data)&&0==s.errno?e(s.rst):4002!=s.errno&&(t.$message({message:s.err,type:"warning"}),a(!1))}).catch(function(t){a(!1)})})}}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"self_drawer_title"},[a("div",{staticClass:"flex"},[t._v("SOP详情")]),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(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"modular"},[a("h3",{staticClass:"bigTitle"},[t._v("基础信息\n "),[0==t.detail.status?a("span",{staticClass:"detail_status status_del"},[t._v("禁用")]):t._e(),t._v(" "),1==t.detail.status?a("span",{staticClass:"detail_status status_success"},[t._v("启用")]):t._e()]],2),t._v(" "),a("div",{staticClass:"flex-start"},[a("div",{staticClass:"dataInfoBox"},[a("div",{staticClass:"tMar20 flex-align-center"},[a("span",{staticClass:"lable"},[t._v("创建人:")]),t._v(" "),a("div",{staticClass:"customerServiceTagBox"},[a("div",{staticClass:"customerServiceTag"},[a("i",{staticClass:"el-icon-user-solid"}),t._v(" "+t._s(t.detail.creator_name))])])]),t._v(" "),a("div",{staticClass:"tMar20 flex-align-center"},[a("span",{staticClass:"lable"},[t._v("规则名称:")]),t._v(" "),a("span",{staticClass:"txt"},[t._v(t._s(t.detail.title))])]),t._v(" "),a("div",{staticClass:"tMar20 flex-start"},[a("span",{staticClass:"lable"},[t._v("发送内容:")]),t._v(" "),a("div",[a("div",{staticClass:"syllable_ul"},t._l(t.detail.msg_data,function(e,s){return a("div",{key:s,staticClass:"fujianItem"},[a("div",{staticClass:"left"},[1==e.msg_type?a("span",[t._v("【文字】:"+t._s(e.content.content))]):t._e(),t._v(" "),2==e.msg_type?a("span",[t._v("【图片】:"+t._s(e.content.name))]):t._e(),t._v(" "),3==e.msg_type?a("span",[t._v("【视频】:"+t._s(e.content.name))]):t._e(),t._v(" "),4==e.msg_type?a("span",[t._v("【文件】:"+t._s(e.content.name))]):t._e(),t._v(" "),5==e.msg_type?a("span",[t._v("【链接】:"+t._s(e.content.title))]):t._e(),t._v(" "),6==e.msg_type?a("span",[t._v("【小程序】:"+t._s(e.content.title))]):t._e()])])}),0)])]),t._v(" "),a("div",{staticClass:"tMar20 flex-align-center"},[a("span",{staticClass:"lable"},[t._v("使用员工:")]),t._v(" "),t.detail.user_listArr&&t.detail.user_listArr.length>0?a("div",{staticClass:"flexWrap"},t._l(t.detail.user_listArr,function(e,s){return a("div",{key:s,staticClass:"customerServiceTagBox"},[a("div",{staticClass:"customerServiceTag",staticStyle:{background:"transparent",color:"#00b38a"}},[t._v(t._s(e))])])}),0):a("div",{staticClass:"txt"},[t._v("-")])]),t._v(" "),a("div",{staticClass:"tMar20 flex-start"},[a("span",{staticClass:"lable"},[t._v("客户筛选:")]),t._v(" "),0==t.detail.customer_filter?a("span",{staticClass:"txt"},[t._v("全部客户")]):1==t.detail.customer_filter?a("div",{staticClass:"customer_all"},[t.gender?a("div",{staticClass:"txt mb-4"},[t._v("性别:"+t._s(t.gender)+";")]):t._e(),t._v(" "),t.pay?a("div",{staticClass:"txt mb-4"},[t._v("付费情况:"+t._s(t.pay)+";")]):t._e(),t._v(" "),t.tagInfo.tag_screen_type?a("div",{staticClass:"txt mb-4"},[t._v(t._s(t.tagInfo.tag_screen_type)),t.tagInfo.tag_list&&t.tagInfo.tag_list.length?a("span",{staticStyle:{"font-size":"14px",color:"#333","font-weight":"400"}},[t._v(":"+t._s(t.tagInfo.tag_list.join("、"))+";")]):t._e()]):t._e(),t._v(" "),t.tagInfo.exclude_tag_list&&t.tagInfo.exclude_tag_list.length?a("div",{staticClass:"txt mb-4"},[t._v("排除客户标签:"+t._s(t.tagInfo.exclude_tag_list.join("、"))+";")]):t._e()]):t._e()]),t._v(" "),a("div",{staticClass:"tMar20 flex-align-center"},[a("span",{staticClass:"lable"},[t._v("规则:")]),t._v(" "),a("div",{staticClass:"customer_all"},[t._v(t._s(t.detail.desc))])]),t._v(" "),a("div",{staticClass:"tMar20 flex-align-center"},[a("span",{staticClass:"lable"},[t._v("创建时间:")]),t._v(" "),a("span",{staticClass:"txt"},[t._v(t._s(t.detail.updated_at))])])]),t._v(" "),a("sopPreview",{staticStyle:{"margin-top":"-30px"},attrs:{phone_width:"260px",position_top:"0px",msgList:t.detail.msg_data}})],1)])])},staticRenderFns:[]};var v={components:{detail:a("VU/8")(d,p,!1,function(t){a("U7yQ")},"data-v-15164023",null).exports},data:function(){return{loading:!1,filter:{page:1,page_size:20},pages:0,total:0,tableData:[],height:"",detailDrawerVisible:!1,currentDetailId:""}},created:function(){this.height=document.documentElement.clientHeight-200>400?document.documentElement.clientHeight-200:400,this.handleGetList()},methods:{onClickSetStatus:function(t,e){var a=this;return r()(n.a.mark(function s(){return n.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,a.$confirm("确定"+(1==e?"启用":"禁用")+"【"+t.title+"】?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:a.handleSetStatus(t.id,e),s.next=9;break;case 6:s.prev=6,s.t0=s.catch(0),console.log("error => ",s.t0);case 9:case"end":return s.stop()}},s,a,[[0,6]])}))()},handleSetStatus:function(t,e){var a=this;return r()(n.a.mark(function s(){var i,r,l,c,o;return n.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,a.loading=!0,i=""+a.URL.BASEURL+a.URL.sop_changeStatus,r={rule_id:t,status:e},s.next=6,a.$axios.get(i,{params:r});case 6:l=s.sent,c=l.data,(o=void 0===c?{}:c)&&0==o.errno?(a.$message.success("操作成功"),a.handleGetList()):a.$message.warning(o.err),s.next=15;break;case 12:s.prev=12,s.t0=s.catch(0),console.log("error => ",s.t0);case 15:return s.prev=15,a.loading=!1,s.finish(15);case 18:case"end":return s.stop()}},s,a,[[0,12,15,18]])}))()},handleGetList:function(){var t=this;return r()(n.a.mark(function e(){var a,s,i,r,l;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.loading=!0,a=""+t.URL.BASEURL+t.URL.sop_ruleList,s={page:t.filter.page,page_size:t.filter.page_size},e.next=6,t.$axios.get(a,{params:s});case 6:i=e.sent,r=i.data,(l=void 0===r?{}:r)&&0==l.errno?(l.rst.data.forEach(function(t){t.user_listArr=t.user_list.split(",")}),t.tableData=l.rst.data,t.total=l.rst.pageInfo.total,t.pages=l.rst.pageInfo.pages):4002!=l.errno&&t.$message.warning(l.err),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.log("error => ",e.t0);case 15:return e.prev=15,t.loading=!1,e.finish(15);case 18:case"end":return e.stop()}},e,t,[[0,12,15,18]])}))()},handleCurrentChange:function(t){this.filter.page=t,this.handleGetList()},onClickCreateSop:function(){this.$router.push({path:"/createSop"})},onClickEditSop:function(t){this.$router.push({path:"/createSop",query:{id:t,type:"edit"}})},onClickDetail:function(t){this.currentDetailId=t,this.detailDrawerVisible=!0},onCloseDetailDrawer:function(){this.detailDrawerVisible=!1}}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.onClickCreateSop}},[t._v("创建规则")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{"margin-top":"10px",width:"100%"},attrs:{height:t.height,data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"title",label:"规则名称","show-overflow-tooltip":"",align:"center",width:"170"}}),t._v(" "),a("el-table-column",{attrs:{label:"创建人",align:"center",width:"170"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("div",{staticClass:"customerServiceTagBox"},[a("div",{staticClass:"customerServiceTag"},[a("i",{staticClass:"el-icon-user-solid"}),t._v("\n "+t._s(s.creator_name)+"\n ")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"使用成员",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[[a("div",{staticClass:"customerServiceTagBox biaoqian"},t._l(e.row.user_listArr,function(e,s){return a("div",{key:s,staticClass:"customerServiceTag"},[a("i",{staticClass:"el-icon-s-custom"}),t._v("\n "+t._s(e)+"\n ")])}),0)]]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"规则","show-overflow-tooltip":"",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[[1==s.status?a("div",{staticClass:"pointer c-FF604D",staticStyle:{margin:"0 6px"},on:{click:function(e){return t.onClickSetStatus(s,0)}}},[t._v("禁用")]):a("div",{staticClass:"pointer c-007AFF",staticStyle:{margin:"0 6px"},on:{click:function(e){return t.onClickSetStatus(s,1)}}},[t._v("启用")])],t._v(" "),a("div",{staticClass:"c-00B38A pointer",staticStyle:{margin:"0 6px"},on:{click:function(e){return t.onClickEditSop(s.id)}}},[t._v("编辑")]),t._v(" "),a("div",{staticClass:"c-00B38A pointer",staticStyle:{margin:"0 6px"},on:{click:function(e){return t.onClickDetail(s.id)}}},[t._v("详情")])],2)]}}])})],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.filter.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),a("el-drawer",{attrs:{size:"1200px",visible:t.detailDrawerVisible,"with-header":!1},on:{"update:visible":function(e){t.detailDrawerVisible=e}}},[t.detailDrawerVisible?a("detail",{attrs:{rule_id:t.currentDetailId},on:{close:t.onCloseDetailDrawer}}):t._e()],1)],1)},staticRenderFns:[]};var f=a("VU/8")(v,g,!1,function(t){a("ZaIz")},"data-v-42643d98",null);e.default=f.exports},U7yQ:function(t,e){},ZaIz:function(t,e){}});