1 |
- webpackJsonp([22],{DPxb:function(t,e,a){t.exports=a.p+"static/img/video_look_lj_1.ec78531.png"},Q4Nb:function(t,e){},a6iT:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={data:function(){return{loading:!0,userNameSearch:"",pagesize:15,pages:0,page:1,total:0,datalist:[]}},created:function(){var t=window.screen.availWidth;t>=1920?this.pagesize=25:t>=1560&&(this.pagesize=20),this.init(1)},methods:{toVideoDetail:function(t){var e=this.$router.resolve({path:"/videoDetail/"+t.aweme_id+"/"+t.user_id});window.open(e.href,"_blank")},handleCurrentChange:function(t){this.init(t)},init:function(t){var e=this;this.datalist=[],this.loading=!0,this.page=t,this.$axios.get(this.URL.BASEURL+this.URL.dou_videoMonitorList,{params:{page:this.page,page_size:this.pagesize,user_keyword:this.userNameSearch}}).then(function(t){if(e.loading=!1,(t=t.data)&&0==t.errno){var a=t.rst;e.total=t.rst.pageInfo.total,e.pages=t.rst.pageInfo.pages,e.datalist=a.data}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})}}},i={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:"monitorHistory",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[s("div",{staticClass:"topContent clear"},[s("div",{staticClass:"left"},[t._v("共"+t._s(t.total)+"个监控历史")]),t._v(" "),s("div",{staticClass:"right"},[s("el-input",{staticClass:"searchInput",attrs:{placeholder:"输入达人信息查找",size:"mini",clearable:""},on:{clear:function(e){return t.init(1)}},nativeOn:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.userNameSearch&&t.init(1)}},model:{value:t.userNameSearch,callback:function(e){t.userNameSearch=e},expression:"userNameSearch"}}),t._v(" "),s("button",{staticClass:"searchButton",on:{click:function(e){t.userNameSearch&&t.init(1)}}},[t._v("查询")])],1)]),t._v(" "),s("div",{staticClass:"monitorListBox clear"},t._l(t.datalist,function(e,a){return s("div",{key:a,staticClass:"monitorBox",on:{click:function(a){return t.toVideoDetail(e)}}},[s("div",{staticClass:"liveInfo"},[s("div",{staticClass:"coverBox"},[s("img",{attrs:{src:e.cover_url,alt:""}}),t._v(" "),s("div",{class:["tag",1==e.status?"":"done"]},[t._v(t._s(1==e.status?"监测中":2==e.status?"监测结束":0==e.status?"未开始":"已结束"))])]),t._v(" "),s("div",{staticClass:"info"},[s("p",{staticClass:"liveName"},[t._v(t._s(e.desc?e.desc:"-"))]),t._v(" "),s("div",{staticClass:"duration"},[t._v("监控时长:"),s("span",[t._v(t._s(e.monitor_duration?e.monitor_duration:"-"))])]),t._v(" "),s("div",{staticClass:"userBox"},[s("img",{staticClass:"userImg",attrs:{src:e.headurl,alt:""}}),t._v(" "),s("div",{staticClass:"userInfo"},[s("p",{staticClass:"userName"},[t._v(t._s(e.user_name?e.user_name:"-"))]),t._v(" "),s("p",{staticClass:"time"},[t._v(t._s(e.starttime?e.starttime:"-"))])])])])]),t._v(" "),s("div",{staticClass:"monitorData clear"},[s("div",{staticClass:"data"},[s("span",[t._v(t._s(e.share_count||0==e.share_count?t.$NumberHandle(e.share_count):"-"))]),t._v(" "),s("p",[t._v("分享量")])]),t._v(" "),s("div",{staticClass:"data"},[s("span",[t._v(t._s(e.digg_count||0==e.digg_count?t.$NumberHandle(e.digg_count):"-"))]),t._v(" "),s("p",[t._v("点赞量")])]),t._v(" "),s("div",{staticClass:"data"},[s("span",[t._v(t._s(e.comment_count||0==e.comment_count?t.$NumberHandle(e.comment_count):"-"))]),t._v(" "),s("p",[t._v("评论量")])])])])}),0),t._v(" "),t.loading||0!=t.datalist.length?t._e():s("img",{staticClass:"noDataImg",attrs:{src:a("eJaf"),alt:""}}),t._v(" "),t.total>0&&t.pages>1?s("div",{staticClass:"bottom"},[s("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()])},staticRenderFns:[]};var n={components:{monitorHistory:a("C7Lr")(s,i,!1,function(t){a("v4QX")},"data-v-a8e261a8",null).exports},data:function(){return{tab:1,elasticFrameFlag:!1,pickerTimes:{disabledDate:function(t){return t<Date.now()-864e5}},date:"",time:"",durationList:[{time:6,name:"6小时"},{time:12,name:"12小时"},{time:18,name:"18小时"},{time:24,name:"24小时"}],duration:0,loading:!1,search_key_word:"",searchData:{},search_hint:""}},methods:{init:function(){var t=this;if(this.loading)return!1;""!=this.search_key_word?(this.loading=!0,this.$axios({url:this.URL.BASEURL+this.URL.dou_selectPhotoInfo+"?url="+escape(this.search_key_word),method:"get"}).then(function(e){e=e.data;if(t.loading=!1,e&&0==e.errno){var a=e.rst;t.searchData=a}else t.search_hint=e.rst.err,t.$message({message:e.rst.err,type:"warning"})}).catch(function(e){t.loading=!1})):this.$message({message:"请输入您要监测的视频链接",type:"warning"})},addUser:function(){var t=this;this.$exportNumber({type_id:3,cb:function(){if(""!=t.search_key_word)if(t.searchData.aweme_id)if(""!=t.date)if(""!=t.time)if(0!=t.duration){Date.prototype.toLocaleString=function(){return this.getFullYear()+"-"+(this.getMonth()+1)+"-"+this.getDate()+" "+this.getHours()+":"+this.getMinutes()+":"+this.getSeconds()};var e=new Date((t.date+" "+t.time).replace(/-/g,"/")).getTime()+60*t.duration*60*1e3,a=new Date(e).toLocaleString();t.loading=!0,t.$axios.post(t.URL.BASEURL+t.URL.dou_addVideoMonitor,{start_time:t.date+" "+t.time,end_time:a,url:t.search_key_word,aweme_id:t.searchData.aweme_id,user_id:t.searchData.user_id}).then(function(e){t.loading=!1,(e=e.data)&&0==e.errno?(t.$message({message:"添加成功",type:"success"}),t.tab=2,t.reset()):t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}else t.$message({message:"请选择监测的时长",type:"warning"});else t.$message({message:"请选择监测的开始时间",type:"warning"});else t.$message({message:"请选择监测的开始日期",type:"warning"});else t.$message({message:"视频信息查询失败",type:"warning"});else t.$message({message:"请输入您要监测的视频链接",type:"warning"})}})},reset:function(){this.date="",this.time="",this.duration=0,this.search_key_word="",this.searchData={},this.search_hint=""}}},r={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:"monitorBox",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[a("ul",{staticClass:"topTab"},[a("li",{class:1==t.tab?"active":"",on:{click:function(e){t.tab=1}}},[t._v("视频监控")]),t._v(" "),a("li",{class:2==t.tab?"active":"",on:{click:function(e){t.tab=2}}},[t._v("监控历史")])]),t._v(" "),1==t.tab?a("div",{staticClass:"addMonitorBox"},[a("div",{staticClass:"content"},[t._m(0),t._v(" "),a("div",{staticClass:"addMonitorContent"},[a("div",{staticClass:"monitor_title"},[t._v("输入视频链接"),a("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){t.elasticFrameFlag=!0}}},[t._v("如何查看视频链接 "),a("i",{staticClass:"el-icon-warning"})])]),t._v(" "),a("div",{staticClass:"searchBox clear"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.search_key_word,expression:"search_key_word"}],staticClass:"search_input",attrs:{placeholder:"输入视频链接"},domProps:{value:t.search_key_word},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.search_key_word=e.target.value)}}}),t._v(" "),t.search_key_word?a("i",{staticClass:"clearText el-icon-circle-close",on:{click:function(e){t.search_key_word=""}}}):t._e(),t._v(" "),a("div",{staticClass:"searchButton",on:{click:function(e){return t.init(1)}}},[t._v("查询")])]),t._v(" "),t.search_hint?a("p",{staticClass:"errorHint"},[a("i",{staticClass:"el-icon-warning"}),t._v(t._s(t.search_hint))]):t._e(),t._v(" "),t.searchData.user_id?a("div",{staticClass:"searchResultBox"},[a("div",{staticClass:"searchResult",staticStyle:{height:"75px",padding:"15px 0",overflow:"hidden"}},[a("ul",{staticClass:"resultUl"},[t.searchData.user_id?a("li",{staticStyle:{cursor:"initial"}},[a("div",{staticClass:"userImg"},[a("img",{attrs:{src:t.searchData.headurl,alt:""}})]),t._v(" "),a("div",{staticClass:"userInfo clear"},[a("div",{staticClass:"info"},[a("p",{staticClass:"userName"},[t._v(t._s(t.searchData.user_name?t.searchData.user_name:"-"))]),t._v(" "),a("p",{staticClass:"userID"},[t._v("ID:"+t._s(t.searchData.user_id))])])])]):t._e()])])]):t._e(),t._v(" "),a("div",{staticClass:"monitor_title"},[t._v("监控开始时间")]),t._v(" "),a("div",{staticStyle:{"margin-top":"24px"}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",size:"small","picker-options":t.pickerTimes,placeholder:"选择日期"},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}}),t._v(" "),a("el-time-select",{attrs:{size:"small","picker-options":{start:"00:00",step:"00:15",end:"24:00"},placeholder:"选择时间"},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}})],1),t._v(" "),a("div",{staticClass:"monitor_title"},[t._v("监控时长")]),t._v(" "),a("div",{staticClass:"common_screen checkboxDuration clear"},t._l(t.durationList,function(e,s){return a("div",{key:s,class:["self_checkbox",t.duration==e.time?"self_checkbox_active":""],on:{click:function(a){t.duration=e.time}}},[a("div",{staticClass:"icon"}),t._v(" "),a("span",[t._v(t._s(e.name))])])}),0),t._v(" "),a("button",{staticClass:"monitorButton",on:{click:t.addUser}},[t._v("开始监控")])])]),t._v(" "),t.elasticFrameFlag?a("div",{staticClass:"elasticFrame",on:{click:function(e){e.stopPropagation(),t.elasticFrameFlag=!1}}},[a("div",{staticClass:"elasticFrame_con",on:{click:function(t){t.stopPropagation()}}},[a("i",{staticClass:"el-icon-circle-close",on:{click:function(e){e.stopPropagation(),t.elasticFrameFlag=!1}}}),t._v(" "),a("h3",[t._v("如何查看视频链接")]),t._v(" "),t._m(1)])]):t._e()]):t._e(),t._v(" "),2==t.tab?a("monitor-history"):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"banner"},[e("div",{staticClass:"title"},[this._v("视频监控")]),this._v(" "),e("div",{staticClass:"monitorHint"},[this._v("可对达人的视频进行监测,提供商品,评论,受众方面的详情分析,"),e("br"),this._v("掌握视频热度走向")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"elasticFrame_step"},[e("div",{staticClass:"step"},[e("img",{attrs:{src:a("DPxb")}}),this._v(" "),e("span",[this._v("1.点击转发")])]),this._v(" "),e("div",{staticClass:"step"},[e("img",{attrs:{src:a("aKHp")}}),this._v(" "),e("span",[this._v("2.复制链接")])])])}]};var o=a("C7Lr")(n,r,!1,function(t){a("Q4Nb")},"data-v-ed7aef88",null);e.default=o.exports},aKHp:function(t,e,a){t.exports=a.p+"static/img/video_look_lj_2.48de27f.png"},v4QX:function(t,e){}});
|