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,
})