zhangzengfei
2022-02-22 7a98d6724da914d86b6ec2912dba9bfdf2423c39
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) {