1 |
- webpackJsonp([42],{UJRn:function(t,e){},rRmN:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("3cXf"),n=s.n(a),i={components:{drContrast:s("nWGx").a},data:function(){return{hrOneLevelTag:[],hrOneLevelTagList:[],hrOneLevelTagMoreFlag:0,infoList:[],noneDone:!1,hasAuno:!1,loading:!1,total:0,page:1,pageSize:20,worthType:0,worthTypeList:[{label:0,value:"综合"},{label:2,value:"直播"},{label:1,value:"视频"}],drContrastRefresh:!1}},created:function(){this.getOneLevelTag(),this.getRankList(1)},mounted:function(){},methods:{addDrContrast:function(t){var e=t.index,s=t.user_id,a=t.headurl;this.$refs.popover[e].doClose();var i=this.$localSelfStore.getLocal("kuai_dr_contrast")?JSON.parse(this.$localSelfStore.getLocal("kuai_dr_contrast")):[];return i.length>=5?(this.$message.closeAll(),void this.$message({message:"最多只能添加5名达人进行对比!",type:"warning"})):0!=i.filter(function(t){return t.user_id==s}).length?(this.$message.closeAll(),void this.$message({message:"Ta已经被添加过了!",type:"warning"})):(i.push({user_id:s,headurl:a}),this.$localSelfStore.setLocal("kuai_dr_contrast",n()(i)),void(this.drContrastRefresh=!this.drContrastRefresh))},getRankList:function(t,e){var s=this;this.total=0,this.page=t,this.infoList=[],this.loading=!0;var a=[];this.hrOneLevelTag.forEach(function(t,e){a.push(t.id)}),this.$axios.get(this.URL.BASEURL+this.URL.kuai_kwaimarket_valueRankList,{params:{page:this.page,pagesize:this.pageSize,signs:a,type:this.worthType}}).then(function(t){t=t.data;s.loading=!1,t&&0==t.errno?(s.infoList=t.rst.data,s.total=t.rst.pageInfo.total,e&&e()):s.$message({message:t.err,type:"warning"})}).catch(function(t){s.loading=!1})},worthTypeEvent:function(t){this.getRankList(1)},handleCurrentChange:function(t){this.getRankList(t)},selectHrOneLevel:function(t){var e=this.hrOneLevelTag.filter(function(e){return e.id!=t.id});if(e.length==this.hrOneLevelTag.length){if(5==this.hrOneLevelTag.length)return void this.$message({message:"最多只能选择5个作品标签",type:"warning"});this.hrOneLevelTag.push(t)}else this.hrOneLevelTag=e},getOneLevelTag:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.tag_signList,{params:{id:0}}).then(function(e){(e=e.data)&&0==e.errno?(t.hrOneLevelTagList=e.rst,t.$nextTick(function(){document.getElementById("hrOneLevelTagBox").offsetHeight<document.getElementById("hrOneLevelTagBox").children[0].offsetHeight&&(t.hrOneLevelTagMoreFlag=1)})):t.$message({message:e.err,type:"warning"})}).catch(function(t){})},followWhEvent:function(t,e,s){var a=this;this.$exportNumber({type_id:5,cb:function(){a.loading=!0,a.$axios({url:a.URL.BASEURL+a.URL[t],method:"post",data:{user_id:n()(e)}}).then(function(e){e=e.data;a.loading=!1,e&&0==e.errno?(a.infoList[s].is_follow="kuai_follow_delete"==t?0:1,a.$message({message:"kuai_follow_delete"==t?"取消关注成功":"关注成功",type:"success"})):(a.loading=!1,a.$message({message:e.err,type:"warning"}))}).catch(function(t){a.loading=!1})}})},toVideomonitoring:function(){var t=this.$router.resolve({path:"/mcnVideomonitoring?from=marketingPrmotion"});window.open(t.href,"_blank")},toLivemonitoring:function(t){var e=this.$router.resolve({path:"/mcnLivemonitoring?user_id="+t});window.open(e.href,"_blank")},toUserDetail:function(t){var e=this.$router.resolve({path:"/userDetail/"+t});window.open(e.href,"_blank")}},watch:{$route:function(t,e){this.drContrastRefresh=!this.drContrastRefresh},hrOneLevelTag:function(){console.log("改变了"),this.getRankList(1)}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[a("div",{staticClass:"KOLWorthRankTitle clear"},[a("span",{staticClass:"title"},[t._v("KOL价值榜")]),t._v(" "),a("el-select",{staticClass:"selectInput",attrs:{size:"mini",placeholder:"综合"},on:{change:t.worthTypeEvent},model:{value:t.worthType,callback:function(e){t.worthType=e},expression:"worthType"}},t._l(t.worthTypeList,function(t,e){return a("el-option",{key:"age_limits"+e,attrs:{label:t.value,value:t.label}})}),1)],1),t._v(" "),a("div",{staticClass:"top"},[a("div",{staticClass:"common_screen clear"},[a("div",{staticClass:"common_screen_title"},[t._v("作品标签:")]),t._v(" "),a("ul",{staticClass:"common_screen_info",staticStyle:{width:"calc(100% - 150px)"},style:2!=t.hrOneLevelTagMoreFlag?"height:43px":"",attrs:{id:"hrOneLevelTagBox"}},[a("li",{class:0==t.hrOneLevelTag.length?"common_screen_active":"",on:{click:function(e){t.hrOneLevelTag=[]}}},[t._v("不限")]),t._v(" "),t._l(t.hrOneLevelTagList,function(e,s){return a("li",{key:"hrOneLevelTagList"+s,class:0!=t.hrOneLevelTag.filter(function(t){return t.id==e.id}).length?"common_screen_active":"",on:{click:function(s){return t.selectHrOneLevel(e)}}},[t._v(t._s(e.name))])})],2),t._v(" "),1==t.hrOneLevelTagMoreFlag?a("i",{staticClass:"el-icon-arrow-down",staticStyle:{"line-height":"43px"},on:{click:function(e){t.hrOneLevelTagMoreFlag=2}}}):t._e()])]),t._v(" "),a("div",{staticClass:"common_table"},[a("table",[a("tr",[a("th",{staticStyle:{width:"100px"}},[t._v("排名")]),t._v(" "),a("th",{staticStyle:{width:"300px"}},[t._v("KOL信息")]),t._v(" "),a("th",[t._v("综合推荐指数\n "),a("el-popover",{attrs:{placement:"bottom-start",width:"400",trigger:"hover"}},[a("div",{staticClass:"notice"},[a("div",[a("span",{staticClass:"before"},[t._v("综合推荐指数:")]),t._v("指达人账号近30天内,由账号的传播指数、影响指数、商业价值指数加权计算得出,数据范围为0-100,数据越大表示账号的综合推荐价值越高。")])]),t._v(" "),a("el-button",{staticClass:"tooltip",attrs:{slot:"reference"},slot:"reference"},[a("img",{staticClass:"question",attrs:{src:s("amoS"),alt:""}}),a("img",{staticClass:"question1",attrs:{src:s("M1pF"),alt:""}})])],1)],1),t._v(" "),a("th",[t._v("传播指数\n "),a("el-popover",{attrs:{placement:"bottom-start",width:"400",trigger:"hover"}},[a("div",{staticClass:"notice"},[a("div",[a("span",{staticClass:"before"},[t._v("传播指数:")]),t._v("指达人账号近30天内,由账号的播放数、点赞数、评论数加权计算得出,数据范围为0-100,数据越大表示传播能力越强。")])]),t._v(" "),a("el-button",{staticClass:"tooltip",attrs:{slot:"reference"},slot:"reference"},[a("img",{staticClass:"question",attrs:{src:s("amoS"),alt:""}}),a("img",{staticClass:"question1",attrs:{src:s("M1pF"),alt:""}})])],1)],1),t._v(" "),a("th",[t._v("影响力指数\n "),a("el-popover",{attrs:{placement:"bottom-end",width:"400",trigger:"hover"}},[a("div",{staticClass:"notice"},[a("div",[a("span",{staticClass:"before"},[t._v("影响力指数:")]),t._v("指达人账号在近30天内,由账号的互动转化率加权计算得出,其数据范围为0-100,数据越大表示账号的影响力越高。")])]),t._v(" "),a("el-button",{staticClass:"tooltip",attrs:{slot:"reference"},slot:"reference"},[a("img",{staticClass:"question",attrs:{src:s("amoS"),alt:""}}),a("img",{staticClass:"question1",attrs:{src:s("M1pF"),alt:""}})])],1)],1),t._v(" "),a("th",[t._v("商品价值指数\n "),a("el-popover",{attrs:{placement:"bottom-end",width:"400",trigger:"hover"}},[a("div",{staticClass:"notice"},[a("div",[a("span",{staticClass:"before"},[t._v("商品价值指数:")]),t._v("指达人账号在近30天内,账号直播或视频的带货数据加权计算得出,包括商品销量、成交额、榜单价值、退货率等,其数据范围为0-100,数据越大表示账号的商业价值越高。")])]),t._v(" "),a("el-button",{staticClass:"tooltip",attrs:{slot:"reference"},slot:"reference"},[a("img",{staticClass:"question",attrs:{src:s("amoS"),alt:""}}),a("img",{staticClass:"question1",attrs:{src:s("M1pF"),alt:""}})])],1)],1),t._v(" "),a("th",[t._v("操作")])]),t._v(" "),t._l(t.infoList,function(e,n){return a("tr",{key:n,on:{click:function(s){return t.toUserDetail(e.user_id)}}},[a("td",[a("div",{staticClass:"count"},[t._v(t._s((t.page-1)*t.pageSize+n+1))])]),t._v(" "),a("td",[a("div",{staticClass:"userInfoBox"},[a("img",{staticClass:"userImg",attrs:{src:e.headurl,alt:""}}),t._v(" "),a("div",{staticClass:"userInfo"},[a("el-tooltip",{attrs:{effect:"dark",content:e.user_name,placement:"top"}},[a("p",{staticClass:"userName"},[t._v(t._s(e.user_name))])]),t._v(" "),a("p",{staticClass:"other"},[t._v("粉丝数 "+t._s(e.fan||0==e.fan?e.fan:"-"))])],1)])]),t._v(" "),a("td",[a("div",{staticClass:"count"},[t._v(t._s(e.total_val||0==e.total_val?e.total_val:"-"))])]),t._v(" "),a("td",[a("div",{staticClass:"count"},[t._v(t._s(e.spread_val||0==e.spread_val?e.spread_val:"-"))])]),t._v(" "),a("td",[a("div",{staticClass:"count"},[t._v(t._s(e.influence_val||0==e.influence_val?e.influence_val:"-"))])]),t._v(" "),a("td",[a("div",{staticClass:"count"},[t._v(t._s(e.trade_val||0==e.trade_val?e.trade_val:"-"))])]),t._v(" "),a("td",[a("div",{staticClass:"operation"},[a("span",{on:{click:function(s){return s.stopPropagation(),t.followWhEvent(1==e.is_follow?"kuai_follow_delete":"kuai_follow_create",e.user_id,n)}}},[t._v(t._s(1==e.is_follow?"取消关注":"关注达人"))]),t._v(" "),a("el-popover",{ref:"popover",refInFor:!0,attrs:{"popper-class":"delContent",trigger:"hover",placement:"bottom"},on:{click:function(t){t.stopPropagation()}}},[a("p",{staticClass:"delCon",on:{click:function(e){return e.stopPropagation(),t.toVideomonitoring(e)}}},[t._v("视频监测")]),t._v(" "),a("p",{staticClass:"delCon",on:{click:function(s){return s.stopPropagation(),t.toLivemonitoring(e.user_id)}}},[t._v("直播监测")]),t._v(" "),a("p",{staticClass:"delCon",on:{click:function(s){return s.stopPropagation(),t.addDrContrast({index:n,user_id:e.user_id,headurl:e.headurl})}}},[t._v("\n 达人对比\n ")]),t._v(" "),a("el-button",{staticClass:"moreCon",attrs:{slot:"reference"},on:{click:function(t){t.stopPropagation()}},slot:"reference"},[a("img",{staticClass:"more",attrs:{src:s("rziK")}})])],1)],1)])])})],2)]),t._v(" "),t.noneDone||t.loading||0!=t.total?t._e():a("div",{staticClass:"noHaveDate"},[t._v("暂无数据")]),t._v(" "),!t.hasAuno&&t.total>0?a("div",{staticClass:"bottom"},[a("el-pagination",{attrs:{background:"","current-page":t.page,"page-size":t.pageSize,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e(),t._v(" "),!t.noneDone&&t.hasAuno&&!t.loading&&t.infoList.length>0?a("list-permission"):t._e(),t._v(" "),!t.hasAuno&&t.noneDone?a("nopermission"):t._e(),t._v(" "),a("dr-contrast",{attrs:{refresh:t.drContrastRefresh}})],1)},staticRenderFns:[]};var r=s("C7Lr")(i,o,!1,function(t){s("UJRn")},"data-v-f2dd583c",null);e.default=r.exports}});
|