2024-02-28 20:35:20 +08:00
|
|
|
import createAxios from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
//事件报告
|
|
|
|
|
export function getEventReport(data) {
|
|
|
|
|
return createAxios({
|
|
|
|
|
url: '/event-boot/report/getEventReport',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 生成报告
|
|
|
|
|
export function getAreaReport(data) {
|
|
|
|
|
return createAxios({
|
2024-03-01 13:45:29 +08:00
|
|
|
url: '/event-boot/report/getAreaReport',
|
|
|
|
|
method: 'post',
|
2024-02-28 20:35:20 +08:00
|
|
|
data,
|
2024-03-01 13:45:29 +08:00
|
|
|
responseType: 'blob'
|
|
|
|
|
})
|
2024-02-28 20:35:20 +08:00
|
|
|
}
|
|
|
|
|
//查询所有模板
|
|
|
|
|
export function getList(data) {
|
|
|
|
|
return createAxios({
|
2024-03-01 13:45:29 +08:00
|
|
|
url: '/system-boot/EventTemplate/getList',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
2024-02-28 20:35:20 +08:00
|
|
|
}
|
|
|
|
|
export function selectReleation(data) {
|
|
|
|
|
return createAxios({
|
2024-03-01 13:45:29 +08:00
|
|
|
url: '/system-boot/EventTemplate/selectReleation',
|
|
|
|
|
method: 'post',
|
|
|
|
|
params: data
|
|
|
|
|
})
|
2024-02-29 11:13:07 +08:00
|
|
|
}
|
|
|
|
|
export function getLineExport(data) {
|
|
|
|
|
return createAxios({
|
2024-03-01 13:45:29 +08:00
|
|
|
url: '/event-boot/report/getLineExport',
|
|
|
|
|
method: 'post',
|
2024-02-29 11:13:07 +08:00
|
|
|
data: data,
|
2024-03-01 13:45:29 +08:00
|
|
|
responseType: 'blob'
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-03-04 20:33:32 +08:00
|
|
|
export function getVoltage(data: any) {
|
2024-03-01 13:45:29 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/event-boot/report/getVoltage',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-03-04 20:33:32 +08:00
|
|
|
export function getGeneralSituation(data: any) {
|
2024-03-01 13:45:29 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/event-boot/report/getGeneralSituation',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-03-04 20:33:32 +08:00
|
|
|
export function getTransientValue(data: any) {
|
|
|
|
|
return createAxios({
|
|
|
|
|
url: '/event-boot/transient/getTransientValue',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|