From e01cac63860c20450a6b9d8dd3a937dafdcc1d3b Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期四, 24 六月 2021 15:09:10 +0800 Subject: [PATCH] 切换路况视频左侧高亮的bug --- src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue index 18ba306..c72279d 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue @@ -53,7 +53,7 @@ <div class="v-name-block"> <div class="video-name" - :class="{ current: curVideo.id == video.id }" + :class="{ current: curVideo.GroupID == video.GroupID }" @click="checkVideo(video, index)" v-for="(video, index) in curRoomVideos" :key="video.id" @@ -491,7 +491,6 @@ } else { this.videoArrs.forEach((v, i) => { this.$refs[`player_${v.id}`][0].seek(val); - // this.$refs[`player_${v.ID}`][0].play(); if (i == 0) { let curT = this.$refs[`player_${v.id}`][0].getCurrentTime(); } @@ -549,8 +548,9 @@ let _this = this; _this.curVideo = cmd; _this.curCamera = _this.curVideo.CameraPosition; - _this.$nextTick(() => { + const a = _this.$refs[`player_${_this.curVideo.id}`] + const b = _this.$refs[`player_${_this.curVideo.id}`][0] _this.$refs[`player_${_this.curVideo.id}`][0].init(); }); }, @@ -597,7 +597,6 @@ _this.curRoomVideos = _this.allCurVideos.filter((item) => { return item.IsCab == "0"; }); - _this.$nextTick(() => { _this.$refs[`player_${_this.curVideo.id}`][0].init(); let arr = _this.maxVideoTime.split(":"); @@ -618,7 +617,6 @@ _this.curCamera = _this.popDownArr[0].CameraPosition; } }); - _this.popDownArr; }, renderLabelOpts() { let _this = this; @@ -637,7 +635,6 @@ } }); }); - _this.popDownArr; }, checkVideo(video, index) { this.refreshCurVideoLabel(video); @@ -656,6 +653,7 @@ (item) => video.GroupID == item.GroupID ); this.$nextTick(() => { + const a = this.$refs[`player_${this.curVideo.id}`] this.$refs[`player_${this.curVideo.id}`][0].init(); }); }, @@ -677,9 +675,7 @@ `calc(` + 100 / guid + `%)`; this.$refs[`gridVideoItem_${i}`][0].style.height = `calc(` + 100 / guid + `%)`; - // this.$refs["playerWrap"].offsetHeight / guid + "px"; } - // console.log(this.$refs[`player_${this.videoArrs[index].ID}`]); }); }, cancelLabelChecked() { -- Gitblit v1.8.0