소스 검색

修改报警数据,过滤已解除数据

sunzehao 20 시간 전
부모
커밋
85f97e87b9
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/components/alarm-badge/index.vue
  2. 3 1
      src/components/deligoAlarmList/index.vue

+ 1 - 1
src/components/alarm-badge/index.vue

@@ -25,7 +25,7 @@
       </div>
     </el-badge>
     <deligo-alarm-list
-      :dialogList="warnList.slice(0, 12)"
+        :dialogList="warnList.slice(0, 12)"
       @setConfig="displaySetting = true"
       @confirmed="handleConfirm"
       ref="deligoChild"

+ 3 - 1
src/components/deligoAlarmList/index.vue

@@ -150,7 +150,9 @@ export default {
   },
 
   created() {
-    this.warnList = this.dialogList;
+    this.warnList = this.dialogList.filter(it => {
+        return !it.isClose
+    });
   },
   mounted() {},
   computed: {