From 3cb7d18159f1a4ca485e0486389ef5bd47a402d7 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 22 Sep 2021 15:00:19 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E9=9A=90=E8=97=8FalertRule?= =?UTF-8?q?=E7=9A=84=E7=BD=AE=E7=81=B0=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/rightBox/alertRuleBox.vue | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue index 27fdaebe7..ef6b726c7 100644 --- a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue +++ b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue @@ -84,6 +84,7 @@ - + - + - @@ -619,11 +620,14 @@ export default { } else if (val === 3) { this.showSnmpTrap = false // showSnmpTrap 为 false 时,展示 OID this.showMetrics = false - this.editAlertRule.inr = '' - this.editAlertRule.last = '15' - this.editAlertRule.unit = 0 - this.editAlertRule.operator = '' - this.editAlertRule.threshold = '' + // this.editAlertRule.inr = '' + // this.editAlertRule.last = '15' + // this.editAlertRule.unit = 2 + // this.editAlertRule.operator = '>' + // this.editAlertRule.threshold = '' + if (!this.editAlertRule.last) { + this.editAlertRule.last = 60 + } } }, afterInitRich () {