37 lines
648 B
JavaScript
37 lines
648 B
JavaScript
import request from "@/utils/request";
|
|
|
|
// 查询报警记录列表
|
|
export function listRecord(query) {
|
|
return request({
|
|
url: "/alarm/record/list",
|
|
method: "get",
|
|
params: query,
|
|
});
|
|
}
|
|
|
|
// 报警处理数量
|
|
export function getAlarmCount(query) {
|
|
return request({
|
|
url: "/alarm/record/alarmCount",
|
|
method: "get",
|
|
params: query,
|
|
});
|
|
}
|
|
|
|
|
|
// 查询报警记录详细
|
|
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,
|
|
});
|
|
} |