| | |
| | | :ref="`gridVideoItem_${index}`" |
| | | v-for="(item,index) in videoWrapArr" |
| | | :key="index" |
| | | @click="checkCurVideo(index)" |
| | | > |
| | | <template v-if="index<=videoArrs.length-1"> |
| | | <div :class="{'currentPlayer':curVideo.ID==videoArrs[index].ID}"> |
| | |
| | | }, |
| | | }, |
| | | mounted () { |
| | | console.log('analyze mount') |
| | | this.renderLabelOpts(); |
| | | this.setGuid(1); |
| | | this.getVideos(this.videoDetails); |
| | | }, |
| | | methods: { |
| | | checkCurVideo(index){ |
| | | if(this.relativeVideos[index]){ |
| | | this.curVideo = this.relativeVideos[index] |
| | | } |
| | | }, |
| | | getVideos (video) { |
| | | let _this = this; |
| | | getRelatedVideoInfo({ UniqeID: video.UniqeID }).then(res => { |
| | |
| | | _this.curVideo = res.data[0]; |
| | | _this.videoArrs = res.data; |
| | | _this.relativeVideos = res.data; |
| | | debugger |
| | | |
| | | this.$nextTick(()=>{ |
| | | _this.$refs[`player_${_this.curVideo.ID}`][0].init(); |
| | | }) |
| | | |
| | | }) |
| | | }, |
| | | renderLabelOpts () { |
| | |
| | | }, |
| | | checkVideo (video, index) { |
| | | this.curVideo = video; |
| | | this.$nextTick(()=>{ |
| | | this.$refs[`player_${this.curVideo.ID}`][0].init(); |
| | | }) |
| | | |
| | | if (index > 0 && this.guid == 1) { |
| | | //this.videoWrapArr = |
| | | } |
| | |
| | | let someVideo = _this.videoArrs.find(video=>video.ID === label.ParentID); |
| | | someVideo.LableLst.push(label); |
| | | }) |
| | | _this.curVideo.LableLst = rsp.data; |
| | | //_this.curVideo.LableLst = rsp.data; |
| | | this.$message.success("添加成功") |
| | | |
| | | // 标注 |