From 46c1f479e736acbe8d5764fc2da17bf3941741b2 Mon Sep 17 00:00:00 2001 From: XaoLi717 <144221124+XaoLi717@users.noreply.github.com> Date: Mon, 11 Nov 2024 07:45:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AE=AE=E5=AE=A4=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home/hsgl/index.ts | 53 ++++ src/utils/dict.ts | 2 + src/views/Home/hsgl/bk.vue | 528 +++++++++++++++++++++++++++++++++++++ 3 files changed, 583 insertions(+) create mode 100644 src/api/home/hsgl/index.ts create mode 100644 src/views/Home/hsgl/bk.vue diff --git a/src/api/home/hsgl/index.ts b/src/api/home/hsgl/index.ts new file mode 100644 index 0000000..37400f9 --- /dev/null +++ b/src/api/home/hsgl/index.ts @@ -0,0 +1,53 @@ +import request from '@/config/axios' + +// 会议室管理 VO +export interface HsglVO { + id: number // 会议室管理id + title: string // 标题 + name: string // 会议室名 + location: string // 会议室地址 + roomType: number // 会议室类型 + manager: string // 会议室管理员 + roomMax: string // 会议室大小 + capacity: number // 容纳人数 + facilities: string // 会议室设备 + roomStatus: number // 使用状态 + photo: string // 会议室照片 + remark: string // 备注 + status: number // 审批状态 + userId: number // 申请人id + processInstanceId: string // 流程实例的编号 +} + +// 会议室管理 API +export const HsglApi = { + // 查询会议室管理分页 + getHsglPage: async (params: any) => { + return await request.get({ url: `/home/hsgl/page`, params }) + }, + + // 查询会议室管理详情 + getHsgl: async (id: number) => { + return await request.get({ url: `/home/hsgl/get?id=` + id }) + }, + + // 新增会议室管理 + createHsgl: async (data: HsglVO) => { + return await request.post({ url: `/home/hsgl/create`, data }) + }, + + // 修改会议室管理 + updateHsgl: async (data: HsglVO) => { + return await request.put({ url: `/home/hsgl/update`, data }) + }, + + // 删除会议室管理 + deleteHsgl: async (id: number) => { + return await request.delete({ url: `/home/hsgl/delete?id=` + id }) + }, + + // 导出会议室管理 Excel + exportHsgl: async (params) => { + return await request.download({ url: `/home/hsgl/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/utils/dict.ts b/src/utils/dict.ts index feccabb..0550978 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -125,6 +125,8 @@ export enum DICT_TYPE { BGYP_USAGE_NAME = 'bgyp_usage_name', BGYP_UNIT = 'bgyp_unit', JBGL_TYPE = 'jbgl_type', + HSGL_STATUS = 'hsgl_status', + HSGL_TYPE= 'hsgl_type', // ========== SYSTEM 模块 ========== SYSTEM_USER_SEX = 'system_user_sex', diff --git a/src/views/Home/hsgl/bk.vue b/src/views/Home/hsgl/bk.vue new file mode 100644 index 0000000..c970da0 --- /dev/null +++ b/src/views/Home/hsgl/bk.vue @@ -0,0 +1,528 @@ + + + +//--------------------------------------------------------------------- + + + +