zhgdlarge/src/api/modules/aIEarlyWarn.ts

29 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-10-13 17:50:08 +08:00
// AI预警接口API
import http from "@/api";
const BASEURL = import.meta.env.VITE_API_URL;
2023-10-21 15:27:13 +08:00
// 查询近七天或近30天或今日或24小时报警趋势
export const getAlarmTrendList = (params: {}) => {
2024-04-13 11:08:23 +08:00
return http.post(BASEURL + `/xmgl/aiAnalyseHardWareAlarmRecord/selectAiAnalyseHardWareAlarmTrendList`, params, { headers: { noLoading: true } });
2023-10-21 15:27:13 +08:00
};
// 查询所有各预警类型预警数
export const getAlarmTotal = (params: {}) => {
2024-04-13 11:08:23 +08:00
return http.post(BASEURL + `/xmgl/aiAnalyseHardWareAlarmRecord/getAiAnalyseHardWareAlarmTotal`, params, { headers: { noLoading: true } });
2023-10-21 15:27:13 +08:00
};
// 3.查询设备报警记录列表
export const getAlarmList = (params: {}) => {
2024-04-13 11:08:23 +08:00
return http.post(BASEURL + `/xmgl/aiAnalyseHardWareAlarmRecord/selectAiAnalyseHardWareAlarmList`, params, { headers: { noLoading: true } });
2023-10-21 15:27:13 +08:00
};
// 查询当前实时数据
export const getRealTimeTotal = (params: {}) => {
2024-04-13 11:08:23 +08:00
return http.post(BASEURL + `/xmgl/aiAnalyseHardWareAlarmRecord/countAiAnalyseHardWareAlarmTotal`, params, { headers: { noLoading: true } });
2023-10-21 15:27:13 +08:00
};
// 查询当前实时数据
export const getAlarmTypeOption = (params: {}) => {
2024-04-13 11:08:23 +08:00
return http.get(BASEURL + `/xmgl/dictionaryItem/list?dictionaryEncoding=ai_analyse_hard_ware_alarm_record_type`, params, { headers: { noLoading: true } });
};