单体电池接口新增参数
This commit is contained in:
@ -47,9 +47,9 @@ export function getStackNameList(siteId) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
//获取单体电池 电池簇列表数据
|
//获取单体电池 电池簇列表数据
|
||||||
export function getClusterNameList(stackDeviceId) {
|
export function getClusterNameList({stackDeviceId,siteId}) {
|
||||||
return request({
|
return request({
|
||||||
url: `/ems/siteMonitor/getClusterNameList?stackDeviceId=${stackDeviceId}`,
|
url: `/ems/siteMonitor/getClusterNameList?stackDeviceId=${stackDeviceId}&siteId=${siteId}`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -204,7 +204,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getClusterList(){
|
getClusterList(){
|
||||||
this.clusterloading =true
|
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 || []))
|
this.clusterOptions = JSON.parse(JSON.stringify(response?.data || []))
|
||||||
}).finally(() => {this.clusterloading =false})
|
}).finally(() => {this.clusterloading =false})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -171,7 +171,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async getClusterList(){
|
async getClusterList(){
|
||||||
this.clusterloading =true
|
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 || []))
|
const data = JSON.parse(JSON.stringify(response?.data || []))
|
||||||
this.clusterOptions = data
|
this.clusterOptions = data
|
||||||
this.search.clusterId = data.length > 0 ? data[0].id : ''
|
this.search.clusterId = data.length > 0 ? data[0].id : ''
|
||||||
|
|||||||
Reference in New Issue
Block a user