import http from "@/api"; const BASEURL = import.meta.env.VITE_API_URL; // 查询区域列表 export const getRegionListApi = (params: {}) => { return http.post(BASEURL + `/xmgl/qualityRegion/notTreeList`, params); }; // 分页列表查询车辆(人员)定位- 实时数据信息 export const getRealtimeRecordInfo = (params: {}) => { return http.get(BASEURL + `/xmgl/vehiclePositionData/page`, params); }; // 列表查询车辆(人员)定位- 实时数据信息 export const getRealtimeRecordList = (params: {}) => { return http.get(BASEURL + `/xmgl/vehiclePositionData/list`, params); }; // 车辆定位-设备中台 export const getstandardDevListApi = (params: {}) => { return http.get(BASEURL + `/xmgl/vehiclePositionDev/page`, params); }; export const addstandardDevApi = (params: {}) => { return http.post(BASEURL + `/xmgl/vehiclePositionDev/add`, params); }; export const editstandardDevApi = (params: {}) => { return http.post(BASEURL + `/xmgl/vehiclePositionDev/edit`, params); }; export const deletestandardDevApi = (params: {}) => { return http.post(BASEURL + `/xmgl/vehiclePositionDev/delete`, params); }; export const getVehiclePositionFence = (params: {}) => { return http.get(BASEURL + `/xmgl/vehiclePositionFence/list`, params); }; export const addVehiclePositionFence = (params: {}) => { return http.post(BASEURL + `/xmgl/vehiclePositionFence/add`, params); }; export const editVehiclePositionFence = (params: {}) => { return http.post(BASEURL + `/xmgl/vehiclePositionFence/edit`, params); }; export const deleteVehiclePositionFence = (params: {}) => { return http.post(BASEURL + `/xmgl/vehiclePositionFence/delete`, params); }; // 查询车辆日行数据 export const getVehiclePositionDayRecord = (params: {}) => { return http.get(BASEURL + `/xmgl/vehiclePositionDayRecord/list`, params); }; // 智能安全帽--分类查询设备列表 export const getHatDevOptionApi = (params: {}) => { return http.get(BASEURL + `/xmgl/safetyHatDev/list`, params, { headers: { noLoading: true } }); }; // 智能安全帽--分类查询设备列表-分页 export const getHatDevOptionPageApi = (params: {}) => { return http.get(BASEURL + `/xmgl/safetyHatDev/page`, params); }; // 智能安全帽--分类查询设备树 export const getEnterpriseTreeApi = (params: {}) => { return http.get(BASEURL + `/xmgl/safetyHatDev/enterprise/tree/list`, params); }; // 智能安全帽--查询设备状态总数 export const getSafeHatTypeTotalApi = (params: {}) => { return http.post(BASEURL + `/xmgl/safetyHatDev/countSafetyHatDev`, params); }; // 智能安全帽--查询周报警数据 export const getWeekAlarmDataApi = (params: {}) => { return http.post(BASEURL + `/xmgl/safetyHatAlarm/getRecentWeekAlarm`, params, { headers: { noLoading: true } }); }; // 智能安全帽--查询围栏信息 export const getSuroundInfoApi = (params: {}) => { return http.get(BASEURL + `/xmgl/safetyHatFence/list`, params, { headers: { noLoading: true } }); }; // 智能安全帽--查询报警信息 export const getAlarmRecordInfoApi = (params: {}) => { return http.get(BASEURL + `/xmgl/safetyHatAlarm/list`, params); }; // 智能安全帽--查询报警信息-分页 export const getAlarmRecordInfoApiPage = (params: {}) => { return http.get(BASEURL + `/xmgl/safetyHatAlarm/page`, params, { headers: { noLoading: true } }); }; // 智能安全帽--查询实时数据信息 export const getRealtimeDataApi = (params: {}) => { return http.get(BASEURL + `/xmgl/safetyHatData/list`, params); }; // 智能安全帽--查询安全帽日行数据 export const getSafeHatDayRecordApi = (params: {}) => { return http.get(BASEURL + `/xmgl/safetyHatData/list`, params); }; // 获取每个设备最新一条实时数据信息 export const getSafetyHatNewestApi = (params: {}) => { return http.post(BASEURL + `/xmgl/safetyHatData/getNewestList`, params); }; // 智能安全帽--删除围栏 export const deleteSafehatFence = (params: {}) => { return http.post(BASEURL + `/xmgl/safetyHatFence/deleteBatch`, params); }; // 智能安全帽--添加围栏 export const addSafeHatPositionFence = (params: {}) => { return http.post(BASEURL + `/xmgl/safetyHatFence/add`, params); }; // 智能安全帽--查询围栏绑定人员 export const getHatFenceByIdApi = (params: {}) => { return http.get(BASEURL + `/xmgl/safetyHatFence/queryById`, params); }; // 智能安全帽--绑定人员 export const bindWorkerApi = (params: {}) => { return http.post(BASEURL + `/xmgl/safetyHatDev/bind`, params); }; // 智能安全帽--解绑人员 export const unBindWorkerApi = (params: {}) => { return http.post(BASEURL + `/xmgl/safetyHatDev/unBind`, params); }; // 智能安全帽--查询报警配置 export const getAlarmConfigApi = (params: {}) => { return http.post(BASEURL + `/xmgl/safetyHatAlarmConfig/list`, params, { headers: { noLoading: true } }); }; // 智能安全帽--查询围栏绑定人员 export const getWorkerListByRegionApi = (params: {}) => { return http.post(BASEURL + `/xmgl/safetyHatData/getWorkerListByRegion`, params); };