From 9f633a2aff6cde941dd1293a57eb14e971e5ba13 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期五, 05 十一月 2021 14:12:04 +0800 Subject: [PATCH] margin change --- src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue | 37 ++++++++++++++++++++++++++++++++++--- 1 files changed, 34 insertions(+), 3 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue index af623ad..5dd7411 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue @@ -130,6 +130,7 @@ </div> <div class="self-dot" + :class="getColor(item.text)" :style="{ left: (item.offset / maxSecond) * 100 + '%', }" @@ -282,9 +283,6 @@ <script> import { - getlstInit, - updateVideoAnalyze, - getlst, getRelatedVideoInfo, getCarVideos, getLabelMap, @@ -597,6 +595,18 @@ _this.labelOptions = res.data; }); }, + getColor(text){ + if (text.indexOf('杩涘嚭绔�')>-1) { + return 'yellow' + } + if (text.indexOf('淇″彿鏈�')>-1) { + return 'purple' + } + if (text.indexOf('杩囧垎鐩�')>-1) { + return 'blue' + } + return '' + }, refreshCurVideoLabel(video) { let arr = [video] this.videoArrs = arr.concat(this.allCurVideos.filter(v => { @@ -652,9 +662,13 @@ submitLabelChecked() { let _this = this; let tempArr = []; + let isAdd = false tempArr = this.videoArrs.map((video) => video.id); let desc = this.labelCheckedList.map((lableId) => { for (let label of this.labelOptions) { + if (label.Name=='鏈墜姣�') { + isAdd=true + } if (label.ID == lableId) { return label.Name; } @@ -687,6 +701,11 @@ // 鏍囨敞 _this.setMarks(_this.curVideo); _this.$parent.$parent.filterSearchData(); + + if (isAdd) { + let num = sessionStorage.getItem("shoubiNum") + sessionStorage.setItem("shoubiNum", num?+num+1:1 ) + } } else { _this.$message.warning(rsp.msg); } @@ -876,6 +895,18 @@ -webkit-transform: translateX(-50%); transform: translateX(-50%); } + .yellow{ + background-color: yellow; + + } + .purple{ + background-color: purple; + + } + .blue{ + background-color: blue; + + } .label-dot { position: absolute; height: 8px; -- Gitblit v1.8.0