From 1b0b653ab18b65876bd281ef4f8439c0951d7dd3 Mon Sep 17 00:00:00 2001 From: orgin Date: Thu, 21 Sep 2023 14:12:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=A7=A3=E5=86=B3=E6=8A=A5=E8=AD=A6?= =?UTF-8?q?=E8=A7=84=E5=88=99=E8=A1=A8=E5=8D=95=20=E8=AF=B7=E6=B1=82getIte?= =?UTF-8?q?ms=E6=8E=A5=E5=8F=A3=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue b/src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue index 5b4833d..0dc7c5c 100644 --- a/src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue +++ b/src/views/abnormalAlarm/alarmCenter/alarmRules/index.vue @@ -516,14 +516,14 @@ export default { onSourceChange(val, option) { if (val) { this.form.sourceId = val - this.getItems(val.label) + this.getItems(val.key) } else { this.form.sourceId = {} this.form.itemId = undefined } }, getItems(val) { - getAction("/alarmRule/getItems", {sourceName:val}).then(res => { + getAction("/alarmRule/getItems", {sourceId:val}).then(res => { if (res.success) { this.itemOptions = res.result.map(item => { return { @@ -640,7 +640,7 @@ export default { }).catch(err => { this.$message.warning("This operation fails. Contact your system administrator") }) - getAction("/alarmRule/getItems", { sourceName: res.result.sourceName }).then(res => { + getAction("/alarmRule/getItems", { sourceId: res.result.sourceId }).then(res => { if (res.success) { this.itemOptions = res.result.map(item => { return {