28 lines
1.3 KiB
TypeScript
28 lines
1.3 KiB
TypeScript
import http from "@/api";
|
|
const BASEURL = import.meta.env.VITE_API_URL;
|
|
|
|
// 配电箱设备统计
|
|
export const getDevStatisticsApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/electricalDev/selectElectricalDevStatistics`, params);
|
|
};
|
|
// 获取设备--实时数据
|
|
export const getRealTimeDataApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/electricalData/getRealTimeDustNoiseData`, params);
|
|
};
|
|
// 配电箱报警统计
|
|
export const getBoxAlarmStatisticsApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/electricAlarm/selectElectricAlarmStatistics`, params);
|
|
};
|
|
//获取 配电箱24小时实时数据
|
|
export const getSelectDataListApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/electricalData/selectElectricalDataListLastDayGroupByHour`, params);
|
|
};
|
|
//获取设备--下拉列表
|
|
export const getDevListApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/electricalDev/list`, params);
|
|
};
|
|
|
|
// export const getDevListApi = data => post('xmgl/electricalDev/list', data); //获取设备--下拉列表
|
|
// export const getAlarmInfoListApi = data => post('xmgl/electricAlarm/list', data); //获取设备--报警信息
|
|
// export const getHistoryApi = data => post('xmgl/electricalData/selectElectricalDataPage', data); //获取 配电箱 历史数据
|