55 lines
1.2 KiB
JavaScript
55 lines
1.2 KiB
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 创建设备报警日志
|
||
|
export function createEquipmentAlarmLog(data) {
|
||
|
return request({
|
||
|
url: '/monitoring/equipment-alarm-log/create',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 更新设备报警日志
|
||
|
export function updateEquipmentAlarmLog(data) {
|
||
|
return request({
|
||
|
url: '/monitoring/equipment-alarm-log/update',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除设备报警日志
|
||
|
export function deleteEquipmentAlarmLog(id) {
|
||
|
return request({
|
||
|
url: '/monitoring/equipment-alarm-log/delete?id=' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获得设备报警日志
|
||
|
export function getEquipmentAlarmLog(id) {
|
||
|
return request({
|
||
|
url: '/monitoring/equipment-alarm-log/get?id=' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获得设备报警日志分页
|
||
|
export function getEquipmentAlarmLogPage(query) {
|
||
|
return request({
|
||
|
url: '/monitoring/equipment-alarm-log/page',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 导出设备报警日志 Excel
|
||
|
export function exportEquipmentAlarmLogExcel(query) {
|
||
|
return request({
|
||
|
url: '/monitoring/equipment-alarm-log/export-excel',
|
||
|
method: 'get',
|
||
|
params: query,
|
||
|
responseType: 'blob'
|
||
|
})
|
||
|
}
|