feat: alert-config增加receiver新增/修改

This commit is contained in:
chenjinsong
2020-05-06 18:07:33 +08:00
parent 951e3d9216
commit 2e2732599f
2 changed files with 80 additions and 149 deletions

View File

@@ -367,6 +367,15 @@
this.$get('alert/rule', this.searchLabel).then(response => {
this.loading = false;
if (response.code == 200) {
response.data.list.forEach(item => {
let temp = [];
if (item.receiver) {
temp = item.receiver.split(",").map(t => {
return parseInt(t);
});
}
item.receiverShow = temp;
});
this.tableData = response.data.list;
this.pageObj.total = response.data.total;
}
@@ -382,7 +391,6 @@
severity: '',
summary: '',
description: '',
receivers: '',
}
},
jumpTo(data, id) {