直播数据中心

24.4d07a3e0ce1f65afbad6.js 30KB

1
  1. webpackJsonp([24],{"M8L+":function(t,e){},Ua0U:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("L/O1"),a=i("w/TU"),n={name:"selfDialogData",components:{draggable:i.n(a).a},props:["propTypeName"],data:function(){return{btnLoading:!1,customLoading:!1,chooseLoading:!1,resultLoading:!1,dialogFormVisible:!1,infoList:[],drag:!1,typeName:"",tempdata_list:[],useModeLen:0,modeNameFlag:!1,modeIpt:"",chooseModeName:"",chooseModeId:""}},methods:{init_typeName:function(){this.typeName=this.propTypeName},init:function(t){this.init_typeName(),this.getModeList()},addMode:function(t){var e=this;if(""==this.modeIpt)return this.$message({message:"模板名不能为空",type:"warning"}),!1;var i=[];this.tempdata_list.forEach(function(t){1==t.in_use&&t.checked.forEach(function(t){t.column&&t.column.length>0&&t.column.forEach(function(t){i.push(t.key)})})}),this.$axios.post(this.URL.BASEURL+this.URL.add_mode,{type:this.typeName,mode_name:this.modeIpt,column:i,use:t}).then(function(i){(i=i.data)&&0==i.errno?(1==t?(e.modeNameFlag=!1,e.dialogFormVisible=!1,e.$parent.init_title()):(e.modeNameFlag=!1,e.getModeList()),e.$message({message:"成功!",type:"success"})):4002!=i.errno&&e.$message({message:i.err,type:"warning"})})},useMode:function(){var t=this;this.customLoading=!0;var e=[];this.tempdata_list.forEach(function(t){1==t.in_use&&t.checked.forEach(function(t){t.column&&t.column.length>0&&t.column.forEach(function(t){e.push(t.key)})})}),this.$axios.post(this.URL.BASEURL+this.URL.use_mode,{type:this.typeName,mode_id:this.chooseModeId,column:e}).then(function(e){(e=e.data)&&0==e.errno?(t.$message({message:"成功!",type:"success"}),t.dialogFormVisible=!1,t.$parent.init_title()):4002!=e.errno&&t.$message({message:e.err,type:"warning"}),t.customLoading=!1}).catch(function(e){t.customLoading=!1})},deleMode:function(t){var e=this;this.$confirm("确定删除该模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.customLoading=!0,e.$axios.get(e.URL.BASEURL+e.URL.dele_mode,{params:{type:e.typeName,mode_id:t}}).then(function(t){(t=t.data)&&0==t.errno?(e.$message({message:"成功!",type:"success"}),e.getModeList()):4002!=t.errno&&e.$message({message:t.err,type:"warning"}),e.customLoading=!1}).catch(function(t){e.customLoading=!1})})},switchMode:function(t,e){if(this.tempdata_list.length<=1)return!1;this.chooseModeName=e,this.tempdata_list.forEach(function(e){e.in_use=0,e.zhan=!1,e.id==t&&(e.in_use=1,e.zhan=!0)}),this.getModeCorrespondingList(t)},getModeList:function(){var t=this;this.resultLoading=!0,this.$axios.get(this.URL.BASEURL+this.URL.get_mode_list,{params:{type:this.typeName}}).then(function(e){if((e=e.data)&&0==e.errno){var i=void 0;for(var s in t.tempdata_list=[],e.rst)e.rst[s].zhan=1==e.rst[s].in_use,1==e.rst[s].in_use&&(i=e.rst[s].id,t.chooseModeName=e.rst[s].name);t.tempdata_list=e.rst,t.getModeCorrespondingList(i)}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"});t.resultLoading=!1}).catch(function(e){t.resultLoading=!1})},getModeCorrespondingList:function(t){var e=this;this.chooseModeId=t,this.chooseLoading=!0,this.$axios.get(this.URL.BASEURL+this.URL.get_mode_detial,{params:{type:this.typeName,mode_id:t}}).then(function(t){(t=t.data)&&0==t.errno?(e.infoList=[],e.infoList=t.rst,e.useModeLen=0,t.rst.forEach(function(t){t.list.forEach(function(t){1==t.checked&&(e.useModeLen+=1)})})):4002!=t.errno&&e.$message({message:t.err,type:"warning"}),e.chooseLoading=!1}).catch(function(t){e.chooseLoading=!1})},switchChoose:function(t,e){var i=this;if(0==t.checked)this.tempdata_list.forEach(function(s){1==s.in_use&&s.checked.forEach(function(s){if(s.group_id==e)return s.column.push(t),void(i.useModeLen+=1)})}),t.checked=1;else{if(this.useModeLen<=5)return this.$message({message:"最少选5项",type:"info"}),!1;this.tempdata_list.forEach(function(s){1==s.in_use&&s.checked.forEach(function(s){s.group_id==e&&s.column.forEach(function(e,a){if(e.key==t.key)return s.column.splice(a,1),void(i.useModeLen-=1)})})}),t.checked=0}},deleCheckedDrag:function(t){var e=this;if(this.useModeLen<=5)return this.$message({message:"最少选5项",type:"info"}),!1;this.tempdata_list.forEach(function(i){1==i.in_use&&i.checked.forEach(function(i){i.column.forEach(function(s,a){if(s.key==t)return i.column.splice(a,1),void(e.useModeLen-=1)})})}),this.infoList.forEach(function(e){e.list.forEach(function(e){e.key!=t||(e.checked=0)})})}}},o={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"de_dou_dialog_table"},[s("el-dialog",{attrs:{"custom-class":"customTable_dialog",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[s("div",{staticStyle:{"border-bottom":"1px solid #373F55","padding-bottom":"12px"},attrs:{slot:"title"},slot:"title"},[s("div",{staticClass:"f18 fWeight600"},[t._v("设置自定义指标")]),t._v(" "),s("div",{staticClass:"f12 c-757D9C tMar8"},[t._v("\n 勾选您关心的数据指标,最少 "),s("span",{staticClass:"c-fff f14"},[t._v("5")]),t._v(" 项 !\n 您选中的模板是 "),s("span",{staticClass:"c-fff f14"},[t._v(t._s(t.chooseModeName))])])]),t._v(" "),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.customLoading,expression:"customLoading"}],staticClass:"cus_body"},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.chooseLoading,expression:"chooseLoading"}],staticClass:"choose_area"},t._l(t.infoList,function(e,i){return s("div",{key:e.group_id},[s("div",{staticClass:"big_"},[t._v(t._s(e.group_name))]),t._v(" "),s("div",{staticClass:"small_"},t._l(e.list,function(i,a){return s("div",{key:a,staticClass:"small_div"},[s("span",{staticClass:"check_span",class:1==i.checked?"check_ac":"no_chec",on:{click:function(s){return t.switchChoose(i,e.group_id)}}},[1==i.checked?s("i",{staticClass:"el-icon-check c-fff"}):t._e()]),t._v(" "),s("span",[t._v(t._s(i.key_name))]),t._v(" "),["gpm"==i.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"千次观看成交金额=1000*直播间成交金额/观看人次",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"cost"==i.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"千川+随心推",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"full_roi"==i.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"单场GMV/消耗",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"ctr"==i.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"观看/曝光*100%",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"acu"==i.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"平均在线人数",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"pcu"==i.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"最高在线人数",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"avt"==i.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"平均观看时长(秒)",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"goods_fans_pay_amount"==i.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"GMV*成交粉丝占比",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"qc_roi"==i.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"千川产出/消耗",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"sxt_roi"==i.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"随心推产出/消耗",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"uv"==i.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"GMV/场观",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1):t._e()]],2)}),0)])}),0),t._v(" "),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.resultLoading,expression:"resultLoading"}],staticClass:"result_area"},t._l(t.tempdata_list,function(e){return s("div",{key:e.id,staticClass:"tempBox"},[s("div",{staticClass:"f16 c-fff flex",staticStyle:{position:"sticky",top:"0",background:"#252b3e"}},[s("div",{staticClass:"check_span flexShrink0",class:1==e.in_use?"check_ac":"no_chec",on:{click:function(i){return t.switchMode(e.id,e.name)}}}),t._v(" "),s("div",{staticClass:"lMar5"},[s("span",{staticClass:"fWeight600 line21"},[t._v(t._s(e.name))]),t._v(" "),1==e.in_use?s("span",[t._v("已选"+t._s(t.useModeLen)+"个")]):t._e()]),t._v(" "),s("div",{staticClass:"lMarauto f14 c-448AFF pointer flexShrink0",on:{click:function(t){e.zhan=!e.zhan}}},[t._v("\n "+t._s(e.zhan?"收起":"展开")+"\n "),s("el-tooltip",{attrs:{effect:"dark",content:"删除该模板",placement:"top"}},[s("div",{staticStyle:{display:"inline-block"}},[1==e.in_use&&0!==e.id?s("i",{staticClass:"el-icon-close",on:{click:function(i){return i.stopPropagation(),t.deleMode(e.id)}}}):t._e()])])],1)]),t._v(" "),s("el-collapse-transition",[s("div",{directives:[{name:"show",rawName:"v-show",value:e.zhan,expression:"tn.zhan"}]},t._l(e.checked,function(a){return s("div",{key:a.group_id,staticClass:"lMar20"},[a.column&&a.column.length>0?[s("div",{staticClass:"big_ tMar15"},[t._v(t._s(a.group_name))]),t._v(" "),s("draggable",t._b({staticClass:"syllable_ul",attrs:{element:"ul",list:a.column}},"draggable",{group:"column"+e.id+a.group_id,animation:100},!1),[s("transition-group",{attrs:{type:"transition",name:t.drag?null:"syll_li",css:!0}},t._l(a.column,function(e,a){return s("li",{key:e.key,staticClass:"syllable_ul_li"},[s("img",{staticStyle:{display:"inline-block",width:"10px","margin-right":"4px"},attrs:{src:i("EROQ"),alt:""}}),t._v(" "),s("span",{staticClass:"name"},[t._v(t._s(e.key_name))]),t._v(" "),s("i",{staticClass:"el-icon-close",on:{click:function(i){return t.deleCheckedDrag(e.key)}}})])}),0)],1)]:t._e()],2)}),0)])],1)}),0)]),t._v(" "),s("div",{staticClass:"cus_footer",attrs:{slot:"footer"},slot:"footer"},[s("div",{staticClass:"lMarauto"},[s("el-button",{staticStyle:{background:"transparent",color:"#fff",border:"1px solid #323751"},attrs:{size:"small"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),t._v(" "),s("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.modeNameFlag=!0,t.modeIpt=t.chooseModeName}}},[t._v("保存模板")]),t._v(" "),s("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.useMode()}}},[t._v("应用")])],1)])]),t._v(" "),s("el-dialog",{attrs:{title:"保存模板",visible:t.modeNameFlag,width:"500px","close-on-click-modal":!1,left:""},on:{"update:visible":function(e){t.modeNameFlag=e}}},[s("div",{staticClass:"dialogitem"},[s("label",[t._v("模板名称:")]),t._v(" "),s("el-input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入模板名称",size:"small",clearable:""},model:{value:t.modeIpt,callback:function(e){t.modeIpt="string"==typeof e?e.trim():e},expression:"modeIpt"}})],1),t._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{size:"mini"},on:{click:function(e){t.modeNameFlag=!1}}},[t._v("取 消")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.addMode(0)}}},[t._v("保 存")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.addMode(1)}}},[t._v("保存并应用")])],1)])],1)},staticRenderFns:[]};var l={name:"dataManagement",components:{selfDialogData:i("VU/8")(n,o,!1,function(t){i("M8L+"),i("hPm6")},"data-v-57ef1a73",null).exports},data:function(){return{haveAcc:!1,iptLoading:!1,pageLoading:!1,platform:1,time:[this.$getDay(-7,!1),this.$getDay(0,!1)],timeList:[{id:1,name:"昨日",start_time:this.$getDay(-1,!1),end_time:this.$getDay(-1,!1)},{id:7,name:"近7日",start_time:this.$getDay(-7,!1),end_time:this.$getDay(0,!1)},{id:30,name:"近30日",start_time:this.$getDay(-30,!1),end_time:this.$getDay(0,!1)}],pickerTimes:{disabledDate:function(t){return t>Date.now()}},start_time:this.$getDay(-7,!1),end_time:this.$getDay(0,!1),dy_accountList:[],kw_accountList:[],account:"",typeName_self:"KS_ACCOUNT_DATE_REPORT",loading:!1,infoList:[],infoList_title:[],exportHref:"",haveTarget:!1,operationFlag:!1}},directives:{focus:{inserted:function(t){t.querySelector("input").focus()}}},beforeUpdate:function(){var t=this;this.$nextTick(function(){t.haveAcc&&t.$refs.dataTableref&&t.$refs.dataTableref.doLayout()})},created:function(){this.get_accountList(),this.userInfo=JSON.parse(this.$localSelfStore.getLocal("userInfo")),1==this.userInfo.is_edit&&(this.operationFlag=!0)},methods:{HandleTabKey:function(t){9==t.keyCode&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},formatVal:function(t){return t||(0===t?0:"-")},kwcolumnWidth:function(t){var e="";switch(t){case"TOP3销售额":e="200";break;default:e="120"}return e},init_export_href:function(){this.exportHref=this.URL.BASEURL+"/api/export?admin_id="+Object(s.c)("admin_id")+"&ttl="+Number(Object(s.c)("ttl"))+"&sign="+Object(s.c)("sign")+"&account_id="+this.account+"&begin_date="+this.start_time+"&end_date="+this.end_time+"&type="+this.typeName_self},subMitCellBlur:function(t,e){t[e]=!1,this.$forceUpdate()},subMitCell:function(t,e,i,s){var a=this;this.$axios.post(this.URL.BASEURL+this.URL.dataManage_list_edit,{account_id:t.user_id,date:t.date,column:e,value:t[e],platform_id:this.platform}).then(function(t){(t=t.data)&&0==t.errno?(s[i]=!1,a.$forceUpdate()):4002!=t.errno&&a.$message({message:t.err,type:"warning"})})},showCellIpt:function(t,e,i){if(!this.operationFlag)return!1;if(1!==t.support_edit||0==e)return this.$message({message:"此项不能编辑",type:"warning"}),!1;t[i]=[];for(var s=0;s<e+1;s++)t[i].push(!1);t[i][e]=!0,this.$forceUpdate()},get_accountList:function(){var t=this;this.pageLoading=!0,this.$axios.get(this.URL.BASEURL+this.URL.user_sellerList,{}).then(function(e){(e=e.data)&&0==e.errno?(e.rst.forEach(function(e){1==e.platform?t.kw_accountList.push(e):t.dy_accountList.push(e)}),1==t.platform?t.kw_accountList&&t.kw_accountList.length>0&&(t.account=t.kw_accountList[0].seller_id):2==t.platform&&t.dy_accountList&&t.dy_accountList.length>0&&(t.account=t.dy_accountList[0].seller_id),t.$nextTick(function(){t.init_title()})):4002!=e.errno&&t.$message({message:e.err,type:"warning"})})},changePlatform:function(t,e){if(t==this.platform)return!1;this.platform=t,this.partName=2==t?"liveListdou":"liveListkwai",1==this.platform?this.kw_accountList&&this.kw_accountList.length>0?this.account=this.kw_accountList[0].seller_id:this.account="":2==this.platform&&(this.dy_accountList&&this.dy_accountList.length>0?this.account=this.dy_accountList[0].seller_id:this.account=""),this.typeName_self=e,this.init_title()},selfClick:function(){this.$refs.dialogChild.dialogFormVisible=!0,this.$refs.dialogChild.init()},changeInit:function(t){this.start_time=t.start_time,this.end_time=t.end_time,this.init_title(),this.time=[t.start_time,t.end_time]},timeChange:function(t){t&&0!=t.length&&(this.start_time=t[0],this.end_time=t[1],this.init_title())},init_title:function(){var t=this;if(!this.account)return this.haveAcc=!1,this.pageLoading=!1,!1;this.haveAcc=!0,this.$axios.get(this.URL.BASEURL+this.URL.dataManage_list_title,{params:{type:this.typeName_self}}).then(function(e){(e=e.data)&&0==e.errno?(t.haveTarget=!1,2==t.platform&&"基础维度(巨量)"==e.rst[0].group_name&&e.rst[0].sub.forEach(function(e){"target"==e.key&&(t.haveTarget=!0)}),t.infoList_title=e.rst,t.init()):4002!=e.errno&&t.$message({message:e.err,type:"warning"}),t.pageLoading=!1})},init:function(){var t=this;this.loading=!0;var e,i;e=1==this.platform?this.URL.dataManage_list_ks:this.URL.dataManage_list_dy,i={params:{account_id:this.account,begin_date:this.start_time,end_date:this.end_time}},this.$axios.get(this.URL.BASEURL+e,i).then(function(e){(e=e.data)&&0==e.errno?(e.rst.forEach(function(t){t.support_edit=1}),t.infoList=e.rst,e.rst.length>0&&t.init_export_href()):4002!=e.errno&&t.$message({message:e.err,type:"warning"}),t.loading=!1}).catch(function(e){t.loading=!1})}}},c={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pageLoading,expression:"pageLoading"}],staticClass:"dataManagePage",class:t.haveTarget?"twoLevel":"oneLevel"},[s("div",{staticClass:"flex",staticStyle:{"flex-wrap":"wrap"}},[s("div",{staticClass:"commonn_switchBox",staticStyle:{width:"150px"}},[s("button",{class:1==t.platform?"active":"",on:{click:function(e){return t.changePlatform(1,"KS_ACCOUNT_DATE_REPORT")}}},[t._v("快手")]),t._v(" "),s("button",{class:2==t.platform?"active":"",on:{click:function(e){return t.changePlatform(2,"DY_ACCOUNT_DATE_REPORT")}}},[t._v("抖音")])]),t._v(" "),s("div",{staticClass:"operation_container flex",staticStyle:{flex:"1","padding-right":"0"}},[s("div",{staticClass:"flex"},[s("div",{staticClass:"commonInfoName"},[t._v("账号筛选")]),t._v(" "),s("el-select",{staticClass:"self_list_input__inner",staticStyle:{width:"210px"},attrs:{size:"small",filterable:"",placeholder:"账号筛选"},on:{change:function(e){return t.init_title()}},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}},t._l(1==t.platform?t.kw_accountList:t.dy_accountList,function(e,a){return s("el-option",{key:a,attrs:{label:e.name,value:e.seller_id}},[s("div",{staticClass:"flex f13"},[1==e.platform?s("img",{staticStyle:{width:"14px",height:"14px","margin-right":"4px"},attrs:{src:i("FxTv"),alt:""}}):t._e(),t._v(" "),2==e.platform?s("img",{staticStyle:{width:"14px",height:"14px","margin-right":"4px"},attrs:{src:i("AJUD"),alt:""}}):t._e(),t._v(" "),s("span",[t._v(t._s(e.name))])])])}),1)],1),t._v(" "),s("div",{staticClass:"commonInfoName",staticStyle:{"margin-left":"20px"}},[t._v("时间筛选")]),t._v(" "),s("ul",{staticClass:"commonTimeList flex"},[t._l(t.timeList,function(e){return s("li",{key:e.id,class:t.start_time==e.start_time&&t.end_time==e.end_time?"active":"",staticStyle:{"margin-right":"4px"},on:{click:function(i){return t.changeInit(e)}}},[t._v(t._s(e.name))])}),t._v(" "),s("li",{staticClass:"commonTime_container",staticStyle:{"margin-right":"4px"}},[t._v("\n "+t._s(t.time&&0!=t.time.length?t.time[0]+"  ~  "+t.time[1]:"开始时间  -  结束时间")+"\n "),s("i",{staticClass:"iconfont icon-rili_icon"}),t._v(" "),s("el-date-picker",{staticClass:"commonTime_picker",attrs:{size:"small",clearable:!1,"value-format":"yyyy-MM-dd",type:"daterange","picker-options":t.pickerTimes,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.timeChange},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}})],1)],2),t._v(" "),s("div",{staticClass:"lMarauto"},[s("div",{staticClass:"selfBtn_detial",on:{click:t.selfClick}},[t._v("自定义指标")]),t._v(" "),t.infoList&&t.infoList.length>0?s("a",{staticClass:"selfBtn_detial lMar8",attrs:{href:t.exportHref}},[t._v("导出")]):t._e()])])]),t._v(" "),t.haveAcc?[1==t.platform?[s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"dataTableref",staticStyle:{width:"100%"},attrs:{data:t.infoList,height:"calc(100vh - 140px)"}},[s("el-table-column",{attrs:{fixed:"",label:"直播时间",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row,a=e.$index;return[s("span",{on:{dblclick:function(e){return t.showCellIpt(i,a,"live_time_desc_showIpts")}}},[i.live_time_desc_showIpts&&i.live_time_desc_showIpts[a]?s("el-input",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"editIpt_data_manage",on:{blur:function(e){return t.subMitCellBlur(i.live_time_desc_showIpts,a)},change:function(e){return t.subMitCell(i,"live_time_desc",a,i.live_time_desc_showIpts)}},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.HandleTabKey.apply(null,arguments)}},model:{value:i.live_time_desc,callback:function(e){t.$set(i,"live_time_desc",e)},expression:"row.live_time_desc"}}):s("span",[t._v(t._s(t.formatVal(i.live_time_desc)))])],1)]}}],null,!1,233747806)}),t._v(" "),s("el-table-column",{attrs:{"class-name":"self-column",label:"账号总粉丝",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row,a=e.$index;return[s("span",{on:{dblclick:function(e){return t.showCellIpt(i,a,"total_fans_showIpts")}}},[i.total_fans_showIpts&&i.total_fans_showIpts[a]?s("el-input",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"editIpt_data_manage",on:{blur:function(e){return t.subMitCellBlur(i.total_fans_showIpts,a)},change:function(e){return t.subMitCell(i,"total_fans",a,i.total_fans_showIpts)}},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.HandleTabKey.apply(null,arguments)}},model:{value:i.total_fans,callback:function(e){t.$set(i,"total_fans",e)},expression:"row.total_fans"}}):s("span",[t._v(t._s(t.formatVal(i.total_fans)))])],1)]}}],null,!1,1496706846)}),t._v(" "),s("el-table-column",{attrs:{"class-name":"self-column",label:"直播时长(h)",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row,a=e.$index;return[s("span",{on:{dblclick:function(e){return t.showCellIpt(i,a,"live_duration_hour_showIpts")}}},[i.live_duration_hour_showIpts&&i.live_duration_hour_showIpts[a]?s("el-input",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"editIpt_data_manage",on:{blur:function(e){return t.subMitCellBlur(i.live_duration_hour_showIpts,a)},change:function(e){return t.subMitCell(i,"live_duration_hour",a,i.live_duration_hour_showIpts)}},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.HandleTabKey.apply(null,arguments)}},model:{value:i.live_duration_hour,callback:function(e){t.$set(i,"live_duration_hour",e)},expression:"row.live_duration_hour"}}):s("span",[t._v(t._s(t.formatVal(i.live_duration_hour)))])],1)]}}],null,!1,140110558)}),t._v(" "),t._l(t.infoList_title,function(e,i){return s("el-table-column",{key:Math.random(),attrs:{"class-name":"self-column","min-width":"120",label:e.group_name}},[e.sub&&e.sub.length>0?t._l(e.sub,function(e,i){return s("el-table-column",{key:Math.random(),attrs:{"class-name":"self-column",width:t.kwcolumnWidth(e.key_name)},scopedSlots:t._u([{key:"default",fn:function(i){return t._l(Object.keys(i.row),function(a){return s("span",[a==e.sub[0].column?s("span",{on:{dblclick:function(s){return t.showCellIpt(e.sub[0],i.$index,"showIpts")}}},[e.sub[0].showIpts&&e.sub[0].showIpts[i.$index]?s("el-input",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"editIpt_data_manage",on:{blur:function(s){return t.subMitCellBlur(e.sub[0].showIpts,i.$index)},change:function(s){return t.subMitCell(i.row,a,i.$index,e.sub[0].showIpts)}},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.HandleTabKey.apply(null,arguments)}},model:{value:i.row[a],callback:function(e){t.$set(i.row,a,e)},expression:"scope.row[k]"}}):s("span",["top3_sell_amount"==a?s("span",[i.row.top_goods_info&&i.row.top_goods_info.length>0?[s("el-popover",{attrs:{placement:"right",width:"500",trigger:"hover"}},[s("span",t._l(i.row.top_goods_info,function(e){return s("span",{key:e.commodity_id,staticStyle:{display:"flex"}},[s("span",{staticClass:"flexShrink0"},[s("img",{staticStyle:{width:"16px"},attrs:{src:e.img,alt:""}})]),t._v(" "),s("span",{staticClass:"clampOne f12"},[t._v(t._s(e.title))]),t._v(" "),s("span",{staticClass:"flexShrink0 f12 lMarauto c-FE9"},[t._v("¥"+t._s(e.sell_money))])])}),0),t._v(" "),s("span",{attrs:{slot:"reference"},slot:"reference"},t._l(i.row.top_goods_info,function(e,i){return i<3?s("span",{key:e.commodity_id,staticClass:"flex pointer"},[s("span",{staticClass:"flexShrink0"},[s("img",{staticStyle:{width:"16px"},attrs:{src:e.img,alt:""}})]),t._v(" "),s("span",{staticClass:"clampOne f12"},[t._v(t._s(e.title))]),t._v(" "),s("span",{staticClass:"flexShrink0 f10"},[t._v("¥"+t._s(e.sell_money))])]):t._e()}),0)])]:[t._v("-")]],2):s("span",[t._v(t._s(t.formatVal(i.row[a])))])])],1):t._e()])})}}],null,!0)},[s("template",{slot:"header"},[t._v("\n "+t._s(e.key_name)+"\n "),"gpm"==e.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"千次观看成交金额=1000*直播间成交金额/观看人次",placement:"top",tabindex:-1}},[s("i",{staticClass:"el-icon-question"})])],1):t._e()])],2)}):t._e()],2)})],2)]:t._e(),t._v(" "),2==t.platform?[s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"dataTableref",staticStyle:{width:"100%"},attrs:{data:t.infoList,height:"calc(100vh - 140px)"}},[s("el-table-column",{attrs:{fixed:"",label:"直播时间",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row,a=e.$index;return[s("span",{on:{dblclick:function(e){return t.showCellIpt(i,a,"live_duration_desc_showIpts")}}},[i.live_duration_desc_showIpts&&i.live_duration_desc_showIpts[a]?s("el-input",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"editIpt_data_manage",on:{blur:function(e){return t.subMitCellBlur(i.live_duration_desc_showIpts,a)},change:function(e){return t.subMitCell(i,"live_duration_desc",a,i.live_duration_desc_showIpts)}},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.HandleTabKey.apply(null,arguments)}},model:{value:i.live_duration_desc,callback:function(e){t.$set(i,"live_duration_desc",e)},expression:"row.live_duration_desc"}}):s("span",[t._v(t._s(t.formatVal(i.live_duration_desc)))])],1)]}}],null,!1,3744908062)}),t._v(" "),t._l(t.infoList_title,function(e,i){return s("el-table-column",{key:Math.random(),attrs:{"class-name":"self-column","min-width":"120",label:e.group_name}},[e.sub&&e.sub.length>0?t._l(e.sub,function(e,i){return s("el-table-column",{key:Math.random(),attrs:{"class-name":"self-column","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(i){return t._l(Object.keys(i.row),function(a){return s("span",[a==e.sub[0].column?s("span",{on:{dblclick:function(s){return t.showCellIpt(e.sub[0],i.$index,"showIpts")}}},[e.sub[0].showIpts&&e.sub[0].showIpts[i.$index]?s("el-input",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"editIpt_data_manage",on:{blur:function(s){return t.subMitCellBlur(e.sub[0].showIpts,i.$index)},change:function(s){return t.subMitCell(i.row,a,i.$index,e.sub[0].showIpts)}},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.HandleTabKey.apply(null,arguments)}},model:{value:i.row[a],callback:function(e){t.$set(i.row,a,e)},expression:"scope.row[k]"}}):s("span",[t._v(t._s(t.formatVal(i.row[a])))])],1):t._e()])})}}],null,!0)},[s("template",{slot:"header"},[t._v("\n "+t._s(e.key_name)+"\n "),["cost"==e.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"千川+随心推",placement:"top",tabindex:-1}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"full_roi"==e.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"单场GMV/消耗",placement:"top",tabindex:-1}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"ctr"==e.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"观看/曝光*100%",placement:"top",tabindex:-1}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"acu"==e.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"平均在线人数",placement:"top",tabindex:-1}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"pcu"==e.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"最高在线人数",placement:"top",tabindex:-1}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"avt"==e.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"平均观看时长(秒)",placement:"top",tabindex:-1}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"goods_fans_pay_amount"==e.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"GMV*成交粉丝占比",placement:"top",tabindex:-1}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"qc_roi"==e.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"千川产出/消耗",placement:"top",tabindex:-1}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"sxt_roi"==e.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"随心推产出/消耗",placement:"top",tabindex:-1}},[s("i",{staticClass:"el-icon-question"})])],1):t._e(),t._v(" "),"uv"==e.key?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"GMV/场观",placement:"top",tabindex:-1}},[s("i",{staticClass:"el-icon-question"})])],1):t._e()]],2),t._v(" "),t._v(" "),t._l(e.sub,function(i,a){return 0!==e.show_sub?s("el-table-column",{key:Math.random(),attrs:{"class-name":"self-column","min-width":"120",label:i.name},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(Object.keys(e.row),function(a){return s("span",[a==i.column?s("span",{on:{dblclick:function(s){return t.showCellIpt(i,e.$index,"showIpts")}}},[i.showIpts&&i.showIpts[e.$index]?s("el-input",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"editIpt_data_manage",on:{blur:function(s){return t.subMitCellBlur(i.showIpts,e.$index)},change:function(s){return t.subMitCell(e.row,a,e.$index,i.showIpts)}},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.HandleTabKey.apply(null,arguments)}},model:{value:e.row[a],callback:function(i){t.$set(e.row,a,i)},expression:"scope.row[k]"}}):s("span",[t._v(t._s(t.formatVal(e.row[a])))])],1):t._e()])})}}],null,!0)}):t._e()})],2)}):t._e()],2)})],2)]:t._e()]:t._e(),t._v(" "),t.haveAcc?t._e():[t._m(0)],t._v(" "),s("selfDialogData",{ref:"dialogChild",attrs:{propTypeName:t.typeName_self}})],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center tMar50"},[e("img",{staticStyle:{margin:"0 auto"},attrs:{src:i("nu6d"),alt:""}}),this._v(" "),e("span",{staticClass:"c-fff"},[this._v("本平台下无绑定账号")])])}]};var r=i("VU/8")(l,c,!1,function(t){i("vsRm"),i("yfbl")},"data-v-d376e522",null);e.default=r.exports},hPm6:function(t,e){},vsRm:function(t,e){},yfbl:function(t,e){}});