Browse Source

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

sunzehao 17 giờ trước cách đây
mục cha
commit
85f97e87b9

+ 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: {