From cf97aba45e50093a6dab045e3a5e0b747076379d Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期五, 17 十二月 2021 11:46:33 +0800 Subject: [PATCH] 修改授权显示的bug --- src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue index 981dbf8..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,6 +712,20 @@ }); }); }, + 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) { -- Gitblit v1.8.0