1 |
- webpackJsonp([8],{"0QUe":function(t,e,a){t.exports=a.p+"static/img/radar_title.824d737.png"},"2LkB":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("McOJ"),s=a("Gu7T"),r=a.n(s),l=a("mvHQ"),o=a.n(l),n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"dialogBox"},[a("div",{staticClass:"lable"},[t._v("分组名称")]),t._v(" "),a("el-input",{attrs:{size:"small",placeholder:"请输入内容",maxlength:"8",clearable:""},model:{value:t.groupName,callback:function(e){t.groupName=e},expression:"groupName"}})],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(e){return t.save(t.propsData.dialogTitle)}}},[t._v("确 定")])],1)])},staticRenderFns:[]};var d=a("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"})}}},n,!1,function(t){a("7BIN")},null,null).exports,c=a("w/TU"),p=a.n(c),u={name:"groupList",components:{dialogGroup:d,draggable:p.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,a=(t.to,t.from,t.item,t.clone,t.oldIndex),i=t.newIndex;this.copy_tableData[a].group_id?this.$axios.post(this.URL.BASEURL+this.URL.radar_sortGroup,{operate_group_id:this.copy_tableData[a].group_id,front_group_id:i-1>=0?this.tableData[i-1].group_id:"",behind_group_id:i+1<this.tableData.length?this.tableData[i+1].group_id:""}).then(function(t){(t=t.data)&&0==t.errno?e.copy_tableData=JSON.parse(o()(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(r()(t.tableData),r()(e.rst.data)),t.copy_tableData=JSON.parse(o()(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("/"),a=e[0],i=e[1],s=e[2];"editName"==a?this.editGroup(s,i):"deleGroup"==a&&(this.deleGroupId=i,this.deleGroupShow=!0)},editGroup:function(t,e){var a=this;this.$nextTick(function(){a.dialogTitle="修改",a.$refs.dialogGroupRef.groupName=t,a.groupId=e,a.$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)}}},_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"title"},[a("span",{staticClass:"fWeight600 c-000 f14"},[t._v("雷达分组")]),t._v(" "),a("span",{staticClass:"addGroupBox",on:{click:function(e){t.$refs.dialogGroupRef.dialogVisible=!0,t.$refs.dialogGroupRef.groupName=""}}},[a("i",{staticClass:"el-icon-plus f12"}),t._v("\n 添加分组\n ")])]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading.body",value:t.loading,expression:"loading",modifiers:{body:!0}}],staticClass:"listBox infinite-list-wrapper"},[a("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"}},[a("div",{staticClass:"item_css",class:[null==t.acIdx?"ac_css":""],on:{click:function(e){return t.itemClick(null)}}},[a("i",{staticClass:"el-icon-folder"}),t._v("全部雷达")]),t._v(" "),a("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,i){return a("div",{key:e.group_id,staticClass:"item_css",class:[t.acIdx==e.group_id?"ac_css":""],on:{click:function(a){return t.itemClick(e.group_id)}}},[a("i",{staticClass:"el-icon-folder",staticStyle:{cursor:"move"}}),t._v(" "),a("span",[t._v(t._s(e.group_name?e.group_name:"-"))]),t._v(" "),a("span",{staticClass:"lMarauto"},[a("el-dropdown",{on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"editName/"+e.group_id+"/"+e.group_name}},[t._v("修改名称")]),t._v(" "),a("el-dropdown-item",{attrs:{command:"deleGroup/"+e.group_id}},[t._v("删除分组")])],1)],1)],1)])}),0)],1),t._v(" "),t.moreloading?a("p",{staticClass:"text-center f14 tMar8 c-d3"},[t._v("加载中...")]):t._e(),t._v(" "),t.noMore?a("p",{staticClass:"text-center f14 tMar8 c-d3"}):t._e()]),t._v(" "),a("el-dialog",{attrs:{title:"提示",visible:t.deleGroupShow,width:"30%"},on:{"update:visible":function(e){t.deleGroupShow=e}}},[a("div",{staticClass:"text-center"},[a("div",{staticClass:"f16"},[t._v("此操作将永久删除该分组, 是否继续")]),t._v(" "),a("div",{staticClass:"tMar20 c-666 f13"},[t._v("是否删除该分组下所有雷达?\n "),a("el-switch",{attrs:{"active-value":"2","inactive-value":"1","active-color":"#13ce66","inactive-color":"#ddd"},model:{value:t.isDeleChild,callback:function(e){t.isDeleChild=e},expression:"isDeleChild"}})],1)]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(e){t.deleGroupShow=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.deleGroup}},[t._v("确 定")])],1)]),t._v(" "),a("dialogGroup",{ref:"dialogGroupRef",attrs:{propsData:{dialogTitle:t.dialogTitle,groupId:t.groupId}},on:{init:t.init_clear}})],1)},staticRenderFns:[]};var h=a("VU/8")(u,_,!1,function(t){a("OlkM")},"data-v-5fd2f444",null).exports,g=a("gzej"),m=a("fGUm"),f={name:"publicTable",props:["propsData"],components:{selfInput:i.a,datePicker:g.a,selfCustomerservice:m.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;""!=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)}}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",["dataAnalyse"==t.propsData.source?[a("div",{staticClass:"span_title"},[a("span",{staticClass:"spn_area"}),t._v("\n 打开链接的客户 ("+t._s(t.customer_count||0==t.customer_count?t.customer_count:"-")+")\n ")]),t._v(" "),a("div",{staticClass:"flex-align-center",staticStyle:{"flex-wrap":"wrap"}},[a("self-input",{attrs:{reset:t.reset,hasLabel:!1,label_name:"搜索客户"},on:{inputChange:function(e){t.customer_name=e,t.source_init()}}}),t._v(" "),a("div",{staticClass:"flex",staticStyle:{margin:"0 10px"}},[a("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 a("el-option",{key:e,attrs:{label:t.value,value:t.key}})}),1)],1),t._v(" "),a("date-picker",{attrs:{reset:t.reset,title:"",quickFlag:!1,afferent_time:t.default_time,clearFlag:!1},on:{changeTime:t.changeTime}}),t._v(" "),a("self-customerservice",{staticStyle:{"margin-left":"10px"},attrs:{reset:t.reset,title:""},on:{customerDefine:function(e){t.user_list=e,t.source_init()}}}),t._v(" "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"mini"},on:{click:t.resetAll}},[t._v("重置")])],1)]:t._e(),t._v(" "),a("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[a("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 "),a("el-tooltip",{staticClass:"disinblock",attrs:{content:e.tooltip,placement:"top"}},[a("i",{staticClass:"el-icon-question"})])]},proxy:!0}:null,{key:"default",fn:function(i){return["type"==e.prop?a("div",[1==i.row.type?a("span",[t._v("链接")]):2==i.row.type?a("span",[t._v("PDF")]):3==i.row.type?a("span",[t._v("图片")]):4==i.row.type?a("span",[t._v("视频")]):a("span",[t._v("-")])]):"tag_list"==e.prop?a("div",[i.row.tag_list&&0==i.row.tag_list.length||!i.row.tag_list?[t._v("-")]:a("div",{staticClass:"customerServiceTagBox biaoqian"},t._l(i.row.tag_list,function(e,i){return a("div",{key:i+"biaoqian",staticClass:"customerServiceTag"},[t._v(t._s(e))])}),0)],2):a("div",[t._v(t._s(i.row[e.prop]||0==i.row[e.prop]?i.row[e.prop]:"-"))])]}}],null,!0)})]}),t._v(" "),"radarIndex"==t.propsData.source?[a("el-table-column",{attrs:{label:"操作",align:"center","min-width":"180px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"c-00B38A pointer",on:{click:function(a){return t.editRadar(e.row.radar_id)}}},[t._v("编辑")]),t._v(" "),a("el-popconfirm",{attrs:{title:"确定删除【"+e.row.name+"】渠道活码?"},on:{confirm:function(a){return t.deleRadar(e.row.radar_id)}}},[a("div",{staticClass:"c-00B38A pointer lMar8",attrs:{slot:"reference"},slot:"reference"},[t._v("删除")])]),t._v(" "),a("div",{staticClass:"c-00B38A pointer lMar8",on:{click:function(a){return t.goDataAanlyse(e.row.radar_id)}}},[t._v("分析数据")])],1)]}}],null,!1,1134441784)})]:t._e()],2),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1)],2)},staticRenderFns:[]};var y={name:"dataAnalyse",props:["analyse_id","reset"],components:{publicTable:a("VU/8")(f,v,!1,function(t){a("WIe5")},"data-v-6fd7594b",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;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})}}},b={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:"con"},[a("div",{staticClass:"dataBox"},t._l(t.dataPreview,function(e,i){return a("div",{key:i,staticClass:"box_item"},[a("div",{staticClass:"c-000 fWeight600"},[t._v(t._s(e.bigTitle?e.bigTitle:"-"))]),t._v(" "),a("div",{staticClass:"f28 pad120"},[t._v(t._s(e.bigNum||0==e.bigNum?e.bigNum:"-"))])])}),0),t._v(" "),a("div",{staticClass:"topTagBox"},[a("publicTable",{attrs:{propsData:{desCol:t.desCol,source:"dataAnalyse",radar_id:t.analyse_id,reset:t.reset}}})],1)])},staticRenderFns:[]};var C=a("VU/8")(y,b,!1,function(t){a("Ojnr")},"data-v-6677bf62",null).exports,w={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,a=this.comeBackParms.url_list_echo;this.fileType_Val=e,1==e?this.jumplink_val=a[0]:2==e?(this.pdfList=[],this.pdfList.push({url:a[0],name:a[0]}),this.pdfVal=a):3==e?(this.typeImgList=[],a.forEach(function(e){t.typeImgList.push({url:e})}),this.imgVals=a):4==e&&(this.mp4List=[],this.mp4List.push({url:a[0],name:a[0]}),this.mp4Val=a)}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 a=t.response&&t.response.rst?t.response.rst.url:t.url;"img"==e?this.imgTypeUrl=a:"mp4"==e?this.mp4Url=a:"pdf"==e&&(this.pdfUrl=a)},handleRemove:function(t,e,a){var i=this;if(this.coverErrFlag=!1,"img"==a){var s=t.response&&t.response.rst?t.response.rst.url:t.url;this.imgVals.forEach(function(t,e){s==t&&i.imgVals.splice(e,1)})}else"mp4"==a?this.mp4Val=[]:"pdf"==a&&(this.pdfVal=[])},uploadSuccess:function(t,e,a,i){if(this.$loading(this.$loadingConfig).close(),t&&0==t.errno)if("pdf"==i)this.pdfVal=[],this.pdfVal.push(t.rst.url),this.$loading(this.$loadingConfig).close();else if("img"==i){var s=[];a.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 r=!0;this.imgVals.forEach(function(t){""==t&&(r=!1)}),r&&this.$loading(this.$loadingConfig).close()}else"mp4"==i&&(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,a){this.$message({message:t.err,type:"error"})},handleExceed:function(){this.$message({message:"最多上传1个照片",type:"warning"})}}},x={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"regulations"},[t._m(0),t._v(" "),a("div",{staticStyle:{display:"flex","align-items":"center",width:"300px"}},[a("el-radio",{attrs:{label:1},model:{value:t.fileType_Val,callback:function(e){t.fileType_Val=e},expression:"fileType_Val"}},[t._v("链接")]),t._v(" "),a("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(" "),a("el-radio",{attrs:{label:3},model:{value:t.fileType_Val,callback:function(e){t.fileType_Val=e},expression:"fileType_Val"}},[t._v("图片")]),t._v(" "),a("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(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.fileType_Val,expression:"fileType_Val==1"}]},[a("div",{staticClass:"regulations"},[t._m(1),t._v(" "),a("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(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:2==t.fileType_Val,expression:"fileType_Val==2"}]},[a("div",{staticClass:"regulations"},[a("label"),t._v(" "),a("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,a){t.handleRemove(e,a,"pdf")},"on-success":function(e,a,i){return t.uploadSuccess(e,a,i,"pdf")},"on-error":t.uploadFail,"on-exceed":t.handleExceed,"file-list":t.pdfList}},[a("el-button",{attrs:{size:"small",icon:"el-icon-upload"}},[t._v("上传文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[a("div",[t._v("只能上传pdf文件,且不超过10MB")]),t._v(" "),a("div",{staticClass:"tMar5"},[t._v("文件将自动转为成网页链接,员工发送给客户后可记录客户打开数据")]),t._v(" "),t.coverErrFlag?a("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(t.coverErrInfo))]):t._e()])],1)],1)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:3==t.fileType_Val,expression:"fileType_Val==3"}]},[a("div",{staticClass:"regulations radar_cover_box"},[a("label"),t._v(" "),a("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,a){t.handleRemove(e,a,"img")},"on-success":function(e,a,i){return t.uploadSuccess(e,a,i,"img")},"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"},[a("div",[t._v(" 图片大小不超过1MB,最多上传9张")]),t._v(" "),a("div",{staticClass:"tMar5"},[t._v("文件将自动转为成网页链接,员工发送给客户后可记录客户打开数据")]),t._v(" "),t.coverErrFlag?a("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(t.coverErrInfo))]):t._e()])])],1)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:4==t.fileType_Val,expression:"fileType_Val==4"}]},[a("div",{staticClass:"regulations"},[a("label"),t._v(" "),a("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,a){t.handleRemove(e,a,"mp4")},"on-success":function(e,a,i){return t.uploadSuccess(e,a,i,"mp4")},"on-error":t.uploadFail,"on-exceed":t.handleExceed,"file-list":t.mp4List}},[a("el-button",{attrs:{size:"small",icon:"el-icon-upload"}},[t._v("上传视频")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[a("div",[t._v("只能上传.mp4文件,且不超过10MB")]),t._v(" "),a("div",{staticClass:"tMar5"},[t._v("文件将自动转为成网页链接,员工发送给客户后可记录客户打开数据")]),t._v(" "),t.coverErrFlag?a("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(t.coverErrInfo))]):t._e()])],1)],1)]),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[2==t.fileType_Val?a("iframe",{staticStyle:{width:"100%",height:"500px"},attrs:{src:t.pdfUrl,frameborder:"0"}}):t._e(),t._v(" "),a("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(" "),a("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 $={name:"createRadar",props:["radar_id"],components:{fileType:a("VU/8")(w,x,!1,function(t){a("MKx6"),a("FY+y")},"data-v-83b329dc",null).exports,enterpriseTag:a("sPH2").a},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 a=e.rst;t.file_rule_id=t.radar_id,t.radarName=a.name,t.group_id=a.group_id,t.radartitle=a.title,t.radardesc=a.description,t.type=a.type,t.cover_id=a.cover_id,t.coverFileList.push({url:a.cover_url}),t.url_list_echo=a.url_list,t.tag_info=a.tag_list,t.afferent_tag_obj.tag_id_list=a.tag_list,t.smartVal=[],1==a.behavior_notification&&t.smartVal.push("behavior_notification"),1==a.customer_label&&t.smartVal.push("customer_label"),1==a.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 a="";a=this.radar_id?this.URL.radar_radarEdit:this.URL.radar_addRadar,this.$axios.post(this.URL.BASEURL+a,{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:"雷达名称不能为空!"})}}},k={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.edit_detial_Flag?i("div",{staticClass:"bg-ffffff createMassMsg",staticStyle:{padding:"10px 30px 10px"}},[i("div",{staticClass:"regulations"},[t._m(0),t._v(" "),i("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(" "),i("div",{staticClass:"regulations",staticStyle:{"align-items":"center"}},[t._m(1),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("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(" "),i("div",{staticClass:"regulations"},[t._m(2),t._v(" "),i("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(" "),i("div",{staticClass:"seeCase",on:{click:function(e){return t.caseClick("title")}}},[t._v("查看案例")])],1),t._v(" "),i("div",{staticClass:"regulations"},[t._m(3),t._v(" "),i("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(" "),i("div",{staticClass:"seeCase",on:{click:function(e){return t.caseClick("desc")}}},[t._v("查看案例")])],1),t._v(" "),i("div",{staticClass:"regulations"},[t._m(4),t._v(" "),i("div",{staticClass:"radar_cover_box"},[i("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}},[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"},[t._v("\n 建议尺寸: 200px*200px,大小不超过1MB\n "),i("span",{staticClass:"seeCase",on:{click:function(e){return t.caseClick("cover")}}},[t._v("查看案例")]),t._v(" "),t.coverErrFlag?i("div",{staticClass:"errCss"},[t._v("* 错误:"+t._s(t.coverErrInfo))]):t._e()])]),t._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:t.imgCoverVisible},on:{"update:visible":function(e){t.imgCoverVisible=e}}},[i("img",{attrs:{width:"100%",src:t.imgCoverUrl,alt:""}})])],1)]),t._v(" "),i("div",{staticClass:"regulations smartFollow"},[i("label",{staticClass:"fWeight600"},[t._v("智能跟进")]),t._v(" "),i("div",[i("el-checkbox-group",{model:{value:t.smartVal,callback:function(e){t.smartVal=e},expression:"smartVal"}},[i("el-checkbox",{attrs:{label:"behavior_notification"}},[t._v("行为通知(当客户点击雷达时,发送雷达的员工将会收到消息提醒)")]),t._v(" "),i("el-checkbox",{attrs:{label:"dynamic_notification"}},[t._v("动态通知(当客户点击雷达时,会将客户的打开行为记录在客户动态里)")]),t._v(" "),i("el-checkbox",{attrs:{label:"customer_label"}},[t._v("客户标签(给点击雷达的客户打上选中的标签)")])],1),t._v(" "),t.smartVal.indexOf("customer_label")>-1?i("enterprise-tag",{attrs:{title:"",width:"300px",afferent_obj:t.afferent_tag_obj,reset:t.resetFlag},on:{tagDefine:t.tagDefine}}):t._e()],1)]),t._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("el-button",{attrs:{type:"primary"},on:{click:t.newCode_click}},[t._v("保存")])],1)],1):t._e(),t._v(" "),i("el-dialog",{attrs:{"append-to-body":!0,title:"查看案例",visible:t.caseShow,width:"350px"},on:{"update:visible":function(e){t.caseShow=e}}},["cover"==t.caseType?i("img",{attrs:{src:a("9PVX"),alt:"",width:"300px"}}):t._e(),t._v(" "),"title"==t.caseType?i("img",{attrs:{src:a("0QUe"),alt:"",width:"300px"}}):t._e(),t._v(" "),"desc"==t.caseType?i("img",{attrs:{src:a("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 L=a("VU/8")($,k,!1,function(t){a("2Nfc"),a("w0To")},"data-v-dacc93d6",null).exports,S={name:"radarList",components:{draggable:p.a,createRadar:L,dataAnalyse:C},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,a=(t.to,t.from,t.item,t.clone,t.oldIndex),i=t.newIndex;this.copy_tableData[a].radar_id?this.$axios.post(this.URL.BASEURL+this.URL.radar_radarSort,{operate_radar_id:this.copy_tableData[a].radar_id,front_radar_id:i-1>=0?this.tableData[i-1].radar_id:"",behind_radar_id:i+1<this.tableData.length?this.tableData[i+1].radar_id:""}).then(function(t){(t=t.data)&&0==t.errno?e.copy_tableData=JSON.parse(o()(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(r()(t.tableData),r()(e.rst.data)),t.copy_tableData=JSON.parse(o()(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})}}},V={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{directives:[{name:"loading",rawName:"v-loading.body",value:t.loading,expression:"loading",modifiers:{body:!0}}],staticClass:"infinite-list-wrapper"},[a("div",{staticClass:"tHead"},t._l(t.desCol,function(e){return a("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?a("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"}},[a("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,i){return a("div",{staticClass:"body_item",class:i==t.tableData.length-1?"borderBottomline":""},t._l(t.desCol,function(i){return a("div",{staticClass:"body_cell",style:{width:i.min_width?i.min_width:"11%"}},["type"==i.prop?a("div",[1==e.type?a("span",[t._v("链接")]):2==e.type?a("span",[t._v("PDF")]):3==e.type?a("span",[t._v("图片")]):4==e.type?a("span",[t._v("视频")]):a("span",[t._v("-")])]):"tag_list"==i.prop?a("div",{staticClass:"flex-align-jus-center"},[e.tag_list&&0==e.tag_list.length||!e.tag_list?[t._v("-")]:a("div",{staticClass:"customerServiceTagBox biaoqian"},t._l(e.tag_list,function(e,i){return a("div",{key:i+"biaoqian",staticClass:"customerServiceTag"},[t._v(t._s(e))])}),0)],2):"oprate"==i.prop?a("div",[a("div",{staticClass:"flex",staticStyle:{padding:"0 10px","font-size":"13px"}},[a("div",{staticClass:"c-00B38A pointer",on:{click:function(a){return t.editRadar(e.radar_id,e.name)}}},[t._v("编辑")]),t._v(" "),a("el-popconfirm",{attrs:{title:"确定删除【"+e.name+"】智能雷达?"},on:{confirm:function(a){return t.deleRadar(e.radar_id)}}},[a("div",{staticClass:"c-00B38A pointer lMar8",attrs:{slot:"reference"},slot:"reference"},[t._v("删除")])]),t._v(" "),a("div",{staticClass:"c-00B38A pointer lMar8",on:{click:function(a){return t.goDataAanlyse(e.radar_id,e.name)}}},[t._v("分析数据")])],1)]):a("div",[t._v(t._s(e[i.prop]||0==e[i.prop]?e[i.prop]:"-"))])])}),0)}),0),t._v(" "),t.moreloading?a("p",{staticClass:"text-center f14 tMar8 c-d3"},[t._v("加载中...")]):t._e(),t._v(" "),t.noMore?a("p",{staticClass:"text-center f14 tMar8 c-d3"}):t._e()],1):a("div",{staticClass:"noData"},[t._v("暂无数据")])]),t._v(" "),a("el-drawer",{attrs:{visible:t.showOerateBox,direction:"rtl",size:"60%"},on:{"update:visible":function(e){t.showOerateBox=e}}},[a("div",{staticClass:"c-000",attrs:{slot:"title"},slot:"title"},[t._v("编辑雷达("+t._s(t.radar_name)+")")]),t._v(" "),a("createRadar",{attrs:{radar_id:t.radar_id},on:{init:function(e){return t.re_load()}}})],1),t._v(" "),a("el-drawer",{attrs:{visible:t.showOerateBox_analyse,direction:"rtl",size:"70%"},on:{"update:visible":function(e){t.showOerateBox_analyse=e}}},[a("div",{staticClass:"c-000",attrs:{slot:"title"},slot:"title"},[t._v("数据分析("+t._s(t.radar_name)+")")]),t._v(" "),a("dataAnalyse",{attrs:{reset:t.reset,analyse_id:t.analyse_id}})],1)],1)},staticRenderFns:[]};var D=a("VU/8")(S,V,!1,function(t){a("m7P6")},"data-v-40bacb38",null).exports,R={name:"codeIndex",components:{selfInput:i.a,groupList:h,radarList:D,createRadar:L},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+"/playlet/qwh5/dist/index.html#/radarH5?corpid="+t,a=document.createElement("textarea");document.body.appendChild(a),a.value=e,a.select(),a.readOnly="readOnly",document.execCommand("copy"),document.body.removeChild(a),this.$message({message:"复制成功",type:"success"})}}},U={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"con"},[a("div",{staticClass:"searchBox"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.created_radar}},[t._v("新建智能雷达")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.copy}},[t._v("复制链接")]),t._v(" "),a("self-input",{attrs:{reset:t.reset,label_name:"搜索雷达"},on:{inputChange:function(e){t.radar_val=e,t.initFlag=!t.initFlag}}}),t._v(" "),a("div",{staticClass:"reset",on:{click:t.resetEvent}},[t._v("重置")])],1),t._v(" "),a("div",{staticClass:"mainBox"},[a("div",{staticClass:"groupBox"},[a("groupList",{on:{getId:function(e){t.group_id=e,t.initFlag=!t.initFlag}}})],1),t._v(" "),a("div",{staticClass:"tableBox"},[a("radarList",{attrs:{propsData:{initFlag:t.initFlag,radar_val:t.radar_val,group_id:t.group_id}}})],1)]),t._v(" "),a("el-drawer",{attrs:{visible:t.showOerateBox,direction:"rtl",size:"60%"},on:{"update:visible":function(e){t.showOerateBox=e}}},[a("div",{staticClass:"c-000",attrs:{slot:"title"},slot:"title"},[t._v("新增雷达")]),t._v(" "),a("createRadar",{ref:"createRadarRef",attrs:{radar_id:""},on:{init:function(){t.initFlag=!t.initFlag,t.showOerateBox=!1}}})],1)],1)},staticRenderFns:[]};var T=a("VU/8")(R,U,!1,function(t){a("bn8O")},"data-v-6e28637f",null);e.default=T.exports},"2Nfc":function(t,e){},"7BIN":function(t,e){},"9PVX":function(t,e,a){t.exports=a.p+"static/img/radar_cover.4626076.png"},"FY+y":function(t,e){},MKx6:function(t,e){},Ojnr:function(t,e){},OlkM:function(t,e){},WIe5:function(t,e){},bn8O:function(t,e){},hxzI:function(t,e,a){t.exports=a.p+"static/img/radar_desc.550a899.png"},m7P6:function(t,e){},w0To:function(t,e){}});
|