integrated_traffic_vue/src/request/operation_vehicle.js

92 lines
2.5 KiB
JavaScript
Raw Normal View History

2024-03-01 10:27:00 +08:00
import { post, upload } from "@/request/axios.js";
export const getVehicleColor = (params) =>
2024-03-08 17:45:29 +08:00
post("/dictionaries/getVehicleColor", { // 获取车辆颜色
2024-03-01 10:27:00 +08:00
loading: false,
...params,
});
export const getTransportationEnterprise = (params) =>
2024-03-08 17:45:29 +08:00
post("/dictionaries/getTransportationEnterprise", { // 获取运输企业
2024-03-01 10:27:00 +08:00
loading: false,
...params,
});
2024-03-06 09:26:27 +08:00
export const getMobileUnit = (params) =>
post("/dictionaries/getLevels", {
loading: false,
...params,
});
2024-03-01 10:27:00 +08:00
export const getNetworkStatus = (params) =>
2024-03-08 17:45:29 +08:00
post("/dictionaries/getNetworkStatus", { // 获取网络状态
2024-03-01 10:27:00 +08:00
loading: false,
...params,
});
export const getDynamicSupervision = (params) =>
2024-03-08 17:45:29 +08:00
post("/dictionaries/getDynamicSupervision", { // 获取动态监管
2024-03-01 10:27:00 +08:00
loading: false,
...params,
});
export const getActiveSafety = (params) =>
2024-03-08 17:45:29 +08:00
post("/dictionaries/getActiveSafety", { // 获取主动安全
2024-03-01 10:27:00 +08:00
loading: false,
...params,
});
export const getLicenseStatus = (params) =>
2024-03-08 17:45:29 +08:00
post("/dictionaries/getLicenseStatus", { // 获取行驶证状态
2024-03-01 10:27:00 +08:00
loading: false,
...params,
});
export const getTransportCategory = (params) =>
2024-03-08 17:45:29 +08:00
post("/dictionaries/getTransportCategory", { // 获取运输类别
2024-03-01 10:27:00 +08:00
loading: false,
...params,
});
export const getBelongingDepartment = (params) =>
2024-03-08 17:45:29 +08:00
post("/dictionaries/getBelongingDepartment", { // 获取归属部门
2024-03-01 10:27:00 +08:00
loading: false,
...params,
});
2024-03-01 14:32:47 +08:00
export const getVehicleType = (params) =>
2024-03-08 17:45:29 +08:00
post("/dictionaries/getVehicleType", { // 获取车辆类型
2024-03-01 14:32:47 +08:00
loading: false,
...params,
});
2024-03-01 10:27:00 +08:00
export const getFnGetFuelType = (params) =>
2024-03-08 17:45:29 +08:00
post("/dictionaries/getFnGetFuelType", { // 获取燃料类型
2024-03-01 10:27:00 +08:00
loading: false,
...params,
});
export const getEmissionStandard = (params) =>
2024-03-08 17:45:29 +08:00
post("/dictionaries/getEmissionStandard", { // 获取排放标准
2024-03-01 10:27:00 +08:00
loading: false,
...params,
});
2024-03-08 17:45:29 +08:00
export const getOperationList = (params) =>
post("/operatingvehicles/list", params); // 运营车辆列表
2024-03-01 10:27:00 +08:00
2024-03-06 09:26:27 +08:00
export const setOperationVehicleDelete = (params) =>
2024-03-08 17:45:29 +08:00
post("/operatingvehicles/delete", params); // 删除运营车辆信息
2024-03-06 09:26:27 +08:00
2024-03-01 10:27:00 +08:00
export const addOperatingVehicleInfo = (params) =>
2024-03-08 17:45:29 +08:00
upload("/operatingvehicles/add", params); // 添加运营车辆信息
2024-03-01 10:27:00 +08:00
export const findByIdOperatingVehicleInfo = (params) =>
2024-03-08 17:45:29 +08:00
post("/operatingvehicles/goEdit", params); // 根据Id获取运营车辆信息
2024-03-01 10:27:00 +08:00
export const editOperatingVehicleInfo = (params) =>
upload("/operatingvehicles/edit", params); // 修改运营车辆
2024-03-08 17:45:29 +08:00