diff --git a/ludu-admin-vue.iml b/ludu-admin-vue.iml new file mode 100644 index 00000000..8021953e --- /dev/null +++ b/ludu-admin-vue.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/api/parking/white/index.ts b/src/api/parking/white/index.ts index c213787d..11c8d73d 100644 --- a/src/api/parking/white/index.ts +++ b/src/api/parking/white/index.ts @@ -12,6 +12,15 @@ export interface WhiteVO { dept: string // 部门 memo: string // 备注 source: string // 来源 + name: string // + carType: string + areaId: number + areaStart: string + areaEnd: string + address: string + phone: string + plateColor: string + } // 白名单管理 API diff --git a/src/api/ticket/flight/index.ts b/src/api/ticket/flight/index.ts new file mode 100644 index 00000000..f0e1dc11 --- /dev/null +++ b/src/api/ticket/flight/index.ts @@ -0,0 +1,47 @@ +import request from '@/config/axios' + +// 航班 VO +export interface FlightVO { + id: number // id + flightName: string // 航班名称 +} + + +// 航班 API +export const FlightApi = { + + //查询航班下拉框数据 + getFlightName: async () =>{ + return await request.get({ url : `/ticket/flight/flightNameOption`}) + }, + + // 查询航班分页 + getFlightPage: async (params: any) => { + return await request.get({ url: `/ticket/flight/page`, params }) + }, + + // 查询航班详情 + getFlight: async (id: number) => { + return await request.get({ url: `/ticket/flight/get?id=` + id }) + }, + + // 新增航班 + createFlight: async (data: FlightVO) => { + return await request.post({ url: `/ticket/flight/create`, data }) + }, + + // 修改航班 + updateFlight: async (data: FlightVO) => { + return await request.put({ url: `/ticket/flight/update`, data }) + }, + + // 删除航班 + deleteFlight: async (id: number) => { + return await request.delete({ url: `/ticket/flight/delete?id=` + id }) + }, + + // 导出航班 Excel + exportFlight: async (params) => { + return await request.download({ url: `/ticket/flight/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/api/ticket/shiproute/index.ts b/src/api/ticket/shiproute/index.ts new file mode 100644 index 00000000..58b791e9 --- /dev/null +++ b/src/api/ticket/shiproute/index.ts @@ -0,0 +1,47 @@ +import request from '@/config/axios' + +// 航线 VO +export interface ShipRouteVO { + id: number // id + flightId: number // 航班 + routeName: string // 航线名称 +} + +// 航线 API +export const ShipRouteApi = { + + //查询航班下拉框数据 + getRouteName: async () =>{ + return await request.get({ url : `/ticket/ship-route/routeNameOption`}) + }, + + // 查询航线分页 + getShipRoutePage: async (params: any) => { + return await request.get({ url: `/ticket/ship-route/page`, params }) + }, + + // 查询航线详情 + getShipRoute: async (id: number) => { + return await request.get({ url: `/ticket/ship-route/get?id=` + id }) + }, + + // 新增航线 + createShipRoute: async (data: ShipRouteVO) => { + return await request.post({ url: `/ticket/ship-route/create`, data }) + }, + + // 修改航线 + updateShipRoute: async (data: ShipRouteVO) => { + return await request.put({ url: `/ticket/ship-route/update`, data }) + }, + + // 删除航线 + deleteShipRoute: async (id: number) => { + return await request.delete({ url: `/ticket/ship-route/delete?id=` + id }) + }, + + // 导出航线 Excel + exportShipRoute: async (params) => { + return await request.download({ url: `/ticket/ship-route/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/api/ticket/todayflight/index.ts b/src/api/ticket/todayflight/index.ts new file mode 100644 index 00000000..d3117d9d --- /dev/null +++ b/src/api/ticket/todayflight/index.ts @@ -0,0 +1,43 @@ +import request from '@/config/axios' + +// 今日航班 VO +export interface TodayFlightVO { + id: number // id + shipRouteId: number // 航线 + classes: string // 班次 + flightDate: string // 当日日期 + startTime: string // 开始时间 +} + +// 今日航班 API +export const TodayFlightApi = { + // 查询今日航班分页 + getTodayFlightPage: async (params: any) => { + return await request.get({ url: `/ticket/today-flight/page`, params }) + }, + + // 查询今日航班详情 + getTodayFlight: async (id: number) => { + return await request.get({ url: `/ticket/today-flight/get?id=` + id }) + }, + + // 新增今日航班 + createTodayFlight: async (data: TodayFlightVO) => { + return await request.post({ url: `/ticket/today-flight/create`, data }) + }, + + // 修改今日航班 + updateTodayFlight: async (data: TodayFlightVO) => { + return await request.put({ url: `/ticket/today-flight/update`, data }) + }, + + // 删除今日航班 + deleteTodayFlight: async (id: number) => { + return await request.delete({ url: `/ticket/today-flight/delete?id=` + id }) + }, + + // 导出今日航班 Excel + exportTodayFlight: async (params) => { + return await request.download({ url: `/ticket/today-flight/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/views/parking/appearancerecord/index.vue b/src/views/parking/appearancerecord/index.vue index a8af4d00..5d3a6444 100644 --- a/src/views/parking/appearancerecord/index.vue +++ b/src/views/parking/appearancerecord/index.vue @@ -26,15 +26,15 @@ class="!w-240px" /> - - - + + + + + + + + + 搜索 重置 - - 新增 - + + + + + + + +