重构
This commit is contained in:
123
api/ems/site.js
123
api/ems/site.js
@ -24,14 +24,22 @@ export function getBMSBatteryCluster(data) {
|
||||
})
|
||||
}
|
||||
|
||||
//获取电表数据
|
||||
export function getAmmeterDataList(data) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getAmmeterDataList`, //?siteId=${siteId}
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
//获取电表数据
|
||||
export function getAmmeterDataList(data) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getAmmeterDataList`, //?siteId=${siteId}
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取所有设备
|
||||
export function getDeviceList(siteId) {
|
||||
return request({
|
||||
url: `/ems/siteConfig/getDeviceList?siteId=${siteId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
//获取pcs头部的设备信息
|
||||
export function getRunningHeadInfo(data) {
|
||||
@ -41,47 +49,51 @@ export function getRunningHeadInfo(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
//获取pcs列表
|
||||
export function getPcsDetailInfo(data) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getPcsDetailInfo`, //?siteId=${siteId}
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
//获取pcs列表
|
||||
export function getPcsDetailInfo(data) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getPcsDetailInfo`, //?siteId=${siteId}
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//获取pcs名称列表
|
||||
export function getPcsNameList(siteId) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getPcsNameList?siteId=${siteId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
//获取单体电池 电池堆列表数据
|
||||
export function getStackNameList(data) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getStackNameList`, //?siteId=${siteId}
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
//获取单体电池 电池簇列表数据
|
||||
export function getClusterNameList(data) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getClusterNameList`, //?stackDeviceId=${stackDeviceId}&siteId=${siteId}
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
//单体电池表格数据
|
||||
export function getClusterDataInfoList(data) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getClusterDataInfoList?`, //clusterDeviceId=${clusterDeviceId}&siteId=${siteId}&stackDeviceId=${stackDeviceId}&pageSize=${pageSize}&pageNum=${pageNum}
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 单体电池图表
|
||||
export function getSingleBatteryData(data) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getSingleBatteryData`, //?siteId=${siteId}&deviceId=${deviceId}&startDate=${startDate}&endDate=${endDate}&clusterDeviceId=${clusterDeviceId}`,
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
//获取单体电池 电池堆列表数据
|
||||
export function getStackNameList(siteId) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getStackNameList?siteId=${siteId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//获取单体电池 电池簇列表数据
|
||||
export function getClusterNameList({ stackDeviceId, siteId }) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getClusterNameList?stackDeviceId=${stackDeviceId}&siteId=${siteId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//单体电池表格数据
|
||||
export function getClusterDataInfoList({ siteId, stackDeviceId, clusterDeviceId, batteryId, pageSize, pageNum }) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getClusterDataInfoList?clusterDeviceId=${clusterDeviceId}&siteId=${siteId}&stackDeviceId=${stackDeviceId}&batteryId=${batteryId}&pageSize=${pageSize}&pageNum=${pageNum}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 单体电池图表
|
||||
export function getSingleBatteryData({ siteId, deviceId, clusterDeviceId, startDate, endDate }) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getSingleBatteryData?siteId=${siteId}&deviceId=${deviceId}&startDate=${startDate}&endDate=${endDate}&clusterDeviceId=${clusterDeviceId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
//获取单个站点的基本信息
|
||||
export function getSingleSiteBaseInfo(data) {
|
||||
@ -93,11 +105,18 @@ export function getSingleSiteBaseInfo(data) {
|
||||
}
|
||||
|
||||
//单站监控 首页 总累计运行数据
|
||||
export function getDzjkHomeView(data) {
|
||||
export function getDzjkHomeView(siteId) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/homeView`, //?siteId=${siteId}
|
||||
method: 'get',
|
||||
data
|
||||
url: `/ems/siteMonitor/homeView?siteId=${siteId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 单站监控项目展示数据(字段配置 + 最新值)
|
||||
export function getProjectDisplayData(siteId) {
|
||||
return request({
|
||||
url: `/ems/siteMonitor/getProjectDisplayData?siteId=${siteId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user