From b4d2703e653bf702d705b18c20d9edb9066c7c8a Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期三, 03 十一月 2021 17:35:10 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/vue-smart-ai --- src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue | 41 ++++++++++++++++++++++++++++++++++++----- 1 files changed, 36 insertions(+), 5 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue index 841869c..5dd7411 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue @@ -58,7 +58,7 @@ :key="index" > <i class="el-icon-film"></i> - <span>{{ video.VideoDate }}</span> + <span>{{ video.StartTime }}</span> </div> </div> </div> @@ -130,6 +130,7 @@ </div> <div class="self-dot" + :class="getColor(item.text)" :style="{ left: (item.offset / maxSecond) * 100 + '%', }" @@ -242,7 +243,7 @@ </div> <div> <label>鏃堕棿:</label> - <span>{{ videoDetails.VideoDate }}</span> + <span>{{ videoDetails.StartTime }}</span> </div> <div> <label>鍙告満 | 鍓徃鏈�:</label> @@ -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