1 |
- webpackJsonp([2],{"+xdZ":function(t,e){},"0QUe":function(t,e,i){t.exports=i.p+"static/img/radar_title.824d737.png"},"0zuo":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAADCVJREFUaAXNm9tvXUcVxtc+Pq4vcerm0iSO48SmKUnTJiXBAak0EqAWUR5oSYvEQ4rKE7yBlD4hpCoSyhOVkPgHkJoXRJW0KOKiFpGqpQXFlLZpc6GCpLnXlzhOHMeOfXz4frPPHG8f77Mvx+ay5H327Nkza9Y3a81aM7PHgS0xlcvlpsPHbVe5YHts1raKPVePruXlwJbTXFC2m7pxXdB12gp2Opi1N/futneDICgpb8koWApOAwPl5rNl+4Z47dP1uJWtsyG+gY2p3mu6DvUF9tv+/mC6IT6RSosC+PaFctuVK/ajstl+XasifBOTvlHVqUsqM6Lrxa4u+/kjPcHtugVTXvi2UorNf+3McMCemy3bAb3pnv82/ilQS2UhKskAuZuemwpmBV3uOb4auZcKgb2wt99+2Yj55gb46+PlJ2SCP1PD2+rLNPcGYDMCNTFpdnvKbFppdYyR31w062g1a9clEGlAT6pTnv/27uB3c9zTU5kBSmvB4QH7qYT7cTpbpyD1g9m4jGvslkDO6qECzNdHcwBtucvsnmVmrbpThnr1SB1xUNr8ibSZVKxaPRPAP31U7hiZsEMS6MlqzYSE19o1+ckJaS2tEQ+0vcXsbgG9S5pNIvF/dVW77fvKg8F4UjnepbVtR/5e7p2Zsd+oW7enMXMMxXFKvm9E/vDOTKihpHqAK+nCRAGGyS7DZCtjk3ssBXaiWLRvfmtncC72fSUzESDgStP2V7W/JomJf4fmpu6YDQkc447nJCrJbFubzTbda9anFlZ0yFwFEsCT6qSr1+VhRjVmVS6Ol9gPNjXbF5NA1hUBsxyesLfzaG5aGhuSUGmaQ2tc960z29mn+KLw7/O4Y1cIhvYA+YGmA84xxfWWNLm63R6pZ66xBoBDYcxlBUe79PIwZqmer9trKofWWqS1PfLBX30o1BraJh8Q4AMkafLX3WP2GWkY/rGkoRP6B82TYigWIN5SjWRyKJ7n0I0wDHh0cT4OEHjLr+9UjNkQgqgreIUxcbNHU4gOOSCnXd9g5I6syBzJqiYXACTOZQ0FcGFsuFAgf0YnowF/j3Yp4Drbzb72sNnazlA71E8j+OF8MGO0Wo+Q2cXomgLzADJDkYQE8cyEBkYUDpyJKc0dlAjje5x0m2IcJrlSGsT08lJnW7LpO36S3WGIMJ8HUGp+Tu8yzVDggWsfm5AGNUuhcz0o7lVSuknl9jwgzWk8uYBffZktQUcxGagbMubYbKtgqOZUATJxlmAHqm8yJKalrWGNPYeuckOjAESREIB2bJKjUBhoRHPwEDsrqpPo0DQCA1h8uSpAVgXKzDRxpjKNMfbGNVNBAH7oadLursSUTHGNxtvnemW6vGiQwOX4ZqvfXcHiSjuArOfEYH+2+mEpGmTsoTGE5wJYVYPKhzngcBK8a5iEcEox1o3vDEzU1H4wUdQBPKvFqjLljLMRPTqpGcsNjT8I2R1AHvQSE8V8N64OZyiNjDtYefLtuYZ8ZsIdLGCiiAMoBs8mlF/wyoUGORZmLjTqteO1SAUYP9wbhhGeMxMVQRQh+N+sOLJIdlpyHwUKuFXVfyyt9Lz3EuCmxh8mQ+OYZRQkzqRrhdn6ldnNCv5lmXLL+wPW/odfubRvEwsYU3tZnIyvo/vjYCu+MmCflxbkCrITYCZkohBaIwxglmiTzie9db08n7TBAjcrBSrf/NFf4FCxrRAUocgtu2o0m8hXmNj8KpQCezSxYMxLNMaE2puSB0c+tEzTqh7NH7M6hbCWflU/GLtmM5vur2YxHIYqE4lqZsYEO3uF8qwpBOcjAAHGOxZnphXtAZzQwMzDAc/KWkCC8QkrjA7Z9OYdFtCBojuygEHF2pzm6eqCjXpb3FMjPwDVpT93905mnQCyobSAEkwMp97y3js2u3qNlboUjtWB8BgcM7vFrkBC3QXtVDLAhhg99QrUy2fK5KdNaA9gmCtprtWs72oqB7MlK0zKFcYJqryCdqRa3jxqU19+sloX53JuOL5KDft6jz0AlDj5CLUzeQaMI92dR9UDjmW5zLP6Tnlop+2d31v7G6+oQFgl+sv79teP2Oz6jXZnS2ieTU1m50dCb92I9ir8lxf8dnq0wbQ0SmDpEyUAubmmALLt4LH7MoXRT60wqKV59IUYAa713T9b8Z8f2sRT33Pv6cAbCgvnhuYsxfPJcwcbGsxNgGF91lqzCEX2WM+pF9P3bbem4YvWfOETK6N9XcH0lLUfO2ptbxy1ib3ft5lOLTdklvD5x5XK1kdu6eZXKPIhBHnnZyc/IQBaYrPoYwkib1V1AgBk3oiWPfE5ZXrzdpt9b4MtO/wLu0te0pqKVrx8VhpstZvf+aGV1q5znhPH8vFVrVIUGhrxnL5N7mBjRIhVPoBUxnuuuVvgdD83GPY2AhHYR7S636R5qJIhqcxsa6uNP/Fdaz12xJrPnrJSR6dN7XjUJnd8KdziVqcA7uI1s3/JNBcx7nyr3B1ADQzr5SkvAY6QsFz7mJckGPsyaPC8BNzVW8NNaEsr19qtp39ggXamysVm0/6BoV0unMoFOZVTl8N6UQuo4ZTn8UJBMp7JU6O2LJpkR/r+LrMHe8IQcUZmO3or1Mi88gKPWgHHQCOY4wSUtPfPaXvwfGgRSwROXO10QfO/U6QWQ2iSix2zhwSSEHLsZMgx1tQAJxRFaY1Vwh9PmL11WnugowrqrBoq/BYjk6urD6tFvqyK36IJgbXFb3yPaNXIviRzQ+gvbJZDQmGVRpx29MPsBE/54SehM9kqC8DU/QxoStq+qTKLIbAFLCleHrAR2YlGU2PkwbHxy5a71xrj8V45InawV3aEQNigYrea8YZt9skZrdI7gDnNVUSgI26pw4blsBpSgL4WP9Nvq4p8VHz5ePl1MXm6EXgIQoDnewQfXTw4eCE0m1LRyTJl0ehGrRW7tWZsVhmmerXxE1AdKjclrbIWjPKFdwZ6DWxi73ropQwVYosgCHszbkIcU4I5K9M3BKQzugWsv1duW5pjHenmsTH1yGLFwo52g/HwEDwcwD598FdbGE0uQujr8pZ84ASoExZPWUOYHiC3yFS36uKLEhqjThLxnu3CZjmjtLJRPmABE3kOIKcZlPlitFBaGnB8aME03UJXEhAyavEBDgG3yYl0aZS7cZZDWgRE03kQgsWf0HAAAcNpBt0ukc5KBHY2npDXOwi3PqygJJ8AjodcoRCSZI5xbWKaeNM7uujQjHSpgsUVrwLkqIYYvpCFCY3d1p4MUzJHQuKBgY00qAHtvaTLC0un/sKf8tfkXK6qE/NsO4IheuxkXr+4kHHcPpAEid8nEOCiFqJoEE/pnIgqkY/GYMrFNO4BbT4BNAtRn7Lj6rwxxUA8Lnk56OQzu21H9LhJVYMwcS90VCONId/srmunC0J2pz3SemBlwTPjDu1lIdch+rktc78qhzUizaG1nODo1eej4Gh7HkAyOIciNR8kHUeMC0ICMQ9w/DiPCDg9Ag6ns2FlOEdN0x5hZEZ19LncBmXyfqmVT3EulByMO0OzACAyh+dQ7FXSceQ2faVFhAcQ9ugciNKAJQx0s3ZVuh7RUVQdlbauKI7yEQfKC8zV0bESZHYMan5iAUrNZc6hqLUTNeXdI5uwTjMVgB6oMDvAhAM3/4ypjNlxjcsCAAZAOim3OXrekhFZkdlnRe+xACnAqQXOoUgWLWfnCDBoizGCYA5cRVNoj5jlF8JztULNAGKScSZTHNLFBxo02SghGzLWO2EB37oAecn5E86h1GqSrYo1mKAAYoa6hQ5GiTZNrVgVONOFiQhggNFpCPtUwPyEfBHY6LETaWdkXNtOgpSf2qNc3pyYpl3WSp41HN8VEBjPuWtTOBYpB1CWPTd0oWFfN6XJxNfisXRHuXxLipELDuNhXgjNBhFLIIL/ro1mn10bmvGExtl1gWf7fVHa8kLorjaX/jBehL/FHacEKGZ3eVSBXZNp1neYIwChJQL3nz1OGYoa/jLj4TSDzO+AcrrJxfRwOMxqMEsc0RIB++8eiA0hhr+NHmmO8qiXVuf874401wrlD6VLqGeluMfkVhUJGyBtM4gHuwsv9f0/HEqPg4D58tWYD6t8n5PAW1SuR1fsvxUIzBl29vQd/a2n+u1vtXPJuDby5P0bbk0X7kVBiPkAAAAASUVORK5CYII="},"1O9W":function(t,e){},"25C3":function(t,e){},"98YH":function(t,e){},"9AfA":function(t,e){},"9PVX":function(t,e,i){t.exports=i.p+"static/img/radar_cover.4626076.png"},C8ko:function(t,e){},CUYD:function(t,e){},Ctb2:function(t,e){},"E/jr":function(t,e){},FBaH:function(t,e){},OMPB:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("mvHQ"),s=i.n(a),l=i("w/TU"),n=i.n(l),r={components:{draggable:n.a},data:function(){return{tableData:[],inputKeyWord:"",itpShowId:null,labelList:["2022年5月","狂医战神","企业微信","重要","已付款"],tag_is_open:!1,user_tab:1,theadList:[{name:"订单ID",width:"28%"},{name:"商品"},{name:"创建时间"},{name:"付款状态"},{name:"订单金额"}],dt_list:[{date:"2022-06-21",week:"星期二",sub:[{type:1,handover_userid:"bc85094e2cfd56a8bd6cd726bd98b14b",takeover_userid:null,create_time:"2022-06-21 15:20:21",radar_name:"",customer_id:5,customer_name:"那年冬天",time:"15:20:21",content:"那年冬天添加了刘晓娜为好友"},{type:2,handover_userid:"ShenSong",takeover_userid:null,create_time:"2022-06-21 14:52:17",radar_name:"",customer_id:5,customer_name:"那年冬天",time:"14:52:17",content:"沈松将那年冬天删除了"},{type:1,handover_userid:"ShenSong",takeover_userid:null,create_time:"2022-06-21 14:43:53",radar_name:"",customer_id:5,customer_name:"那年冬天",time:"14:43:53",content:"那年冬天添加了沈松为好友"}]}],orderList:[{order_id:"62322a7c89ae2416ab9cda4",pay_money:9.9,created_ts:"2022-05-02 23:03",pay_status:1,playlet_name:"极品仙婿"}],loading:!1,addVisible:!1,name_input:""}},created:function(){this.init()},methods:{addEvent:function(){var t=this;""!=this.name_input&&this.name_input?(this.$loading(this.$loadingConfig),this.$axios.post(this.URL.BASEURL+this.URL.portrait_confAdd,{name:this.name_input}).then(function(e){e=e.data;t.$loading(t.$loadingConfig).close(),e&&0==e.errno?(t.addVisible=!1,t.name_input="",t.init()):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.$loading(t.$loadingConfig).close()})):this.$message({message:"请输入内容",type:"warning"})},init:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.portrait_confList,{}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(t.tableData=e.rst,t.tableData.forEach(function(t){t.status=1==t.status})):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})},editEvent:function(){var t,e=this;t=this.tableData.map(function(t){return{fid:t.fid,name:t.name,status:t.status?1:0}}),this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.portrait_confOperate,{conf_json:s()(t)}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?e.init():4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},switchChange:function(t,e){this.editEvent()},iptFocus:function(t){this.itpShowId=t.fid,this.inputKeyWord=t.name},iptBlur:function(t){var e=this,i=JSON.parse(s()(this.tableData[t]));this.inputKeyWord!=this.tableData[t].name&&(i.name=this.inputKeyWord,this.$loading(this.$loadingConfig),this.$axios.post(this.URL.BASEURL+this.URL.portrait_confEdit,{fid:this.itpShowId,name:this.inputKeyWord}).then(function(t){t=t.data;e.$loading(e.$loadingConfig).close(),t&&0==t.errno?(e.init(),e.itpShowId=null):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.$loading(e.$loadingConfig).close()}))},draggableSort:function(t){t.to,t.from,t.item,t.clone,t.oldIndex,t.newIndex;this.editEvent()},copy:function(){var t="";t=sessionStorage.getItem("company_session_defaultCorp")&&"undefined"!=sessionStorage.getItem("company_session_defaultCorp")?JSON.parse(sessionStorage.getItem("company_session_defaultCorp")).corpid:this.$localSelfStore.getLocal("defaultCorp")&&"undefined"!=this.$localSelfStore.getLocal("defaultCorp")?JSON.parse(this.$localSelfStore.getLocal("defaultCorp")).corpid:"";var e="http://"+window.location.host+"/hunter/qwh5/dist/index.html#/userPortrait?corpid="+t,i=document.createElement("textarea");document.body.appendChild(i),i.value=e,i.select(),i.readOnly="readOnly",document.execCommand("copy"),document.body.removeChild(i),this.$message({message:"复制成功",type:"success"})}},directives:{focus:{inserted:function(t){t.querySelector("input").focus()}}}},o={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:"container"},[a("div",{staticClass:"flex-align-center"},[a("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){t.addVisible=!0}}},[t._v("+添加")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.copy}},[t._v("复制链接")]),t._v(" "),t._m(0)],1),t._v(" "),a("div",{staticClass:"flex-start",staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"left_container"},[a("draggable",{staticClass:"syllable_ul",attrs:{element:"ul",list:t.tableData,emptyInsertThreshold:0,options:{group:"name",animation:200}},on:{sort:t.draggableSort}},t._l(t.tableData,function(e,i){return a("div",{key:e.fid,staticClass:"item_css"},[a("div",{staticClass:"nameBox"},[t.itpShowId!=e.fid?[t._v("\n "+t._s(e.name?e.name:"-")+"\n "),a("i",{staticClass:"el-icon-edit",on:{click:function(i){return t.iptFocus(e)}}})]:t._e(),t._v(" "),t.itpShowId==e.fid?a("el-input",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"ipt",attrs:{size:"mini",placeholder:e.name},on:{blur:function(e){return t.iptBlur(i)}},model:{value:t.inputKeyWord,callback:function(e){t.inputKeyWord=e},expression:"inputKeyWord"}}):t._e()],2),t._v(" "),a("div",{staticClass:"switchBox"},[a("el-switch",{attrs:{"active-color":"#ff4040","inactive-color":"#ddd"},on:{change:function(e){t.switchChange(e,i)}},model:{value:e.status,callback:function(i){t.$set(e,"status",i)},expression:"item.status"}})],1)])}),0)],1),t._v(" "),a("div",{staticClass:"right_container"},[a("div",{staticClass:"user_portrait_container"},[a("div",{staticClass:"sidePadding"},[t._m(1),t._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"belongBox"},[a("label",[t._v("所属客服:")]),t._v(" "),a("el-popover",{attrs:{placement:"bottom",width:"100",trigger:"click"}},[a("div",{staticClass:"popoverUserBox"},t._l(5,function(e){return a("div",{key:e,staticClass:"popoverUserItem"},[a("img",{attrs:{src:i("pIyw"),alt:""}}),t._v(" "),a("span",[t._v("客服"+t._s(e))])])}),0),t._v(" "),a("div",{staticClass:"belongConBox",attrs:{slot:"reference"},slot:"reference"},[a("span",[a("em",[t._v("5")]),t._v("人")]),a("i",{staticClass:"el-icon-arrow-down"})])])],1),t._v(" "),a("div",{staticClass:"belongBox"},[a("label",[t._v("所属群聊:")]),t._v(" "),a("el-popover",{attrs:{placement:"bottom",width:"100",trigger:"click"}},[a("div",{staticClass:"popoverUserBox"},t._l(5,function(e){return a("div",{key:e,staticClass:"popoverUserItem"},[a("span",[t._v("群聊"+t._s(e))])])}),0),t._v(" "),a("div",{staticClass:"belongConBox",attrs:{slot:"reference"},slot:"reference"},[a("span",[a("em",[t._v("5")]),t._v("个群")]),a("i",{staticClass:"el-icon-arrow-down"})])])],1)])]),t._v(" "),a("div",{staticClass:"sidePadding marginTop6"},[a("div",{staticClass:"titleBox"},[a("div",{staticClass:"title"},[t._v("客户标签")]),t._v(" "),a("div",{staticClass:"openBox",on:{click:function(e){t.tag_is_open=!t.tag_is_open}}},[t._v(t._s(t.tag_is_open?"收起":"展开")),a("i",{class:["el-icon-arrow-down",t.tag_is_open?"reversalAnimation":""]})])]),t._v(" "),a("div",{staticClass:"tag_con",style:t.tag_is_open?"height:auto":"height:25px"},[a("span",{staticClass:"tag_item",staticStyle:{"margin-left":"0",background:"transparent",color:"#ff4040"}},[t._v("+添加")]),t._l(t.labelList,function(e,i){return a("span",{key:i,staticClass:"tag_item"},[t._v("\n "+t._s(e)+"\n ")])})],2)]),t._v(" "),a("div",{staticClass:"sidePadding marginTop6"},[t._m(2),t._v(" "),a("div",{staticClass:"userInfoBox"},[t._l(t.tableData,function(e){return[e.status?a("div",{key:"info"+e.fid,staticClass:"info"},[t._v(t._s(e.name)+":"),a("span",[t._v("**")])]):t._e()]})],2)]),t._v(" "),a("div",{staticClass:"sidePadding marginTop6"},[a("div",{staticClass:"titleBox tabBox"},[a("div",{staticClass:"title"},[a("p",{class:[1==t.user_tab?"active":""],on:{click:function(e){t.user_tab=1}}},[t._v("客户动态")]),t._v(" "),a("p",{class:[2==t.user_tab?"active":""],on:{click:function(e){t.user_tab=2}}},[t._v("订单")])])]),t._v(" "),a("div",{staticClass:"kd_order_con"},[1==t.user_tab?a("div",{staticClass:"kh_dt_con"},t._l(t.dt_list,function(e,i){return a("div",{key:i},[a("div",{staticClass:"dayDate"},[t._v(t._s(e.create_time&&e.create_time.split(" ")[0])+t._s(e.week))]),t._v(" "),t._l(e.sub,function(e,i){return a("div",{key:i,staticClass:"subBox",class:0==i?"tMar17":""},[t._m(3,!0),t._v(" "),a("div",{staticClass:"lMar8"},[a("div",{staticClass:"dayTime"},[t._v(t._s(e.time))]),t._v(" "),a("div",{staticClass:"behavior_box"},[a("div",{staticClass:"behavior"},[1==e.type?a("span",[t._v("添加好友")]):2==e.type?a("span",[t._v("被员工删除")]):3==e.type?a("span",[t._v("删除跟进客户")]):4==e.type?a("span",[t._v("客户转移")]):5==e.type?a("span",[t._v("客户下单")]):6==e.type?a("span",[t._v("加入黑名单")]):7==e.type?a("span",[t._v("移出黑名单")]):8==e.type?a("span",[t._v("聊天")]):a("span",[t._v("未知")])]),t._v(" "),a("div",{staticClass:"behavior_detial"},[t._v(t._s(e.content))])])])])})],2)}),0):t._e(),t._v(" "),2==t.user_tab?a("div",{staticClass:"order_con",staticStyle:{"margin-top":"20px"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.orderList,border:"","header-cell-style":function(){return{backgroundColor:"#f9f9f9 !important",padding:"6px 3px!important",fontSize:"13px"}}}},[a("el-table-column",{attrs:{prop:"order_id",label:"订单ID",width:"200",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"playlet_name",label:"商品","min-width":"120",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_ts",label:"创建时间","min-width":"140",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_ts",label:"付款状态",align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(1==e.row.pay_status?"已付款":"未付款"))]}}],null,!1,2939956658)}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_money",label:"订单金额",align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"c-00b38a"},[t._v(t._s(e.row.pay_money||0==e.row.pay_money?"¥"+e.row.pay_money:"-"))])]}}],null,!1,3069578615)})],1)],1):t._e()])])])])]),t._v(" "),a("el-dialog",{attrs:{title:"添加",visible:t.addVisible,width:"400px"},on:{"update:visible":function(e){t.addVisible=e}}},[a("el-input",{attrs:{placeholder:"请输入内容",clearable:"",size:"small"},model:{value:t.name_input,callback:function(e){t.name_input=e},expression:"name_input"}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(e){t.addVisible=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.addEvent}},[t._v("添 加")])],1)],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f12 line18 lMar8 c-FE9"},[e("p",[this._v("*上下拖动列表可调节信息位置")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"userImgBox"},[e("img",{staticClass:"userImg",attrs:{src:i("0zuo"),alt:""}}),this._v(" "),e("div",{staticClass:"userImgRightBox"},[e("div",{staticClass:"userName"},[this._v("某某某某"),e("span",[this._v("@微信")])]),this._v(" "),e("div",{staticClass:"addTime"},[this._v("添加时间:2022-22-22 34:33:33")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"titleBox"},[e("div",{staticClass:"title"},[this._v("客户信息")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"subBox_line"},[e("img",{staticStyle:{display:"inline-block",width:"16px"},attrs:{src:i("71zo"),alt:""}}),this._v(" "),e("div",{staticClass:"splitLine"})])}]};var c=i("VU/8")(r,o,!1,function(t){i("bSja")},"data-v-1c906f12",null).exports,d=i("McOJ"),p=i("Gu7T"),_=i.n(p),u={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{"append-to-body":!0,"custom-class":"channel_code_group",title:t.propsData.dialogTitle+"分组",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"dialogBox"},[i("div",{staticClass:"lable"},[t._v("分组名称")]),t._v(" "),i("el-input",{attrs:{size:"small",placeholder:"请输入内容",maxlength:"8",clearable:""},model:{value:t.groupName,callback:function(e){t.groupName=e},expression:"groupName"}})],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(e){return t.save(t.propsData.dialogTitle)}}},[t._v("确 定")])],1)])},staticRenderFns:[]};var g={name:"groupList",components:{dialogGroup:i("VU/8")({name:"dialogGroup",props:["propsData"],data:function(){return{groupName:"",dialogVisible:!1,loading:!1}},methods:{save:function(t){"修改"==t?this.editGroup():this.addGroup()},addGroup:function(){var t=this;""!=this.groupName?(this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.quick_addGroup,{group_name:this.groupName}).then(function(e){e=e.data,t.loading=!1,t.$message({message:e.err,type:"warning"}),e&&0==e.errno&&(t.dialogVisible=!1,t.$emit("init"))}).catch(function(e){t.loading=!1})):this.$message({message:"分组名必填",type:"info"})},editGroup:function(){var t=this;""!=this.groupName?(this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.quick_editGroup,{group_id:this.propsData.groupId,group_name:this.groupName}).then(function(e){e=e.data,t.loading=!1,t.$message({message:e.err,type:"warning"}),e&&0==e.errno&&(t.dialogVisible=!1,t.$emit("init"))}).catch(function(e){t.loading=!1})):this.$message({message:"分组名必填",type:"info"})}}},u,!1,function(t){i("+xdZ")},null,null).exports,draggable:n.a},computed:{noMore:function(){return this.currPage_len<this.page_size},disabled:function(){return this.moreloading||this.noMore}},data:function(){return{dialogTitle:"添加",acIdx:null,tableData:[],copy_tableData:[],loading:!1,page:1,page_size:20,groupId:"",currPage_len:0,moreloading:!1,deleGroupShow:!1,deleGroupId:"",isDeleChild:1}},created:function(){this.init()},methods:{init_clear:function(){this.page=1,this.tableData=[],this.copy_tableData=[],this.init()},load:function(){this.page+=1,this.init()},draggableSort:function(t){var e=this,i=(t.to,t.from,t.item,t.clone,t.oldIndex),a=t.newIndex;this.copy_tableData[i].group_id?this.$axios.post(this.URL.BASEURL+this.URL.quick_sortGroup,{operate_group_id:this.copy_tableData[i].group_id,front_group_id:a-1>=0?this.tableData[a-1].group_id:"",behind_group_id:a+1<this.tableData.length?this.tableData[a+1].group_id:""}).then(function(t){(t=t.data)&&0==t.errno?e.copy_tableData=JSON.parse(s()(e.tableData)):t.errno,e.$message({message:t.err,type:"warning"})}):this.$message({message:"被拖动的快捷话术组id错误",type:"warning"})},init:function(){var t=this;this.loading=!0,this.currPage_len>=this.page_size&&(this.moreloading=!0),this.$axios.get(this.URL.BASEURL+this.URL.quick_groupList,{params:{keyword:"",page:this.page,page_size:this.page_size}}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(t.tableData=[].concat(_()(t.tableData),_()(e.rst.data)),t.copy_tableData=JSON.parse(s()(t.tableData)),t.currPage_len=e.rst.data.length,t.moreloading=!1):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})},handleCommand:function(t){var e=t.split("/"),i=e[0],a=e[1],s=e[2];"editName"==i?this.editGroup(s,a):"deleGroup"==i&&(this.deleGroupId=a,this.deleGroupShow=!0)},editGroup:function(t,e){var i=this;this.$nextTick(function(){i.dialogTitle="修改",i.$refs.dialogGroupRef.groupName=t,i.groupId=e,i.$refs.dialogGroupRef.dialogVisible=!0})},deleGroup:function(){var t=this;this.deleGroupId?(this.deleGroupShow=!1,this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.quick_deleGroup,{group_id:this.deleGroupId,type:this.isDeleChild}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(t.page=1,t.tableData=[],t.copy_tableData=[],t.init(),t.itemClick(null)):4002!=e.errno&&t.$message({message:e.err,type:"warning"})})):this.$message({message:"快捷话术组ID为空",type:"warning"})},itemClick:function(t){this.acIdx=t,this.$emit("getId",t)}}},m={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"title"},[i("span",{staticClass:"fWeight600 c-000 f14"},[t._v("快捷话术分组")]),t._v(" "),i("span",{staticClass:"addGroupBox",on:{click:function(e){t.$refs.dialogGroupRef.dialogVisible=!0,t.$refs.dialogGroupRef.groupName="",t.dialogTitle="添加"}}},[i("i",{staticClass:"el-icon-plus f12"}),t._v("\n 添加分组\n ")])]),t._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading.body",value:t.loading,expression:"loading",modifiers:{body:!0}}],staticClass:"listBox infinite-list-wrapper"},[i("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],attrs:{"infinite-scroll-distance":20,"infinite-scroll-immediate":!1,"infinite-scroll-disabled":"disabled"}},[i("div",{staticClass:"item_css",class:[null==t.acIdx?"ac_css":""],on:{click:function(e){return t.itemClick(null)}}},[i("i",{staticClass:"el-icon-folder"}),t._v("全部快捷话术")]),t._v(" "),i("draggable",{staticClass:"syllable_ul",attrs:{element:"ul",list:t.tableData,emptyInsertThreshold:0,options:{group:"name",animation:200,ghostClass:"ghostClass",dragClass:"dragClass"}},on:{sort:t.draggableSort}},t._l(t.tableData,function(e,a){return i("div",{key:e.group_id,staticClass:"item_css",class:[t.acIdx==e.group_id?"ac_css":""],on:{click:function(i){return t.itemClick(e.group_id)}}},[i("i",{staticClass:"el-icon-folder",staticStyle:{cursor:"move"}}),t._v(" "),i("span",[t._v(t._s(e.group_name?e.group_name:"-"))]),t._v(" "),i("span",{staticClass:"lMarauto"},[i("el-dropdown",{on:{command:t.handleCommand}},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"el-icon-more"})]),t._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"editName/"+e.group_id+"/"+e.group_name}},[t._v("修改名称")]),t._v(" "),i("el-dropdown-item",{attrs:{command:"deleGroup/"+e.group_id}},[t._v("删除分组")])],1)],1)],1)])}),0)],1),t._v(" "),t.moreloading?i("p",{staticClass:"text-center f14 tMar8 c-d3"},[t._v("加载中...")]):t._e(),t._v(" "),t.noMore?i("p",{staticClass:"text-center f14 tMar8 c-d3"}):t._e()]),t._v(" "),i("el-dialog",{attrs:{title:"提示",visible:t.deleGroupShow,width:"30%"},on:{"update:visible":function(e){t.deleGroupShow=e}}},[i("div",{staticClass:"text-center"},[i("div",{staticClass:"f16"},[t._v("此操作将永久删除该分组, 是否继续")]),t._v(" "),i("div",{staticClass:"tMar20 c-666 f13"},[t._v("是否删除该分组下所有快捷话术?\n "),i("el-switch",{attrs:{"active-value":"2","inactive-value":"1","active-color":"#ff4040","inactive-color":"#ddd"},model:{value:t.isDeleChild,callback:function(e){t.isDeleChild=e},expression:"isDeleChild"}})],1)]),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){t.deleGroupShow=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.deleGroup}},[t._v("确 定")])],1)]),t._v(" "),i("dialogGroup",{ref:"dialogGroupRef",attrs:{propsData:{dialogTitle:t.dialogTitle,groupId:t.groupId}},on:{init:t.init_clear}})],1)},staticRenderFns:[]};var h=i("VU/8")(g,m,!1,function(t){i("THiz")},"data-v-13c466f8",null).exports,v={name:"fileType",props:["msg_list","file_rule_id","reset"],data:function(){return{wordsList:[{key_val:(new Date).getTime(),fileType_Val:1,text_val:"",msg_id:null,uploadErrFlag:!1,uploadErrInfo:"",mp4:{name:"",pic_url:"",mediaid:""},img:{name:"",pic_url:"",mediaid:""},link:{title:"",pic_url:"",desc:"",url:"",mediaid:""},miniprogram:{title:"",appid:"",page:"",pic_url:"",mediaid:""},wideFile:{name:"",pic_url:"",mediaid:""}}],wordsActive:"",big_see:"",big_url:"",dialogVisible:!1,extraData_img:{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},extraData_pdf:{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:4},extraData_mp4:{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},returnFlag:!0,msg_data_list:[]}},watch:{reset:function(){this.chuanzhi_msg_list()}},created:function(){this.chuanzhi_msg_list()},methods:{chuanzhi_msg_list:function(){var t=this;this.file_rule_id?this.msg_list&&this.msg_list.length>0?(this.wordsList=[],this.msg_list.forEach(function(e,i){var a={key_val:"",fileType_Val:1,text_val:"",msg_id:null,uploadErrFlag:!1,uploadErrInfo:"",mp4:{name:"",pic_url:"",mediaid:""},img:{name:"",pic_url:"",mediaid:""},link:{title:"",pic_url:"",desc:"",url:"",mediaid:""},miniprogram:{title:"",appid:"",page:"",pic_url:"",mediaid:""},wideFile:{name:"",pic_url:"",mediaid:""}};a.fileType_Val=e.chat_type,a.key_val=e.key_val,a.msg_id=e.msg_id,1==e.chat_type&&(a.text_val=e.content),2==e.chat_type&&(a.img.name=e.name,a.img.pic_url=e.oss_url,a.img.mediaid=e.mediaid),3==e.chat_type&&(a.mp4.name=e.name,a.mp4.pic_url=e.oss_url,a.mp4.mediaid=e.mediaid),4==e.chat_type&&(a.wideFile.name=e.name,a.wideFile.pic_url=e.oss_url,a.wideFile.mediaid=e.mediaid),5==e.chat_type&&(a.link.title=e.title,a.link.pic_url=e.imgUrl,a.link.desc=e.desc,a.link.url=e.link,a.link.mediaid=e.msg_id),6==e.chat_type&&(a.miniprogram.title=e.title,a.miniprogram.pic_url=e.imgUrl,a.miniprogram.appid=e.app_id,a.miniprogram.page=e.page,a.miniprogram.mediaid=e.mediaid),t.wordsList.push(a)}),this.$nextTick(function(){t.wordsActive=t.wordsList[0].key_val})):this.$message({type:"error",message:"msg_list不正确,请联系开发成员"}):(this.wordsList=[{key_val:(new Date).getTime(),fileType_Val:1,text_val:"",msg_id:null,uploadErrFlag:!1,uploadErrInfo:"",mp4:{name:"",pic_url:"",mediaid:""},img:{name:"",pic_url:"",mediaid:""},link:{title:"",pic_url:"",desc:"",url:"",mediaid:""},miniprogram:{title:"",appid:"",page:"",pic_url:"",mediaid:""},wideFile:{name:"",pic_url:"",mediaid:""}}],this.$nextTick(function(){t.wordsActive=t.wordsList[0].key_val}))},new_words_list:function(){if(this.wordsList&&this.wordsList.length>=9)this.$message({type:"info",message:"最多可建9个话术"});else{var t={key_val:"",fileType_Val:1,text_val:"",msg_id:null,uploadErrFlag:!1,uploadErrInfo:"",mp4:{name:"",pic_url:"",mediaid:""},img:{name:"",pic_url:"",mediaid:""},link:{title:"",pic_url:"",desc:"",url:"",mediaid:""},miniprogram:{title:"",appid:"",page:"",pic_url:"",mediaid:""},wideFile:{name:"",pic_url:"",mediaid:""}};t.key_val=(new Date).getTime(),this.wordsList.push(t)}},deleWords:function(t){var e=this,i=null;this.wordsList.forEach(function(a,s){a.key_val==t&&(e.wordsList.splice(s,1),i=s)}),this.wordsActive=i?this.wordsList[i-1].key_val:this.wordsList[0].key_val},handleSee:function(t,e){this.dialogVisible=!0,this.big_see=t,this.big_url=e},handleDele:function(t,e){this.get_itemNow(e)&&(this.get_itemNow(e)[t].pic_url="")},get_itemNow:function(t){if(t){var e=null;return this.wordsList.forEach(function(i,a){i.key_val==t&&(e=a)}),this.wordsList[e]}this.$message({type:"error",message:"key_val不正确,请联系开发成员"})},uploadSuccess:function(t,e,i,a,s){if(this.$loading(this.$loadingConfig).close(),this.get_itemNow(s)){var l=this.get_itemNow(s);t&&0==t.errno?(console.log("uploadSuccess",t),l[a].pic_url=t.rst.url,l[a].mediaid=t.rst.material_id,l.uploadErrFlag=!1):(this.$message({type:"error",message:t.err}),l.uploadErrFlag=!0,l.uploadErrInfo=t.err)}},uploadFail:function(t,e,i){this.$message({message:t.err,type:"error"})},judgeIsComplete:function(){this.returnFlag=!0;for(var t=0;t<this.wordsList.length;t++){var e=this.wordsList[t];if(1==e.fileType_Val&&""==e.text_val)return this.$message({type:"error",message:"话术"+Number(t+1)+"文字话术必填"}),void(this.returnFlag=!1);if(2==e.fileType_Val){if(""==e.img.name)return this.$message({type:"error",message:"话术"+Number(t+1)+"图片名称必填"}),void(this.returnFlag=!1);if(""==e.img.pic_url)return this.$message({type:"error",message:"话术"+Number(t+1)+"图片必填"}),void(this.returnFlag=!1)}if(5==e.fileType_Val){if(""==e.link.title)return this.$message({type:"error",message:"话术"+Number(t+1)+"链接标题必填"}),void(this.returnFlag=!1);if(""==e.link.desc)return this.$message({type:"error",message:"话术"+Number(t+1)+"链接描述必填"}),void(this.returnFlag=!1);if(""==e.link.pic_url)return this.$message({type:"error",message:"话术"+Number(t+1)+"封面图片必填"}),void(this.returnFlag=!1);if(""==e.link.url)return this.$message({type:"error",message:"话术"+Number(t+1)+"跳转链接必填"}),void(this.returnFlag=!1)}if(6==e.fileType_Val){if(""==e.miniprogram.title)return this.$message({type:"error",message:"话术"+Number(t+1)+"小程序标题必填"}),void(this.returnFlag=!1);if(""==e.miniprogram.appid)return this.$message({type:"error",message:"话术"+Number(t+1)+"小程序appID必填"}),void(this.returnFlag=!1);if(""==e.miniprogram.pic_url)return this.$message({type:"error",message:"话术"+Number(t+1)+"小程序封面图片必填"}),void(this.returnFlag=!1);if(""==e.miniprogram.page)return this.$message({type:"error",message:"话术"+Number(t+1)+"小程序路径必填"}),void(this.returnFlag=!1)}if(4==e.fileType_Val){if(""==e.wideFile.name)return this.$message({type:"error",message:"话术"+Number(t+1)+"文件名称必填"}),void(this.returnFlag=!1);if(""==e.wideFile.pic_url)return this.$message({type:"error",message:"话术"+Number(t+1)+"文件信息必填"}),void(this.returnFlag=!1)}if(3==e.fileType_Val){if(""==e.mp4.name)return this.$message({type:"error",message:"话术"+Number(t+1)+"视频名称必填"}),void(this.returnFlag=!1);if(""==e.mp4.pic_url)return this.$message({type:"error",message:"话术"+Number(t+1)+"视频文件必填"}),void(this.returnFlag=!1)}}if(this.returnFlag){this.msg_data_list=[];for(var i=0;i<this.wordsList.length;i++){var a=this.wordsList[i];1==a.fileType_Val&&this.msg_data_list.push({chat_type:a.fileType_Val,content:a.text_val,msg_id:a.msg_id,key_val:a.key_val}),2==a.fileType_Val&&this.msg_data_list.push({chat_type:a.fileType_Val,msg_id:a.msg_id,mediaid:a.img.mediaid,name:a.img.name,oss_url:a.img.pic_url,key_val:a.key_val}),5==a.fileType_Val&&this.msg_data_list.push({chat_type:a.fileType_Val,link:a.link.url,title:a.link.title,desc:a.link.desc,msg_id:a.msg_id,imgUrl:a.link.pic_url,key_val:a.key_val}),6==a.fileType_Val&&this.msg_data_list.push({chat_type:a.fileType_Val,app_id:a.miniprogram.appid,title:a.miniprogram.title,imgUrl:a.miniprogram.pic_url,page:a.miniprogram.page,msg_id:a.msg_id,mediaid:a.mediaid,key_val:a.key_val}),4==a.fileType_Val&&this.msg_data_list.push({chat_type:a.fileType_Val,mediaid:a.wideFile.mediaid,name:a.wideFile.name,oss_url:a.wideFile.pic_url,msg_id:a.msg_id,key_val:a.key_val}),3==a.fileType_Val&&this.msg_data_list.push({chat_type:a.fileType_Val,mediaid:a.mp4.mediaid,name:a.mp4.name,oss_url:a.mp4.pic_url,msg_id:a.msg_id,key_val:a.key_val})}console.log(this.msg_data_list,"msg_data_list")}}}},f={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"regulations"},[t._m(0),t._v(" "),i("div",{staticClass:"wordsCon"},[i("div",{staticClass:"con_left"},[t._l(t.wordsList,function(e,a){return i("div",{key:e.key_val},[i("div",{staticClass:"groupBox",class:t.wordsActive==e.key_val?"wordsActive":"",on:{click:function(i){t.wordsActive=e.key_val}}},[t._v("\n 话术"+t._s(a+1)+"\n "),1==e.fileType_Val?i("span",[t._v("文字")]):t._e(),t._v(" "),2==e.fileType_Val?i("span",[t._v("图片")]):t._e(),t._v(" "),5==e.fileType_Val?i("span",[t._v("链接")]):t._e(),t._v(" "),6==e.fileType_Val?i("span",[t._v("小程序")]):t._e(),t._v(" "),4==e.fileType_Val?i("span",[t._v("文件")]):t._e(),t._v(" "),3==e.fileType_Val?i("span",[t._v("视频")]):t._e()])])}),t._v(" "),i("div",{staticClass:"newBox",on:{click:t.new_words_list}},[t._v("新建")])],2),t._v(" "),i("div",{staticClass:"con_right"},t._l(t.wordsList,function(e,a){return i("div",{key:e.key_val},[t.wordsActive==e.key_val?[i("div",{staticClass:"quickType"},[t._m(1,!0),t._v(" "),i("div",{staticClass:"self_input",staticStyle:{display:"flex"}},[i("el-radio",{attrs:{label:1},model:{value:e.fileType_Val,callback:function(i){t.$set(e,"fileType_Val",i)},expression:"item.fileType_Val"}},[t._v("文字")]),t._v(" "),i("el-radio",{attrs:{label:2},model:{value:e.fileType_Val,callback:function(i){t.$set(e,"fileType_Val",i)},expression:"item.fileType_Val"}},[t._v("图片")]),t._v(" "),i("el-radio",{attrs:{label:5},model:{value:e.fileType_Val,callback:function(i){t.$set(e,"fileType_Val",i)},expression:"item.fileType_Val"}},[t._v("链接")]),t._v(" "),i("el-radio",{attrs:{label:6},model:{value:e.fileType_Val,callback:function(i){t.$set(e,"fileType_Val",i)},expression:"item.fileType_Val"}},[t._v("小程序")]),t._v(" "),i("el-radio",{attrs:{label:4},model:{value:e.fileType_Val,callback:function(i){t.$set(e,"fileType_Val",i)},expression:"item.fileType_Val"}},[t._v("文件")]),t._v(" "),i("el-radio",{attrs:{label:3},model:{value:e.fileType_Val,callback:function(i){t.$set(e,"fileType_Val",i)},expression:"item.fileType_Val"}},[t._v("视频")])],1)]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.fileType_Val,expression:"item.fileType_Val==1"}]},[i("div",{staticClass:"lineItem"},[t._m(2,!0),t._v(" "),i("el-input",{staticClass:"self_input",attrs:{type:"textarea",rows:5,placeholder:"请输入文本内容",maxlength:"2000","show-word-limit":"",clearable:"",size:"small"},model:{value:e.text_val,callback:function(i){t.$set(e,"text_val","string"==typeof i?i.trim():i)},expression:"item.text_val"}})],1)]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:2==e.fileType_Val,expression:"item.fileType_Val==2"}]},[i("div",{staticClass:"lineItem"},[t._m(3,!0),t._v(" "),i("el-input",{staticClass:"self_input",attrs:{size:"small",placeholder:"请输入图片名称",maxlength:"32","show-word-limit":"",clearable:""},model:{value:e.img.name,callback:function(i){t.$set(e.img,"name",i)},expression:"item.img.name"}})],1),t._v(" "),i("div",{staticClass:"lineItem radar_cover_box"},[t._m(4,!0),t._v(" "),i("div",{staticClass:"self_input"},[i("el-upload",{key:"imgUpload"+e.key_val,staticClass:"avatar-uploader",attrs:{action:t.URL.BASEURL+t.URL.material_upload,name:"material_file",data:t.extraData_img,accept:".jpg,.png","show-file-list":!1,"before-upload":function(){t.$loading(t.$loadingConfig)},"on-success":function(i,a,s){return t.uploadSuccess(i,a,s,"img",e.key_val)},"on-error":t.uploadFail}},[i("div",{attrs:{slot:"trigger"},slot:"trigger"},[e.img.pic_url?i("img",{staticClass:"uploadImg",attrs:{src:e.img.pic_url}}):i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),t._v(" "),e.img.pic_url?i("span",[i("i",{staticClass:"el-icon-zoom-in pointer f14 c-666",on:{click:function(i){return t.handleSee("img",e.img.pic_url)}}}),t._v(" "),i("i",{staticClass:"el-icon-delete pointer f14 c-666",on:{click:function(i){return t.handleDele("img",e.key_val)}}})]):t._e(),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[i("div",[t._v(" 图片大小不超过1MB,最多上传1张")]),t._v(" "),e.uploadErrFlag?i("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(e.uploadErrInfo))]):t._e()])])],1)])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:5==e.fileType_Val,expression:"item.fileType_Val==5"}]},[i("div",{staticClass:"lineItem"},[t._m(5,!0),t._v(" "),i("el-input",{staticClass:"self_input",attrs:{size:"small",maxlength:"32","show-word-limit":"",placeholder:"请输入链接标题",clearable:""},model:{value:e.link.title,callback:function(i){t.$set(e.link,"title",i)},expression:"item.link.title"}})],1),t._v(" "),i("div",{staticClass:"lineItem"},[t._m(6,!0),t._v(" "),i("el-input",{staticClass:"self_input",attrs:{type:"textarea",rows:5,size:"small",placeholder:"请输入链接描述",maxlength:"500","show-word-limit":"",clearable:""},model:{value:e.link.desc,callback:function(i){t.$set(e.link,"desc",i)},expression:"item.link.desc"}})],1),t._v(" "),i("div",{staticClass:"lineItem"},[t._m(7,!0),t._v(" "),i("div",{staticClass:"self_input"},[i("el-upload",{key:"linkCover"+e.key_val,staticClass:"avatar-uploader",attrs:{action:t.URL.BASEURL+t.URL.material_upload,name:"material_file","show-file-list":!1,data:t.extraData_img,"before-upload":function(){t.$loading(t.$loadingConfig)},"on-success":function(i,a,s){return t.uploadSuccess(i,a,s,"link",e.key_val)},"on-error":t.uploadFail,accept:".jpg,.jpeg,.png"}},[i("div",{attrs:{slot:"trigger"},slot:"trigger"},[e.link.pic_url?i("img",{staticClass:"uploadImg",attrs:{src:e.link.pic_url}}):i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),t._v(" "),e.link.pic_url?i("span",[i("i",{staticClass:"el-icon-zoom-in pointer f14 c-666",on:{click:function(i){return t.handleSee("link",e.link.pic_url)}}}),t._v(" "),i("i",{staticClass:"el-icon-delete pointer f14 c-666",on:{click:function(i){return t.handleDele("link",e.key_val)}}})]):t._e(),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[i("div",[t._v(" 建议尺寸:200*200,大小不超过500kb.")]),t._v(" "),e.uploadErrFlag?i("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(e.uploadErrInfo))]):t._e()])])],1)]),t._v(" "),i("div",{staticClass:"lineItem"},[t._m(8,!0),t._v(" "),i("el-input",{staticClass:"self_input",attrs:{size:"small",placeholder:"请输入链接地址",clearable:""},model:{value:e.link.url,callback:function(i){t.$set(e.link,"url",i)},expression:"item.link.url"}})],1)]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:6==e.fileType_Val,expression:"item.fileType_Val==6"}]},[t._m(9,!0),t._v(" "),i("div",{staticClass:"lineItem"},[t._m(10,!0),t._v(" "),i("el-input",{staticClass:"self_input",attrs:{size:"small",placeholder:"请输入小程序标题",maxlength:"20","show-word-limit":"",clearable:""},model:{value:e.miniprogram.title,callback:function(i){t.$set(e.miniprogram,"title",i)},expression:"item.miniprogram.title"}})],1),t._v(" "),i("div",{staticClass:"lineItem"},[t._m(11,!0),t._v(" "),i("el-input",{staticClass:"self_input",attrs:{size:"small",placeholder:"请输入小程序appID",maxlength:"32","show-word-limit":"",clearable:""},model:{value:e.miniprogram.appid,callback:function(i){t.$set(e.miniprogram,"appid",i)},expression:"item.miniprogram.appid"}})],1),t._v(" "),i("div",{staticClass:"lineItem"},[t._m(12,!0),t._v(" "),i("el-input",{staticClass:"self_input",attrs:{size:"small",placeholder:"请输入小程序路径",maxlength:"500","show-word-limit":"",clearable:""},model:{value:e.miniprogram.page,callback:function(i){t.$set(e.miniprogram,"page",i)},expression:"item.miniprogram.page"}})],1),t._v(" "),i("div",{staticClass:"lineItem"},[t._m(13,!0),t._v(" "),i("div",{staticClass:"self_input"},[i("el-upload",{key:"miniprogramCover"+e.key_val,staticClass:"avatar-uploader",attrs:{action:t.URL.BASEURL+t.URL.material_upload,name:"material_file",data:t.extraData_img,"show-file-list":!1,"before-upload":function(){t.$loading(t.$loadingConfig)},"on-success":function(i,a,s){return t.uploadSuccess(i,a,s,"miniprogram",e.key_val)},"on-error":t.uploadFail,accept:".jpg,.jpeg,.png"}},[i("div",{attrs:{slot:"trigger"},slot:"trigger"},[e.miniprogram.pic_url?i("img",{staticClass:"uploadImg",attrs:{src:e.miniprogram.pic_url}}):i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),t._v(" "),e.miniprogram.pic_url?i("span",[i("i",{staticClass:"el-icon-zoom-in pointer f14 c-666",on:{click:function(i){return t.handleSee("miniprogram",e.miniprogram.pic_url)}}}),t._v(" "),i("i",{staticClass:"el-icon-delete pointer f14 c-666",on:{click:function(i){return t.handleDele("miniprogram",e.key_val)}}})]):t._e(),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[i("div",[t._v("建议尺寸:200*200,大小不超过5M.")]),t._v(" "),e.uploadErrFlag?i("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(e.uploadErrInfo))]):t._e()])])],1)])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:4==e.fileType_Val,expression:"item.fileType_Val==4"}]},[i("div",{staticClass:"lineItem"},[t._m(14,!0),t._v(" "),i("el-input",{staticClass:"self_input",attrs:{size:"small",placeholder:"请输入文件名称",maxlength:"32","show-word-limit":"",clearable:""},model:{value:e.wideFile.name,callback:function(i){t.$set(e.wideFile,"name",i)},expression:"item.wideFile.name"}})],1),t._v(" "),i("div",{staticClass:"lineItem"},[t._m(15,!0),t._v(" "),i("div",{staticClass:"self_input"},[i("el-upload",{key:"wideFile"+e.key_val,attrs:{action:t.URL.BASEURL+t.URL.material_upload,name:"material_file",data:t.extraData_pdf,"show-file-list":!1,"before-upload":function(){t.$loading(t.$loadingConfig)},"on-error":t.uploadFail,"on-success":function(i,a,s){return t.uploadSuccess(i,a,s,"wideFile",e.key_val)}}},[i("div",{attrs:{slot:"trigger"},slot:"trigger"},[e.wideFile.pic_url?i("div",{staticClass:"wideFileBox"},[t._v(t._s(e.wideFile.pic_url)+" ")]):i("el-button",{attrs:{size:"small",icon:"el-icon-upload"}},[t._v("上传文件")])],1),t._v(" "),e.wideFile.pic_url?i("div",{staticClass:"tMar10"},[i("i",{staticClass:"el-icon-zoom-in pointer f14 c-666",on:{click:function(i){return t.handleSee("wideFile",e.wideFile.pic_url)}}}),t._v(" "),i("i",{staticClass:"el-icon-delete pointer f14 c-666",on:{click:function(i){return t.handleDele("wideFile",e.key_val)}}})]):t._e(),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[i("div",[t._v("请上传文件,大小不超过10MB")]),t._v(" "),e.uploadErrFlag?i("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(e.uploadErrInfo))]):t._e()])])],1)])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.fileType_Val,expression:"item.fileType_Val==3"}]},[i("div",{staticClass:"lineItem"},[t._m(16,!0),t._v(" "),i("el-input",{staticClass:"self_input",attrs:{size:"small",placeholder:"请输入视频名称",maxlength:"32","show-word-limit":"",clearable:""},model:{value:e.mp4.name,callback:function(i){t.$set(e.mp4,"name",i)},expression:"item.mp4.name"}})],1),t._v(" "),i("div",{staticClass:"lineItem"},[t._m(17,!0),t._v(" "),i("div",{staticClass:"self_input"},[i("el-upload",{key:"mp4Upload"+e.key_val,attrs:{action:t.URL.BASEURL+t.URL.material_upload,name:"material_file",data:t.extraData_mp4,accept:".mp4,.MP4","show-file-list":!1,"before-upload":function(){t.$loading(t.$loadingConfig)},"on-success":function(i,a,s){return t.uploadSuccess(i,a,s,"mp4",e.key_val)},"on-error":t.uploadFail}},[i("div",{attrs:{slot:"trigger"},slot:"trigger"},[e.mp4.pic_url?i("video",{staticStyle:{width:"200px",height:"260px"},attrs:{controls:"controls",src:e.mp4.pic_url}}):i("el-button",{attrs:{size:"small",icon:"el-icon-upload"}},[t._v("上传视频")])],1),t._v(" "),e.mp4.pic_url?i("div",{staticClass:"tMar10"},[i("i",{staticClass:"el-icon-zoom-in pointer f14 c-666",on:{click:function(i){return t.handleSee("mp4",e.mp4.pic_url)}}}),t._v(" "),i("i",{staticClass:"el-icon-delete pointer f14 c-666",on:{click:function(i){return t.handleDele("mp4",e.key_val)}}})]):t._e(),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[i("div",[t._v("只能上传.mp4文件,且不超过10MB")]),t._v(" "),e.uploadErrFlag?i("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(e.uploadErrInfo))]):t._e()])])],1)])]),t._v(" "),t.wordsList&&t.wordsList.length>=2?i("el-popconfirm",{attrs:{placement:"bottom-start",title:"确定删除吗?"},on:{confirm:function(i){return t.deleWords(e.key_val)}}},[i("div",{staticClass:"deleBox",attrs:{slot:"reference"},slot:"reference"},[i("i",{staticClass:"el-icon-delete"}),t._v("删除此条话术")])]):t._e()]:t._e()],2)}),0)]),t._v(" "),i("el-dialog",{attrs:{width:"40%","append-to-body":"",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},["wideFile"==t.big_see?i("iframe",{staticStyle:{width:"100%",height:"500px"},attrs:{src:"http://view.xdocin.com/xdoc?_xdoc="+t.big_url,frameborder:"0",scrolling:"no"}}):t._e(),t._v(" "),"img"==t.big_see||"miniprogram"==t.big_see||"link"==t.big_see?i("img",{attrs:{width:"100%",src:t.big_url,alt:""}}):t._e(),t._v(" "),"mp4"==t.big_see?i("video",{staticStyle:{width:"100%",height:"500px"},attrs:{src:t.big_url,controls:"controls"}}):t._e()])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticStyle:{"flex-shrink":"0"}},[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("链接描述:")])},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("div",{staticClass:"self-hint",staticStyle:{"margin-bottom":"10px",border:"none"}},[e("i",{staticClass:"el-icon-message-solid"}),this._v(" "),e("span",[this._v("请填写企业微信后台绑定的小程序id和路径,否则会造成发送失败")])])},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("appID:")])},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 y={name:"createquickword",props:["rule_id"],components:{fileType:i("VU/8")(v,f,!1,function(t){i("C8ko"),i("1O9W")},"data-v-01ed8591",null).exports},data:function(){return{reset:!1,loading:!1,edit_detial_Flag:!1,quickwordtitle:"",group_id:"",groupArrs:[],msg_list:[],file_rule_id:""}},watch:{rule_id:function(){this.rule_id_init()}},created:function(){this.init_groupList(),this.rule_id_init()},methods:{rule_id_init:function(){this.rule_id?this.detail():(this.empty_define(),this.edit_detial_Flag=!0)},empty_define:function(){this.reset=!this.reset,this.quickwordtitle="",this.group_id="",this.msg_list=[]},init_groupList:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.quick_groupList,{params:{page:1,page_size:500}}).then(function(e){(e=e.data)&&0==e.errno?t.groupArrs=e.rst.data:4002!=e.errno&&t.$message({message:e.err,type:"warning"})})},detail:function(){var t=this;this.loading=!0,this.reset=!this.reset,this.$axios.post(this.URL.BASEURL+this.URL.quick_quickDetial,{rule_id:this.rule_id}).then(function(e){if(t.loading=!1,(e=e.data)&&0==e.errno){var i=e.rst;t.group_id=i.group_id,t.quickwordtitle=i.title,t.msg_list=i.msg_list,t.file_rule_id=t.rule_id,t.edit_detial_Flag=!0}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})},newCode_click:function(){var t=this;if(""!=this.quickwordtitle){if(this.$refs.fileTypeRef.judgeIsComplete(),this.$refs.fileTypeRef.returnFlag){this.$loading(this.$loadingConfig);var e="";e=this.rule_id?this.URL.quick_quickEdit:this.URL.quick_addquick,this.$axios.post(this.URL.BASEURL+e,{rule_id:this.rule_id?this.rule_id:"",group_id:this.group_id,title:this.quickwordtitle,msg_data_list:s()(this.$refs.fileTypeRef.msg_data_list)}).then(function(e){e=e.data;t.$loading(t.$loadingConfig).close(),e&&0==e.errno?t.$emit("init"):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.$loading(t.$loadingConfig).close()})}}else this.$message({type:"error",message:"快捷话术标题不能为空!"})}}},b={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"}]},[t.edit_detial_Flag?i("div",{staticClass:"createMassMsg",staticStyle:{padding:"0 20px"}},[i("div",{staticClass:"regulations",staticStyle:{"align-items":"center"}},[t._m(0),t._v(" "),i("el-select",{staticStyle:{width:"500px"},attrs:{size:"small",clearable:"",placeholder:"请选择"},model:{value:t.group_id,callback:function(e){t.group_id=e},expression:"group_id"}},t._l(t.groupArrs,function(t,e){return i("el-option",{key:e,attrs:{label:t.group_name,value:t.group_id}})}),1)],1),t._v(" "),i("div",{staticClass:"regulations"},[t._m(1),t._v(" "),i("el-input",{staticStyle:{width:"500px"},attrs:{placeholder:"请输入话术标题",maxlength:"32","show-word-limit":"",clearable:"",size:"small"},model:{value:t.quickwordtitle,callback:function(e){t.quickwordtitle="string"==typeof e?e.trim():e},expression:"quickwordtitle"}})],1),t._v(" "),i("fileType",{ref:"fileTypeRef",attrs:{msg_list:t.msg_list,file_rule_id:t.file_rule_id,reset:t.reset}}),t._v(" "),i("div",{staticStyle:{margin:"20px 0 20px 100px"}},[i("el-button",{attrs:{type:"primary"},on:{click:t.newCode_click}},[t._v("保存")])],1)],1):t._e()])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",{staticStyle:{opacity:"0"}},[this._v("*")]),this._v("选择分组")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("标题")])}]};var C=i("VU/8")(y,b,!1,function(t){i("a3v6")},"data-v-1c9aad0b",null).exports,w={name:"quickwordList",components:{draggable:n.a,createquickword:C},props:["propsData"],computed:{noMore:function(){return this.currPage_len<this.page_size},disabled:function(){return this.moreloading||this.noMore}},data:function(){return{showQuick:!1,loading:!1,moreloading:!1,rule_id:"",page:1,page_size:20,height:"",tableData:[],copy_tableData:[],currPage_len:0,desCol:[{prop:"chat_message",label:"话术内容",min_width:"20%",align:"left",pad:"10px"},{prop:"group_name",label:"分组"},{prop:"title",label:"标题",min_width:"20%"},{prop:"chat_type_name",label:"类型"},{prop:"send_num",label:"总发送次数",min_width:"12%"},{prop:"oprate",label:"操作"}]}},watch:{"propsData.initFlag":function(){this.re_load()}},created:function(){this.height=document.documentElement.clientHeight-300>400?document.documentElement.clientHeight-300:400,this.init()},methods:{re_load:function(){this.showQuick=!1,this.page=1,this.tableData=[],this.copy_tableData=[],this.init()},load:function(){this.page+=1,this.init()},editquickword:function(t){this.rule_id=t,this.showQuick=!0},delequickword:function(t){var e=this;this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.quick_quickDele,{rule_id:t}).then(function(t){t=t.data;e.loading=!1,e.$message({message:t.err,type:"warning"}),t&&0==t.errno&&(e.page=1,e.tableData=[],e.copy_tableData=[],e.init(1))}).catch(function(t){e.loading=!1})},draggableSort:function(t){var e=this,i=(t.to,t.from,t.item,t.clone,t.oldIndex),a=t.newIndex;this.copy_tableData[i].rule_id?this.$axios.post(this.URL.BASEURL+this.URL.quick_quickSort,{operate_rule_id:this.copy_tableData[i].rule_id,front_rule_id:a-1>=0?this.tableData[a-1].rule_id:"",behind_rule_id:a+1<this.tableData.length?this.tableData[a+1].rule_id:""}).then(function(t){(t=t.data)&&0==t.errno?e.copy_tableData=JSON.parse(s()(e.tableData)):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}):this.$message({message:"被拖动的快捷话术id错误",type:"warning"})},init:function(){var t=this;this.loading=!0,this.currPage_len>=this.page_size&&(this.moreloading=!0),this.$axios.get(this.URL.BASEURL+this.URL.quick_quickList,{params:{group_id:this.propsData.group_id,title:this.propsData.quickword_val,page:this.page,page_size:this.page_size}}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(t.tableData=[].concat(_()(t.tableData),_()(e.rst.data)),t.copy_tableData=JSON.parse(s()(t.tableData)),t.currPage_len=e.rst.data.length,t.moreloading=!1):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}}},k={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"quickCon"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"infinite-list-wrapper"},[i("div",{staticClass:"tHead"},t._l(t.desCol,function(e){return i("div",{style:[{width:e.min_width?e.min_width:"16%"},{textAlign:e.align?e.align:"center"},{paddingLeft:e.pad?e.pad:"0"}]},[t._v(t._s(e.label?e.label:"-"))])}),0),t._v(" "),t.tableData&&t.tableData.length>0?i("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],staticClass:"tBody",attrs:{"infinite-scroll-distance":20,"infinite-scroll-immediate":!1,"infinite-scroll-disabled":"disabled"}},[i("draggable",{staticClass:"syllable_ul",attrs:{element:"ul",list:t.tableData,emptyInsertThreshold:0,options:{group:"name",animation:200,ghostClass:"ghostClass",dragClass:"dragClass"}},on:{sort:t.draggableSort}},t._l(t.tableData,function(e,a){return i("div",{staticClass:"body_item",class:a==t.tableData.length-1?"borderBottomline":""},t._l(t.desCol,function(a){return i("div",{staticClass:"body_cell",style:[{width:a.min_width?a.min_width:"16%"},{textAlign:a.align?a.align:"center"}]},["chat_message"==a.prop?i("div",{staticStyle:{padding:"10px"}},["复合类型"==e.chat_type_name?t._l(e.chat_message,function(e){return i("div",{staticClass:"tMar5"},[i("div",{staticClass:"flex-align-center"},[i("span",{staticClass:"rMar5",staticStyle:{"flex-shrink":"0"}},[1==e.chat_type?i("span",[t._v("文字: ")]):t._e(),t._v(" "),2==e.chat_type?i("span",[t._v("图片: ")]):t._e(),t._v(" "),5==e.chat_type?i("span",[t._v("链接: ")]):t._e(),t._v(" "),6==e.chat_type?i("span",[t._v("小程序: ")]):t._e(),t._v(" "),4==e.chat_type?i("span",[t._v("文件: ")]):t._e(),t._v(" "),3==e.chat_type?i("span",[t._v("视频: ")]):t._e()]),t._v(" "),5==e.chat_type?i("span",{staticClass:"text_spill"},[i("el-tooltip",{attrs:{"popper-class":"disinblock",content:e.title,disabled:e.title&&e.title.length<20,placement:"top"}},[i("span",[t._v(t._s(e.title?e.title:"-"))])])],1):1==e.chat_type?i("span",{staticClass:"text_spill"},[i("el-tooltip",{attrs:{"popper-class":"disinblock",content:e.content,disabled:e.content&&e.content.length<20,placement:"top"}},[i("span",[t._v(t._s(e.content?e.content:"-"))])])],1):i("span",{staticClass:"text_spill"},[e.name?i("span",[i("el-tooltip",{attrs:{"popper-class":"disinblock",content:e.name,disabled:e.name&&e.name.length<20,placement:"top"}},[i("span",[t._v(t._s(e.name))])])],1):e.title?i("span",[i("el-tooltip",{attrs:{"popper-class":"disinblock",content:e.title,disabled:e.title&&e.title.length<20,placement:"top"}},[i("span",[t._v(t._s(e.title))])])],1):i("span",[t._v("-")])])])])}):t._l(e.chat_message,function(e){return i("div",[2==e.chat_type?i("div",{staticClass:"flex-align-center tMar5"},[i("img",{staticStyle:{width:"40px","margin-right":"8px"},attrs:{src:e.oss_url,alt:""}}),t._v(" "),i("el-tooltip",{attrs:{"popper-class":"disinblock",content:e.name,disabled:e.name&&e.name.length<20,placement:"top"}},[i("span",{staticClass:"text_spill"},[t._v(t._s(e.name?e.name:"-"))])])],1):3==e.chat_type?i("div",{staticClass:"flex-align-center tMar5"},[i("video",{staticStyle:{width:"80px",height:"80px","margin-right":"8px"},attrs:{src:e.oss_url,controls:"controls"}}),t._v(" "),i("el-tooltip",{attrs:{"popper-class":"disinblock",content:e.name,disabled:e.name&&e.name.length<20,placement:"top"}},[i("span",{staticClass:"text_spill"},[t._v(t._s(e.name?e.name:"-"))])])],1):5==e.chat_type?i("div",{staticClass:"flex-align-center tMar5"},[i("img",{staticStyle:{width:"40px","margin-right":"8px","flex-shrink":"0"},attrs:{src:e.imgUrl,alt:""}}),t._v(" "),i("div",{staticStyle:{width:"100%"}},[i("el-tooltip",{attrs:{"popper-class":"disinblock",content:e.title,disabled:e.title&&e.title.length<20,placement:"top"}},[i("div",{staticClass:"text_spill"},[t._v(t._s(e.title?e.title:"-"))])]),t._v(" "),i("el-tooltip",{attrs:{"popper-class":"disinblock",content:e.desc,disabled:e.desc&&e.desc.length<20,placement:"top"}},[i("div",{staticClass:"f12 c-999 tMar10 text_spill"},[t._v(t._s(e.desc?e.desc:"-"))])])],1)]):1==e.chat_type?i("div",{staticClass:"flex-align-center tMar5"},[i("el-tooltip",{attrs:{"popper-class":"disinblock",content:e.content,disabled:e.content&&e.content.length<20,placement:"top"}},[i("span",{staticClass:"text_spill"},[t._v(t._s(e.content?e.content:"-"))])])],1):i("div",{staticClass:"flex-align-center tMar5 text_spill"},[t._v("\n 内容:\n "),e.name?i("span",[i("el-tooltip",{attrs:{"popper-class":"disinblock",content:e.name,disabled:e.name&&e.name.length<20,placement:"top"}},[i("span",[t._v(t._s(e.name))])])],1):e.title?i("span",[i("el-tooltip",{attrs:{"popper-class":"disinblock",content:e.title,disabled:e.title&&e.title.length<20,placement:"top"}},[i("span",[t._v(t._s(e.title))])])],1):i("span",[t._v("-")])])])})],2):"oprate"==a.prop?i("div",[i("div",{staticStyle:{padding:"0 10px","font-size":"13px",display:"flex","align-items":"center","justify-content":"center"}},[i("div",{staticClass:"c-00B38A pointer",on:{click:function(i){return t.editquickword(e.rule_id)}}},[t._v("编辑")]),t._v(" "),i("el-popconfirm",{attrs:{title:"确定删除【"+e.title+"】话术?"},on:{confirm:function(i){return t.delequickword(e.rule_id)}}},[i("div",{staticClass:"c-00B38A pointer lMar8",attrs:{slot:"reference"},slot:"reference"},[t._v("删除")])])],1)]):i("div",[t._v(t._s(e[a.prop]||0==e[a.prop]?e[a.prop]:"-"))])])}),0)}),0),t._v(" "),t.moreloading?i("p",{staticClass:"text-center f14 tMar8 c-d3"},[t._v("加载中...")]):t._e(),t._v(" "),t.noMore?i("p",{staticClass:"text-center f14 tMar8 c-d3"}):t._e()],1):i("div",{staticClass:"noData"},[t._v("暂无数据")])]),t._v(" "),i("el-drawer",{attrs:{visible:t.showQuick,direction:"rtl",size:"65%"},on:{"update:visible":function(e){t.showQuick=e}}},[i("div",{staticClass:"c-000",attrs:{slot:"title"},slot:"title"},[t._v("编辑话术")]),t._v(" "),i("createquickword",{attrs:{rule_id:t.rule_id},on:{init:function(e){return t.re_load()}}})],1)],1)},staticRenderFns:[]};var x=i("VU/8")(w,k,!1,function(t){i("25C3"),i("Ctb2")},"data-v-caeb43b6",null).exports,S={name:"quickIndex",components:{selfInput:d.a,groupList:h,quickwordList:x,createquickword:C},data:function(){return{showQuick:!1,initFlag:!1,quickword_val:"",reset:!1,group_id:""}},methods:{newQuick:function(){var t=this;this.showQuick=!0,this.$nextTick(function(){t.$refs.createquickwordRef.rule_id_init()})},resetEvent:function(){this.initFlag=!this.initFlag,this.reset=!this.reset,this.quickword_val=""},created_quickword:function(){this.$router.push({path:"/createquickword"})},copy:function(){var t="";t=sessionStorage.getItem("company_session_defaultCorp")&&"undefined"!=sessionStorage.getItem("company_session_defaultCorp")?JSON.parse(sessionStorage.getItem("company_session_defaultCorp")).corpid:this.$localSelfStore.getLocal("defaultCorp")&&"undefined"!=this.$localSelfStore.getLocal("defaultCorp")?JSON.parse(this.$localSelfStore.getLocal("defaultCorp")).corpid:"";var e="http://"+window.location.host+"/hunter/qwh5/dist/index.html#/quickwordH5?corpid="+t,i=document.createElement("textarea");document.body.appendChild(i),i.value=e,i.select(),i.readOnly="readOnly",document.execCommand("copy"),document.body.removeChild(i),this.$message({message:"复制成功",type:"success"})}}},$={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"con quickCon"},[i("div",{staticClass:"searchBox"},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.newQuick}},[t._v("新建话术")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.copy}},[t._v("复制链接")]),t._v(" "),i("self-input",{attrs:{reset:t.reset,label_name:"搜索话术"},on:{inputChange:function(e){t.quickword_val=e,t.initFlag=!t.initFlag}}}),t._v(" "),i("div",{staticClass:"reset",on:{click:t.resetEvent}},[t._v("重置")])],1),t._v(" "),i("div",{staticClass:"mainBox"},[i("div",{staticClass:"groupBox"},[i("groupList",{on:{getId:function(e){t.group_id=e,t.initFlag=!t.initFlag}}})],1),t._v(" "),i("div",{staticClass:"tableBox"},[i("quickwordList",{attrs:{propsData:{initFlag:t.initFlag,quickword_val:t.quickword_val,group_id:t.group_id}}})],1)]),t._v(" "),i("el-drawer",{attrs:{visible:t.showQuick,direction:"rtl",size:"65%"},on:{"update:visible":function(e){t.showQuick=e}}},[i("div",{staticClass:"c-000",attrs:{slot:"title"},slot:"title"},[t._v("新增话术")]),t._v(" "),i("createquickword",{ref:"createquickwordRef",attrs:{rule_id:""},on:{init:function(){t.initFlag=!t.initFlag,t.showQuick=!1}}})],1)],1)},staticRenderFns:[]};var L=i("VU/8")(S,$,!1,function(t){i("Tc81"),i("fizK")},"data-v-edcf54ac",null).exports,V={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{"append-to-body":!0,"custom-class":"channel_code_group",title:t.propsData.dialogTitle+"分组",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"dialogBox"},[i("div",{staticClass:"lable"},[t._v("分组名称")]),t._v(" "),i("el-input",{attrs:{size:"small",placeholder:"请输入内容",maxlength:"8",clearable:""},model:{value:t.groupName,callback:function(e){t.groupName=e},expression:"groupName"}})],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(e){return t.save(t.propsData.dialogTitle)}}},[t._v("确 定")])],1)])},staticRenderFns:[]};var D={name:"groupList",components:{dialogGroup:i("VU/8")({name:"dialogGroup",props:["propsData"],data:function(){return{groupName:"",dialogVisible:!1,loading:!1}},methods:{save:function(t){"修改"==t?this.editGroup():this.addGroup()},addGroup:function(){var t=this;""!=this.groupName?(this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.radar_addGroup,{group_name:this.groupName}).then(function(e){e=e.data,t.loading=!1,t.$message({message:e.err,type:"warning"}),e&&0==e.errno&&(t.dialogVisible=!1,t.$emit("init"))}).catch(function(e){t.loading=!1})):this.$message({message:"分组名必填",type:"info"})},editGroup:function(){var t=this;""!=this.groupName?(this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.radar_editGroup,{group_id:this.propsData.groupId,group_name:this.groupName}).then(function(e){e=e.data,t.loading=!1,t.$message({message:e.err,type:"warning"}),e&&0==e.errno&&(t.dialogVisible=!1,t.$emit("init"))}).catch(function(e){t.loading=!1})):this.$message({message:"分组名必填",type:"info"})}}},V,!1,function(t){i("9AfA")},null,null).exports,draggable:n.a},computed:{noMore:function(){return this.currPage_len<this.page_size},disabled:function(){return this.moreloading||this.noMore}},data:function(){return{dialogTitle:"添加",acIdx:null,tableData:[],copy_tableData:[],loading:!1,page:1,page_size:20,groupId:"",currPage_len:0,moreloading:!1,deleGroupShow:!1,deleGroupId:"",isDeleChild:1}},created:function(){this.init()},methods:{init_clear:function(){this.page=1,this.tableData=[],this.copy_tableData=[],this.init()},load:function(){this.page+=1,this.init()},draggableSort:function(t){var e=this,i=(t.to,t.from,t.item,t.clone,t.oldIndex),a=t.newIndex;this.copy_tableData[i].group_id?this.$axios.post(this.URL.BASEURL+this.URL.radar_sortGroup,{operate_group_id:this.copy_tableData[i].group_id,front_group_id:a-1>=0?this.tableData[a-1].group_id:"",behind_group_id:a+1<this.tableData.length?this.tableData[a+1].group_id:""}).then(function(t){(t=t.data)&&0==t.errno?e.copy_tableData=JSON.parse(s()(e.tableData)):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}):this.$message({message:"被拖动的雷达组id错误",type:"warning"})},init:function(){var t=this;this.loading=!0,this.currPage_len>=this.page_size&&(this.moreloading=!0),this.$axios.get(this.URL.BASEURL+this.URL.radar_groupList,{params:{page:this.page,page_size:this.page_size}}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(t.tableData=[].concat(_()(t.tableData),_()(e.rst.data)),t.copy_tableData=JSON.parse(s()(t.tableData)),t.currPage_len=e.rst.data.length,t.moreloading=!1):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})},handleCommand:function(t){var e=t.split("/"),i=e[0],a=e[1],s=e[2];"editName"==i?this.editGroup(s,a):"deleGroup"==i&&(this.deleGroupId=a,this.deleGroupShow=!0)},editGroup:function(t,e){var i=this;this.$nextTick(function(){i.dialogTitle="修改",i.$refs.dialogGroupRef.groupName=t,i.groupId=e,i.$refs.dialogGroupRef.dialogVisible=!0})},deleGroup:function(){var t=this;this.deleGroupId?(this.deleGroupShow=!1,this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.radar_deleGroup,{group_id:this.deleGroupId,type:this.isDeleChild}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(t.page=1,t.tableData=[],t.copy_tableData=[],t.init(),t.itemClick(null)):4002!=e.errno&&t.$message({message:e.err,type:"warning"})})):this.$message({message:"雷达组ID为空",type:"warning"})},itemClick:function(t){this.acIdx=t,this.$emit("getId",t)}}},U={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"title"},[i("span",{staticClass:"fWeight600 c-000 f14"},[t._v("雷达分组")]),t._v(" "),i("span",{staticClass:"addGroupBox",on:{click:function(e){t.$refs.dialogGroupRef.dialogVisible=!0,t.$refs.dialogGroupRef.groupName=""}}},[i("i",{staticClass:"el-icon-plus f12"}),t._v("\n 添加分组\n ")])]),t._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading.body",value:t.loading,expression:"loading",modifiers:{body:!0}}],staticClass:"listBox infinite-list-wrapper"},[i("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],attrs:{"infinite-scroll-distance":20,"infinite-scroll-immediate":!1,"infinite-scroll-disabled":"disabled"}},[i("div",{staticClass:"item_css",class:[null==t.acIdx?"ac_css":""],on:{click:function(e){return t.itemClick(null)}}},[i("i",{staticClass:"el-icon-folder"}),t._v("全部雷达")]),t._v(" "),i("draggable",{staticClass:"syllable_ul",attrs:{element:"ul",list:t.tableData,emptyInsertThreshold:0,options:{group:"name",animation:200,ghostClass:"ghostClass",dragClass:"dragClass"}},on:{sort:t.draggableSort}},t._l(t.tableData,function(e,a){return i("div",{key:e.group_id,staticClass:"item_css",class:[t.acIdx==e.group_id?"ac_css":""],on:{click:function(i){return t.itemClick(e.group_id)}}},[i("i",{staticClass:"el-icon-folder",staticStyle:{cursor:"move"}}),t._v(" "),i("span",[t._v(t._s(e.group_name?e.group_name:"-"))]),t._v(" "),i("span",{staticClass:"lMarauto"},[i("el-dropdown",{on:{command:t.handleCommand}},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"el-icon-more"})]),t._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"editName/"+e.group_id+"/"+e.group_name}},[t._v("修改名称")]),t._v(" "),i("el-dropdown-item",{attrs:{command:"deleGroup/"+e.group_id}},[t._v("删除分组")])],1)],1)],1)])}),0)],1),t._v(" "),t.moreloading?i("p",{staticClass:"text-center f14 tMar8 c-d3"},[t._v("加载中...")]):t._e(),t._v(" "),t.noMore?i("p",{staticClass:"text-center f14 tMar8 c-d3"}):t._e()]),t._v(" "),i("el-dialog",{attrs:{title:"提示",visible:t.deleGroupShow,width:"30%"},on:{"update:visible":function(e){t.deleGroupShow=e}}},[i("div",{staticClass:"text-center"},[i("div",{staticClass:"f16"},[t._v("此操作将永久删除该分组, 是否继续")]),t._v(" "),i("div",{staticClass:"tMar20 c-666 f13"},[t._v("是否删除该分组下所有雷达?\n "),i("el-switch",{attrs:{"active-value":"2","inactive-value":"1","active-color":"#ff4040","inactive-color":"#ddd"},model:{value:t.isDeleChild,callback:function(e){t.isDeleChild=e},expression:"isDeleChild"}})],1)]),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){t.deleGroupShow=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.deleGroup}},[t._v("确 定")])],1)]),t._v(" "),i("dialogGroup",{ref:"dialogGroupRef",attrs:{propsData:{dialogTitle:t.dialogTitle,groupId:t.groupId}},on:{init:t.init_clear}})],1)},staticRenderFns:[]};var E=i("VU/8")(D,U,!1,function(t){i("ZWlf")},"data-v-b5a70c5a",null).exports,R=i("gzej"),T=i("fGUm"),F={name:"publicTable",props:["propsData"],components:{selfInput:d.a,datePicker:R.a,selfCustomerservice:T.a},data:function(){return{loading:!1,dataLoading:!1,page:1,pages:0,total:0,page_size:20,height:"",tableData:[],default_time:[this.$getDay(-30,!1),this.$getDay(0,!1)],time:[],customer_name:"",channel:"",user_list:"",reset:!1,customer_count:0,channelList:[]}},watch:{"propsData.initFlag":function(){this.source_init()},"propsData.reset":function(){this.init_analyse_list()}},created:function(){this.init_channel_list(),this.time=this.default_time,this.height=document.documentElement.clientHeight-300>400?document.documentElement.clientHeight-300:400,this.source_init()},methods:{resetAll:function(){this.customer_name="",this.channel="",this.user_list="",this.reset=!this.reset},changeTime:function(t){!t||t&&0==t.length?this.time=[]:this.time=t,this.source_init(1)},source_init:function(t){t=t||1,"radarIndex"==this.propsData.source?(this.init(t),this.height=document.documentElement.clientHeight-220>400?document.documentElement.clientHeight-220:400):"dataAnalyse"==this.propsData.source&&this.init_analyse_list(t)},init_channel_list:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.radar_channelList,{}).then(function(e){(e=e.data)&&0==e.errno?t.channelList=e.rst:4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})},init_analyse_list:function(){var t=this;console.log(this.propsData.radar_id),""!=this.propsData.radar_id?(this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.radar_dataView_list,{params:{radar_id:this.propsData.radar_id,customer_name:this.customer_name,channel:this.channel,user_list:this.user_list,start_date:this.time[0],end_date:this.time[1],page:this.page,page_size:this.page_size}}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(t.tableData=e.rst.data.list,t.customer_count=e.rst.data.customer_count):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})):this.$message({message:"radar_id不正确",type:"warning"})},goDataAanlyse:function(t){this.$router.push("/radar_dataAnalyse/"+t)},editRadar:function(t){},deleRadar:function(t){var e=this;this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.radar_radarDele,{radar_id:t}).then(function(t){t=t.data;e.loading=!1,e.$message({message:t.err,type:"warning"}),t&&0==t.errno&&e.init(1)}).catch(function(t){e.loading=!1})},init:function(t){var e=this;this.page=t||this.page,this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.radar_radarList,{params:{group_id:this.propsData.group_id,name:this.propsData.radar_val,page:this.page,pagesize:this.page_size}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?(e.tableData=t.rst.data,e.total=t.rst.pageInfo.total,e.pages=t.rst.pageInfo.pages):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},handleCurrentChange:function(t){this.source_init(t)}}},B={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",["dataAnalyse"==t.propsData.source?[i("div",{staticClass:"span_title"},[i("span",{staticClass:"spn_area"}),t._v("\n 打开链接的客户 ("+t._s(t.customer_count||0==t.customer_count?t.customer_count:"-")+")\n ")]),t._v(" "),i("div",{staticClass:"flex-align-center",staticStyle:{"flex-wrap":"wrap"}},[i("self-input",{attrs:{reset:t.reset,hasLabel:!1,label_name:"搜索客户"},on:{inputChange:function(e){t.customer_name=e,t.source_init()}}}),t._v(" "),i("div",{staticClass:"flex",staticStyle:{margin:"0 10px"}},[i("el-select",{staticStyle:{width:"200px"},attrs:{size:"small",clearable:"",placeholder:"请选择渠道"},on:{change:function(e){return t.source_init()}},model:{value:t.channel,callback:function(e){t.channel=e},expression:"channel"}},t._l(t.channelList,function(t,e){return i("el-option",{key:e,attrs:{label:t.value,value:t.key}})}),1)],1),t._v(" "),i("date-picker",{attrs:{reset:t.reset,title:"",quickFlag:!1,afferent_time:t.default_time,clearFlag:!1},on:{changeTime:t.changeTime}}),t._v(" "),i("self-customerservice",{staticStyle:{"margin-left":"10px"},attrs:{reset:t.reset,title:""},on:{customerDefine:function(e){t.user_list=e,t.source_init()}}}),t._v(" "),i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"mini"},on:{click:t.resetAll}},[t._v("重置")])],1)]:t._e(),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{border:"",height:t.height,data:t.tableData,"tooltip-effect":"dark","header-cell-style":function(){return{backgroundColor:"#f9f9f9 !important"}}}},[t._l(t.propsData.desCol,function(e){return[i("el-table-column",{key:e.prop,attrs:{label:e.label,align:"center","show-overflow-tooltip":e.showOverTooltip,"min-width":e.min_width?e.min_width:110},scopedSlots:t._u([e.tooltip?{key:"header",fn:function(){return[t._v("\n "+t._s(e.label?e.label:"-")+"\n "),i("el-tooltip",{staticClass:"disinblock",attrs:{content:e.tooltip,placement:"top"}},[i("i",{staticClass:"el-icon-question"})])]},proxy:!0}:null,{key:"default",fn:function(a){return["type"==e.prop?i("div",[1==a.row.type?i("span",[t._v("链接")]):2==a.row.type?i("span",[t._v("PDF")]):3==a.row.type?i("span",[t._v("图片")]):4==a.row.type?i("span",[t._v("视频")]):i("span",[t._v("-")])]):"tag_list"==e.prop?i("div",[a.row.tag_list&&0==a.row.tag_list.length||!a.row.tag_list?[t._v("-")]:i("div",{staticClass:"customerServiceTagBox biaoqian"},t._l(a.row.tag_list,function(e,a){return i("div",{key:a+"biaoqian",staticClass:"customerServiceTag"},[t._v(t._s(e))])}),0)],2):i("div",[t._v(t._s(a.row[e.prop]||0==a.row[e.prop]?a.row[e.prop]:"-"))])]}}],null,!0)})]}),t._v(" "),"radarIndex"==t.propsData.source?[i("el-table-column",{attrs:{label:"操作",align:"center","min-width":"180px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"flex"},[i("div",{staticClass:"c-00B38A pointer",on:{click:function(i){return t.editRadar(e.row.radar_id)}}},[t._v("编辑")]),t._v(" "),i("el-popconfirm",{attrs:{title:"确定删除【"+e.row.name+"】渠道活码?"},on:{confirm:function(i){return t.deleRadar(e.row.radar_id)}}},[i("div",{staticClass:"c-00B38A pointer lMar8",attrs:{slot:"reference"},slot:"reference"},[t._v("删除")])]),t._v(" "),i("div",{staticClass:"c-00B38A pointer lMar8",on:{click:function(i){return t.goDataAanlyse(e.row.radar_id)}}},[t._v("分析数据")])],1)]}}],null,!1,1134441784)})]:t._e()],2),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)],2)},staticRenderFns:[]};var A={name:"dataAnalyse",props:["analyse_id","reset"],components:{publicTable:i("VU/8")(F,B,!1,function(t){i("sfKU")},"data-v-57e1cba8",null).exports},data:function(){return{loading:!1,dataPreview:[{bigTitle:"总访问人数",bigNum:0,bigKey:"total_uv_count"},{bigTitle:"今日访问人数",bigNum:0,bigKey:"today_uv_count"},{bigTitle:"总访问次数",bigNum:0,bigKey:"total_pv_count"},{bigTitle:"今日访问次数",bigNum:0,bigKey:"today_pv_count"}],desCol:[{prop:"customer_name",label:"客户"},{prop:"user_name",label:"所属成员"},{prop:"last_click_time",label:"最近点击时间"},{prop:"last_click_channel",label:"最近点击渠道"},{prop:"pv_count",label:"客户访问总次数"}]}},watch:{reset:function(){var t=this;console.log(this.reset),this.$nextTick(function(){t.init_preview()})}},methods:{init_preview:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.radar_dataView,{params:{radar_id:this.analyse_id}}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?t.dataPreview.forEach(function(t){t.bigNum=e.rst[t.bigKey]}):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}}},I={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:"con"},[i("div",{staticClass:"dataBox"},t._l(t.dataPreview,function(e,a){return i("div",{key:a,staticClass:"box_item"},[i("div",{staticClass:"c-000 fWeight600"},[t._v(t._s(e.bigTitle?e.bigTitle:"-"))]),t._v(" "),i("div",{staticClass:"f28 pad120"},[t._v(t._s(e.bigNum||0==e.bigNum?e.bigNum:"-"))])])}),0),t._v(" "),i("div",{staticClass:"topTagBox"},[i("publicTable",{attrs:{propsData:{desCol:t.desCol,source:"dataAnalyse",radar_id:t.analyse_id,reset:t.reset}}})],1)])},staticRenderFns:[]};var N=i("VU/8")(A,I,!1,function(t){i("qGSb")},"data-v-e654ab06",null).exports,z={name:"fileType",props:["comeBackParms","reset","file_rule_id"],data:function(){return{fileType_Val:1,jumplink_val:"",pdfList:[],pdfVal:[],typeImgList:[],imgVals:[],mp4List:[],mp4Val:[],dialogVisible:!1,imgTypeUrl:!1,extraData_img:{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},extraData_pdf:{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:4},extraData_mp4:{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},returnFlag:!1,ur_list:[],coverErrInfo:"",coverErrFlag:!1,mp4Url:"",pdfUrl:""}},watch:{reset:function(){this.chuanzhi_init()},file_rule_id:function(){this.chuanzhi_init()},fileType_Val:function(){this.$emit("getType",this.fileType_Val)}},created:function(){this.chuanzhi_init()},methods:{chuanzhi_init:function(){var t=this;if(this.file_rule_id){var e=this.comeBackParms.type,i=this.comeBackParms.url_list_echo;this.fileType_Val=e,1==e?this.jumplink_val=i[0]:2==e?(this.pdfList=[],this.pdfList.push({url:i[0],name:i[0]}),this.pdfVal=i):3==e?(this.typeImgList=[],i.forEach(function(e){t.typeImgList.push({url:e})}),this.imgVals=i):4==e&&(this.mp4List=[],this.mp4List.push({url:i[0],name:i[0]}),this.mp4Val=i)}else this.fileType_Val=1,this.jumplink_val="",this.pdfList=[],this.pdfVal=[],this.typeImgList=[],this.imgVals=[],this.mp4List=[],this.mp4Val=[]},judgeType:function(){this.returnFlag=!1,this.ur_list=[],1==this.fileType_Val?""==this.jumplink_val?(this.$message({type:"error",message:"文件类型- 跳转链接不能为空!"}),this.returnFlag=!0):this.ur_list.push(this.jumplink_val):2==this.fileType_Val?this.pdfVal&&0==this.pdfVal.length?(this.$message({type:"error",message:"文件类型- PDF不能为空!"}),this.returnFlag=!0):this.ur_list=this.pdfVal:3==this.fileType_Val?this.imgVals&&0==this.imgVals.length?(this.$message({type:"error",message:"文件类型- 图片不能为空!"}),this.returnFlag=!0):this.ur_list=this.imgVals:4==this.fileType_Val?this.mp4Val&&0==this.mp4Val.length?(this.$message({type:"error",message:"文件类型- 视频不能为空!"}),this.returnFlag=!0):this.ur_list=this.mp4Val:this.ur_list=[]},handlePreview:function(t,e){this.dialogVisible=!0;var i=t.response&&t.response.rst?t.response.rst.url:t.url;"img"==e?this.imgTypeUrl=i:"mp4"==e?this.mp4Url=i:"pdf"==e&&(this.pdfUrl=i)},handleRemove:function(t,e,i){var a=this;if(this.coverErrFlag=!1,"img"==i){var s=t.response&&t.response.rst?t.response.rst.url:t.url;this.imgVals.forEach(function(t,e){s==t&&a.imgVals.splice(e,1)}),console.log(this.imgVals,"imgVals,handleRemove")}else"mp4"==i?this.mp4Val=[]:"pdf"==i&&(this.pdfVal=[])},uploadSuccess:function(t,e,i,a){if(this.$loading(this.$loadingConfig).close(),t&&0==t.errno)if("pdf"==a)this.pdfVal=[],this.pdfVal.push(t.rst.url),this.$loading(this.$loadingConfig).close();else if("img"==a){var s=[];i.forEach(function(t){var e="";t.response&&t.response.rst&&t.response.rst.url&&(e=t.response.rst.url),s.push(e)}),this.imgVals=s;var l=!0;this.imgVals.forEach(function(t){""==t&&(l=!1)}),l&&this.$loading(this.$loadingConfig).close()}else"mp4"==a&&(this.mp4Val=[],this.mp4Val.push(t.rst.url),this.$loading(this.$loadingConfig).close());else this.$message({type:"error",message:t.err}),this.coverErrFlag=!0,this.coverErrInfo=t.err},uploadFail:function(t,e,i){this.$message({message:t.err,type:"error"})},handleExceed:function(){this.$message({message:"最多上传1个照片",type:"warning"})}}},O={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"regulations"},[t._m(0),t._v(" "),i("div",{staticStyle:{display:"flex","align-items":"center",width:"300px"}},[i("el-radio",{attrs:{label:1},model:{value:t.fileType_Val,callback:function(e){t.fileType_Val=e},expression:"fileType_Val"}},[t._v("链接")]),t._v(" "),i("el-radio",{attrs:{label:2},model:{value:t.fileType_Val,callback:function(e){t.fileType_Val=e},expression:"fileType_Val"}},[t._v("PDF")]),t._v(" "),i("el-radio",{attrs:{label:3},model:{value:t.fileType_Val,callback:function(e){t.fileType_Val=e},expression:"fileType_Val"}},[t._v("图片")]),t._v(" "),i("el-radio",{attrs:{label:4},model:{value:t.fileType_Val,callback:function(e){t.fileType_Val=e},expression:"fileType_Val"}},[t._v("视频")])],1)]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.fileType_Val,expression:"fileType_Val==1"}]},[i("div",{staticClass:"regulations"},[t._m(1),t._v(" "),i("el-input",{staticStyle:{width:"500px"},attrs:{placeholder:"请输入跳转链接",maxlength:"500","show-word-limit":"",clearable:"",size:"small"},model:{value:t.jumplink_val,callback:function(e){t.jumplink_val="string"==typeof e?e.trim():e},expression:"jumplink_val"}})],1)]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:2==t.fileType_Val,expression:"fileType_Val==2"}]},[i("div",{staticClass:"regulations"},[i("label"),t._v(" "),i("el-upload",{key:"pdfUpload",attrs:{action:t.URL.BASEURL+t.URL.radar_uploadFile,data:t.extraData_pdf,accept:".pdf,.PDF",limit:1,"before-upload":function(){t.$loading(t.$loadingConfig)},"on-preview":function(e){t.handlePreview(e,"pdf")},"on-remove":function(e,i){t.handleRemove(e,i,"pdf")},"on-success":function(e,i,a){return t.uploadSuccess(e,i,a,"pdf")},"on-error":t.uploadFail,"on-exceed":t.handleExceed,"file-list":t.pdfList}},[i("el-button",{attrs:{size:"small",icon:"el-icon-upload"}},[t._v("上传文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[i("div",[t._v("只能上传pdf文件,且不超过10MB")]),t._v(" "),i("div",{staticClass:"tMar5"},[t._v("文件将自动转为成网页链接,员工发送给客户后可记录客户打开数据")]),t._v(" "),t.coverErrFlag?i("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(t.coverErrInfo))]):t._e()])],1)],1)]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==t.fileType_Val,expression:"fileType_Val==3"}]},[i("div",{staticClass:"regulations radar_cover_box"},[i("label"),t._v(" "),i("el-upload",{key:"imgUpload",staticClass:"imgUploader",attrs:{multiple:"",action:t.URL.BASEURL+t.URL.radar_uploadFile,data:t.extraData_img,"file-list":t.typeImgList,accept:".jpg,.png","list-type":"picture-card",limit:9,"before-upload":function(){t.$loading(t.$loadingConfig)},"on-preview":function(e){t.handlePreview(e,"img")},"on-remove":function(e,i){t.handleRemove(e,i,"img")},"on-success":function(e,i,a){return t.uploadSuccess(e,i,a,"img")},"on-error":t.uploadFail,"on-exceed":t.handleExceed}},[i("div",[i("div",{staticClass:"el-icon-circle-plus f16"}),t._v(" "),i("div",{staticClass:"el-upload__text f14"},[t._v("上传图片")])]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[i("div",[t._v(" 图片大小不超过1MB,最多上传9张")]),t._v(" "),i("div",{staticClass:"tMar5"},[t._v("文件将自动转为成网页链接,员工发送给客户后可记录客户打开数据")]),t._v(" "),t.coverErrFlag?i("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(t.coverErrInfo))]):t._e()])])],1)]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:4==t.fileType_Val,expression:"fileType_Val==4"}]},[i("div",{staticClass:"regulations"},[i("label"),t._v(" "),i("el-upload",{key:"mp4Upload",attrs:{action:t.URL.BASEURL+t.URL.radar_uploadFile,data:t.extraData_mp4,accept:".mp4,.MP4",limit:1,"before-upload":function(){t.$loading(t.$loadingConfig)},"on-preview":function(e){t.handlePreview(e,"mp4")},"on-remove":function(e,i){t.handleRemove(e,i,"mp4")},"on-success":function(e,i,a){return t.uploadSuccess(e,i,a,"mp4")},"on-error":t.uploadFail,"on-exceed":t.handleExceed,"file-list":t.mp4List}},[i("el-button",{attrs:{size:"small",icon:"el-icon-upload"}},[t._v("上传视频")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[i("div",[t._v("只能上传.mp4文件,且不超过10MB")]),t._v(" "),i("div",{staticClass:"tMar5"},[t._v("文件将自动转为成网页链接,员工发送给客户后可记录客户打开数据")]),t._v(" "),t.coverErrFlag?i("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(t.coverErrInfo))]):t._e()])],1)],1)]),t._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[2==t.fileType_Val?i("iframe",{staticStyle:{width:"100%",height:"500px"},attrs:{src:t.pdfUrl,frameborder:"0"}}):t._e(),t._v(" "),i("img",{directives:[{name:"show",rawName:"v-show",value:3==t.fileType_Val,expression:"fileType_Val==3"}],attrs:{width:"100%",src:t.imgTypeUrl,alt:""}}),t._v(" "),i("video",{directives:[{name:"show",rawName:"v-show",value:4==t.fileType_Val,expression:"fileType_Val==4"}],staticStyle:{width:"100%",height:"500px"},attrs:{src:t.mp4Url,controls:"controls"}})])],1)},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("跳转链接")])}]};var q=i("VU/8")(z,O,!1,function(t){i("U/3d"),i("oIf7")},"data-v-796f6cf3",null).exports,G={components:{noData:i("YLOf").a},props:{clearable:{type:Boolean,default:!0},reset:{type:Boolean,default:!1},title:{type:String,default:"企业标签"},excludeFlag:{type:Boolean,default:!1},width:{type:String},afferent_obj:{type:Object},disabled:{type:Boolean,default:!1}},watch:{reset:function(){this.tag_id_list=[],this.tag_name_list=[],this.oldObj={tag_name_list:[],tag_id_list:[]}}},data:function(){return{visible:!1,keyword:"",tagList:[],loading:!1,tag_id_list:[],old_tag_list:[],tag_name_list:[],oldObj:{tag_name_list:[],tag_id_list:[]}}},created:function(){this.tag_id_list=this.afferent_obj&&this.afferent_obj.tag_id_list?this.afferent_obj.tag_id_list:[],this.oldObj.tag_id_list=this.tag_id_list,0==this.tagList.length&&this.init()},methods:{screenClick:function(){var t=this;if(!this.disabled){this.visible=!0,this.tag_id_list=JSON.parse(s()(this.oldObj.tag_id_list));var e=[];this.tagList.forEach(function(i){i.tag_list.forEach(function(i){-1!=t.tag_id_list.indexOf(i.tag_id)&&e.push(i.tag_name)})}),this.tag_name_list=e,this.oldObj.tag_name_list=e}},clear:function(){this.disabled||(this.tag_id_list&&0!=this.tag_id_list.length?(this.tag_id_list=[],this.tag_name_list=[],this.oldObj={tag_id_list:[],tag_name_list:[]},this.$emit("tagDefine",this.oldObj)):this.visible=!this.visible)},defineEvent:function(){this.oldObj={tag_id_list:JSON.parse(s()(this.tag_id_list)),tag_name_list:JSON.parse(s()(this.tag_name_list))},this.$emit("tagDefine",this.oldObj),this.visible=!1},keyInput:function(){var t=this,e=[];this.old_tag_list.forEach(function(i){var a=JSON.parse(s()(i));a.tag_list=[],i.tag_list.forEach(function(e){-1!=e.tag_name.indexOf(t.keyword)&&a.tag_list.push(e)}),0!=a.tag_list.length&&e.push(a)}),this.tagList=e},groupEvent:function(t){-1==this.tag_id_list.indexOf(t.tag_id)?(this.tag_name_list.push(t.tag_name),this.tag_id_list.push(t.tag_id)):(this.tag_id_list=this.tag_id_list.filter(function(e){return e!=t.tag_id}),this.tag_name_list=this.tag_name_list.filter(function(e){return e!=t.tag_name}))},init:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.tagList,{}).then(function(e){e=e.data;if(t.loading=!1,e&&0==e.errno){t.old_tag_list=e.rst,t.tagList=e.rst;var i=[];t.tagList.forEach(function(e){e.tag_list.forEach(function(e){-1!=t.tag_id_list.indexOf(e.tag_id)&&i.push(e.tag_name)})}),t.tag_name_list=i,t.oldObj.tag_name_list=i}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}}},j={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-screen-item"},[t.title&&""!=t.title?i("label",{staticClass:"common-screen-label"},[t._v(t._s(t.title))]):t._e(),t._v(" "),i("div",{class:["common-screen-self-box","common-input-select",t.oldObj.tag_name_list&&0!=t.oldObj.tag_name_list.length&&t.clearable&&!t.disabled?"common-input-select-hover":"",t.disabled?"pointer-drop":""],style:t.width?"width:"+t.width:"",on:{click:t.screenClick}},[i("div",{class:["common-screen-self-con",t.oldObj.tag_name_list&&0==t.oldObj.tag_name_list.length?"common-screen-self-placeholder":""]},[i("div",{staticClass:"common-screen-self-con-div"},[i("span",[t._v(t._s(t.oldObj.tag_name_list&&0!=t.oldObj.tag_name_list.length?t.oldObj.tag_name_list.join(","):"请选择标签"))])]),t._v(" "),i("i",{staticClass:"el-icon-circle-close other-icon",on:{click:function(e){return e.stopPropagation(),t.clear.apply(null,arguments)}}})]),t._v(" "),t._m(0)]),t._v(" "),i("el-dialog",{attrs:{title:"选择标签",visible:t.visible,width:"600px",center:"",top:"15vh","append-to-body":!0},on:{"update:visible":function(e){t.visible=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"popover_con"},[[i("div",{staticClass:"self-input"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],attrs:{type:"text",placeholder:"请输入要查找的标签"},domProps:{value:t.keyword},on:{input:[function(e){e.target.composing||(t.keyword=e.target.value)},t.keyInput]}}),t._v(" "),i("i",{staticClass:"el-icon-search"})]),t._v(" "),i("div",{staticClass:"tagGroup self-scrollbar-3"},[t._l(t.tagList,function(e){return i("div",{key:e.group_id,staticClass:"groupItem"},[i("div",{staticClass:"groupTitle"},[t._v(t._s(e.group_name)+":")]),t._v(" "),i("div",{staticClass:"groupBox"},t._l(e.tag_list,function(e,a){return i("div",{key:a,class:["group",-1!=t.tag_id_list.indexOf(e.tag_id)?"group_active":""],on:{click:function(i){return t.groupEvent(e)}}},[t._v(t._s(e.tag_name))])}),0)])}),t._v(" "),!t.loading&&t.tagList&&0==t.tagList.length?i("no-data",{attrs:{hint:"没有搜索到相关标签哦~"}}):t._e()],2)],t._v(" "),i("div",{staticClass:"buttons"},[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:t.defineEvent}},[t._v("确定")])],1)],2)])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"common-screen-self-icon"},[e("i",{staticClass:"el-icon-arrow-down"})])}]};var P={name:"createRadar",props:["radar_id"],components:{fileType:q,enterpriseTag:i("VU/8")(G,j,!1,function(t){i("98YH")},"data-v-57f2f741",null).exports},data:function(){return{loading:!1,edit_detial_Flag:!1,radarName:"",radartitle:"",radardesc:"",group_id:"",groupArrs:[],user_id_list:[],resetFlag:!1,smartVal:[],coverFileList:[],imgCoverVisible:!1,imgCoverUrl:!1,cover_id:"",coverErrInfo:"",coverErrFlag:!1,type:1,extraData:{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},afferent_tag_obj:{tag_id_list:[]},tag_info:[],url_list_echo:[],caseShow:!1,caseType:"title",file_rule_id:""}},watch:{radar_id:function(){this.radar_id_init()}},created:function(){this.init_groupList(),this.radar_id_init()},methods:{radar_id_init:function(){this.empty_define(),this.radar_id?this.detail():this.edit_detial_Flag=!0},empty_define:function(){this.resetFlag=!this.resetFlag,this.smartVal=[],this.user_id_list=[],this.coverFileList=[],this.cover_id="",this.radardesc="",this.radartitle="",this.radarName="",this.group_id="",this.afferent_tag_obj.tag_id_list=[],this.tag_info=[],this.url_list_echo=[],this.type=1},caseClick:function(t){this.caseShow=!0,this.caseType=t},tagDefine:function(t){t.tag_id_list&&0!=t.tag_id_list.length?this.tag_info=t.tag_id_list:this.tag_info=[]},init_groupList:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.radar_groupList,{params:{page:1,page_size:500}}).then(function(e){(e=e.data)&&0==e.errno?t.groupArrs=e.rst.data:4002!=e.errno&&t.$message({message:e.err,type:"warning"})})},handleSee:function(t){this.imgCoverVisible=!0,this.imgCoverUrl=t.url},beforeUploadUpload:function(){this.$loading(this.$loadingConfig)},handleRemove:function(){this.cover_id="",this.coverErrFlag=!1},uploadSuccess:function(t){this.$loading(this.$loadingConfig).close(),t&&0==t.errno?this.cover_id=t.rst.material_id:(this.$message({type:"error",message:t.err}),this.coverErrFlag=!0,this.coverErrInfo=t.err)},uploadFail:function(){this.$message({message:"上传失败",type:"fail"})},handleExceed:function(){this.$message({message:"最多上传1个照片",type:"warning"})},detail:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.radar_radarDetail,{params:{radar_id:this.radar_id}}).then(function(e){if(t.loading=!1,(e=e.data)&&0==e.errno){var i=e.rst;t.file_rule_id=t.radar_id,t.radarName=i.name,t.group_id=i.group_id,t.radartitle=i.title,t.radardesc=i.description,t.type=i.type,t.cover_id=i.cover_id,t.coverFileList.push({url:i.cover_url}),t.url_list_echo=i.url_list,t.tag_info=i.tag_list,t.afferent_tag_obj.tag_id_list=i.tag_list,t.smartVal=[],1==i.behavior_notification&&t.smartVal.push("behavior_notification"),1==i.customer_label&&t.smartVal.push("customer_label"),1==i.dynamic_notification&&t.smartVal.push("dynamic_notification"),t.edit_detial_Flag=!0}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})},newCode_click:function(){var t=this;if(""!=this.radarName){var e=this.$refs.fileTypeRef;if(e.judgeType(),!e.returnFlag)if(""!=this.radartitle)if(""!=this.radardesc)if(""!=this.cover_id)if(this.smartVal.indexOf("customer_label")>-1&&this.tag_info&&0==this.tag_info.length)this.$message({type:"error",message:"智能跟进-客户标签 选中后,标签不能为空"});else{this.$loading(this.$loadingConfig);var i="";i=this.radar_id?this.URL.radar_radarEdit:this.URL.radar_addRadar,this.$axios.post(this.URL.BASEURL+i,{radar_id:this.radar_id?this.radar_id:"",group_id:this.group_id,name:this.radarName,type:this.type,url_list:e.ur_list,title:this.radartitle,description:this.radardesc,cover_id:this.cover_id,behavior_notification:this.smartVal.indexOf("behavior_notification")>-1?1:0,dynamic_notification:this.smartVal.indexOf("dynamic_notification")>-1?1:0,customer_label:this.smartVal.indexOf("customer_label")>-1?1:0,tag_list:this.tag_info}).then(function(e){e=e.data;t.$loading(t.$loadingConfig).close(),e&&0==e.errno?t.$emit("init"):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.$loading(t.$loadingConfig).close()})}else this.$message({type:"error",message:"雷达封面不能为空!"});else this.$message({type:"error",message:"雷达描述不能为空!"});else this.$message({type:"error",message:"雷达标题不能为空!"})}else this.$message({type:"error",message:"雷达名称不能为空!"})}}},M={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"}]},[t.edit_detial_Flag?a("div",{staticClass:"bg-ffffff createMassMsg",staticStyle:{padding:"10px 30px 10px"}},[a("div",{staticClass:"regulations"},[t._m(0),t._v(" "),a("el-input",{staticStyle:{width:"500px"},attrs:{placeholder:"请输入雷达名称",maxlength:"32","show-word-limit":"",clearable:"",size:"small"},model:{value:t.radarName,callback:function(e){t.radarName="string"==typeof e?e.trim():e},expression:"radarName"}})],1),t._v(" "),a("div",{staticClass:"regulations",staticStyle:{"align-items":"center"}},[t._m(1),t._v(" "),a("el-select",{staticStyle:{width:"500px"},attrs:{size:"small",clearable:"",placeholder:"请选择"},model:{value:t.group_id,callback:function(e){t.group_id=e},expression:"group_id"}},t._l(t.groupArrs,function(t,e){return a("el-option",{key:e,attrs:{label:t.group_name,value:t.group_id}})}),1)],1),t._v(" "),a("fileType",{ref:"fileTypeRef",attrs:{comeBackParms:{url_list_echo:t.url_list_echo,type:t.type},reset:t.resetFlag,file_rule_id:t.file_rule_id},on:{getType:function(e){t.type=e}}}),t._v(" "),a("div",{staticClass:"regulations"},[t._m(2),t._v(" "),a("el-input",{staticStyle:{width:"500px"},attrs:{placeholder:"请输入雷达标题",maxlength:"32","show-word-limit":"",clearable:"",size:"small"},model:{value:t.radartitle,callback:function(e){t.radartitle="string"==typeof e?e.trim():e},expression:"radartitle"}}),t._v(" "),a("div",{staticClass:"seeCase",on:{click:function(e){return t.caseClick("title")}}},[t._v("查看案例")])],1),t._v(" "),a("div",{staticClass:"regulations"},[t._m(3),t._v(" "),a("el-input",{staticStyle:{width:"500px"},attrs:{type:"textarea",placeholder:"请输入雷达描述",rows:4,maxlength:"200","show-word-limit":"",clearable:"",size:"small"},model:{value:t.radardesc,callback:function(e){t.radardesc="string"==typeof e?e.trim():e},expression:"radardesc"}}),t._v(" "),a("div",{staticClass:"seeCase",on:{click:function(e){return t.caseClick("desc")}}},[t._v("查看案例")])],1),t._v(" "),a("div",{staticClass:"regulations"},[t._m(4),t._v(" "),a("div",{staticClass:"radar_cover_box"},[a("el-upload",{key:"imgUpload",staticClass:"imgUploader",attrs:{action:t.URL.BASEURL+t.URL.material_upload,name:"material_file","file-list":t.coverFileList,data:t.extraData,accept:".jpg,.jpeg,.png","list-type":"picture-card",limit:1,"before-upload":function(){t.$loading(t.$loadingConfig)},"on-preview":t.handleSee,"on-remove":t.handleRemove,"on-success":t.uploadSuccess,"on-error":t.uploadFail,"on-exceed":t.handleExceed}},[a("div",[a("div",{staticClass:"el-icon-circle-plus f16"}),t._v(" "),a("div",{staticClass:"el-upload__text f14"},[t._v("添加图片")])]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("\n 建议尺寸: 200px*200px,大小不超过1MB\n "),a("span",{staticClass:"seeCase",on:{click:function(e){return t.caseClick("cover")}}},[t._v("查看案例")]),t._v(" "),t.coverErrFlag?a("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(t.coverErrInfo))]):t._e()])]),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.imgCoverVisible},on:{"update:visible":function(e){t.imgCoverVisible=e}}},[a("img",{attrs:{width:"100%",src:t.imgCoverUrl,alt:""}})])],1)]),t._v(" "),a("div",{staticClass:"regulations smartFollow"},[a("label",{staticClass:"fWeight600"},[t._v("智能跟进")]),t._v(" "),a("div",[a("el-checkbox-group",{model:{value:t.smartVal,callback:function(e){t.smartVal=e},expression:"smartVal"}},[a("el-checkbox",{attrs:{label:"behavior_notification"}},[t._v("行为通知(当客户点击雷达时,发送雷达的员工将会收到消息提醒)")]),t._v(" "),a("el-checkbox",{attrs:{label:"dynamic_notification"}},[t._v("动态通知(当客户点击雷达时,会将客户的打开行为记录在客户动态里)")]),t._v(" "),a("el-checkbox",{attrs:{label:"customer_label"}},[t._v("客户标签(给点击雷达的客户打上选中的标签)")])],1),t._v(" "),t.smartVal.indexOf("customer_label")>-1?a("enterprise-tag",{attrs:{title:"",width:"300px",afferent_obj:t.afferent_tag_obj,reset:t.resetFlag},on:{tagDefine:t.tagDefine}}):t._e()],1)]),t._v(" "),a("div",{staticStyle:{"margin-top":"20px"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.newCode_click}},[t._v("保存")])],1)],1):t._e(),t._v(" "),a("el-dialog",{attrs:{"append-to-body":!0,title:"查看案例",visible:t.caseShow,width:"350px"},on:{"update:visible":function(e){t.caseShow=e}}},["cover"==t.caseType?a("img",{attrs:{src:i("9PVX"),alt:"",width:"300px"}}):t._e(),t._v(" "),"title"==t.caseType?a("img",{attrs:{src:i("0QUe"),alt:"",width:"300px"}}):t._e(),t._v(" "),"desc"==t.caseType?a("img",{attrs:{src:i("hxzI"),alt:"",width:"300px"}}):t._e()])],1)},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",{staticStyle:{opacity:"0"}},[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 H=i("VU/8")(P,M,!1,function(t){i("E/jr"),i("qKg9")},"data-v-3af782b9",null).exports,J={name:"radarList",components:{draggable:n.a,createRadar:H,dataAnalyse:N},props:["propsData"],computed:{noMore:function(){return this.currPage_len<this.page_size},disabled:function(){return this.moreloading||this.noMore}},data:function(){return{radar_id:"",radar_name:"",analyse_id:"",reset:!1,showOerateBox_analyse:!1,showOerateBox:!1,loading:!1,moreloading:!1,page:1,page_size:20,height:"",tableData:[],copy_tableData:[],currPage_len:0,desCol:[{prop:"name",label:"名称"},{prop:"type",label:"类型"},{prop:"group_name",label:"分组"},{prop:"tag_list",label:"客户标签",min_width:"15%"},{prop:"uv_count",label:"总访问人数"},{prop:"send_count",label:"总发送次数"},{prop:"create_time",label:"添加时间",min_width:"15%"},{prop:"oprate",label:"操作",min_width:"15%"}]}},watch:{"propsData.initFlag":function(){this.re_load()}},created:function(){this.height=document.documentElement.clientHeight-300>400?document.documentElement.clientHeight-300:400,this.init(1)},methods:{re_load:function(){this.showOerateBox=!1,this.page=1,this.tableData=[],this.copy_tableData=[],this.init()},load:function(){this.page+=1,this.init()},goDataAanlyse:function(t,e){this.reset=!this.reset,this.radar_name=e,this.analyse_id=t,this.showOerateBox_analyse=!0},editRadar:function(t,e){this.radar_name=e,this.radar_id=t,this.showOerateBox=!0},deleRadar:function(t){var e=this;this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.radar_radarDele,{radar_id:t}).then(function(t){t=t.data;e.loading=!1,e.$message({message:t.err,type:"warning"}),t&&0==t.errno&&(e.page=1,e.tableData=[],e.copy_tableData=[],e.init(1))}).catch(function(t){e.loading=!1})},draggableSort:function(t){var e=this,i=(t.to,t.from,t.item,t.clone,t.oldIndex),a=t.newIndex;this.copy_tableData[i].radar_id?this.$axios.post(this.URL.BASEURL+this.URL.radar_radarSort,{operate_radar_id:this.copy_tableData[i].radar_id,front_radar_id:a-1>=0?this.tableData[a-1].radar_id:"",behind_radar_id:a+1<this.tableData.length?this.tableData[a+1].radar_id:""}).then(function(t){(t=t.data)&&0==t.errno?e.copy_tableData=JSON.parse(s()(e.tableData)):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}):this.$message({message:"被拖动的雷达id错误",type:"warning"})},init:function(){var t=this;this.loading=!0,this.currPage_len>=this.page_size&&(this.moreloading=!0),this.$axios.get(this.URL.BASEURL+this.URL.radar_radarList,{params:{group_id:this.propsData.group_id,name:this.propsData.radar_val,page:this.page,page_size:this.page_size}}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(t.tableData=[].concat(_()(t.tableData),_()(e.rst.data)),t.copy_tableData=JSON.parse(s()(t.tableData)),t.currPage_len=e.rst.data.length,t.moreloading=!1):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}}},Y={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{directives:[{name:"loading",rawName:"v-loading.body",value:t.loading,expression:"loading",modifiers:{body:!0}}],staticClass:"infinite-list-wrapper"},[i("div",{staticClass:"tHead"},t._l(t.desCol,function(e){return i("div",{style:{width:e.min_width?e.min_width:"11%"}},[t._v(t._s(e.label?e.label:"-"))])}),0),t._v(" "),t.tableData&&t.tableData.length>0?i("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],staticClass:"tBody",attrs:{"infinite-scroll-distance":20,"infinite-scroll-immediate":!1,"infinite-scroll-disabled":"disabled"}},[i("draggable",{staticClass:"syllable_ul",attrs:{element:"ul",list:t.tableData,emptyInsertThreshold:0,options:{group:"name",animation:200,ghostClass:"ghostClass",dragClass:"dragClass"}},on:{sort:t.draggableSort}},t._l(t.tableData,function(e,a){return i("div",{staticClass:"body_item",class:a==t.tableData.length-1?"borderBottomline":""},t._l(t.desCol,function(a){return i("div",{staticClass:"body_cell",style:{width:a.min_width?a.min_width:"11%"}},["type"==a.prop?i("div",[1==e.type?i("span",[t._v("链接")]):2==e.type?i("span",[t._v("PDF")]):3==e.type?i("span",[t._v("图片")]):4==e.type?i("span",[t._v("视频")]):i("span",[t._v("-")])]):"tag_list"==a.prop?i("div",{staticClass:"flex-align-jus-center"},[e.tag_list&&0==e.tag_list.length||!e.tag_list?[t._v("-")]:i("div",{staticClass:"customerServiceTagBox biaoqian"},t._l(e.tag_list,function(e,a){return i("div",{key:a+"biaoqian",staticClass:"customerServiceTag"},[t._v(t._s(e))])}),0)],2):"oprate"==a.prop?i("div",[i("div",{staticClass:"flex",staticStyle:{padding:"0 10px","font-size":"13px"}},[i("div",{staticClass:"c-00B38A pointer",on:{click:function(i){return t.editRadar(e.radar_id,e.name)}}},[t._v("编辑")]),t._v(" "),i("el-popconfirm",{attrs:{title:"确定删除【"+e.name+"】智能雷达?"},on:{confirm:function(i){return t.deleRadar(e.radar_id)}}},[i("div",{staticClass:"c-00B38A pointer lMar8",attrs:{slot:"reference"},slot:"reference"},[t._v("删除")])]),t._v(" "),i("div",{staticClass:"c-00B38A pointer lMar8",on:{click:function(i){return t.goDataAanlyse(e.radar_id,e.name)}}},[t._v("分析数据")])],1)]):i("div",[t._v(t._s(e[a.prop]||0==e[a.prop]?e[a.prop]:"-"))])])}),0)}),0),t._v(" "),t.moreloading?i("p",{staticClass:"text-center f14 tMar8 c-d3"},[t._v("加载中...")]):t._e(),t._v(" "),t.noMore?i("p",{staticClass:"text-center f14 tMar8 c-d3"}):t._e()],1):i("div",{staticClass:"noData"},[t._v("暂无数据")])]),t._v(" "),i("el-drawer",{attrs:{visible:t.showOerateBox,direction:"rtl",size:"60%"},on:{"update:visible":function(e){t.showOerateBox=e}}},[i("div",{staticClass:"c-000",attrs:{slot:"title"},slot:"title"},[t._v("编辑雷达("+t._s(t.radar_name)+")")]),t._v(" "),i("createRadar",{attrs:{radar_id:t.radar_id},on:{init:function(e){return t.re_load()}}})],1),t._v(" "),i("el-drawer",{attrs:{visible:t.showOerateBox_analyse,direction:"rtl",size:"70%"},on:{"update:visible":function(e){t.showOerateBox_analyse=e}}},[i("div",{staticClass:"c-000",attrs:{slot:"title"},slot:"title"},[t._v("数据分析("+t._s(t.radar_name)+")")]),t._v(" "),i("dataAnalyse",{attrs:{reset:t.reset,analyse_id:t.analyse_id}})],1)],1)},staticRenderFns:[]};var K=i("VU/8")(J,Y,!1,function(t){i("FBaH")},"data-v-9986423c",null).exports,Q={name:"codeIndex",components:{selfInput:d.a,groupList:E,radarList:K,createRadar:H},data:function(){return{showOerateBox:!1,initFlag:!1,radar_val:"",reset:!1,group_id:""}},methods:{resetEvent:function(){this.initFlag=!this.initFlag,this.reset=!this.reset,this.radar_val=""},created_radar:function(){var t=this;this.showOerateBox=!0,this.$nextTick(function(){t.$refs.createRadarRef.radar_id_init()})},copy:function(){var t="";t=sessionStorage.getItem("company_session_defaultCorp")&&"undefined"!=sessionStorage.getItem("company_session_defaultCorp")?JSON.parse(sessionStorage.getItem("company_session_defaultCorp")).corpid:this.$localSelfStore.getLocal("defaultCorp")&&"undefined"!=this.$localSelfStore.getLocal("defaultCorp")?JSON.parse(this.$localSelfStore.getLocal("defaultCorp")).corpid:"";var e="http://"+window.location.host+"/hunter/qwh5/dist/index.html#/radarH5?corpid="+t,i=document.createElement("textarea");document.body.appendChild(i),i.value=e,i.select(),i.readOnly="readOnly",document.execCommand("copy"),document.body.removeChild(i),this.$message({message:"复制成功",type:"success"})}}},W={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"con"},[i("div",{staticClass:"searchBox"},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.created_radar}},[t._v("新建智能雷达")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.copy}},[t._v("复制链接")]),t._v(" "),i("self-input",{attrs:{reset:t.reset,label_name:"搜索雷达"},on:{inputChange:function(e){t.radar_val=e,t.initFlag=!t.initFlag}}}),t._v(" "),i("div",{staticClass:"reset",on:{click:t.resetEvent}},[t._v("重置")])],1),t._v(" "),i("div",{staticClass:"mainBox"},[i("div",{staticClass:"groupBox"},[i("groupList",{on:{getId:function(e){t.group_id=e,t.initFlag=!t.initFlag}}})],1),t._v(" "),i("div",{staticClass:"tableBox"},[i("radarList",{attrs:{propsData:{initFlag:t.initFlag,radar_val:t.radar_val,group_id:t.group_id}}})],1)]),t._v(" "),i("el-drawer",{attrs:{visible:t.showOerateBox,direction:"rtl",size:"60%"},on:{"update:visible":function(e){t.showOerateBox=e}}},[i("div",{staticClass:"c-000",attrs:{slot:"title"},slot:"title"},[t._v("新增雷达")]),t._v(" "),i("createRadar",{ref:"createRadarRef",attrs:{radar_id:""},on:{init:function(){t.initFlag=!t.initFlag,t.showOerateBox=!1}}})],1)],1)},staticRenderFns:[]};var X={components:{userPortrait:c,quickWord:L,radar:i("VU/8")(Q,W,!1,function(t){i("nLXg")},"data-v-0ee8fe02",null).exports},data:function(){return{type:"userPortrait"}},methods:{changeType:function(t){this.type=t}}},Z={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"topTagBox flex"},[i("div",{staticClass:"left flex-align-center"},[i("div",{class:["tagItem","userPortrait"==t.type?"tagItem_active":""],on:{click:function(e){return t.changeType("userPortrait")}}},[t._v("客户画像")]),t._v(" "),i("div",{class:["tagItem","radar"==t.type?"tagItem_active":""],on:{click:function(e){return t.changeType("radar")}}},[t._v("智能雷达")]),t._v(" "),i("div",{class:["tagItem","quickWord"==t.type?"tagItem_active":""],on:{click:function(e){return t.changeType("quickWord")}}},[t._v("快捷话术")])])]),t._v(" "),i("keep-alive",[i(t.type,{tag:"component",staticClass:"tab"})],1)],1)},staticRenderFns:[]};var tt=i("VU/8")(X,Z,!1,function(t){i("CUYD")},"data-v-881b6df6",null);e.default=tt.exports},THiz:function(t,e){},Tc81:function(t,e){},"U/3d":function(t,e){},ZWlf:function(t,e){},a3v6:function(t,e){},bSja:function(t,e){},fizK:function(t,e){},hxzI:function(t,e,i){t.exports=i.p+"static/img/radar_desc.550a899.png"},nLXg:function(t,e){},oIf7:function(t,e){},qGSb:function(t,e){},qKg9:function(t,e){},sfKU:function(t,e){}});
|