From 99611ea1fde099eef8bd18e4d610e98cfbab1f19 Mon Sep 17 00:00:00 2001 From: fl <3098731433@qq.com> Date: Thu, 6 Mar 2025 16:24:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=88=E6=8A=A5=E8=A1=A8=E5=A4=9A=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/attReport/index.vue | 4 +-- src/views/report/monthReport/index.vue | 35 ++++++++++++++++---------- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/src/views/report/attReport/index.vue b/src/views/report/attReport/index.vue index 8dab63a..74e56f3 100644 --- a/src/views/report/attReport/index.vue +++ b/src/views/report/attReport/index.vue @@ -23,11 +23,9 @@ 搜索 - 重置 - - - + + - - + + 0) { + query.orgIds = query.orgIdList.map(id => id.toString()); + } else { + query.orgIds = undefined; + } + delete query['orgIdList']; + console.log(query) getMonthAttReport(query).then(response => { this.typeList = response.rows; this.total = response.total; this.loading = false; - } - ); + }); }, /** 搜索按钮操作 */ handleQuery() { @@ -589,6 +590,14 @@ export default { query.startMonth = query.month[0]; query.endMonth = query.month[1]; delete query['month']; + + if (query.orgIdList && query.orgIdList.length > 0) { + query.orgIds = query.orgIdList.map(id => id.toString()); + } else { + query.orgIds = undefined; + } + delete query['orgIdList']; + console.log(query) exportMonthReport(query).then(res => { this.downloadFile({