NEZ-1218 fix: alert message 查看按钮 增加判断条件 当 rule_type 未logs时禁用

This commit is contained in:
@changcode
2021-11-11 13:55:04 +08:00
parent ce18288599
commit d4dd85ee8e
3 changed files with 8 additions and 4 deletions

View File

@@ -453,7 +453,11 @@ export default {
}
this.$get('/alert/rule/' + row.alertRule.id).then(res => {
this.currentMsg = { ...row, alertRule: { ...res.data } }
this.graphShow = true
if (row.alertRule.type !== 1) {
this.graphShow = false
} else {
this.graphShow = true
}
this.$nextTick(() => {
this.searchTimeDialog = [bus.computeTimezoneTime(new Date().getTime() - 1 * 60 * 60 * 1000), bus.computeTimezoneTime(new Date().getTime())]
this.queryDate()