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