能源管理初版

This commit is contained in:
砂糖
2025-09-28 14:38:41 +08:00
parent 16776ffdc8
commit ef8ba712df
25 changed files with 2472 additions and 32 deletions

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询位置列表
export function listLocation(query) {
return request({
url: '/ems/location/list',
method: 'get',
params: query
})
}
// 查询位置详细
export function getLocation(locationId) {
return request({
url: '/ems/location/' + locationId,
method: 'get'
})
}
// 新增位置
export function addLocation(data) {
return request({
url: '/ems/location',
method: 'post',
data: data
})
}
// 修改位置
export function updateLocation(data) {
return request({
url: '/ems/location',
method: 'put',
data: data
})
}
// 删除位置
export function delLocation(locationId) {
return request({
url: '/ems/location/' + locationId,
method: 'delete'
})
}