From 4a800a8fc83c6bd1f86a8e847b079a51a7532c09 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 20 七月 2022 15:05:58 +0800
Subject: [PATCH] 修复国标配置的bug

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

diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
index d6d1a9b..06d8766 100644
--- a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
+++ b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
@@ -242,9 +242,12 @@
                     >
                       {{
                         label.Desc +
-                        (index == data.LableLst.length - 1 ? "" : "锛�")
+                        (index == data.LableLst.length - 1 ? "" : ",")
                       }}
                     </span>
+                  </div>
+                  <div v-else-if=" hasError(data)">
+                    <span style="color:orangered;">鏈夊紓甯�</span>
                   </div>
                   <div v-else>
                     <span>鏃犲紓甯�</span>
@@ -426,7 +429,7 @@
       keyword: "",
       IsFollow: "",
       searchTime: [
-        new Date(2020, 0, 1, 0, 0, 0),
+        new Date(2021, 0, 1, 0, 0, 0),
         new Date(2021, 11, 31, 23, 59, 59),
       ],
       curTabPage: 1,
@@ -535,6 +538,14 @@
       this.tabPageSize = size;
       this.filterSearchData();
     },
+    hasError(data){
+      if (!data.EventLst||data.EventLst.length==0) {
+        return false
+      }
+
+      const t =  data.EventLst.some((x) => x.state==0)
+      return t && data.IsOperate=="1"
+    },
     handleTableSizeChange(size) {
       this.tablePageSize = size;
       this.filterSearchData();
@@ -580,7 +591,7 @@
           _this.tabData = _this.tabData.map(function (item) {
             const set = new Set();
             item.LableLst.forEach(function (label) {
-              label.Desc.split("锛�").forEach(function (d) {
+              label.Desc.split(",").forEach(function (d) {
                 set.add(d);
               });
             });
@@ -591,6 +602,7 @@
             item.LableLst = lblst;
             return item;
           });
+          _this.tabData
         }
       });
     },
@@ -637,7 +649,7 @@
           _this.tabData = _this.tabData.map(function (item) {
             const set = new Set();
             item.LableLst.forEach(function (label) {
-              label.Desc.split("锛�").forEach(function (d) {
+              label.Desc.split(",").forEach(function (d) {
                 set.add(d);
               });
             });

--
Gitblit v1.8.0