60 lines
2.2 KiB
TypeScript
60 lines
2.2 KiB
TypeScript
import http from "@/api";
|
|
const BASEURL = import.meta.env.VITE_API_URL;
|
|
|
|
// 分页列表查询车辆(人员)定位- 报警记录信息
|
|
export const getAlarmRecordInfo = (params: {}) => {
|
|
return http.get(BASEURL + `/xmgl/vehiclePositionAlarm/list`, 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 getCarDevOption = (params: {}) => {
|
|
return http.get(BASEURL + `/xmgl/vehiclePositionDev/list`, params);
|
|
};
|
|
|
|
// 查询设备状态总数
|
|
export const getFenceTypeTotal = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/vehiclePositionDev/countVehiclePositionDev`, params);
|
|
};
|
|
|
|
// 查询车辆日行数据
|
|
export const getVehiclePositionDayRecord = (params: {}) => {
|
|
return http.get(BASEURL + `/xmgl/vehiclePositionDayRecord/list`, params);
|
|
};
|