From bf6f2a74ca3d16b3b3457f7a5b0dee1de4fe33ec Mon Sep 17 00:00:00 2001 From: weishengyou <2454197255@qq.com> Date: Tue, 30 Dec 2025 10:52:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E8=AF=A6=E6=83=85=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=83=A8=E9=97=A8=E5=A4=9A=E9=80=89=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../staff/oneStop/room/roomDetailedStatistics.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/staff/oneStop/room/roomDetailedStatistics.vue b/src/views/staff/oneStop/room/roomDetailedStatistics.vue index e0e5894..bd224b8 100644 --- a/src/views/staff/oneStop/room/roomDetailedStatistics.vue +++ b/src/views/staff/oneStop/room/roomDetailedStatistics.vue @@ -7,7 +7,7 @@ --> - + @@ -83,7 +83,7 @@ - 导出 + 导出 @@ -235,6 +235,12 @@ export default { this.queryParams.endTime = this.queryParams.rtTimeRange[1] } + // 将多选的部门数组转换为逗号分隔的字符串 + let rtDeparParam = this.queryParams.rtDepar; + if (Array.isArray(this.queryParams.rtDepar) && this.queryParams.rtDepar.length > 0) { + rtDeparParam = this.queryParams.rtDepar.join(','); + } + // 获取各部门预约功能房统计数据 const departmentRes = await getDepartmentReservationCount({ startTime: this.queryParams.startTime, @@ -242,7 +248,7 @@ export default { role: this.queryParams.rtRole, borrower: this.queryParams.rtCreatRole, auditStatus: this.queryParams.auditStatus, - rtDepar: this.queryParams.rtDepar, + rtDepar: rtDeparParam, // 使用转换后的逗号分隔字符串 eventPromoter: this.queryParams.eventPromoter, userName: this.queryParams.userName, }) @@ -254,7 +260,7 @@ export default { role: this.queryParams.rtRole, borrower: this.queryParams.rtCreatRole, auditStatus: this.queryParams.auditStatus, - rtDepar: this.queryParams.rtDepar, + rtDepar: rtDeparParam, // 使用转换后的逗号分隔字符串 eventPromoter: this.queryParams.eventPromoter, userName: this.queryParams.userName, })