From d584d4d7a4784958d6830f355e3c703e4eee0b65 Mon Sep 17 00:00:00 2001 From: renpy Date: Wed, 26 Jul 2023 18:49:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E8=81=94=E5=8A=A8=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=EF=BC=8C=E6=B2=A1=E6=9C=89=E6=B8=85=E7=A9=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue b/src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue index a4d8adb..cb13c65 100644 --- a/src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue +++ b/src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue @@ -468,6 +468,8 @@ export default { this.queryParams.type = val if (val) { this.getAlarmSources(val) + } else { + this.nameOptions=[] } }, onStateChange(val) { @@ -488,7 +490,12 @@ export default { this.form.sourceType = val this.form.sourceId = undefined this.form.itemId = undefined - this.getSourcesOptions(val) + if (val) { + this.getSourcesOptions(val) + + } else { + this.sourceOptions=[] + } }, onSourceChange(val,option) { this.form.sourceId = val