From 6802e5c92eb2dcb35b1b437763d792f4ccf1f2d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E4=B8=8B?= <484014559@qq.com> Date: Thu, 22 Aug 2024 14:27:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=99=BB=E5=BD=95=E6=A8=A1=E5=9D=97=E3=80=81?= =?UTF-8?q?=E6=97=85=E5=AE=A2=E4=BF=A1=E6=81=AF=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ticket/assetLoginLog/index.ts | 47 +++ src/api/ticket/information/index.ts | 43 +++ src/views/ticket/assetLoginLog/Form.vue | 135 +++++++++ src/views/ticket/assetLoginLog/index.vue | 274 ++++++++++++++++++ .../ticket/information/InformationForm.vue | 111 +++++++ src/views/ticket/information/index.vue | 228 +++++++++++++++ 6 files changed, 838 insertions(+) create mode 100644 src/api/ticket/assetLoginLog/index.ts create mode 100644 src/api/ticket/information/index.ts create mode 100644 src/views/ticket/assetLoginLog/Form.vue create mode 100644 src/views/ticket/assetLoginLog/index.vue create mode 100644 src/views/ticket/information/InformationForm.vue create mode 100644 src/views/ticket/information/index.vue diff --git a/src/api/ticket/assetLoginLog/index.ts b/src/api/ticket/assetLoginLog/index.ts new file mode 100644 index 00000000..f723e7d6 --- /dev/null +++ b/src/api/ticket/assetLoginLog/index.ts @@ -0,0 +1,47 @@ +import request from '@/config/axios' + +// 设备登录日志 VO +export interface VO { + id: number // 编号 + loginTime: Date // 登录时间 + deviceId: string // 设备编号 + assetType: string // 设备类型 + assetName: string // 设备名称 + identificationCode: string // 识别码 + status: boolean // 登录结果 + loginRemark: string // 登录备注 + loginParameter: string // 登录参数 +} + +// 设备登录日志 API +export const Api = { + // 查询设备登录日志分页 + getPage: async (params: any) => { + return await request.get({ url: `/ticket/assetLoginLog/page`, params }) + }, + + // 查询设备登录日志详情 + get: async (id: number) => { + return await request.get({ url: `/ticket/assetLoginLog/get?id=` + id }) + }, + + // 新增设备登录日志 + create: async (data: VO) => { + return await request.post({ url: `/ticket/assetLoginLog/create`, data }) + }, + + // 修改设备登录日志 + update: async (data: VO) => { + return await request.put({ url: `/ticket/assetLoginLog/update`, data }) + }, + + // 删除设备登录日志 + delete: async (id: number) => { + return await request.delete({ url: `/ticket/assetLoginLog/delete?id=` + id }) + }, + + // 导出设备登录日志 Excel + export: async (params) => { + return await request.download({ url: `/ticket/assetLoginLog/export-excel`, params }) + } +} diff --git a/src/api/ticket/information/index.ts b/src/api/ticket/information/index.ts new file mode 100644 index 00000000..7e149efd --- /dev/null +++ b/src/api/ticket/information/index.ts @@ -0,0 +1,43 @@ +import request from '@/config/axios' + +// 旅客信息 VO +export interface InformationVO { + id: number // 编号 + deviceId: number // 设备编号 + name: string // 姓名 + idCard: string // 身份证 + commitTime: Date // 上传时间 +} + +// 旅客信息 API +export const InformationApi = { + // 查询旅客信息分页 + getInformationPage: async (params: any) => { + return await request.get({ url: `/ticket/information/page`, params }) + }, + + // 查询旅客信息详情 + getInformation: async (id: number) => { + return await request.get({ url: `/ticket/information/get?id=` + id }) + }, + + // 新增旅客信息 + createInformation: async (data: InformationVO) => { + return await request.post({ url: `/ticket/information/create`, data }) + }, + + // 修改旅客信息 + updateInformation: async (data: InformationVO) => { + return await request.put({ url: `/ticket/information/update`, data }) + }, + + // 删除旅客信息 + deleteInformation: async (id: number) => { + return await request.delete({ url: `/ticket/information/delete?id=` + id }) + }, + + // 导出旅客信息 Excel + exportInformation: async (params) => { + return await request.download({ url: `/ticket/information/export-excel`, params }) + } +} diff --git a/src/views/ticket/assetLoginLog/Form.vue b/src/views/ticket/assetLoginLog/Form.vue new file mode 100644 index 00000000..c49e724b --- /dev/null +++ b/src/views/ticket/assetLoginLog/Form.vue @@ -0,0 +1,135 @@ + + diff --git a/src/views/ticket/assetLoginLog/index.vue b/src/views/ticket/assetLoginLog/index.vue new file mode 100644 index 00000000..0c049e12 --- /dev/null +++ b/src/views/ticket/assetLoginLog/index.vue @@ -0,0 +1,274 @@ + + + diff --git a/src/views/ticket/information/InformationForm.vue b/src/views/ticket/information/InformationForm.vue new file mode 100644 index 00000000..8b573415 --- /dev/null +++ b/src/views/ticket/information/InformationForm.vue @@ -0,0 +1,111 @@ + + diff --git a/src/views/ticket/information/index.vue b/src/views/ticket/information/index.vue new file mode 100644 index 00000000..2348873c --- /dev/null +++ b/src/views/ticket/information/index.vue @@ -0,0 +1,228 @@ + + + From cb2bb97ec615e9e12508a4a4836aaaad28439c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E4=B8=8B?= <484014559@qq.com> Date: Thu, 22 Aug 2024 16:22:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E4=B8=8A=E8=A1=8C=E6=8A=A5=E6=96=87=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ticket/uplinkMessage/index.ts | 45 ++++ src/views/ticket/uplinkMessage/Form.vue | 131 ++++++++++++ src/views/ticket/uplinkMessage/index.vue | 261 +++++++++++++++++++++++ 3 files changed, 437 insertions(+) create mode 100644 src/api/ticket/uplinkMessage/index.ts create mode 100644 src/views/ticket/uplinkMessage/Form.vue create mode 100644 src/views/ticket/uplinkMessage/index.vue diff --git a/src/api/ticket/uplinkMessage/index.ts b/src/api/ticket/uplinkMessage/index.ts new file mode 100644 index 00000000..c87ddbab --- /dev/null +++ b/src/api/ticket/uplinkMessage/index.ts @@ -0,0 +1,45 @@ +import request from '@/config/axios' + +// 上行报文 VO +export interface VO { + id: number // 编号 + commitTime: Date // 上报时间 + deviceId: string // 设备编号 + deviceName: string // 设备名称 + status: boolean // 状态 + resBody: string // 上行报文 + remark: string // 备注 +} + +// 上行报文 API +export const Api = { + // 查询上行报文分页 + getPage: async (params: any) => { + return await request.get({ url: `/ticket/uplinkMessage/page`, params }) + }, + + // 查询上行报文详情 + get: async (id: number) => { + return await request.get({ url: `/ticket/uplinkMessage/get?id=` + id }) + }, + + // 新增上行报文 + create: async (data: VO) => { + return await request.post({ url: `/ticket/uplinkMessage/create`, data }) + }, + + // 修改上行报文 + update: async (data: VO) => { + return await request.put({ url: `/ticket/uplinkMessage/update`, data }) + }, + + // 删除上行报文 + delete: async (id: number) => { + return await request.delete({ url: `/ticket/uplinkMessage/delete?id=` + id }) + }, + + // 导出上行报文 Excel + export: async (params) => { + return await request.download({ url: `/ticket/uplinkMessage/export-excel`, params }) + } +} diff --git a/src/views/ticket/uplinkMessage/Form.vue b/src/views/ticket/uplinkMessage/Form.vue new file mode 100644 index 00000000..63ae52d0 --- /dev/null +++ b/src/views/ticket/uplinkMessage/Form.vue @@ -0,0 +1,131 @@ + + diff --git a/src/views/ticket/uplinkMessage/index.vue b/src/views/ticket/uplinkMessage/index.vue new file mode 100644 index 00000000..b2b58c53 --- /dev/null +++ b/src/views/ticket/uplinkMessage/index.vue @@ -0,0 +1,261 @@ + + +