直播数据中心

2.14fbbd28e80bceee751f.js 74KB

1
  1. webpackJsonp([2],{"1Gwb":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAArZJREFUSA29lllrVEEQhWeiiVsUReOGieNGBAX1zRfBH++jDxEFl8SRcYE4ipFozKJkPF9T1dR0+jJX0Rwoqrqquk9Xd92l09lndP+EbzQakT8jOSTZlWx3u92f0q0xkVAkB7TaRck5yWnJlCRiR4OhZFXkn2KgZjcSWjXzmnRdQkVt8FVJL0S81pRcJRTZtCbckcw1TZzgfynSfi2nPJ6Okd0vyDY0fiqp7RwfsR8Sx6LWueWDqMcIlcT4nmQ2Jsnua8fvpZ8UfoZLFisrWtB6vTJ/jFDBKxIao8RRHFp4U4p7cqzJt2WDlOMB0zdFejz6MqECtPvVGAw2Her46IZ0tM8Hv5v0yKIP0JlQ9oLkIM4KZrUhP+ZIskquVVGrkPBcrDISxipILJHiOkIa6Jtk3Y6YvElzc/WpIu3gsCadYGYFK/JRya8QexxszA8SKr8guSYpcUaOZZx+hEfKDBvvSr9WJeiM0CjJ55Vq41RP48WTIycftxNSYQ1MpNPSXVnChgi2seXnDXTM/CgqLMnwzyh3io074QhvAy7LjzieyXhng7PStz3QRjth2nHDBO6OZ8835c8d6dj+wuYROCnxNWVm7FAdIw9u5tBe45HfURmSHzIn5IjphYdlnsb5tZfOWxPZ6Xolkaq8skq46qrl5015hcykrctHg2N6oJ1/IcEw0AY/Y8vP14QXBiD3lGnGEaydEAnfykNLRx9JjGkOx9ANabo7xkIom0NtkBdFQm5hOfly983/rxTH+youlgnNCWE6rphU2HycHdF2X9TPY3UExggVZEdLku8EG9Dj7uz+eg05uAdab1DGueg90GLc210JTfE34L/mTW1ilZBEkRK7JLkh+b8/USLIELH/JtKNvPXHrkFj3lJ0Lr+Jk+4/PTvKbQerOv4Ib4kkfrbaLbSfWb8B8a6/zYg9VfUAAAAASUVORK5CYII="},"4Cf8":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IArs4c6QAAAcJJREFUSA21lttKAzEQhl0PeKxiFVREhQoFEa+88P1fwQsFD2BFQbQqeBYP6/eHpGzXZLrIOjCkmcz8X7KbZJsNVbA8zzPSlvEVfAYfxt/xe7yTZdkrrWkSMA3IBAlb+Hwi8Yv4CbDLxLgLmyAgo2Tt4eOWiB8T7DyVp0dgWZvBKhBptJjYdEosCaKoQZHeS1WT1mYqOQmiYCFVZMSbTDCqGQ16oUlDMDUkvbHYoAXKYwUVYtE6C/RcQbSc8kngoxxU3wJ1GY/OLibkY9ds8WhNEuRP+5khWh7SSk7LwdBPgnxCh/YhJA9oD5lc9LGpzrwZlOC3a4uf6+pH7IXYARBzQgNBQdgf4CX6ulRHcF2qd/gVkG9a00wQ4hJsetflqruvaHrxAj7hXYDJnRoF+ce1RvEGXhYnlDSt8BTgYznjFwiILtEdfLacXLGvVR4Duyjm94GA6PrYxaeKSX/8fVSElbf3dk0Qza3NxOfCJHsggosE9eLrNH3PnPVA9FZ9rM6mwQLcu3YgOmrrXk2YsPuuhRVpp/VtjJBVQ+u+awFUg54t4UBsQ/0v0+n+D7uRaHFF+/Rv8YH3lgor2Bs5OksO9AMcR2eHRXk6HAAAAABJRU5ErkJggg=="},"6IOE":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"advertisingPlan",components:{plans:a("JHlR").a},mounted:function(){var t=this;this.$nextTick(function(){t.$refs.plansChild.init(1)})}},i={render:function(){var t=this.$createElement;return(this._self._c||t)("plans",{ref:"plansChild"})},staticRenderFns:[]},n=a("VU/8")(s,i,!1,null,null,null);e.default=n.exports},"6cHa":function(t,e){},"94/F":function(t,e){},C6tV:function(t,e){},"DyI/":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAACICAYAAACV4qmDAAAAAXNSR0IArs4c6QAAAZNJREFUeAHt3FFqg0AYReEo3UKWIAhdT7KzbCJZT0FwCVmDmhlBmCm2EA7B/+HkpWnSq5dvLvTN0yn4q9nrNwzDsvf5EZ+1R9z0nXvuCr5zgU/97XaK4QUtSCegoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgObdoIJUgOb/3eA4juf0/Ks7vQnJ/1kwFbvM8/yTLn4hN6DZr98XyGrTNN1ysWU5/hFwlWAUtRJtFYymVhZsslrTNLd0nOfyiyjvqyOOUqrssT7erzzi8svtfd/3hz0GcBXsuu6ZSlxToWs67udWLMLP6ohTyUfbtt+p2CNCudyhKpg/iKyZ+1WvCP/qqkIRf3kBMcFLMV+mg70AAAAASUVORK5CYII="},GErv:function(t,e){},JHlR:function(t,e,a){"use strict";var s={name:"plans",data:function(){return{loading:!1,infoList:[],sort_type:"roi",total:0,page:1,pages:1,page_size:20}},methods:{goputDetail:function(t){var e=void 0;"advertisingPlan"==this.$route.name?e=this.$route.params.plat_type:"replay"==this.$route.name&&(e=this.$route.params.platform);var a=this.$router.resolve({path:"/putOnId/"+t+"/"+e});window.open(a.href,"_blank")},sortEvent:function(t){if(this.infoList==[]||0==this.infoList.length)return this.$message({message:"暂无数据",type:"info"}),!1;this.sort_type=t,this.init(1)},init:function(t){var e=this;this.loading=!0;var a=void 0;"advertisingPlan"==this.$route.name?a=1==this.$route.params.plat_type?this.URL.replay_put_plan_kwai:this.URL.dou_advert:"replay"==this.$route.name&&(a=1==this.$route.params.platform?this.URL.replay_put_plan_kwai:this.URL.dou_advert),this.$axios.get(this.URL.BASEURL+a,{params:{live_stream_id:this.$route.params.living_id,sort_column:this.sort_type,page:t,page_size:this.page_size}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?(e.infoList=t.rst.data,e.total=t.rst.pageInfo.total,e.pages=t.rst.pageInfo.pages,e.page=t.rst.pageInfo.page):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},handleCurrentChange:function(t){this.init(t)},exportEvent:function(t){var e=this;if(0==this.infoList.length)return this.$message({message:"数据为空,不能导出!",type:"success"}),!1;this.loading=!0;var a=1==this.$route.params.platform?this.URL.replay_put_plan_kwai:this.URL.dou_advert;this.$axios.get(this.URL.BASEURL+a,{params:{live_stream_id:this.$route.params.living_id,sort_column:this.sort_type,page:1,page_size:100}}).then(function(a){var s,i,n=[];(a=a.data)&&0==a.errno?(i="关联账号,广告计划,消耗,展示数,点击数,点击率,转化订单数,转化销售额,转粉数,转化成本,转化率,投放ROI\n",s=t+" - 投放计划",a.rst.data.forEach(function(t){n.push({shop_name:1==e.$route.params.platType?t.account.name:t.shop_name,campaign_name:t.campaign_name,stat_cost:t.stat_cost,show_cnt:t.show_cnt,click_cnt:t.click_cnt,ctr:t.ctr,pay_order_count:t.pay_order_count,pay_order_amount:t.pay_order_amount,fan_add:t.fan_add,per_order_cost:t.per_order_cost,to_order_rate:t.to_order_rate,roi:t.roi})}),e.$exportToExcel({th_arr:i,jsonData:n,name:s}).then(function(){e.loading=!1})):(e.loading=!1,e.$message({message:a.err,type:"warning"}))}).catch(function(t){e.loading=!1})}}},i={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:"table_div"},[a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[a("div",{staticClass:"th_title"},[t.$route.params.platType?[t._v("关联账号")]:[t._v("广告账号")]],2)]),t._v(" "),t._m(0),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","stat_cost"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("stat_cost")}}},[t._v("\n 消耗\n "),t._m(1)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","show_cnt"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("show_cnt")}}},[t._v("\n 展示数\n "),t._m(2)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","click_cnt"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("click_cnt")}}},[t._v("\n 点击数\n "),t._m(3)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","ctr"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("ctr")}}},[t._v("\n 点击率\n "),t._m(4)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","pay_order_count"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("pay_order_count")}}},[t._v("\n 转化订单数\n "),t._m(5)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","pay_order_amount"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("pay_order_amount")}}},[t._v("\n 转化销售额\n "),t._m(6)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","fan_add"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("fan_add")}}},[t._v("\n 转粉数\n "),t._m(7)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","per_order_cost"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("per_order_cost")}}},[t._v("\n 转化成本\n "),t._m(8)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","to_order_rate"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("to_order_rate")}}},[t._v("\n 转化率\n "),t._m(9)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","roi"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("roi")}}},[t._v("\n 投放ROI\n "),a("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"投放ROI=投放产生的销售额/ 投放金额",placement:"top"}},[a("i",{staticClass:"el-icon-question"})]),t._v(" "),t._m(10)],1)])])]),t._v(" "),a("tbody",[t._l(t.infoList,function(e,s){return[a("tr",{key:e.plan_id,staticClass:"pointer"},[a("td",{staticStyle:{"text-align":"left","padding-right":"10px"}},[a("el-tooltip",{attrs:{effect:"light",disabled:!(e.shop_name&&e.shop_name.length>15),content:e.shop_name,placement:"top"}},[a("div",{staticClass:"liveName clampOne liveNameACC",on:{click:function(a){return t.goputDetail(e.advertiser_id)}}},[t._v(t._s(e.shop_name?e.shop_name:"-"))])])],1),t._v(" "),a("td",{staticClass:"clampOne",staticStyle:{"text-align":"left"}},[a("el-tooltip",{attrs:{effect:"light",disabled:!(e.campaign_name&&e.campaign_name.length>9),content:e.campaign_name,placement:"top"}},[a("div",{staticClass:"liveName clampOne"},[t._v("\n "+t._s(e.campaign_name?e.campaign_name:"-"))])])],1),t._v(" "),a("td",{class:"stat_cost"==t.sort_type?"common_selected":""},[t._v(t._s(e.stat_cost?t.$formatNum(e.stat_cost):"-"))]),t._v(" "),a("td",{class:"show_cnt"==t.sort_type?"common_selected":""},[t._v(t._s(e.show_cnt?t.$formatNum(e.show_cnt):"-"))]),t._v(" "),a("td",{class:"click_cnt"==t.sort_type?"common_selected":""},[t._v(t._s(e.click_cnt||0==e.click_cnt?t.$formatNum(e.click_cnt):"-"))]),t._v(" "),a("td",{class:"ctr"==t.sort_type?"common_selected":""},[t._v(t._s(e.ctr||0==e.ctr?t.$formatNum(e.ctr):"-")+"%")]),t._v(" "),a("td",{class:"pay_order_count"==t.sort_type?"common_selected":""},[t._v(t._s(e.pay_order_count||0==e.pay_order_count?t.$formatNum(e.pay_order_count):"-"))]),t._v(" "),a("td",{class:"pay_order_amount"==t.sort_type?"common_selected":""},[t._v(t._s(e.pay_order_amount||0==e.pay_order_amount?t.$formatNum(e.pay_order_amount):"-"))]),t._v(" "),a("td",{class:"fan_add"==t.sort_type?"common_selected":""},[t._v(t._s(e.fan_add||0==e.fan_add?t.$formatNum(e.fan_add):"-"))]),t._v(" "),a("td",{class:"per_order_cost"==t.sort_type?"common_selected":""},[t._v(t._s(e.per_order_cost?t.$formatNum(e.per_order_cost):"-"))]),t._v(" "),a("td",{class:"to_order_rate"==t.sort_type?"common_selected":""},[t._v(t._s(e.to_order_rate?t.$formatNum(e.to_order_rate):"-")+"%")]),t._v(" "),a("td",{class:"roi"==t.sort_type?"common_selected":""},[t._v(t._s(e.roi||0==e.roi?e.roi:"-"))])])]})],2)]),t._v(" "),t.loading||0!=t.infoList.length?t._e():a("div",{staticClass:"noHaveDate"},[t._v("暂无数据")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"bottom"},[a("el-pagination",{attrs:{background:"","current-page":Number(t.page),layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",{staticStyle:{"text-align":"left",width:"14%"}},[e("div",{staticClass:"th_title"},[this._v("广告计划")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])}]};var n=a("VU/8")(s,i,!1,function(t){a("GErv")},"data-v-bc5a05f8",null);e.a=n.exports},NUeJ:function(t,e){},bmIx:function(t,e){},kCXs:function(t,e,a){"use strict";var s=a("//Fk"),i=a.n(s),n=a("XLwt"),r=null,o={props:["platform"],data:function(){return{screenAc:null,errorAc:null,loading:!1,trendData:{},dataZoom_start:0,dataZoom_end:100,streamerData:[],screenData:[],screenList:{},columnArr:[],partName:"living_trend",platNum:this.platform,minute_unit:"",minute_unit_list:[{id:30,name:"30分钟"},{id:60,name:"60分钟"},{id:90,name:"90分钟"},{id:120,name:"120分钟"}],is_minute_grain:!1,key_index:1}},components:{selfDialogTrend:a("aCK0").a},created:function(){var t=this;this.is_minute_grain=!(!this.minute_unit||""==this.minute_unit),this.$nextTick(function(){t.init_first()})},methods:{init_first:function(){var t=this;this.loading=!0;var e=[this.liveDeTrends()];(!this.screenData||this.screenData.length<=0)&&e.push(this.init_screenData()),this.is_minute_grain||e.push(this.streamer_scheduling()),i.a.all(e).then(function(){t.$nextTick(function(){t.trendData&&0!=t.trendData.length?t.trendEcharts():t.loading=!1})}).catch(function(){t.loading=!1})},init_screenData:function(){var t=this;return new i.a(function(e,a){t.$axios.get(t.URL.BASEURL+t.URL.search_config,{params:{type:1==t.platform?"KS_LIVE_TRENDS_V2":"DY_LIVE_TRENDS_V2",method:"user"}}).then(function(a){e(),(a=a.data)&&0==a.errno?(t.screenData=a.rst.show_checked_column,t.screenData.forEach(function(e,a){e.color_rgba=t.$store.state.color_trend_arrs[a]})):4002!=a.errno&&t.$message({message:a.err,type:"warning"})}).catch(function(t){e()})})},getscreenData:function(t){var e=this;t.forEach(function(t,a){t.color_rgba=e.$store.state.color_trend_arrs[a]}),this.screenData=t,this.$nextTick(function(){e.trendEcharts()})},editscreenData:function(){if(!this.columnArr&&this.columnArr.length<1)return this.$message({message:"请求错误,请稍后再试!",type:"warning"}),!1;this.$axios.post(this.URL.BASEURL+this.URL.save_config,{type:1==this.platform?"KS_LIVE_TRENDS_V2":"DY_LIVE_TRENDS_V2",column:this.columnArr})},openDialog:function(){this.$refs.dialogChild.dialogFormVisible=!0,this.$refs.dialogChild.init("user")},screenSplice:function(t){var e=this;if(1!=this.screenData.length){for(var a in this.screenData.splice(t,1),this.columnArr=[],this.screenData)this.columnArr.push(this.screenData[a].key);this.editscreenData(),this.$nextTick(function(){e.trendEcharts()})}else this.$message({message:"至少有一条趋势",type:"warning"})},screenIn:function(t){this.screenAc=t},screenOut:function(t){this.screenAc=null},errorIn:function(t){this.errorAc=t},errorOut:function(t){this.errorAc=null},streamer_scheduling:function(){var t=this;return new i.a(function(e,a){var s={params:{live_stream_id:t.$route.params.living_id}};t.$axios.get(t.URL.BASEURL+t.URL.streamer_scheduling,s).then(function(a){e(),(a=a.data)&&0==a.errno?t.streamerData=a.rst:t.$message({message:a.err,type:"warning"})}).catch(function(t){e()})})},liveDeTrends:function(){var t=this;return new i.a(function(e,a){var s={params:{live_stream_id:t.$route.params.living_id}};s.params.minute_unit=t.minute_unit&&""!=t.minute_unit?t.minute_unit:1,t.$axios.get(t.URL.BASEURL+(1==t.platform?t.URL.liveDeTrends:t.URL.dou_liveTrends),s).then(function(a){if(e(),(a=a.data)&&0==a.errno){if(t.trendData=a.rst,!a.rst)return}else t.$message({message:a.err,type:"warning"})}).catch(function(t){e()})})},grainChange:function(){var t=this;this.is_minute_grain=!(!this.minute_unit||""==this.minute_unit),this.key_index++,this.$nextTick(function(){t.init_first()})},trendEcharts:function(){var t=this;function e(t,e){var a=e.value(0),s=e.coord([e.value(1),a]),i=e.coord([e.value(2),a]),r=e.size([0,1])[1],o=n.graphic.clipRectByRect({x:s[0],y:s[1]-r/2,width:i[0]-s[0],height:r},{x:t.coordSys.x,y:t.coordSys.y,width:t.coordSys.width,height:t.coordSys.height});return o&&{type:"rect",shape:o,style:e.style()}}var a=[],s=[],i=[],o=[],l=[],c=[],_=[],d=[],v=[],m=this,f=[];this.trendData.forEach(function(t){t.lotterys&&0!=t.lotterys.length&&s.push([t.xtime,1,t.lotterys]),t.goods_on_sale&&0!=t.goods_on_sale.length&&i.push([t.xtime,1,t.goods_on_sale]),t.live_notes&&o.push([t.xtime,1,t.live_notes]),t.live_control&&l.push([t.xtime,1,t.live_control]),a.push(t.xtime)}),this.screenData.forEach(function(e){e.data=[],t.trendData.forEach(function(t){e.data.push(t[e.key]?t[e.key]:0)})});var p=0,u=[];if(this.is_minute_grain)p=0;else{u=[{name:"商品上架",data:i,seriesFourtop:"70%",color:"#5E4CFF"},{name:"场记",data:o,seriesFourtop:"75%",color:"#E39063"},{name:"场控预警",data:l,seriesFourtop:"80%",color:"#6CB1E4"}],2==this.platform&&u.unshift({name:"福袋",data:s,seriesFourtop:"65%",color:"#FF4C4C"}),u.forEach(function(t,e){c.push({name:t.name,type:"scatter",xAxisIndex:e,yAxisIndex:e,symbolSize:6,data:t.data,itemStyle:{color:t.color},emphasis:{itemStyle:{color:t.color,borderColor:t.color,borderWidth:3,shadowBlur:4,shadowColor:t.color}}}),v.push({left:"3%",right:"1%",top:t.seriesFourtop,height:"5%"}),d.push({gridIndex:e,name:"",type:"value",inverse:!0,min:1,max:2,axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},nameTextStyle:{color:t.color,fontSize:14,padding:[0,35,0,0]},axisLabel:{show:!1,color:"#999999",fontSize:13,formatter:function(t){return""}}}),_.push({gridIndex:e,type:"category",boundaryGap:!1,data:a,position:"top",show:!0,axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"#444"}},axisLabel:{show:!1}})});var h=[];a.forEach(function(t,e){h.push(e)}),m.streamerData.forEach(function(t){t.self_data={min:0,max:0},a.forEach(function(e,a){m.$date_compatible(t.start_time).getTime()>=m.$date_compatible(e).getTime()&&(t.self_data.min=a),m.$date_compatible(t.end_time).getTime()>=m.$date_compatible(e).getTime()&&(t.self_data.max=a)})}),m.streamerData.forEach(function(t){var a=[],s=t.self_data.max-t.self_data.min;a.push({name:t.staff_name,value:[1,t.self_data.min,t.self_data.max,s]}),c.push({name:t.staff_name,type:"custom",renderItem:e,xAxisIndex:u.length,yAxisIndex:u.length,itemStyle:{opacity:.8},encode:{x:[1,2],y:0},data:a,label:{normal:{show:!0,formatter:function(t){return t.name},color:"#fff"}}})}),v.push({left:"3%",right:"1%",top:"83%",height:this.streamerData&&this.streamerData.length>0?"5%":"3%"}),d.push({data:["A"],show:!1,gridIndex:u.length}),_.push({gridIndex:u.length,min:0,boundaryGap:!1,show:!(this.streamerData&&this.streamerData.length>0),axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"#444444"}},axisLabel:{show:!1},data:h}),f=[];for(var g=0;g<u.length+1;g++)f.push(g);p=u.length+1}this.screenData.forEach(function(t,e){c.push({name:t.name,type:"line",xAxisIndex:e+p,yAxisIndex:e+p,symbolSize:2,data:t.data,smooth:!0,lineStyle:{width:2},emphasis:{scale:!1,lineStyle:{width:2}},itemStyle:{color:"rgb("+t.color_rgba+")",borderType:"dotted"},symbol:1==a.length?"emptyCircle":"none",showSymbol:!1,showAllSymbol:!1,areaStyle:{color:new n.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba("+t.color_rgba+",0.3)"},{offset:1,color:"rgba("+t.color_rgba+",0)"}])}}),d.push({show:0==e,name:"",gridIndex:e+p,xAxisIndex:e+p,yAxisIndex:e+p,type:"value",min:0,max:function(t){return t.max+1},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#444444",type:"dashed"}},axisLine:{show:!1},nameTextStyle:{color:"#999999",fontSize:14,padding:[0,35,0,0]},axisLabel:{color:"#999999",fontSize:13,formatter:function(t){return""}}}),_.push({show:0==e,type:"category",boundaryGap:!1,gridIndex:e+p,data:a,position:"bottom",axisLine:{show:0==e,lineStyle:{color:"#F2F2F2"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:"#999999",fontSize:13,formatter:function(t){return t.split(" ")[1]}}}),v.push({top:"1%",left:"3%",right:"1%",height:m.is_minute_grain?"70%":1==m.platform?"58%":"53%"}),f.push(e+p)});var y={tooltip:{trigger:"axis",show:!0,position:function(t,e,a,s,i){return[t[0]<i.viewSize[0]/2?t[0]+0:t[0]-a.offsetWidth-0,"20%"]},enterable:!0,formatter:function(t){var e=t[0].name+"<br>";return t.forEach(function(t,a){"福袋"==t.seriesName?(e+="<div style='display: flex;align-items: center;font-size:13px;color:#333;margin-top:8px;'><img src='https://kx-bigdata.oss-cn-beijing.aliyuncs.com/shop_live/luckybag.png' style='width:16px;height:16px;margin-right:4px'/>"+t.seriesName+"</div>",t.data[2].forEach(function(t){e+="<div style='font-size:13px;margin-left:18px;color:#444'><span style='color:#888'>奖励:</span>"+t.prize_name+"<br/></div>\n <div style='font-size:13px;margin-left:18px;color:#444'><span style='color:#888'>条件:</span>"+t.condition+"<br/></div>\n <div style='font-size:13px;margin-left:18px;color:#444'><span style='color:#888'>开始时间:</span>"+t.start_time+"<br/></div>\n <div style='font-size:13px;margin-left:18px;color:#444'><span style='color:#888'>结束时间:</span>"+t.draw_time+"<br/></div>\n "})):"场记"==t.seriesName?e+="<div style='display: flex;align-items: center;font-size:13px;color:#333;margin-top:8pxmargin-top:8px;width:400px; white-space:pre-wrap;word-break:break-all;'><img src='https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/cj.png' style='width:16px;height:16px;margin-right:4px'/>"+t.seriesName+":"+t.data[2].content+"</div>\n ":"场控预警"==t.seriesName?(e+="<div style='display: flex;align-items: center;font-size:13px;color:#333;margin-top:8px;'><img src='https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/ck.png' style='width:0.16rem;height:0.16rem;margin-right:0.04rem'/>"+t.seriesName+"</div>",t.data[2].forEach(function(t,a){e+="<div style='margin-top:0.02rem;font-size:0.13rem;margin-left:0.18rem;'>\n"+(a+1)+" : "+t.type_desc+' : <i class="'+("onlive_user_incr"==t.type?"el-icon-top":"gmv"==t.type||"violation"==t.type?"":"el-icon-bottom")+'" style="color: #4f7eff;"></i> '+(t.rate?t.rate:t.desc?t.desc:"")+"\n</div>"})):"商品上架"==t.seriesName?(e+="<div style='display: flex;align-items: center;font-size:13px;color:#333;margin-top:8px;'><img src='https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/spsj.png' style='width:0.16rem;height:0.16rem;margin-right:0.04rem'/>"+t.seriesName+"</div><div style='height: auto;max-height: 160px;overflow-y: auto;'>",t.data[2].forEach(function(t){e+='\n <div style="display: flex;align-items: center;background-color: #f4f4f4;padding: 0.04rem">\n <div>\n <img src="'+t.img+'" alt="" style="width: 0.38rem;height: 0.38rem;border-radius: 0.04rem;margin-right: 0.04rem">\n </div>\n <div style="font-size:0.13rem;">\n <div style=\'width:350px; white-space:pre-wrap;word-break:break-all;\'>'+t.title+"</div>\n <div>"+t.sell_price+"</div>\n </div>\n\n </div>\n "}),e+="</div>"):e+="<div style='margin-top:8px'>"+t.marker+t.seriesName+":"+m.$formatNum(t.value)+"</div>"}),e}},axisPointer:{link:{xAxisIndex:"all"}},dataZoom:[{type:"slider",filterMode:"weakFilter",start:m.dataZoom_start,end:m.dataZoom_end,xAxisIndex:f,moveHandleSize:0,color:"#fff"},{start:m.dataZoom_start,end:m.dataZoom_end,borderColor:"rgba(37, 42, 62, 0.8)",fillerColor:"rgba(37, 42, 62, 0.8)",backgroundColor:"#02050E",filterMode:"weakFilter",moveHandleSize:0,handleStyle:{color:"#fff",shadowBlur:3,shadowColor:"rgba(0, 0, 0, 0.6)",shadowOffsetX:2,shadowOffsetY:2},textStyle:{color:"#fff"}}],grid:v,xAxis:_,yAxis:d,series:c};(r=this.$echarts.init(document.getElementById("trend_echarts"))).setOption(y,!0),r.on("dataZoom",function(t){t.batch?(m.dataZoom_start=t.batch[0].start,m.dataZoom_end=t.batch[0].end):(m.dataZoom_start=t.start,m.dataZoom_end=t.end)}),this.loading=!1}},beforeDestroy:function(){r&&r.clear()}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"screenBox_dad big_big_trend_box"},[s("div",{staticClass:"chartsBcg_title"},[t._m(0),t._v(" "),s("div",[s("label",{staticClass:"f13"},[t._v("时间粒度:")]),t._v(" "),s("el-select",{staticClass:"self_list_input__inner",staticStyle:{width:"140px"},attrs:{size:"mini",filterable:"",clearable:"",placeholder:"请选择"},on:{change:t.grainChange},model:{value:t.minute_unit,callback:function(e){t.minute_unit=e},expression:"minute_unit"}},t._l(t.minute_unit_list,function(t,e){return s("el-option",{key:e,attrs:{label:t.name,value:t.id}})}),1),t._v(" "),s("div",{staticClass:"lMarauto self_btn",on:{click:t.openDialog}},[t._v("自定义指标")])],1)]),t._v(" "),s("div",{staticClass:"screenUl_checked_dad"},[t.trendData&&0!=t.trendData.length&&!t.loading?t._l(t.screenData,function(e,a){return s("div",{key:e.key,staticClass:"screenUl_checked",on:{click:function(e){return t.screenSplice(a)},mouseenter:function(e){return t.errorIn(a)},mouseleave:function(e){return t.errorOut(a)}}},[s("span",{staticClass:"icon_block",style:{backgroundColor:"rgb("+e.color_rgba+")"}}),t._v(" "),s("span",[t._v(t._s(e.name))]),t._v(" "),s("i",{staticClass:"el-icon-error",class:t.errorAc==a?"":"error_trans"})])}):t._e()],2),t._v(" "),s("div",{staticClass:"posRela"},[t.is_minute_grain?t._e():[2==t.platform&&t.trendData&&0!=t.trendData.length&&!t.loading?s("div",{staticClass:"scatter_text",staticStyle:{top:"290px"}},[s("img",{attrs:{src:"https://kx-bigdata.oss-cn-beijing.aliyuncs.com/shop_live/luckybag.png",alt:""}}),t._v(" "),s("span",[t._v("福袋")])]):t._e(),t._v(" "),t.trendData&&0!=t.trendData.length&&!t.loading?s("div",{staticClass:"scatter_text",staticStyle:{top:"315px"}},[s("img",{attrs:{src:"https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/spsj.png",alt:""}}),t._v(" "),s("span",[t._v("商品上架")])]):t._e(),t._v(" "),t.trendData&&0!=t.trendData.length&&!t.loading?s("div",{staticClass:"scatter_text",staticStyle:{top:"339px"}},[s("img",{attrs:{src:"https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/cj.png",alt:""}}),t._v(" "),s("span",[t._v("场记")])]):t._e(),t._v(" "),t.trendData&&0!=t.trendData.length&&!t.loading?s("div",{staticClass:"scatter_text",staticStyle:{top:"362px"}},[s("img",{attrs:{src:"https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/ck.png",alt:""}}),t._v(" "),s("span",[t._v("场控预警")])]):t._e(),t._v(" "),t.trendData&&0!=t.trendData.length&&!t.loading?s("div",{staticClass:"scatter_text",staticStyle:{top:"385px"}},[s("img",{attrs:{src:"https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/zb.png",alt:""}}),t._v(" "),s("span",[t._v("主播")])]):t._e()],t._v(" "),s("div",{key:t.key_index,staticStyle:{"margin-left":"30px"},style:t.is_minute_grain?"height:300px":"height:460px",attrs:{id:"trend_echarts"}})],2),t._v(" "),t.trendData&&(!t.trendData||0!=t.trendData.length)||t.loading?t._e():s("div",{staticClass:"curve_no_data",staticStyle:{top:"220px",width:"200px"}},[s("img",{attrs:{src:a("60Fb"),alt:""}}),t._v(" "),s("span",[t._v("暂无数据")])]),t._v(" "),s("selfDialogTrend",{ref:"dialogChild",attrs:{propData:t.partName,propplatNum:t.platNum},on:{getscreenData:t.getscreenData}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("\n 观看趋势\n ")])}]};var c=a("VU/8")(o,l,!1,function(t){a("w5Zr"),a("zC0d")},"data-v-6e232227",null);e.a=c.exports},nYje:function(t,e){},poSZ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("mvHQ"),i=a.n(s),n=a("kCXs"),r=a("LKfE"),o=a("ZCsk"),l=a("wM/Z"),c={components:{trend:r.a,sexEcharts:o.a,mapProvince:l.a},data:function(){return{trendLoading:!1,dataInfo:{key_index:1,sex:{},dataMap:[]},resembleList:[],ageAnalysis:{key_index:1,list:[]},partLoading:!1,liveGoodsPartData:{desc:[],count:[],key_index:1},userCompositionTrendsLoading:!1}},created:function(){this.init()},methods:{init:function(){var t=this;this.trendLoading=!0,this.$axios.get(this.URL.BASEURL+this.URL.dou_liveFanPart,{params:{live_stream_id:this.$route.params.living_id}}).then(function(e){e=e.data;if(t.trendLoading=!1,e&&0==e.errno){var a=e.rst;if(0==a.length)return!1;for(var s in a.age)t.ageAnalysis.list.push({name:s,value:a.age[s]});for(var i in t.dataInfo.sex.man=a.sex.male,t.dataInfo.sex.woman=a.sex.female,a.province)t.dataInfo.dataMap.push({name:i,value:a.province[i]});for(var n in a.price)t.liveGoodsPartData.count.push(a.price[n]),t.liveGoodsPartData.desc.push(n);t.dataInfo.key_index=t.dataInfo.key_index+1,t.ageAnalysis.key_index=t.ageAnalysis.key_index+1,t.liveGoodsPartData.key_index=t.liveGoodsPartData.key_index+1}else"4001"!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.trendLoading=!1})}}},_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"margin-top":"10px"}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.trendLoading,expression:"trendLoading"}],staticClass:"detail_modlue"},[a("div",{staticClass:"flex",staticStyle:{"align-items":"baseline"}},[a("div",{staticClass:"trendBox",staticStyle:{"margin-right":"1%",width:"49%"}},[a("div",{staticClass:"curve",staticStyle:{height:"166px"}},[t._m(0),t._v(" "),a("sexEcharts",{key:t.dataInfo.key_index,attrs:{dataInfo:t.dataInfo.sex}})],1),t._v(" "),a("div",{staticClass:"curve"},[t._m(1),t._v(" "),a("map-province",{attrs:{is_x_100:"1",dataInfo:t.dataInfo.dataMap,key_index:"area"+t.dataInfo.key_index}})],1)]),t._v(" "),a("div",{staticStyle:{width:"50%"}},[a("div",{staticClass:"curve"},[t._m(2),t._v(" "),a("trend",{attrs:{key_index:"age"+t.ageAnalysis.key_index,trend_prop:{type:"pie",echartsHeight:"227px",name:"年龄分布",data:t.ageAnalysis.list}}})],1),t._v(" "),a("div",{staticClass:"curve"},[t._m(3),t._v(" "),a("trend",{attrs:{key_index:"prices"+t.liveGoodsPartData.key_index,trend_prop:{xArr:t.liveGoodsPartData.desc,rotate:!1,boundaryGap:!0,echartsHeight:"227.5px",lineColor:"#333333",yAxis_count:[{name:"",position:"left"}],list:[{data:t.liveGoodsPartData.count,bar_name:"价格分布",yAxisIndex:"0",type:"bar",topShow:!0,unit:"%"}]}}})],1)])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600 c-fff bMar15"},[e("span",{staticClass:"title_span"}),this._v("性别分布\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600 c-fff bMar15"},[e("span",{staticClass:"title_span"}),this._v("地域分布\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600 c-fff bMar15"},[e("span",{staticClass:"title_span"}),this._v("年龄分布\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600 c-fff bMar15"},[e("span",{staticClass:"title_span"}),this._v("购买价格需求分布\n ")])}]};var d=a("VU/8")(c,_,!1,function(t){a("nYje")},"data-v-20e4161d",null).exports,v={data:function(){return{tableLoading:!1,permise_limit:{hasAuno:!1,err:""},sort_type:"sell_money",infoList:{},page:1,page_size:10,pages:0,total:""}},created:function(){this.liveDeGoodsList(1)},methods:{liveDeGoodsList:function(t){var e=this;this.tableLoading=!0;var a={params:{live_id:this.$route.params.living_id,sort:this.sort_type,page:t,page_size:this.page_size}};this.$axios.get(this.URL.BASEURL+this.URL.dou_liveCommodityList,a).then(function(t){if(e.tableLoading=!1,4001==(t=t.data).errno?(e.permise_limit.hasAuno=!0,e.permise_limit.err=t.err):e.permise_limit.hasAuno=!1,t&&0==t.errno){var a=t.rst;e.total=a.pageInfo.total,e.pages=a.pageInfo.pages,e.page=parseInt(a.pageInfo.page),e.infoList=a.data}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.tableLoading=!1})},handleCurrentChange:function(t){this.liveDeGoodsList(t)},sortEvent:function(t){if(!this.permise_limit.hasAuno&&!this.tableLoading&&0==this.infoList.length)return this.$message({message:"暂无数据",type:"info"}),!1;this.sort_type=t,this.liveDeGoodsList(1)},goDetial:function(t){this.$message({message:"小弟正在努力开发,请稍候...",type:"warning"})}}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"livingList"},[t._m(0),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticClass:"table_div"},[a("table",[a("thead",[a("tr",{staticStyle:{"background-color":"#1E2135"}},[t._m(1),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","sell_count"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("sell_count")}}},[t._v("\n 销量\n "),t._m(2)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","sell_money"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("sell_money")}}},[t._v("\n 销售额\n "),t._m(3)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","buy_count"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("buy_count")}}},[t._v("\n 下单人数\n "),t._m(4)])]),t._v(" "),t._m(5)])]),t._v(" "),a("tbody",t._l(t.infoList,function(e){return a("tr",{key:e.commodity_id},[a("td",{staticStyle:{"text-align":"left",padding:"15px 0 15px 15px"}},[a("div",{staticClass:"living_table_css"},[a("img",{attrs:{src:e.img,alt:""}}),t._v(" "),a("div",[a("div",{staticClass:"f13 c-fff clampTwo"},[t._v(t._s(e.title?e.title:"-"))]),t._v(" "),a("div",{staticClass:"tMar10 c-999",staticStyle:{"font-size":"10px!important"}},[t._v("¥"+t._s(e.sell_price?e.sell_price:"-"))])])])]),t._v(" "),a("td",{class:"sell_count"==t.sort_type?"common_selected":""},[e.sell_count?a("span",[t._v(t._s(t.$formatNum(e.sell_count)))]):a("span",[t._v("-")])]),t._v(" "),a("td",{class:"sell_money"==t.sort_type?"common_selected":""},[e.sell_money?a("span",[t._v(t._s(e.sell_money))]):a("span",[t._v("-")])]),t._v(" "),a("td",{class:"buy_count"==t.sort_type?"common_selected":""},[e.buy_count?a("span",[t._v(t._s(t.$formatNum(e.buy_count)))]):a("span",[t._v("-")])]),t._v(" "),a("td",[e.buy_rate?a("span",[t._v(t._s(t.$formatNum(e.buy_rate)))]):a("span",[t._v("-")])])])}),0)])]),t._v(" "),t.permise_limit.hasAuno||t.tableLoading||0!=t.infoList.length?t._e():a("div",{staticClass:"noHaveDate"},[t._v("暂无数据")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.permise_limit.hasAuno&&0!=t.total||t.permise_limit.hasAuno&&t.page_size<t.total,expression:"(!permise_limit.hasAuno&&total!=0)||(permise_limit.hasAuno&&page_size<total)"}],staticClass:"bottom",staticStyle:{"background-color":"#02050E"}},[a("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("商品列表\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",{staticStyle:{width:"45%"}},[e("div",{staticClass:"th_title",staticStyle:{width:"100%","text-align":"left",padding:"0","padding-left":"15px"}},[this._v("\n 商品信息\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("\n 购买率\n ")])])}]};var f=a("VU/8")(v,m,!1,function(t){a("C6tV")},"data-v-73425ef0",null).exports,p={components:{trend:a("ozCW").a},data:function(){return{watchLoading:!1,btnLoading:!1,tableLoading:!1,permise_limit:{hasAuno:!1,err:""},sort_type:"sell_money",infoList:{},page:1,page_size:10,pages:0,total:"",switch_time_btn:1,time_id:10,timeSize:[{name:"10分钟",value:10},{name:"20分钟",value:20},{name:"30分钟",value:30}],fansProfile:{list:[],key_index:1},tradeTotal:{},tradeAc:0,trendAc:0}},created:function(){this.init(1),this.market_put_trend()},methods:{market_put_trend:function(){var t=this;this.watchLoading=!0;var e={params:{live_stream_id:this.$route.params.living_id}};this.$axios.get(this.URL.BASEURL+this.URL.dou_market_put_trend,e).then(function(e){if(t.watchLoading=!1,(e=e.data)&&0==e.errno){var a=e.rst;if(!a||0==a.length)return!1;t.fansProfile.list=[],t.fansProfile.list=0==t.trendAc?a.detail.live_flow:a.detail.live_order,t.tradeTotal=a.total,t.fansProfile.key_index+=1}})},goAdverst:function(){var t="douLivingDetial"==this.$route.name?2:1,e=this.$router.resolve({path:"/advertisingPlan/"+this.$route.params.living_id+"/"+t});window.open(e.href,"_blank")},exportEvent:function(){var t=this;if(0==this.infoList.length)return this.$message({message:"数据为空,不能导出!",type:"success"}),!1;this.btnLoading=!0,this.$axios.get(this.URL.BASEURL+this.URL.advertiser_cost,{params:{live_stream_id:this.$route.params.living_id,granularity:this.time_id,count_type:this.switch_time_btn,page:1,page_size:500}}).then(function(e){var a,s,i=[];(e=e.data)&&0==e.errno?(s="时段,时段消耗,有效观看数,直播间点击成本,商品点击数,商品点击成本,转化订单数,转化销售额,ROI\n",a="投放数据",e.rst.data.forEach(function(t){var e=t.begin_time.split(" ")[1]+"-"+t.end_time.split(" ")[1];i.push({begin_time:e,stat_cost:t.stat_cost,show_cnt:t.show_cnt,per_show_cost:t.per_show_cost,click_cnt:t.click_cnt,per_click_cost:t.per_click_cost,create_order_count:t.create_order_count,create_order_amount:t.create_order_amount,roi:t.roi})}),t.$exportToExcel({th_arr:s,jsonData:i,name:a}).then(function(){t.btnLoading=!1})):(t.btnLoading=!1,t.$message({message:e.err,type:"warning"}))}).catch(function(e){t.btnLoading=!1})},init:function(t){var e=this;this.tableLoading=!0;var a={params:{live_stream_id:this.$route.params.living_id,granularity:this.time_id,count_type:this.switch_time_btn,page:t,page_size:this.page_size}};this.$axios.get(this.URL.BASEURL+this.URL.advertiser_cost,a).then(function(t){if(e.tableLoading=!1,4001==(t=t.data).errno?(e.permise_limit.hasAuno=!0,e.permise_limit.err=t.err):e.permise_limit.hasAuno=!1,t&&0==t.errno){var a=t.rst;e.total=a.pageInfo.total,e.pages=a.pageInfo.pages,e.page=parseInt(a.pageInfo.page),e.infoList=a.data}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.tableLoading=!1})},handleCurrentChange:function(t){this.init(t)}}},u={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"putOn"},[s("div",{staticClass:"flex"},[s("div",{staticClass:"putOn_block",staticStyle:{width:"55%","margin-right":"0.5%"}},[t._m(0),t._v(" "),s("div",{staticClass:"trade_situation"},[s("div",{staticStyle:{width:"90%"}},[s("div",{staticClass:"trade_situation_div"},[s("div",[s("div",{staticClass:"text"},[t._v("观看人次")]),t._v(" "),s("div",{staticClass:"num"},[t._v(t._s(t.$NumberHandle(t.tradeTotal.watch_cnt,2)))])]),t._v(" "),s("span",{staticClass:"trapezoidal trape-one"}),t._v(" "),t._m(1)]),t._v(" "),s("div",{staticClass:"trade_situation_div"},[s("div",{staticClass:"rMar2rem"},[s("div",{staticClass:"text"},[t._v("商品点击数")]),t._v(" "),s("div",{staticClass:"num"},[t._v(t._s(t.$NumberHandle(t.tradeTotal.product_click_cnt,2)))])]),t._v(" "),s("div",[s("div",{staticClass:"text"},[t._v("直播商品")]),t._v(" "),s("div",{staticClass:"num"},[t._v(t._s(t.$NumberHandle(t.tradeTotal.goods_count,2)))])]),t._v(" "),s("span",{staticClass:"trapezoidal trape-two"}),t._v(" "),t._m(2)]),t._v(" "),s("div",{staticClass:"trade_situation_div"},[s("div",{staticClass:"rMar2rem"},[s("div",{staticClass:"text"},[t._v("成交订单数")]),t._v(" "),s("div",{staticClass:"num"},[t._v(t._s(t.$NumberHandle(t.tradeTotal.pay_order_cnt,2)))])]),t._v(" "),s("div",{staticClass:"rMar2rem"},[s("div",{staticClass:"text"},[t._v("销售额")]),t._v(" "),s("div",{staticClass:"num"},[t._v(t._s(t.$NumberHandle(t.tradeTotal.sell_money,2)))])]),t._v(" "),s("div",[s("div",{staticClass:"text"},[t._v("客单价")]),t._v(" "),s("div",{staticClass:"num"},[t._v(t._s(t.$NumberHandle(t.tradeTotal.avg_user_cost,2)))])]),t._v(" "),s("span",{staticClass:"trapezoidal trape-three"}),t._v(" "),t._m(3)])]),t._v(" "),t._m(4),t._v(" "),s("div",{staticStyle:{position:"relative",width:"50px"}},[s("div",{staticStyle:{position:"absolute",top:"45px"}},[s("div",{staticClass:"text"},[t._v("转化率")]),t._v(" "),s("div",{staticClass:"num",staticStyle:{"font-weight":"initial"}},[t._v(t._s(t.tradeTotal.product_trans_rate?t.tradeTotal.product_trans_rate:"-"))])]),t._v(" "),s("div",{staticStyle:{position:"absolute",top:"140px"}},[s("div",{staticClass:"text"},[t._v("转化率")]),t._v(" "),s("div",{staticClass:"num",staticStyle:{"font-weight":"initial"}},[t._v(t._s(t.tradeTotal.order_trans_rate?t.tradeTotal.order_trans_rate:"-"))])])])])]),t._v(" "),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.watchLoading,expression:"watchLoading"}],staticClass:"putOn_block",staticStyle:{width:"44.5%",position:"relative"}},[s("div",{staticClass:"trend_switch",staticStyle:{"font-size":"14px",margin:"5px 0 15px"}},[s("span",{class:0==t.trendAc?"span_ac":"",staticStyle:{"border-top-left-radius":"4px","border-bottom-left-radius":"4px"},on:{click:function(e){t.trendAc=0,t.market_put_trend()}}},[t._v("流量来源")]),s("span",{class:1==t.trendAc?"span_ac":"",staticStyle:{"border-top-right-radius":"4px","border-bottom-right-radius":"4px"},on:{click:function(e){t.trendAc=1,t.market_put_trend()}}},[t._v("订单来源")])]),t._v(" "),s("trend",{staticStyle:{width:"60%"},attrs:{key_index:"gkrc"+t.fansProfile.key_index,trend_prop:{type:"pie",echartsHeight:"222px",name:"投放观看人次",curveTop:"30%",data:t.fansProfile.list}}}),t._v(" "),t.fansProfile.list&&t.fansProfile.list.length>0?s("div",{staticClass:"trendLenged"},[t._l(t.fansProfile.list,function(e,a){return a<4?s("div",{key:a,staticClass:"flex tMar5 line21"},[s("span",{staticClass:"leng_color",style:{backgroundColor:e.color}}),t._v(" "),s("span",{staticClass:"rMar10"},[t._v(t._s(e.name))]),t._v(" "),s("span",{staticClass:"lMarauto c-999"},[t._v(t._s((100*e.value).toFixed(2))+"%")])]):t._e()}),t._v(" "),s("el-popover",{attrs:{"popper-class":"popPut",placement:"top",width:0==t.trendAc?210:150,trigger:"hover"}},[s("div",{staticClass:"popPutDiv f12"},t._l(t.fansProfile.list,function(e,a){return s("div",{key:a,staticClass:"popPut_all"},[s("div",{staticClass:"flex f12"},[s("span",{staticClass:"color_span",style:{backgroundColor:e.color}}),t._v(" "),s("span",{staticClass:"rMar10"},[t._v(t._s(e.name))]),t._v(" "),s("span",{staticClass:"lMarauto c-999"},[t._v(t._s((100*e.value).toFixed(2))+"%")])]),t._v(" "),t._l(e.flow_list,function(a,i){return e.flow_list&&e.flow_list.length>0?s("div",{key:i,staticClass:"flex popPut_child"},[s("span",{staticClass:"rMar10"},[t._v(t._s(a.name))]),t._v(" "),s("span",{staticClass:"lMarauto c-999"},[t._v(t._s((100*a.value).toFixed(2))+"%")])]):t._e()})],2)}),0),t._v(" "),s("i",{staticClass:"el-icon-more",attrs:{slot:"reference"},slot:"reference"})])],2):t._e(),t._v(" "),t.fansProfile.list&&0!=t.fansProfile.list.length?t._e():s("div",{staticClass:"curve_no_data",staticStyle:{"margin-top":"20%"}},[s("img",{attrs:{src:a("nu6d"),alt:""}}),t._v(" "),s("span",[t._v("暂无数据")])])],1)]),t._v(" "),s("div",{staticClass:"putOn_block tMar10"},[t._m(5),t._v(" "),s("div",{staticClass:"flex",staticStyle:{padding:"10px 0"}},[s("div",{staticClass:"flex"},[s("div",{staticClass:"f14 rMar15"},[t._v("统计方式:")]),t._v(" "),s("div",{staticClass:"switch_btn",class:1==t.switch_time_btn?"switch_btn_active":"",on:{click:function(e){t.switch_time_btn=1,t.init(1)}}},[t._v("累加")]),t._v(" "),s("div",{staticClass:"switch_btn",class:0==t.switch_time_btn?"switch_btn_active":"",on:{click:function(e){t.switch_time_btn=0,t.init(1)}}},[t._v("分段")])]),t._v(" "),s("div",{staticClass:"f14 lMar20"},[t._v("时间粒度:")]),t._v(" "),s("el-select",{staticClass:"self_list_input__inner lMar8",staticStyle:{width:"150px"},attrs:{size:"small",placeholder:"筛选"},on:{change:function(e){return t.init(1)}},model:{value:t.time_id,callback:function(e){t.time_id=e},expression:"time_id"}},t._l(t.timeSize,function(t,e){return s("el-option",{key:e,attrs:{label:t.name,value:t.value}})}),1),t._v(" "),s("div",{staticClass:"lMarauto"},[s("span",{directives:[{name:"loading",rawName:"v-loading",value:t.btnLoading,expression:"btnLoading"}],staticClass:"switch_btn switch_btn_active",on:{click:t.exportEvent}},[t._v("导出")]),t._v(" "),s("span",{staticClass:"switch_btn switch_btn_active",on:{click:t.goAdverst}},[t._v("广告计划")])])],1),t._v(" "),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticClass:"table_div"},[s("table",[s("thead",[s("tr",{staticStyle:{"background-color":"#1E2135"}},[t._m(6),t._v(" "),t._m(7),t._v(" "),t._m(8),t._v(" "),t._m(9),t._v(" "),t._m(10),t._v(" "),t._m(11),t._v(" "),s("th",[s("div",{staticClass:"th_title"},[t._v("\n 转化"),s("br"),t._v("订单数\n "),s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"由投放产生的订单数",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1)]),t._v(" "),s("th",[s("div",{staticClass:"th_title"},[t._v("\n 转化"),s("br"),t._v("销售额\n "),s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"由投放产生的销售额",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1)]),t._v(" "),s("th",[s("div",{staticClass:"th_title"},[t._v("\n 投放ROI\n "),s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"投放ROI=投放产生的销售额/ 投放金额",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1)])])]),t._v(" "),s("tbody",t._l(t.infoList,function(e,a){return s("tr",{key:a},[s("td",[e.begin_time&&e.end_time?s("span",[t._v("\n "+t._s(e.begin_time.split(" ")[1])+"-"+t._s(e.end_time.split(" ")[1])+"\n ")]):s("span",[t._v("-")])]),t._v(" "),s("td",[t._v("\n "+t._s(t.$NumberHandle(e.stat_cost,2))+"\n ")]),t._v(" "),s("td",[t._v("\n "+t._s(t.$NumberHandle(e.show_cnt,2))+"\n ")]),t._v(" "),s("td",[t._v("\n "+t._s(t.$NumberHandle(e.per_show_cost,2))+"\n ")]),t._v(" "),s("td",[t._v("\n "+t._s(t.$NumberHandle(e.click_cnt,2))+"\n ")]),t._v(" "),s("td",[t._v("\n "+t._s(t.$NumberHandle(e.per_click_cost,2))+"\n ")]),t._v(" "),s("td",[t._v("\n "+t._s(t.$NumberHandle(e.create_order_count,2))+"\n ")]),t._v(" "),s("td",[t._v("\n "+t._s(t.$NumberHandle(e.create_order_amount,2))+"\n ")]),t._v(" "),s("td",[t._v("\n "+t._s(t.$NumberHandle(e.roi))+"\n ")])])}),0)])]),t._v(" "),t.permise_limit.hasAuno||t.tableLoading||0!=t.infoList.length?t._e():s("div",{staticClass:"noHaveDate"},[t._v("暂无数据")]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.permise_limit.hasAuno&&0!=t.total||t.permise_limit.hasAuno&&t.page_size<t.total,expression:"(!permise_limit.hasAuno&&total!=0)||(permise_limit.hasAuno&&page_size<total)"}],staticClass:"bottom",staticStyle:{"background-color":"#02050E"}},[s("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("交易概况\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"trapezoidal_text",staticStyle:{right:"70px"}},[e("img",{attrs:{src:a("4Cf8"),alt:""}}),this._v(" 进直播间")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"trapezoidal_text",staticStyle:{right:"40px"}},[e("img",{attrs:{src:a("sets"),alt:""}}),this._v(" 访问商品")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"trapezoidal_text",staticStyle:{right:"15px"}},[e("img",{attrs:{src:a("1Gwb"),alt:""}}),this._v(" 成交订单")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{"margin-right":"5px"}},[e("img",{staticStyle:{height:"80px","margin-top":"22px"},attrs:{src:a("DyI/"),alt:""}}),this._v(" "),e("img",{staticStyle:{height:"80px","margin-top":"20px"},attrs:{src:a("DyI/"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("投放数据\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",{staticStyle:{width:"20%"}},[e("div",{staticClass:"th_title"},[this._v("\n 时段\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("\n 时段消耗\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("\n 有效观看数\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("\n 直播间"),e("br"),this._v("点击成本\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("\n 商品点击数\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("\n 商品点"),e("br"),this._v("击成本\n ")])])}]};var h=a("VU/8")(p,u,!1,function(t){a("q3fg"),a("bmIx")},"data-v-73e2815c",null).exports,g=(a("4f4F"),a("LK9V"),{data:function(){return{barrageLoading:!1,barrageData:{},keyword_type:1,permise_limit:{hasAuno:!1,err:""}}},created:function(){this.liveBarrageAnalysis()},methods:{liveBarrageAnalysis:function(){var t=this;this.barrageLoading=!0,this.$axios.get(this.URL.BASEURL+this.URL.liveBarrageAnalysis,{params:{live_stream_id:this.$route.params.living_id}}).then(function(e){e=e.data;t.barrageLoading=!1,4001==e.errno?(t.permise_limit.hasAuno=!0,t.permise_limit.err=e.err):t.permise_limit.hasAuno=!1,e&&0==e.errno?(t.barrageData=e.rst,t.$nextTick(function(){t.worldCloudcharts()})):"4001"!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.barrageLoading=!1})},worldCloudcharts:function(){var t=[];if(0!=this.barrageData.hot_words.length){this.barrageData.hot_words.forEach(function(e){t.push({name:e.keyword,value:e.countkeyword})});if(document.getElementById("worldCloud"))var e=this.$echarts.init(document.getElementById("worldCloud"),"macarons"),a={tooltip:{show:!0},grid:{top:0,left:0,right:0,bottom:0,containLabel:!0},series:[{name:"",type:"wordCloud",sizeRange:[10,32],rotationRange:[0,0],autoSize:{enable:!0,minSize:10},textStyle:{color:"#FE9400"},shape:"rectangle",data:t}]};e.setOption(a),e.on("click",function(t){})}}}}),y={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.barrageLoading,expression:"barrageLoading"}],staticClass:"tMar10"},[s("div",{staticClass:"detail_modlue"},[s("div",{staticClass:"flex",staticStyle:{"align-items":"flex-start"}},[s("div",{staticClass:"trendBox",staticStyle:{"margin-right":"1%",width:"49%",height:"462px"}},[t.barrageData.total?s("div",{staticClass:"curve box"},[t._m(0),t._v(" "),s("div",{staticClass:"flex tMar15"},[s("div",{staticClass:"barrageProgress"},[t._v("普通弹幕"),s("span",[t._v(t._s(parseFloat((100*t.barrageData.total.normal_rate).toFixed(10)))+"%")])]),t._v(" "),s("div",{staticClass:"barrageProgress"},[t._v("需求弹幕"),s("span",{staticStyle:{color:"#006FFF"}},[t._v(t._s(parseFloat((100*t.barrageData.total.participle_rate).toFixed(10)))+"%")])])]),t._v(" "),s("div",{staticClass:"progress"},[s("div",{staticClass:"progressBar",style:t.barrageData.total.participle_rate?"width:"+parseFloat((100*t.barrageData.total.participle_rate).toFixed(10))+"%;min-width:2%":""})]),t._v(" "),t.barrageData.total?s("div",{staticClass:"barrageData"},[s("div",{staticClass:"data"},[s("span",[t._v(t._s(t.$NumberHandle(t.barrageData.total.total_count)))]),t._v(" "),s("p",[t._v("弹幕总数")])]),t._v(" "),s("div",{staticClass:"data"},[s("span",[t._v(t._s(t.$NumberHandle(t.barrageData.total.user_count)))]),t._v(" "),s("p",[t._v("弹幕人数")])]),t._v(" "),s("div",{staticClass:"data"},[s("span",[t._v(t._s(t.$NumberHandle(t.barrageData.total.average_count)))]),t._v(" "),s("p",[t._v("人均弹幕")])]),t._v(" "),s("div",{staticClass:"data"},[s("span",[t._v(t._s(t.$NumberHandle(t.barrageData.total.interaction_rate)))]),t._v(" "),s("p",[t._v("互动率")])])]):t._e()]):t._e(),t._v(" "),s("div",{staticClass:"curve box tMar10",staticStyle:{height:"280px",overflow:"hidden"}},[t._m(1),t._v(" "),t._m(2),t._v(" "),this.barrageData.hot_words&&0!=this.barrageData.hot_words.length||t.barrageLoading?t._e():s("div",{staticClass:"curve_no_data",staticStyle:{top:"60px"}},[s("img",{attrs:{src:a("nu6d"),alt:""}}),t._v(" "),s("span",[t._v("暂无数据")])])])]),t._v(" "),s("div",{staticClass:"trendBox box",staticStyle:{width:"50%"}},[s("div",{staticClass:"curve curve_barrage"},[s("div",{staticClass:"f14 fWeight600 c-fff flex"},[t._m(3),t._v(" "),s("div",{staticClass:"choice"},[s("div",{class:[1==t.keyword_type?"active":""],on:{click:function(e){t.keyword_type=1}}},[t._v("商品")]),t._v(" "),s("div",{class:[2==t.keyword_type?"active":""],on:{click:function(e){t.keyword_type=2}}},[t._v("品牌")])])]),t._v(" "),1==t.keyword_type&&t.barrageData.product||2==t.keyword_type&&t.barrageData.brand?[s("div",{staticClass:"keywordsBox"},[s("div",{staticClass:"keywords"},t._l(1==t.keyword_type?t.barrageData.product.keywords:t.barrageData.brand.keywords,function(e,a){return s("div",{key:a},[t._v(t._s(e.keyword)+" "+t._s(e.rate))])}),0)]),t._v(" "),s("div",{staticClass:"barrageListBox"},[s("ul",{staticClass:"barrageList"},t._l(1==t.keyword_type?t.barrageData.product.list:t.barrageData.brand.list,function(e,a){return s("li",{key:a},[s("p",{staticClass:"time"},[t._v(t._s(e.created_at.split(" ")[1]))]),t._v(" "),e.brand_keyword||e.product_keyword?s("p",{staticClass:"count"},[t._v("("+t._s(1==t.keyword_type?e.product_keyword:e.brand_keyword)+")")]):t._e(),t._v(" "),s("p",{staticClass:"con"},[t._v(t._s(e.content))])])}),0)])]:t._e(),t._v(" "),(1==t.keyword_type&&t.barrageData.product&&t.barrageData.product.list&&0==t.barrageData.product.list.length||2==t.keyword_type&&t.barrageData.brand&&t.barrageData.brand.list&&0==t.barrageData.brand.list.length)&&!t.barrageLoading?s("div",{staticClass:"curve_no_data",staticStyle:{top:"140px"}},[s("img",{attrs:{src:a("nu6d"),alt:""}}),t._v(" "),s("span",[t._v("暂无数据")])]):t._e(),t._v(" "),t.permise_limit.hasAuno?s("list-permission",{staticStyle:{background:"#fff","margin-top":"100px"},attrs:{permise_limit:t.permise_limit}}):t._e()],2)])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600 c-fff flex-align-center"},[e("span",{staticClass:"title_span"}),this._v("弹幕数据概览")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600 c-fff flex-align-center"},[e("span",{staticClass:"title_span"}),this._v("弹幕词云")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"wordNephogram",staticStyle:{height:"300px"}},[e("div",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{id:"worldCloud"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex"},[e("span",{staticClass:"title_span"}),this._v("弹幕需求统计\n ")])}]};var b=a("VU/8")(g,y,!1,function(t){a("6cHa")},"data-v-f1189ee6",null).exports,C=a("NV46"),x=a("Ua8F"),w={name:"douLiveDetail",components:{trend:n.a,fansProfile:d,goodsList:f,putOn:h,barrage:b,editPlan:C.a,clickTrend:x.a},data:function(){return{editPlanFlag:!1,loading:!1,infoData:{},basicData:{},liveInfoPreview:{},staffPreview:{},tabBar_data:[{name:"点击趋势"},{name:"观看趋势"},{name:"投放数据"},{name:"粉丝画像"},{name:"商品列表"},{name:"弹幕舆情"}],tabBarLine:0,live_record_info:{},playbackFlag:!1,playbackLoading:!1,playbackLoading2:!1,accountInfo:{},staffList:[]}},created:function(){this.liveDeinfoLeft(),this.get_staffList()},methods:{closeDialog:function(){this.editPlanFlag=!1,this.liveDeinfoLeft()},goReplay:function(){var t=this.$router.resolve({path:"/replay/"+this.$route.params.living_id+"/2"});window.open(t.href,"_blank")},closeVideo:function(){document.getElementById("video").pause(),this.playbackFlag=!1},live_record:function(t){var e=this;"clip"==t?this.playbackLoading2=!0:this.playbackLoading=!0,this.$axios.get(this.URL.BASEURL+this.URL.live_record,{params:{live_stream_id:this.$route.params.living_id}}).then(function(a){a=a.data;if(e.playbackLoading2=!1,e.playbackLoading=!1,a&&0==a.errno)if(e.live_record_info=a.rst,a.rst&&a.rst.tag_play_url&&""!=a.rst.tag_play_url){if("clip"==t)return void e.$router.push({path:"/videoClip/"+e.$route.params.living_id+"/2"});e.playbackFlag=!0}else e.$message({message:"clip"==t?"该直播暂无直播回放,无法剪辑视频!":"该直播暂无直播回放!",type:"warning"});else e.$message({message:a.err,type:"warning"})}).catch(function(t){e.playbackLoading2=!1,e.playbackLoading=!1})},createVideo:function(t){if(this.live_record_info&&this.live_record_info.tag_play_url){if("clip"==t)return void this.$router.push({path:"/videoClip/"+this.$route.params.living_id+"/2"});this.playbackFlag=!this.playbackFlag;var e=document.getElementById("video");this.playbackFlag?e&&e.play():e&&e.pause()}else this.live_record(t)},toAccountDetail:function(){var t=this.$router.resolve({path:"/accountDetialDou/"+this.liveInfoPreview.seller_id});window.open(t.href,"_blank")},scrollEvent:function(t){var e=t.srcElement.scrollTop,a=document.getElementById("clickTrend").offsetTop-70,s=document.getElementById("trend").offsetTop-70,i=document.getElementById("putOn").offsetTop-70,n=document.getElementById("fansProfile").offsetTop-70,r=document.getElementById("goodsList").offsetTop-70,o=document.getElementById("barrageYuQing").offsetTop-400;this.tabBarLine=e<a?0:e>=a&&e<s?0:e>=s&&e<i?1:e>=i&&e<n?2:e>=n&&e<r?3:e>=r&&e<o?4:5},showBar:function(t){var e=void 0;0==t?e="clickTrend":1==t?e="trend":2==t?e="putOn":3==t?e="fansProfile":4==t?e="goodsList":5!=t||(e="barrageYuQing");var a=document.getElementById(e).offsetTop-70;document.getElementById("page_con").scrollTo({top:a,behavior:"smooth"})},swapArr:function(t,e,a){return t[e]=t.splice(a,1,t[e])[0],t},liveDeinfoLeft:function(){var t=this;this.loading=!0;var e={params:{live_stream_id:this.$route.params.living_id}};this.$axios.get(this.URL.BASEURL+this.URL.dou_live_info,e).then(function(e){if((e=e.data)&&0==e.errno){t.basicData=e.rst.data_preview;var a=[],s=[];e.rst.staff.forEach(function(t){if("主播"==t.role_name){var e=!1;a.forEach(function(a,s){a.time.start_time==t.start_time&&a.time.end_time==t.end_time&&(a.ren_staff.push({staff_id:t.staff_id,staff_name:t.staff_name}),e=!0)}),e||a.push({time:{start_time:t.start_time,end_time:t.end_time},ren_staff:[{staff_id:t.staff_id,staff_name:t.staff_name}]})}else{var i=!1;s.forEach(function(e,a){e.time.start_time==t.start_time&&e.time.end_time==t.end_time&&(e.ren_staff.push({staff_id:t.staff_id,staff_name:t.staff_name}),i=!0)}),i||s.push({time:{start_time:t.start_time,end_time:t.end_time},ren_staff:[{staff_id:t.staff_id,staff_name:t.staff_name}]})}}),t.staffPreview={zb_staff:a,gz_staff:s},e.rst.staff&&e.rst.staff.length>0&&(t.staffPreview.has_flag=!0),t.liveInfoPreview=e.rst.live_info,t.accountInfo={head:t.liveInfoPreview.live_cover_img,name:t.liveInfoPreview.live_title,ruled:1,sellerId:i()(t.liveInfoPreview.seller_id),type:2}}else t.$message({message:e.err,type:"warning"});t.loading=!1}).catch(function(e){t.$message({message:e,type:"warning"}),t.loading=!1})},get_staffList:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.userListForFilter,{params:{is_pos:1}}).then(function(e){if((e=e.data)&&0==e.errno){var a=e.rst;a.forEach(function(t){t.name=t.real_name}),t.staffList=a}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(t){})}}},k={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"accountDetialPage"},[s("div",{staticClass:"page_left"},[s("div",{staticClass:"flex"},[s("div",{staticClass:"liveImgBox"},[s("img",{staticClass:"liveImg",attrs:{src:t.liveInfoPreview.live_cover_img,alt:""}}),t._v(" "),0==t.liveInfoPreview.is_end?s("span",{staticClass:"living_span"},[s("img",{staticClass:"liveGif",attrs:{src:a("wcBb"),alt:""}}),t._v("\n 直播中\n ")]):t._e()]),t._v(" "),s("div",{staticStyle:{flex:"1",width:"200px"}},[s("div",{staticClass:"nickname"},[s("el-tooltip",{attrs:{effect:"dark",content:t.liveInfoPreview.live_title,disabled:!(t.liveInfoPreview.live_title&&t.liveInfoPreview.live_title.length>10),placement:"top"}},[s("div",{staticClass:"f16 fWeight600 nickname_div"},[t._v(t._s(t.liveInfoPreview.live_title))])])],1),t._v(" "),s("div",{staticClass:"tMar10 flex"},[s("i",{staticClass:"c-E1E1E1 f13"},[t._v("开播时间:"+t._s(t.liveInfoPreview&&t.liveInfoPreview.start_time?t.liveInfoPreview.start_time:"-"))])]),t._v(" "),s("div",{staticClass:"tMar10 flex"},[s("i",{staticClass:"c-E1E1E1 f13"},[t._v("直播时长:"+t._s(t.liveInfoPreview&&t.liveInfoPreview.live_duration_desc?t.liveInfoPreview.live_duration_desc:"-"))])])])]),t._v(" "),s("div",{staticClass:"flex"},[s("el-popover",{attrs:{placement:"bottom","popper-class":"playback-popper-class",width:"300",trigger:"manual"},model:{value:t.playbackFlag,callback:function(e){t.playbackFlag=e},expression:"playbackFlag"}},[s("i",{staticClass:"el-icon-close closePlayback",on:{click:t.closeVideo}}),t._v(" "),s("video",{staticClass:"video",staticStyle:{width:"240px",margin:"auto",display:"block"},attrs:{src:t.live_record_info.tag_play_url,id:"video",preload:"meta",autoplay:"",controls:"controls"}},[t._v("您的浏览器不支持 video 标签。")]),t._v(" "),s("div",{staticClass:"openLivingBox",attrs:{slot:"reference"},on:{click:function(e){return t.createVideo()}},slot:"reference"},[s("i",{staticClass:"iconfont icon-guankanrenshu_icon rMar5",staticStyle:{"font-size":"10px"}}),t._v("\n 直播回放\n "),t.playbackLoading?s("i",{staticClass:"el-icon-loading"}):t._e()])]),t._v(" "),s("div",{staticClass:"openLivingBox",staticStyle:{width:"90px"},on:{click:function(e){return t.createVideo("clip")}}},[s("i",{staticClass:"el-icon-scissors rMar5",staticStyle:{"font-size":"10px"}}),t._v("\n 视频剪辑\n "),t.playbackLoading2?s("i",{staticClass:"el-icon-loading"}):t._e()])],1),t._v(" "),s("div",{staticClass:"nameList"},[t._m(0),t._v(" "),s("div",{staticClass:"flex-row"},[s("div",{staticStyle:{"flex-shrink":"0"}},[t._v("账号: ")]),t._v(" "),s("div",{staticClass:"ellipsis_1 pointer",staticStyle:{flex:"1"},on:{click:t.toAccountDetail}},[s("img",{staticStyle:{"border-radius":"50%",width:"34px","margin-right":"2px",display:"inline-block"},attrs:{src:t.liveInfoPreview.seller_headimg,alt:""}}),t._v(" "),s("el-tooltip",{attrs:{effect:"dark",content:t.liveInfoPreview.seller_name,disabled:!(t.liveInfoPreview.seller_name&&t.liveInfoPreview.seller_name.length>10),placement:"top"}},[s("span",{staticClass:"f16 fWeight600"},[t._v(t._s(t.liveInfoPreview.seller_name))])])],1)]),t._v(" "),s("div",{staticStyle:{"margin-top":"20px"}},[s("div",{staticClass:"flex"},[t._v("人员:\n "),s("div",{staticClass:"f13 c-4F7EFF pointer fWeight600",on:{click:function(e){t.editPlanFlag=!0}}},[s("i",{staticClass:"el-icon-circle-plus-outline fWeight600 rMar3"}),s("span",[t._v(t._s(t.staffPreview&&t.staffPreview.has_flag?"编辑":"添加")+"人员")])])]),t._v(" "),s("div",{staticStyle:{"margin-left":"46px"}},[t.staffPreview&&t.staffPreview.zb_staff&&t.staffPreview.zb_staff.length>0?[s("div",{staticClass:"staff_title"},[t._v("主播")]),t._v(" "),t._l(t.staffPreview.zb_staff,function(e,a){return s("p",{key:a+"zb",staticClass:"staff_zy"},[t._v(t._s(e.time.start_time.slice(11,16))+"-"+t._s(e.time.end_time.slice(11,16))+" "),t._l(e.ren_staff,function(i,n){return s("span",{key:i.staff_id+a},[t._v(t._s(i.staff_name)),n<e.ren_staff.length-1?s("em",[t._v(", ")]):t._e()])})],2)})]:t._e(),t._v(" "),t.staffPreview&&t.staffPreview.gz_staff&&t.staffPreview.gz_staff.length>0?[s("div",{staticClass:"staff_title"},[t._v("工作人员")]),t._v(" "),t._l(t.staffPreview.gz_staff,function(e,a){return s("p",{key:a+"gz",staticClass:"staff_zy"},[t._v(t._s(e.time.start_time.slice(11,16))+"-"+t._s(e.time.end_time.slice(11,16))+" "),t._l(e.ren_staff,function(i,n){return s("span",{key:i.staff_id+a},[t._v(t._s(i.staff_name)),n<e.ren_staff.length-1?s("em",[t._v(", ")]):t._e()])})],2)})]:t._e()],2)])]),t._v(" "),s("div",{staticClass:"basis_data_30"},[t._m(1),t._v(" "),s("el-row",{staticClass:"conditionBox"},[s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num",staticStyle:{color:"#FE9400"}},[t._v(t._s(1==t.liveInfoPreview.is_end?"-":t.liveInfoPreview.onlive_display_watching_count?t.$NumberHandle(t.liveInfoPreview.onlive_display_watching_count):"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("当前人气")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.watching_user_count?t.$NumberHandle(t.liveInfoPreview.watching_user_count):"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("累计观看")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.bast_display_watching_count?t.$NumberHandle(t.liveInfoPreview.bast_display_watching_count):"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("人气峰值")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.display_watching_count?t.$NumberHandle(t.liveInfoPreview.display_watching_count):"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("平均在线")])]),t._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.customer_avg_in_live_time?t.liveInfoPreview.customer_avg_in_live_time:"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("平均停留")])])],1)],1),t._v(" "),s("div",{staticClass:"basis_data_30"},[t._m(2),t._v(" "),s("el-row",{staticClass:"conditionBox"},[s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.order_count?t.$NumberHandle(t.liveInfoPreview.order_count):"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("总订单")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.order_back?t.$NumberHandle(t.liveInfoPreview.order_back):"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("退单量")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.order_actual?t.$NumberHandle(t.liveInfoPreview.order_actual):"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("实际订单")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num",staticStyle:{color:"#FE9400"}},[t._v(t._s(t.liveInfoPreview.sell_money?t.$NumberHandle(t.liveInfoPreview.sell_money):"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("总销售额")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.refund_money?t.$NumberHandle(t.liveInfoPreview.refund_money):"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("退款金额")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.actual_money?t.$NumberHandle(t.liveInfoPreview.actual_money):"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("实际销售额")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.uv_value?t.liveInfoPreview.uv_value:"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("UV价值")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.buy_rate?t.liveInfoPreview.buy_rate:"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("购买率")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num",staticStyle:{color:"#FE9400"}},[t._v(t._s(t.liveInfoPreview.avg_user_cost?t.$NumberHandle(t.liveInfoPreview.avg_user_cost):"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("客单价")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.goods_count?t.$NumberHandle(t.liveInfoPreview.goods_count):"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("商品数")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.order_back_rate?t.liveInfoPreview.order_back_rate:"-")+"%")]),t._v(" "),s("div",{staticClass:"name"},[t._v("退单率")])])],1)],1),t._v(" "),s("div",{staticClass:"basis_data_30"},[t._m(3),t._v(" "),s("el-row",{staticClass:"conditionBox"},[s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num",staticStyle:{color:"#FE9400"}},[t._v(t._s(t.liveInfoPreview.fan_add?t.liveInfoPreview.fan_add:"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("直播涨粉")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.convert_fans_rate?t.liveInfoPreview.convert_fans_rate:"-")+"%")]),t._v(" "),s("div",{staticClass:"name"},[t._v("转粉率")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num",staticStyle:{color:"#FE9400"}},[t._v(t._s(t.liveInfoPreview.consume_amount?t.liveInfoPreview.consume_amount:"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("投放金额")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"num",staticStyle:{color:"#FE9400"}},[t._v(t._s(t.liveInfoPreview.roi?t.liveInfoPreview.roi:"-"))]),t._v(" "),s("div",{staticClass:"name"},[t._v("\n 投放ROI\n "),s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"投放ROI=投放产生的销售额/ 投放金额",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1)])],1)],1)]),t._v(" "),s("div",{staticClass:"page_right"},[s("div",{staticClass:"flex"},[s("div",{staticClass:"commonn_switchBox",staticStyle:{width:"480px"}},[t._l(t.tabBar_data,function(e,a){return s("button",{key:a,class:t.tabBarLine==a?"active":"",staticStyle:{"font-weight":"bold"},on:{click:function(e){return t.showBar(a)}}},[t._v(t._s(e.name))])}),t._v(" "),0!=t.liveInfoPreview.is_end?s("button",{staticClass:"replayButton",on:{click:t.goReplay}},[t._v("复盘"),s("span",{staticClass:"new"},[t._v("new")])]):t._e()],2)]),t._v(" "),s("div",{staticClass:"page_con self-scrollbar-3",attrs:{id:"page_con"},on:{scroll:t.scrollEvent}},[s("clickTrend",{attrs:{id:"clickTrend",height:"300px"}}),t._v(" "),s("trend",{attrs:{id:"trend",platform:"2"}}),t._v(" "),s("putOn",{attrs:{id:"putOn"}}),t._v(" "),s("fansProfile",{attrs:{id:"fansProfile"}}),t._v(" "),s("goodsList",{attrs:{id:"goodsList"}}),t._v(" "),s("barrage",{attrs:{id:"barrageYuQing"}})],1)]),t._v(" "),s("el-dialog",{attrs:{title:"编辑直播数据",visible:t.editPlanFlag,width:"740px","close-on-click-modal":!1,top:"60px",left:""},on:{"update:visible":function(e){t.editPlanFlag=e}}},[t.editPlanFlag?s("editPlan",{attrs:{accountInfo:t.accountInfo,date:t.liveInfoPreview&&t.liveInfoPreview.start_time&&t.liveInfoPreview.start_time.split(" ")[0],staffList:t.staffList},on:{closeDialog:t.closeDialog}}):t._e()],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex-row",staticStyle:{"margin-bottom":"18px"}},[e("div",{staticStyle:{"flex-shrink":"0"}},[this._v("平台: ")]),this._v(" "),e("div",{staticClass:"flex"},[e("img",{staticStyle:{width:"20px","margin-right":"6px"},attrs:{src:a("AJUD"),alt:""}}),e("span",{staticClass:"f14",staticStyle:{"font-weight":"bold"}},[this._v("抖音")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"basis_title f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("\n 进场流量\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"basis_title f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("\n 带货数据\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"basis_title f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("\n 数据转化\n ")])}]};var A=a("VU/8")(w,k,!1,function(t){a("NUeJ"),a("94/F")},"data-v-4facbc00",null);e.default=A.exports},q3fg:function(t,e){},sets:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAAAXNSR0IArs4c6QAAAW1JREFUSA3tlstLAzEQxo0o2iL4AFH0IOhBxFsF/38Qb9Zbe/Cg3hTBF/gCqevvWzYllmSa2t2TDnw72ZnMfJlJNqybqaQoigWGh2AVzFbmadUXCZ5Azzn3oWRODwmEHdR6+VL/4x7CM6UNK1FlTcmaTxwShmPvr0sPO2mRqP9vv2B8J2aQirMIu/T9hMDnVHDE/oJNMeV+Rfw/9nDU3+IgaUGtUYfxrpOumMXUHKvCXSpUW5PtiSTVfGEv4itNFmGbCpeYdZMKjthvsak6xUXFIlSAVnoNcg6PDsslSFaHz9xD+TfBFjgHSpgS3SKaswG2U5Nkn7OclW8frX08BTtASX3LXhnfgavKfoA2JYdQH63uWK38Aih5KMu8HIGsmyqH0CdfYXAMPoHaW4A2mAfZMgmhTyqCiUh8oPS4UxrOrWX8T1hLG8Mkf6uluuWbEn2zpYQt1d9VU/LoE4eEfYwPYLgaP2kKrVwi6/kc3zhTPbHT+HEbAAAAAElFTkSuQmCC"},w5Zr:function(t,e){},zC0d:function(t,e){}});