From 3740ee45d8d314cb9157a03729777f837f8899b5 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期三, 07 七月 2021 17:53:21 +0800 Subject: [PATCH] merge master --- src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue index 002a367..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 + '%', }" @@ -594,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 => { @@ -649,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; } @@ -684,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); } @@ -873,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