2024-05-24 17:28:40 +08:00
|
|
|
import request from "@/utils/request";
|
|
|
|
|
|
|
|
// 查询报警记录列表
|
|
|
|
export function listRecord(query) {
|
|
|
|
return request({
|
|
|
|
url: "/alarm/record/list",
|
|
|
|
method: "get",
|
|
|
|
params: query,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 报警处理数量
|
2024-06-12 17:43:22 +08:00
|
|
|
export function getAlarmCount(query) {
|
2024-05-24 17:28:40 +08:00
|
|
|
return request({
|
|
|
|
url: "/alarm/record/alarmCount",
|
2024-06-12 17:43:22 +08:00
|
|
|
method: "get",
|
|
|
|
params: query,
|
2024-05-24 17:28:40 +08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 查询报警记录详细
|
|
|
|
export function getRecord(id) {
|
|
|
|
return request({
|
|
|
|
url: "/alarm/record/" + id,
|
|
|
|
method: "get",
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 修改报警记录
|
|
|
|
export function updateRecord(data) {
|
|
|
|
return request({
|
|
|
|
url: "/alarm/record",
|
|
|
|
method: "put",
|
|
|
|
data: data,
|
|
|
|
});
|
|
|
|
}
|