zhgdlarge/src/api/modules/vehicle.ts
2025-04-02 19:05:24 +08:00

52 lines
1.9 KiB
TypeScript

import http from "@/api";
const BASEURL = import.meta.env.VITE_API_URL;
// 获取车辆通过信息
export const getCarPassRecordApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/carPassRecord/newestCarPassRecord`, params, { headers: { noLoading: true } });
};
// 获取出入场记录
export const getEntryAndExitRecordsApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/carPassRecord/getCarPassRecordList`, params);
};
// 获取出入场车辆统计
export const getEntryAndExitCountApi = (params: {}) => {
return http.get(BASEURL + `/xmgl/carPassRecord/getTodayOutInNumber`, params, { headers: { noLoading: true } });
};
// 获取出入场车辆列表
export const getEntryAndExitListApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/carPassRecord/page`, params, { headers: { noLoading: true } });
};
// 测速-历史记录
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 } });
};