From d498a2062a1187dc0f0986ef3dc4d05ab19b4776 Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Tue, 20 Aug 2024 10:01:13 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E5=81=9C=E8=BD=A6=E5=9C=BA-=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E6=8A=AC=E6=9D=A0=E6=A8=A1=E5=9D=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../instructiondelivery/liftingrod/index.ts | 83 ++++++++++--------- .../liftingrod/LiftingRodForm.vue | 7 ++ .../instructiondelivery/liftingrod/index.vue | 14 +++- 3 files changed, 62 insertions(+), 42 deletions(-) diff --git a/src/api/parking/instructiondelivery/liftingrod/index.ts b/src/api/parking/instructiondelivery/liftingrod/index.ts index c366916d..fa6134a3 100644 --- a/src/api/parking/instructiondelivery/liftingrod/index.ts +++ b/src/api/parking/instructiondelivery/liftingrod/index.ts @@ -1,41 +1,42 @@ -import request from '@/config/axios' - -// 远程抬杠日志 VO -export interface LiftingRodVO { - id: number // id - parkNumber: string // 停车场编号 - passagewayId: string // 通道Id -} - -// 远程抬杠日志 API -export const LiftingRodApi = { - // 查询远程抬杠日志分页 - getLiftingRodPage: async (params: any) => { - return await request.get({ url: `/parking/lifting-rod/page`, params }) - }, - - // 查询远程抬杠日志详情 - getLiftingRod: async (id: number) => { - return await request.get({ url: `/parking/lifting-rod/get?id=` + id }) - }, - - // 新增远程抬杠日志 - createLiftingRod: async (data: LiftingRodVO) => { - return await request.post({ url: `/parking/lifting-rod/create`, data }) - }, - - // 修改远程抬杠日志 - updateLiftingRod: async (data: LiftingRodVO) => { - return await request.put({ url: `/parking/lifting-rod/update`, data }) - }, - - // 删除远程抬杠日志 - deleteLiftingRod: async (id: number) => { - return await request.delete({ url: `/parking/lifting-rod/delete?id=` + id }) - }, - - // 导出远程抬杠日志 Excel - exportLiftingRod: async (params) => { - return await request.download({ url: `/parking/lifting-rod/export-excel`, params }) - }, -} \ No newline at end of file +import request from '@/config/axios' + +// 远程抬杠日志 VO +export interface LiftingRodVO { + id: number // id + parkNumber: string // 停车场编号 + passagewayId: string // 通道Id + status: number // 状态 +} + +// 远程抬杠日志 API +export const LiftingRodApi = { + // 查询远程抬杠日志分页 + getLiftingRodPage: async (params: any) => { + return await request.get({ url: `/parking/lifting-rod/page`, params }) + }, + + // 查询远程抬杠日志详情 + getLiftingRod: async (id: number) => { + return await request.get({ url: `/parking/lifting-rod/get?id=` + id }) + }, + + // 新增远程抬杠日志 + createLiftingRod: async (data: LiftingRodVO) => { + return await request.post({ url: `/parking/lifting-rod/create`, data }) + }, + + // 修改远程抬杠日志 + updateLiftingRod: async (data: LiftingRodVO) => { + return await request.put({ url: `/parking/lifting-rod/update`, data }) + }, + + // 删除远程抬杠日志 + deleteLiftingRod: async (id: number) => { + return await request.delete({ url: `/parking/lifting-rod/delete?id=` + id }) + }, + + // 导出远程抬杠日志 Excel + exportLiftingRod: async (params) => { + return await request.download({ url: `/parking/lifting-rod/export-excel`, params }) + }, +} diff --git a/src/views/parking/instructiondelivery/liftingrod/LiftingRodForm.vue b/src/views/parking/instructiondelivery/liftingrod/LiftingRodForm.vue index 72b37b1e..31984ae3 100644 --- a/src/views/parking/instructiondelivery/liftingrod/LiftingRodForm.vue +++ b/src/views/parking/instructiondelivery/liftingrod/LiftingRodForm.vue @@ -13,6 +13,11 @@ + + + 请选择字典生成 + +