From 35ef3d253c60eb5055951074ba0a81e5884b2087 Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Sat, 11 Oct 2025 15:39:16 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 470 +++++++++--------- .../integrated/meeting/booking-detail.vue | 278 ++++++++--- src/pages/integrated/meeting/detail.vue | 19 +- src/sheep/components/time-range-picker.vue | 36 +- 4 files changed, 497 insertions(+), 306 deletions(-) diff --git a/src/App.vue b/src/App.vue index 4d364a7..5e6e197 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,235 +1,235 @@ - - - + + + diff --git a/src/pages/integrated/meeting/booking-detail.vue b/src/pages/integrated/meeting/booking-detail.vue index 2b5ba75..3a87140 100644 --- a/src/pages/integrated/meeting/booking-detail.vue +++ b/src/pages/integrated/meeting/booking-detail.vue @@ -1,42 +1,75 @@ @@ -48,6 +81,18 @@ import meetingRoomApi from '@/sheep/api/meetingRoom' const detail = ref({}) +// 获取状态样式类 +function getStatusClass(status: string) { + const classMap: Record = { + '1': 'status-pending', + '2': 'status-approved', + '3': 'status-rejected', + '4': 'status-cancelled', + '5': 'status-completed' + } + return classMap[status] || 'status-pending' +} + onLoad(async (options: any) => { const id = options.id if (!id) return @@ -60,51 +105,154 @@ onLoad(async (options: any) => {