|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<zz-table
|
|
|
:settings="{ showIndex: true, stripe: true }"
|
|
|
+ emptyText="暂无告警结果"
|
|
|
:cols="cols"
|
|
|
:data="mixins_list"
|
|
|
:pageset="mixins_pageset"
|
|
@@ -43,6 +44,9 @@ export default {
|
|
|
if (0 === status) {
|
|
|
this.mixins_list = list;
|
|
|
this.mixins_pageset.total = total * 1;
|
|
|
+ if (list.length == 0) {
|
|
|
+ this.setHideButton();
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message.error(msg);
|
|
|
}
|
|
@@ -69,9 +73,12 @@ export default {
|
|
|
this.cols[0].prop = 'alarmName';
|
|
|
this.cols[1].prop = 'waringDate';
|
|
|
|
|
|
- if (0 === status) {
|
|
|
+ if (0 == status) {
|
|
|
this.mixins_list = list;
|
|
|
this.mixins_pageset.total = total * 1;
|
|
|
+ if (list.length == 0) {
|
|
|
+ this.setHideButton();
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message.error(msg);
|
|
|
}
|
|
@@ -88,6 +95,9 @@ export default {
|
|
|
if (0 === status) {
|
|
|
this.mixins_list = list;
|
|
|
this.mixins_pageset.total = total * 1;
|
|
|
+ if (list.length == 0) {
|
|
|
+ this.setHideButton();
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message.error(msg);
|
|
|
}
|
|
@@ -111,6 +121,20 @@ export default {
|
|
|
//水电告警
|
|
|
this.getHydropower();
|
|
|
}
|
|
|
+ },
|
|
|
+ setHideButton() {
|
|
|
+ let thisPopArr = this.$store.getters['getPopups'];
|
|
|
+ let thisPop = thisPopArr[this.modePop(this.$parent.$parent.params.id)];
|
|
|
+ thisPop.showConfirmButton = true;
|
|
|
+ },
|
|
|
+ modePop(id) {
|
|
|
+ let indexs = null;
|
|
|
+ this.$store.getters['getPopups'].map((item, index) => {
|
|
|
+ if (item.id == id) {
|
|
|
+ indexs = index;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return indexs;
|
|
|
}
|
|
|
},
|
|
|
created() {
|