From 7a98d6724da914d86b6ec2912dba9bfdf2423c39 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 22 二月 2022 15:14:27 +0800
Subject: [PATCH] 添加rtsp用户信息urlencode功能

---
 src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
index 981dbf8..0449fbb 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>
@@ -633,7 +633,7 @@
         StartDate: this.searchTime[0],
         EndDate: this.searchTime[1],
         PageIndex:
-          this.showType == "list" ? this.curTablePage : this.showType == "list",
+          this.showType == "list" ? this.curTablePage : this.curTabPage,
         PageSize:
           this.showType == "list" ? this.tablePageSize : this.tabPageSize,
         IsDetail: this.showType == "list",
@@ -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