From 1a56edc94d4bf7202e456b78e441e992ba8ce6c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Mon, 20 Nov 2023 18:19:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=86=E6=9E=90=E6=8A=A5?= =?UTF-8?q?=E8=AD=A6=E8=A7=84=E5=88=99=E7=AE=A1=E7=90=86=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=9B=91=E6=8E=A7=E9=A1=B9=E7=9A=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue b/src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue index 155cd10..2c2e664 100644 --- a/src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue +++ b/src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue @@ -517,7 +517,7 @@ export default { } }, getItems(val) { - getAction('/alarmRule/getItems', { sourceId: val }).then((res) => { + getAction('/alarmRule/getItems', { sourceId: val, sourceType: this.form.sourceType }).then((res) => { if (res.success) { this.itemOptions = res.result.map((item) => { return { @@ -636,7 +636,7 @@ export default { .catch((err) => { this.$message.warning('This operation fails. Contact your system administrator') }) - getAction('/alarmRule/getItems', { sourceId: res.result.sourceId }) + getAction('/alarmRule/getItems', { sourceId: res.result.sourceId, sourceType: this.form.sourceType }) .then((res) => { if (res.success) { this.itemOptions = res.result.map((item) => {