能源监控
This commit is contained in:
54
src/api/monitoring/energyOverlimitLog.js
Normal file
54
src/api/monitoring/energyOverlimitLog.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建能源超限记录
|
||||
export function createEnergyOverlimitLog(data) {
|
||||
return request({
|
||||
url: '/monitoring/energy-overlimit-log/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新能源超限记录
|
||||
export function updateEnergyOverlimitLog(data) {
|
||||
return request({
|
||||
url: '/monitoring/energy-overlimit-log/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除能源超限记录
|
||||
export function deleteEnergyOverlimitLog(id) {
|
||||
return request({
|
||||
url: '/monitoring/energy-overlimit-log/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得能源超限记录
|
||||
export function getEnergyOverlimitLog(id) {
|
||||
return request({
|
||||
url: '/monitoring/energy-overlimit-log/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得能源超限记录分页
|
||||
export function getEnergyOverlimitLogPage(data) {
|
||||
return request({
|
||||
url: '/monitoring/energy-overlimit-log/page',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 导出能源超限记录 Excel
|
||||
export function exportEnergyOverlimitLogExcel(query) {
|
||||
return request({
|
||||
url: '/monitoring/energy-overlimit-log/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
37
src/api/monitoring/energyReport.js
Normal file
37
src/api/monitoring/energyReport.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获得能耗统计查询分页
|
||||
export function energyReportPage(data) {
|
||||
return request({
|
||||
url: '/monitoring/energy-report/page',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获得能耗统计报表分页
|
||||
export function energyReportPageAuto(data) {
|
||||
return request({
|
||||
url: '/monitoring/energy-report/pageAuto',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 导出能耗统计查询
|
||||
export function energyReportPageExport(data) {
|
||||
return request({
|
||||
url: '/monitoring/energy-report/export',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 导出能耗统计报表
|
||||
export function energyReportPageExportAuto(data) {
|
||||
return request({
|
||||
url: '/monitoring/energy-report/exportAuto',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
62
src/api/monitoring/energyStatistics.js
Normal file
62
src/api/monitoring/energyStatistics.js
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建能源统计主
|
||||
export function createEnergyStatistics(data) {
|
||||
return request({
|
||||
url: '/monitoring/energy-statistics/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新能源统计主
|
||||
export function updateEnergyStatistics(data) {
|
||||
return request({
|
||||
url: '/monitoring/energy-statistics/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除能源统计主
|
||||
export function deleteEnergyStatistics(id) {
|
||||
return request({
|
||||
url: '/monitoring/energy-statistics/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得能源统计主
|
||||
export function getEnergyStatistics(id) {
|
||||
return request({
|
||||
url: '/monitoring/energy-statistics/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得能源统计主分页
|
||||
export function getEnergyStatisticsPage(data) {
|
||||
return request({
|
||||
url: '/monitoring/energy-statistics/page',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 导出能源统计主 Excel
|
||||
export function exportEnergyStatisticsExcel(query) {
|
||||
return request({
|
||||
url: '/monitoring/energy-statistics/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取编码
|
||||
export function getCode() {
|
||||
return request({
|
||||
url: '/monitoring/energy-statistics/getCode',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
72
src/api/monitoring/energyStatisticsDet.js
Normal file
72
src/api/monitoring/energyStatisticsDet.js
Normal file
@@ -0,0 +1,72 @@
|
||||
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
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user