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 : ''