zhgdyun/src/api/modules/tunnelPosition.ts
2023-09-25 13:33:47 +08:00

27 lines
925 B
TypeScript

import http from "@/api";
const BASEURL = import.meta.env.VITE_API_URL;
// 项目信息
export const getProjectInfoBySnApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/projectExtend/getProjectExtendInfo`, params);
};
// 今日统计
export const getLocationTunnelApi = (params: {}) => {
return http.get(BASEURL + `/xmgl/locationTunnel/list`, params);
};
// 报警信息
export const getTagLowVoltageAlarmApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/locationTagLowVoltageAlarm/countLocationTagLowVoltageAlarmEveryDay`, params);
};
// 地图上的人(场内人员名单)
export const getRealTimeLocationWorkerApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/locationData/getRealTimeLocationWorker`, params);
};
// 班组统计
export const getCountRealTimeLocationWorkerApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/locationData/countRealTimeLocationWorker`, params);
};