import axios from "@/assets/js/axios"; /** * 查询最近7天驾驶告警统计 * @return {Promise> | *} */ export const searchRecentDaysDriveAlarmApi = ()=>{ return axios({ method: "GET", url: "/monitor/boxCameraAlarm/statisticDriveAlarmRegularLimits", }); } /** * 查询今天的驾驶告警 * @return {Promise> | *} */ export const searchTodayDriveAlarmApi = ()=>{ return axios({ method: "GET", url: "/monitor/boxCameraAlarm/statisticDriveAlarmRegularLimitsToday", }); } export const searchDriveListApi = (name, page, pageSize)=>{ name = name?name:null; return axios({ method: "GET", url: "/monitor/box/select", params: { name, page, pageSize }, }); } /** * 查询车辆名称 * @return {Promise> | *} */ export const searchAllDrivesApi = ()=>{ return axios({ method: "GET", url: "/monitor/box/selectNameByName", }); } /** * 添加车辆 * @param name 车辆名称 * @param boxSn 车辆编码 * @return {Promise> | *} */ export const addDriveApi = (name, boxSn)=>{ return axios({ method: "POST", url: "/monitor/box/addNewBox", data: { name, boxSn }, }); } /** * 根据车辆ID删除指定车辆 * @param id 车辆ID * @return {Promise> | *} */ export const deleteDriveApi = (id)=>{ return axios({ method: "POST", url: "/monitor/box/deleteBox", params: { id }, }); }