From 3fc1d9ed6c937c1e8db7004f7102c7a157a2687a Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期五, 12 十一月 2021 16:52:59 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/vue-smart-ai --- src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue | 50 ++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 42 insertions(+), 8 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue index 8d2a8a7..dc61077 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue @@ -265,7 +265,7 @@ </span> </div> <div v-else-if="hasError(data)" class="has-error"> - <span>鏈夊紓甯�</span> + <span>{{ errWord(data) }}</span> </div> <div v-else class="no-error"> <span>鏃犲紓甯�</span> @@ -712,10 +712,40 @@ }); }); }, + errWord(data) { + let text; + data.EventLst.forEach((item, i) => { + if ( + item.state == 0 && + item.Event.indexOf("杩涘嚭绔�") == -1 && + item.Event.indexOf("淇″彿鏈�") == -1 && + item.Event.indexOf("杩囧垎鐩�") == -1 + ) { + text= item.Event + } + }); + return text||"鏈墜姣�" + }, hasError(data) { + let status = true; if (!data.EventLst || data.EventLst.length == 0) { return false; } + + data.EventLst.forEach((item) => { + if ( + item.Event.indexOf("鐬湜") > -1 || + item.Event.indexOf("浜烘暟鍙樺寲") > -1 + ) { + status = false; + false; + } + }); + + if (!status) { + return false; + } + const t = data.EventLst.some((x) => x.state == 0); return t && data.IsOperate == "1"; }, @@ -1160,17 +1190,21 @@ .show-type { display: flex; .list span { - font-size: 20px; + font-size: 18px; + line-height: 20px; } .type { - font-size: 18px; - padding: 2px 4px 0px 4px; + font-size: 17px; border-radius: 4px; cursor: pointer; + height: 20px; + width: 20px; + line-height: 19px; + &.menu { - margin-right: 10px; + margin-right: 5px; span { - font-size: 15px; + font-size: 14px; } } &.current { @@ -1210,8 +1244,8 @@ cursor: pointer; border-radius: 3px; width: 100%; - padding-top: 56.25%; - height: 0; + // padding-top: 56.25%; + height: 57%; position: relative; img { position: absolute; -- Gitblit v1.8.0