73 lines
2.1 KiB
TypeScript
73 lines
2.1 KiB
TypeScript
// 项目展示
|
|
import http from "@/api";
|
|
const BASEURL = import.meta.env.VITE_API_URL;
|
|
|
|
// 查询系统配置
|
|
export const getSystemConfig = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/systemConfig/queryByKey`, params);
|
|
};
|
|
|
|
// 新增系统配置
|
|
export const addSystemConfig = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/systemConfig/add`, params);
|
|
};
|
|
|
|
// 修改系统配置
|
|
export const updateSystemConfig = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/systemConfig/edit`, params);
|
|
};
|
|
|
|
// 底图图层列表
|
|
export const baseMapList = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/baseMap/list`, params);
|
|
};
|
|
|
|
// 模型gltr列表
|
|
export const gltfModelList = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/gltfModel/list`, params);
|
|
};
|
|
|
|
export const getDevList = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/monitorDev/getDevList`, params);
|
|
};
|
|
|
|
export const getStationStat = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/monitorDev/getStationStat`, params);
|
|
};
|
|
|
|
export const getTopStat = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/reviewIndex/topStat`, params);
|
|
};
|
|
|
|
export const getWorkerStat = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/reviewIndex/workerStat`, params);
|
|
};
|
|
|
|
export const getAlarmList = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/reviewIndex/alarmList`, params);
|
|
};
|
|
|
|
export const getAlarmNumStat = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/reviewIndex/alarmNumStat`, params);
|
|
};
|
|
|
|
// 车辆类型统计
|
|
export const getVehicleStat = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/vehiclePositionDev/countVehiclePositionDevCarType`, params);
|
|
};
|
|
|
|
// 车辆列表
|
|
export const getVehicleList = (params: any) => {
|
|
return http.get(BASEURL + `/xmgl/vehiclePositionDev/list`, params);
|
|
};
|
|
|
|
// 机械设备统计
|
|
export const getMachineryStat = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/reviewIndex/machineryStat`, params);
|
|
};
|
|
|
|
// 获取视频设备信息
|
|
export const getVideoItemInfo = (params: any) => {
|
|
return http.post(BASEURL + `/xmgl/videoItem/getVideoItemInfo`, params);
|
|
};
|