重构
This commit is contained in:
@ -8,6 +8,24 @@ export function getSiteInfoList({siteName, startTime, endTime, pageSize, pageNum
|
||||
})
|
||||
}
|
||||
|
||||
// 新增站点
|
||||
export function addSite(data) {
|
||||
return request({
|
||||
url: `/ems/siteConfig/addSite`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 编辑站点
|
||||
export function updateSite(data) {
|
||||
return request({
|
||||
url: `/ems/siteConfig/updateSite`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 设备列表
|
||||
export function getDeviceInfoList(data) {
|
||||
return request({
|
||||
@ -102,6 +120,23 @@ export function getDeviceListBySiteAndCategory({siteId, deviceCategory}) {
|
||||
})
|
||||
}
|
||||
|
||||
// 获取单站监控项目点位映射
|
||||
export function getSingleMonitorProjectPointMapping(siteId) {
|
||||
return request({
|
||||
url: `/ems/siteConfig/getSingleMonitorProjectPointMapping?siteId=${siteId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 保存单站监控项目点位映射
|
||||
export function saveSingleMonitorProjectPointMapping(data) {
|
||||
return request({
|
||||
url: `/ems/siteConfig/saveSingleMonitorProjectPointMapping`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//新增设备保护
|
||||
export function addProtectPlan(data) {
|
||||
return request({
|
||||
@ -163,6 +198,130 @@ export function importPointList(data) {
|
||||
})
|
||||
}
|
||||
|
||||
// 按站点导入模板点位配置
|
||||
export function importPointTemplateBySite(data) {
|
||||
return request({
|
||||
url: `/ems/pointConfig/importTemplateBySite`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// CSV导入点位配置
|
||||
export function importPointConfigCsv(data) {
|
||||
return request({
|
||||
url: `/ems/pointConfig/importCsv`,
|
||||
method: 'post',
|
||||
data,
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 点位配置列表
|
||||
export function getPointMatchList(params) {
|
||||
return request({
|
||||
url: `/ems/pointConfig/list`,
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 点位配置详情
|
||||
export function getPointMatchDetail(id) {
|
||||
return request({
|
||||
url: `/ems/pointConfig/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 新增点位配置
|
||||
export function addPointMatch(data) {
|
||||
return request({
|
||||
url: `/ems/pointConfig`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 编辑点位配置
|
||||
export function updatePointMatch(data) {
|
||||
return request({
|
||||
url: `/ems/pointConfig`,
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除点位配置
|
||||
export function deletePointMatch(ids) {
|
||||
return request({
|
||||
url: `/ems/pointConfig/${ids}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
|
||||
// 点位配置-批量获取最新值(新接口)
|
||||
export function getPointConfigLatestValues(data) {
|
||||
return request({
|
||||
url: `/ems/pointConfig/latestValues`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 点位配置-曲线数据(新接口)
|
||||
export function getPointConfigCurve(data) {
|
||||
return request({
|
||||
url: `/ems/pointConfig/curve`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 计算点配置列表
|
||||
export function getPointCalcConfigList(params) {
|
||||
return request({
|
||||
url: `/ems/pointCalcConfig/list`,
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 计算点配置详情
|
||||
export function getPointCalcConfigDetail(id) {
|
||||
return request({
|
||||
url: `/ems/pointCalcConfig/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 新增计算点配置
|
||||
export function addPointCalcConfig(data) {
|
||||
return request({
|
||||
url: `/ems/pointCalcConfig`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 编辑计算点配置
|
||||
export function updatePointCalcConfig(data) {
|
||||
return request({
|
||||
url: `/ems/pointCalcConfig`,
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除计算点配置
|
||||
export function deletePointCalcConfig(ids) {
|
||||
return request({
|
||||
url: `/ems/pointCalcConfig/${ids}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
|
||||
//mqtt
|
||||
export function getMqttList({pageSize, pageNum, mqttTopic, topicName, siteId}) {
|
||||
|
||||
Reference in New Issue
Block a user