webpackJsonp([45],{CWT2:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("3cXf"),n=a.n(i),s=a("aA9S"),l=a.n(s);function o(e){var t=new Date,a=t.getMinutes();t.setMinutes(a+e);return t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate())+" "+(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":00"}var c={data:function(){return{au_nums:"",noneDone:!1,hasAuno:!1,page:1,size:20,pages:0,total:0,videoLoading:!1,search_key_word:"",hrOneLevelTag:[],hrOneLevelTagList:[],videoLikeModel:0,videoLike:{label:0,value:"点赞量",min:"",max:""},likeRange:[{min:"",max:"",value:"不限",label:0},{min:"",max:1e4,value:"1万以下",label:1},{min:1e4,max:5e4,value:"1万~5万",label:2},{min:5e4,max:1e5,value:"5万~10万",label:3},{min:1e5,max:5e5,value:"10万~50万",label:4},{min:5e5,max:1e6,value:"50万~100万",label:5},{min:1e6,max:5e6,value:"100万~500万",label:6},{min:5e6,max:"",value:"500万以上",label:7}],videoCommentModel:0,videoComment:{label:0,value:"评论量",min:"",max:""},shareModel:0,share:{label:0,value:"分享量",min:"",max:""},playRange:[{min:"",max:"",value:"不限",label:0},{min:"",max:1e4,value:"1万以下",label:1},{min:1e4,max:1e5,value:"1万~10万",label:2},{min:1e5,max:5e5,value:"10万~50万",label:3},{min:5e5,max:1e6,value:"50万~100万",label:4},{min:1e6,max:5e6,value:"100万~500万",label:5},{min:5e6,max:1e7,value:"500万~1000万",label:6}],videoDurationModel:0,videoDuration:{min:"",max:"",value:"视频时长",label:0},videoDurationList:[{min:"",max:"",value:"不限",label:0},{min:"",max:10,value:"<10秒",label:1},{min:10,max:30,value:"10~30秒",label:2},{min:30,max:60,value:"30~60秒",label:3},{min:60,max:"",value:">60秒",label:4}],fanSexModel:"",fanSex:{label:"",value:"粉丝性别"},drSexList:[{label:"",value:"不限"},{label:"M",value:"男"},{label:"F",value:"女"}],fanAgeModel:0,fanAge:{label:0,value:"粉丝年龄",min:"",max:""},drAgeList:[{label:0,value:"不限",min:"",max:""},{label:1,value:"12-17岁",min:12,max:17},{label:2,value:"18-23岁",min:18,max:23},{label:3,value:"24-29岁",min:24,max:29},{label:4,value:"30-35岁",min:30,max:35},{label:5,value:"36-41岁",min:36,max:41},{label:6,value:"42-49岁",min:42,max:49},{label:7,value:"50岁以上",min:50,max:""}],drFanModel:0,drFan:{label:0,value:"粉丝数量",min:"",max:""},drFanList:[{label:0,value:"不限",min:"",max:""},{label:1,value:"10-50万",min:10,max:50},{label:2,value:"50-100万",min:50,max:100},{label:3,value:"100-500万",min:100,max:500},{label:4,value:"500-1000万",min:500,max:1e3},{label:5,value:"1000万以上",min:1e3,max:""}],drRegionList:[],drRegion:"不限",checkTime:7,timeRange:[{label:1,value:"6小时",start_time:o(-360),end_time:""},{label:2,value:"12小时",start_time:o(-720),end_time:""},{label:3,value:"24小时",start_time:o(-1440),end_time:""},{label:4,value:"近3天",start_time:this.getDay(-3,!0),end_time:""},{label:5,value:"近7天",start_time:this.getDay(-7,!0),end_time:""},{label:6,value:"近15天",start_time:this.getDay(-15,!0),end_time:""},{label:7,value:"近30天",start_time:this.getDay(-30,!0),end_time:""}],start_time:this.getDay(-30,!0),end_time:"",sort_type:"digg_count",is_good:0,videoList:[],export_size:500}},created:function(){this.search_key_word=this.$store.state.keyword.data,this.getOneLevelTag(),this.areaList(),this.init(1)},methods:{toDetail:function(e){var t=this.$router.resolve({path:"/videoDetail/"+e.aweme_id+"/"+e.uid});window.open(t.href,"_blank")},toUrl:function(e){window.open(e,"_blank")},searchInit:function(){if(this.hasAuno||this.noneDone)return this.$cookie.getCookie("isLogin")?(this.$message.closeAll(),void this.$message({message:"当前等级暂不支持使用该功能,请升级会员后操作",type:"warning"})):void this.$Login({visible:!0});this.init(1)},sortEvent:function(e){if(this.hasAuno||this.noneDone)return this.$cookie.getCookie("isLogin")?(this.$message.closeAll(),void this.$message({message:"当前等级暂不支持使用该功能,请升级会员后操作",type:"warning"})):void this.$Login({visible:!0});this.sort_type==e||(this.sort_type=e,this.init(1))},handleCurrentChange:function(e){this.init(e)},init:function(e,t){var a=this;if(this.$message.closeAll(),this.noneDone||this.hasAuno)return this.$cookie.getCookie("isLogin")?(this.$message.closeAll(),void this.$message({message:"当前等级暂不支持使用该功能,请升级会员后操作",type:"warning"})):void this.$Login({visible:!0});e=e;var i=this.size;if("dataExport"==t){e=1,i=this.export_size;var n=this.$loading({lock:!0,text:"加载中...",spinner:"el-icon-loading",background:"rgba(255, 2550, 255, 0.7)"})}else this.page=e,this.videoLoading=!0,this.videoList=[];this.$axios.get(this.URL.BASEURL+this.URL.videoSearch,{params:{page:e,keyword:this.search_key_word,signs:this.hrOneLevelTag,share_count_min:this.share.min,share_count_max:this.share.max,like_count_min:this.videoLike.min,like_count_max:this.videoLike.max,comment_count_min:this.videoComment.min,comment_count_max:this.videoComment.max,duration_min:this.videoDuration.min,duration_max:this.videoDuration.max,fan_min:1e4*this.drFan.min,fan_max:1e4*this.drFan.max,fan_sex:this.fanSexModel,fan_age_min:this.fanAge.min,fan_age_max:this.fanAge.max,fan_province:"不限"==this.drRegion?[]:[this.drRegion],start_time:this.start_time,end_time:this.end_time,sort:this.sort_type,pagesize:i,is_good:this.is_good,is_export:"dataExport"==t?1:""}}).then(function(e){e=e.data;if(a.videoLoading=!1,"dataExport"==t&&n.close(),4403==e.auno?(a.au_nums=e.au_nums,a.hasAuno=!0):a.hasAuno=!1,a.noneDone=4003==e.errno,e&&0==e.errno){var i=e.rst;"dataExport"==t?a.exportToExcel(i.data):(a.total=i.pageInfo.total,a.pages=i.pageInfo.pages,a.videoList=i.data)}else 4003!=e.errno&&a.$message({message:e.err,type:"warning"})}).catch(function(e){"dataExport"==t&&n.close(),a.videoLoading=!1})},changeSelect:function(e){var t=e.val,a=e.title,i=e.model,n=e.list,s=l()({},this[n].filter(function(e){return e.label==t})[0]);"不限"==s.value?this[i]=l()(s,{value:a}):this[i]=l()(s,{value:a+": "+s.value}),this.init(1)},getOneLevelTag:function(){var e=this;this.$axios.get(this.URL.BASEURL+this.URL.tag_signList,{params:{id:0}}).then(function(t){(t=t.data)&&0==t.errno?e.hrOneLevelTagList=t.rst:e.$message({message:t.err,type:"warning"})}).catch(function(e){})},areaList:function(){var e=this;this.$axios({url:this.URL.BASEURL+this.URL.areaList,method:"post",data:{area_id:0}}).then(function(t){0==(t=t.data).errno&&t&&(e.drRegionList=JSON.parse(n()(t.rst)),e.drRegionList.unshift({value:"不限",area_name:"不限"}))})},followWhEvent:function(e,t,a){var i=this;this.$exportNumber({type_id:7,cb:function(){i.$axios.get(i.URL.BASEURL+i.URL[e],{params:{video_id:t.aweme_id,video_user_id:t.uid}}).then(function(t){(t=t.data)&&0==t.errno?i.videoList[a].is_follow="followVideo"==e?1:0:i.$message({message:t.err,type:"warning"})}).catch(function(e){})}})},getMoreList:function(){var e=this;this.$exportNumber({type_id:2,cb:function(){e.init(1,"dataExport")}})},exportToExcel:function(e){var t=e,a=[];for(var i in t)a.push({user_name:t[i].user_name?t[i].user_name:"",uid:t[i].uid?t[i].uid:"",fan:t[i].fan?t[i].fan:"",digg_count:t[i].digg_count?t[i].digg_count:"",comment_count:t[i].comment_count?t[i].comment_count:"",share_count:t[i].share_count?t[i].share_count:"",share_url:t[i].share_url?t[i].share_url:"",ad_title:t[i].ad_title?t[i].ad_title:"",ad_price:t[i].ad_price?t[i].ad_price:""});for(var n="达人名称,达人ID,达人粉丝量,视频点赞量,视频评论量,视频转发量,视频链接,商品名称,商品价格\n",s=0;s20),content:t.desc,placement:"top"}},[i("p",{staticClass:"videoTitle"},[e._v(e._s(t.desc?t.desc:"-"))])])],1)])]),e._v(" "),i("td",{class:"created_time"==e.sort_type?"common_selected":"",staticStyle:{width:"130px"}},[i("p",{staticClass:"videoTime"},[e._v(e._s(t.created_time?t.created_time:"-"))])]),e._v(" "),i("td",{staticStyle:{width:"200px"}},[i("div",{staticClass:"hrBox"},[i("img",{staticClass:"hrImg",attrs:{src:t.headurl,alt:""}}),e._v(" "),i("div",{staticClass:"hrInfo"},[i("p",{staticClass:"hrTitle"},[e._v(e._s(t.user_name))]),e._v(" "),i("p",{staticClass:"hrFan"},[e._v("粉丝数:"+e._s(t.fan||0==t.fan?e.$NumberHandle(t.fan):"-"))])])])]),e._v(" "),i("td",{class:"digg_count"==e.sort_type?"common_selected":""},[e._v(e._s(t.digg_count||0==t.digg_count?e.$NumberHandle(t.digg_count):"-"))]),e._v(" "),i("td",{class:"comment_count"==e.sort_type?"common_selected":""},[e._v(e._s(t.comment_count||0==t.comment_count?e.$NumberHandle(t.comment_count):"-"))]),e._v(" "),i("td",{class:"share_count"==e.sort_type?"common_selected":""},[e._v(e._s(t.share_count||0==t.share_count?e.$NumberHandle(t.share_count):"-"))]),e._v(" "),i("td",[i("div",{on:{click:function(a){return a.stopPropagation(),e.followWhEvent(1==t.is_follow?"cancelFollowVideo":"followVideo",t,n)}}},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:1==t.is_follow?"取消关注":"关注视频",placement:"top-start"}},[1==t.is_follow?i("img",{staticClass:"followIcon",attrs:{src:a("fXRA"),alt:""}}):i("img",{staticClass:"followIcon",attrs:{src:a("OSUF"),alt:""}})])],1)])])})],2)]),e._v(" "),e.videoLoading||0!=e.videoList.length?e._e():i("div",{staticClass:"noHaveDate"},[e._v("暂无数据")])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.hasAuno&&0!=e.total||e.hasAuno&&e.au_nums<=e.total&&e.page>1,expression:"(!hasAuno&&total!=0)||(hasAuno&&au_nums<=total&&page>1)"}],staticClass:"bottom"},[i("span",{staticClass:"total"},[e._v("共"+e._s(e.total)+"条结果")]),e._v(" "),i("el-pagination",{attrs:{background:"","current-page":e.page,layout:"prev, pager, next","page-count":e.pages},on:{"current-change":e.handleCurrentChange}})],1),e._v(" "),e.videoList.length>0&&!e.noneDone&&e.hasAuno&&!e.videoLoading?i("list-permission",{attrs:{au_nums:e.au_nums}}):e._e(),e._v(" "),!e.hasAuno&&e.noneDone?i("nopermission"):e._e()],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"table_sortable table_sortable_single"},[t("i",{staticClass:"el-icon-caret-bottom"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"table_sortable table_sortable_single"},[t("i",{staticClass:"el-icon-caret-bottom"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"table_sortable table_sortable_single"},[t("i",{staticClass:"el-icon-caret-bottom"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"table_sortable table_sortable_single"},[t("i",{staticClass:"el-icon-caret-bottom"})])}]};var _=a("C7Lr")(c,r,!1,function(e){a("gAEY")},"data-v-4d4bb94a",null);t.default=_.exports},gAEY:function(e,t){}});