NEZ-598 alert message 页面修改

This commit is contained in:
songjingcheng
2021-05-08 09:40:53 +08:00
parent d8f727e542
commit a8ced7e52b
86 changed files with 2099 additions and 1450 deletions

View File

@@ -84,9 +84,10 @@ export default {
unit: 2,
operator: '>',
last: 60,
severity: 'P2',
severityId: '',
summary: '',
description: ''
description: '',
method: []
},
searchMsg: { // 给搜索框子组件传递的信息
zheze_none: true,
@@ -147,6 +148,17 @@ export default {
}
})
},
edit (u) {
this.$get(`${this.url}/${u.id}`).then(response => {
if (response.code === 200) {
this.object = {
...response.data,
method: response.data.method ? response.data.method.split(',').map(item => Number(item)) : []
}
this.rightBox.show = true
}
})
},
initEvent () {
bus.$on('alert-rule-list-change', () => {
this.getTableData()