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] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=90=8E=E5=8F=B0=E8=AE=BE?=
=?UTF-8?q?=E5=A4=87=E7=99=BB=E5=BD=95=E6=A8=A1=E5=9D=97=E3=80=81=E6=97=85?=
=?UTF-8?q?=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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+