酷炫数据营销平台

81.bdadd3cde6c9fbf1c1d1.js 10KB

1
  1. webpackJsonp([81],{ZfY5:function(t,e){},fpDi:function(t,e){},mnZH:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={data:function(){return{options:[{value:0,label:"开播时间"},{value:1,label:"观看人数"},{value:2,label:"在线峰值"},{value:3,label:"点赞人数"},{value:4,label:"打赏数"},{value:5,label:"商品数"},{value:6,label:"销量"},{value:7,label:"销售额"},{value:8,label:"粉丝增量"}],sortName:0,dataList:[],searchTime:[],timeIndex:0,start_time:this.getDay(-1,!1),end_time:this.getDay(-1,!1),loading:!1,pickerTimes:{disabledDate:function(t){return t>Date.now()-864e5}},timeRange:[{name:"昨日",stime:this.getDay(-1,!1),etime:this.getDay(-1,!1)},{name:"近7天",stime:this.getDay(-7,!1),etime:this.getDay(-1,!1)},{name:"近30天",stime:this.getDay(-30,!1),etime:this.getDay(-1,!1)},{name:"近90天",stime:this.getDay(-90,!1),etime:this.getDay(-1,!1)}],generalInfoLoading:!1,generalData:{},page:1,total:0,pageCount:0}},created:function(){this.init(1),this.generalEvent()},methods:{goDetail:function(t){if(t.live_stream_id&&t.fan_count){var e=this.$router.resolve({path:"/basicsDataDetail/"+t.live_stream_id+"/"+t.user_id});window.open(e.href,"_blank")}},handleCurrentChange:function(t){this.init(t)},generalEvent:function(){var t=this;this.generalInfoLoading=!0,this.$axios.get(this.URL.BASEURL+this.URL.mcn_showDataTotal,{params:{stime:this.start_time,etime:this.end_time}}).then(function(e){e=e.data;t.generalInfoLoading=!1,e&&0==e.errno?t.generalData=e.rst:t.$message({message:e.err,type:"warning"})}).catch(function(e){t.generalInfoLoading=!1})},init:function(t){var e=this;this.dataList=[],this.total=0,this.loading=!0,this.page=t,this.$axios.get(this.URL.BASEURL+this.URL.mcn_showDataList,{params:{page:this.page,sort:this.sortName,stime:this.start_time,etime:this.end_time}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?(e.dataList=t.rst.result,e.total=t.rst.pageInfo.count,e.pageCount=t.rst.pageInfo.pages):e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1,e.$message({message:"请稍后重试!",type:"warning"})})}},watch:{timeIndex:function(){""!==this.timeIndex&&(this.start_time=this.timeRange[this.timeIndex].stime,this.end_time=this.timeRange[this.timeIndex].etime,this.searchTime=[],this.generalEvent(),this.init())},searchTime:function(){this.searchTime.length>0&&(this.start_time=this.searchTime[0],this.end_time=this.searchTime[1],this.timeIndex="",this.generalEvent(),this.init())},sortName:function(){this.init()}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"liveMonitor"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.generalInfoLoading,expression:"generalInfoLoading"}],staticClass:"General",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[a("div",{staticClass:"clear"},[t._m(0),t._v(" "),a("ul",{staticClass:"screen clear"},[t._l(t.timeRange,function(e,n){return a("li",{key:"timeRange"+n,class:t.timeIndex===n?"active":"",on:{click:function(e){t.timeIndex=n}}},[t._v(t._s(e.name))])}),t._v(" "),a("div",{staticClass:"custom"},[a("li",[t._v("自定义:")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.start_time,expression:"start_time"}],attrs:{placeholder:"开始时间"},domProps:{value:t.start_time},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.init(1)},input:function(e){e.target.composing||(t.start_time=e.target.value)}}}),t._v(" —\n "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.end_time,expression:"end_time"}],attrs:{placeholder:"结束时间"},domProps:{value:t.end_time},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.init(1)},input:function(e){e.target.composing||(t.end_time=e.target.value)}}}),t._v(" "),a("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":t.pickerTimes,"range-separator":"至","start-placeholder":"开始日期",size:"small","end-placeholder":"结束日期",align:"right"},model:{value:t.searchTime,callback:function(e){t.searchTime=e},expression:"searchTime"}})],1)],2)]),t._v(" "),a("div",{staticClass:"generalInfo"},[a("ul",{staticClass:"clear"},[a("li",[a("p",[t._v("直播达人数")]),t._v(" "),a("span",[t._v(t._s(t.generalData.user_count||0==t.generalData.user_count?t.generalData.user_count:"-"))])]),t._v(" "),a("li",[a("p",[t._v("直播场次")]),t._v(" "),a("span",[t._v(t._s(t.generalData.show_count||0==t.generalData.show_count?t.generalData.show_count:"-"))])]),t._v(" "),a("li",[a("p",[t._v("礼物收入")]),t._v(" "),a("span",[t._v(t._s(t.generalData.reward_count||0==t.generalData.reward_count?t.generalData.reward_count:"-"))])]),t._v(" "),a("li",[a("p",[t._v("带货直播场次")]),t._v(" "),a("span",[t._v(t._s(t.generalData.goods_show_count||0==t.generalData.goods_show_count?t.generalData.goods_show_count:"-"))])]),t._v(" "),a("div",{staticClass:"line"}),t._v(" "),a("li",[a("p",[t._v("带货商品数")]),t._v(" "),a("span",[t._v(t._s(t.generalData.goods_count||0==t.generalData.goods_count?t.generalData.goods_count:"-"))])]),t._v(" "),a("li",[a("p",[t._v("商品销量")]),t._v(" "),a("span",[t._v(t._s(t.generalData.sell_count||0==t.generalData.sell_count?t.generalData.sell_count:"-"))])]),t._v(" "),a("li",[a("p",[t._v("商品销售额")]),t._v(" "),a("span",[t._v(t._s(t.generalData.sell_money||0==t.generalData.sell_money?"¥"+t.generalData.sell_money:"-"))])])])])]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"General",staticStyle:{"margin-top":"15px"},attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[a("div",{staticClass:"clear",staticStyle:{"margin-bottom":"15px"}},[t._m(1),t._v(" "),a("div",{staticClass:"rightSearch"},[a("div",{staticClass:"select"},[a("span",{staticClass:"text"},[t._v("排序:")]),t._v(" "),a("el-select",{staticStyle:{display:"inline-block"},attrs:{size:"mini",placeholder:"请选择"},model:{value:t.sortName,callback:function(e){t.sortName=e},expression:"sortName"}},t._l(t.options,function(t){return a("el-option",{key:"ksSort"+t.value,staticStyle:{width:"100%"},attrs:{label:t.label,value:t.value}})}),1)],1)])]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.dataList,size:"medium","row-style":{cursor:"pointer"}},on:{"row-click":t.goDetail}},[a("el-table-column",{attrs:{label:"直播",align:"center",width:"220"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"postUrl"},[a("el-image",{staticClass:"img",attrs:{src:e.row.cover_img,alt:""}})],1),t._v(" "),a("div",{staticClass:"right rightBox"},[a("el-tooltip",{staticClass:"desc",attrs:{effect:"dark",content:e.row.title,placement:"top"}},[a("div",{staticClass:"name"},[t._v(t._s(e.row.title))])]),t._v(" "),a("p",[t._v("直播时长 "+t._s(e.row.live_duration?e.row.live_duration:"-"))]),t._v(" "),a("span",[t._v(t._s(e.row.start_time))])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"主播",align:"center",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-image",{staticClass:"icon",attrs:{src:e.row.headurl,alt:""}}),t._v(" "),a("div",{staticClass:"right"},[a("el-tooltip",{staticClass:"desc",attrs:{effect:"dark",content:e.row.user_name,placement:"top"}},[a("p",{staticClass:"name"},[t._v(t._s(e.row.user_name))])]),t._v(" "),a("span",[t._v(t._s(e.row.fan_count||0==e.row.fan_count?e.row.fan_count+"粉丝":""))])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"观看人数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.watching_user_count||0==e.row.watching_user_count?e.row.watching_user_count:"-")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"在线峰值",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.bast_display_watching_count||0==e.row.bast_display_watching_count?e.row.bast_display_watching_count:"-")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"点赞数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.display_like_count||0==e.row.display_like_count?e.row.display_like_count:"-")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"100",align:"center",label:"礼物收入(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.reward_count||0==e.row.reward_count?e.row.reward_count:"-")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.goods_count?e.row.goods_count:"")+"\n "),0==e.row.goods_count?a("div",{staticStyle:{color:"#999"}},[t._v("非带货")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品销量"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.goods_count?a("div",{staticStyle:{color:"#999"}},[t._v("非带货")]):a("span",[t._v(t._s(e.row.sell_count||0==e.row.sell_count?e.row.sell_count:"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品销售额"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.goods_count?a("div",{staticStyle:{color:"#999"}},[t._v("非带货")]):a("span",[t._v(t._s(e.row.sell_money||0==e.row.sell_money?"¥"+e.row.sell_money:"-"))])]}}])})],1),t._v(" "),t.total>0?a("div",{staticClass:"bottom"},[a("el-pagination",{attrs:{background:"","current-page":t.page,"page-count":t.pageCount,layout:"prev, pager, next"},on:{"current-change":t.handleCurrentChange}}),t._v(" "),a("span",{staticClass:"total"},[t._v("共"+t._s(t.total)+"条数据")])],1):t._e()],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"small_title",staticStyle:{"margin-bottom":"0"}},[e("span",[this._v("概览")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"small_title",staticStyle:{"margin-bottom":"0"}},[e("span",[this._v("达人列表")])])}]};var i=a("C7Lr")(n,s,!1,function(t){a("ZfY5"),a("fpDi")},"data-v-13806518",null);e.default=i.exports}});