From 33f3d0076744f0165f541234087b464fb6779076 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 17 Sep 2021 11:51:02 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1008=20fix=EF=BC=9Aalert=20rule=20snmp=20tr?= =?UTF-8?q?ap=20=E7=BC=96=E8=BE=91=E4=BF=9D=E5=AD=98=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/rightBox/alertRuleBox.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue index 907e376d7..27fdaebe7 100644 --- a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue +++ b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue @@ -114,7 +114,7 @@ @@ -376,6 +376,9 @@ export default { } } const nzInr = (rule, value, callback) => { + if (!this.showSnmpTrap) { + callback() + } if (value < 15) { callback(new Error(this.$t('alert.config.inrError'))) } else { @@ -617,7 +620,7 @@ export default { this.showSnmpTrap = false // showSnmpTrap 为 false 时,展示 OID this.showMetrics = false this.editAlertRule.inr = '' - this.editAlertRule.last = '' + this.editAlertRule.last = '15' this.editAlertRule.unit = 0 this.editAlertRule.operator = '' this.editAlertRule.threshold = ''