From 87d683273a75eb145920b0bed884a38606968376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8F=9C?= <43331987+JiaLiBai@users.noreply.github.com> Date: Tue, 29 Jul 2025 20:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BD=93=E7=94=B5=E6=B1=A0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=96=B0=E5=A2=9E=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ems/dzjk.js | 4 ++-- src/views/ems/dzjk/sbjk/dtdc/index.vue | 2 +- src/views/ems/dzjk/tjbb/dcwd/index.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/ems/dzjk.js b/src/api/ems/dzjk.js index 5f3f356..fb4beda 100644 --- a/src/api/ems/dzjk.js +++ b/src/api/ems/dzjk.js @@ -47,9 +47,9 @@ export function getStackNameList(siteId) { }) } //获取单体电池 电池簇列表数据 -export function getClusterNameList(stackDeviceId) { +export function getClusterNameList({stackDeviceId,siteId}) { return request({ - url: `/ems/siteMonitor/getClusterNameList?stackDeviceId=${stackDeviceId}`, + url: `/ems/siteMonitor/getClusterNameList?stackDeviceId=${stackDeviceId}&siteId=${siteId}`, method: 'get' }) } diff --git a/src/views/ems/dzjk/sbjk/dtdc/index.vue b/src/views/ems/dzjk/sbjk/dtdc/index.vue index 6e0ea7e..05a9abe 100644 --- a/src/views/ems/dzjk/sbjk/dtdc/index.vue +++ b/src/views/ems/dzjk/sbjk/dtdc/index.vue @@ -204,7 +204,7 @@ export default { }, getClusterList(){ this.clusterloading =true - getClusterNameList(this.search.stackId).then(response => { + getClusterNameList({stackDeviceId:this.search.stackId,siteId: this.siteId}).then(response => { this.clusterOptions = JSON.parse(JSON.stringify(response?.data || [])) }).finally(() => {this.clusterloading =false}) }, diff --git a/src/views/ems/dzjk/tjbb/dcwd/index.vue b/src/views/ems/dzjk/tjbb/dcwd/index.vue index 09b4048..b74846a 100644 --- a/src/views/ems/dzjk/tjbb/dcwd/index.vue +++ b/src/views/ems/dzjk/tjbb/dcwd/index.vue @@ -171,7 +171,7 @@ export default { }, async getClusterList(){ this.clusterloading =true - await getClusterNameList(this.search.stackId).then(response => { + await getClusterNameList({stackDeviceId: this.search.stackId, siteId: this.siteId}).then(response => { const data = JSON.parse(JSON.stringify(response?.data || [])) this.clusterOptions = data this.search.clusterId = data.length > 0 ? data[0].id : ''