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 @@ + + +