72 lines
1.6 KiB
JavaScript
72 lines
1.6 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 创建能源统计详细表
|
|
export function createEnergyStatisticsDet(data) {
|
|
return request({
|
|
url: '/monitoring/energy-statistics-det/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 更新能源统计详细表
|
|
export function updateEnergyStatisticsDet(data) {
|
|
return request({
|
|
url: '/monitoring/energy-statistics-det/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除能源统计详细表
|
|
export function deleteEnergyStatisticsDet(id) {
|
|
return request({
|
|
url: '/monitoring/energy-statistics-det/delete?id=' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获得能源统计详细表
|
|
export function getEnergyStatisticsDet(id) {
|
|
return request({
|
|
url: '/monitoring/energy-statistics-det/get?id=' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得能源统计详细表分页
|
|
export function getEnergyStatisticsDetPage(data) {
|
|
return request({
|
|
url: '/monitoring/energy-statistics-det/page',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 导出能源统计详细表 Excel
|
|
export function exportEnergyStatisticsDetExcel(query) {
|
|
return request({
|
|
url: '/monitoring/energy-statistics-det/export-excel',
|
|
method: 'get',
|
|
params: query,
|
|
responseType: 'blob'
|
|
})
|
|
}
|
|
|
|
// 获得 新增参数关联 分页
|
|
export function addParamPage(data) {
|
|
return request({
|
|
url: '/monitoring/energy-statistics-det/addParamPage',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除(批量)
|
|
export function deleteMany(data) {
|
|
return request({
|
|
url: '/monitoring/energy-statistics-det/deleteMany',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
} |