ipc-app/api/alarm/alarm.js

36 lines
626 B
JavaScript

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