zhgdlarge/src/api/modules/vehicle.ts

52 lines
1.9 KiB
TypeScript
Raw Normal View History

import http from "@/api";
const BASEURL = import.meta.env.VITE_API_URL;
// 获取车辆通过信息
export const getCarPassRecordApi = (params: {}) => {
2024-04-13 11:08:23 +08:00
return http.post(BASEURL + `/xmgl/carPassRecord/newestCarPassRecord`, params, { headers: { noLoading: true } });
};
// 获取出入场记录
export const getEntryAndExitRecordsApi = (params: {}) => {
2023-07-28 19:43:56 +08:00
return http.post(BASEURL + `/xmgl/carPassRecord/getCarPassRecordList`, params);
};
// 获取出入场车辆统计
export const getEntryAndExitCountApi = (params: {}) => {
2024-04-13 11:08:23 +08:00
return http.get(BASEURL + `/xmgl/carPassRecord/getTodayOutInNumber`, params, { headers: { noLoading: true } });
};
// 获取出入场车辆列表
export const getEntryAndExitListApi = (params: {}) => {
2024-04-13 11:08:23 +08:00
return http.post(BASEURL + `/xmgl/carPassRecord/page`, params, { headers: { noLoading: true } });
};
2024-10-15 15:36:21 +08:00
// 测速-历史记录
export const carMeasureSpeedData = (params: {}) => {
return http.get(BASEURL + `/xmgl/carMeasureSpeedData/page`, params, { headers: { noLoading: true } });
};
// 测速-摄像头数据
export const carMeasureItemList = (params: {}) => {
return http.post(BASEURL + `/xmgl/carMeasureSpeedBigScreen/selectEnableVideoItemList`, params, { headers: { noLoading: true } });
};
// 测速
export const statSpeedBigScreen = (params: {}) => {
return http.get(BASEURL + `/xmgl/carMeasureSpeedBigScreen/countDev`, params, { headers: { noLoading: true } });
};
// 测速-设备
export const statBigScreeneq = (params: {}) => {
return http.get(BASEURL + `/xmgl/carMeasureSpeedDev/page`, params, { headers: { noLoading: true } });
};
//测速度- 每日车辆数
export const getCarDaily = (params: {}) => {
return http.post(BASEURL + `/xmgl/carMeasureSpeedBigScreen/getCarDaily`, params, { headers: { noLoading: true } });
};
// 测速-一周趋势
export const getExceedSpeedTrend = (params: {}) => {
return http.post(BASEURL + `/xmgl/carMeasureSpeedBigScreen/getExceedSpeedTrend`, params, { headers: { noLoading: true } });
};