From 879619f383ed012c9672962d41ce13ec77806ed7 Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Wed, 26 Feb 2025 15:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E5=8B=A4=E6=98=8E=E7=BB=86=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E6=94=B9=E4=B8=BA=E5=A4=9A=E9=80=89=E3=80=82=E6=97=A5?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8=EF=BC=8C=E6=9C=88=E6=8A=A5=E8=A1=A8=EF=BC=8C?= =?UTF-8?q?=E6=9C=88=E5=BC=82=E5=B8=B8=E6=8A=A5=E8=A1=A8=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=A4=96=E5=8B=A4=E5=A4=A9=E6=95=B0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/process/restExam/index.vue | 37 ++++++++++++++++++++---- src/views/report/attReport/index.vue | 38 +++++++++++++++++++++---- src/views/report/dayReport/index.vue | 11 +++++++ src/views/report/monthReport/index.vue | 11 +++++++ src/views/report/monthlyError/index.vue | 11 +++++++ 5 files changed, 98 insertions(+), 10 deletions(-) diff --git a/src/views/process/restExam/index.vue b/src/views/process/restExam/index.vue index add784e..53ffc7a 100644 --- a/src/views/process/restExam/index.vue +++ b/src/views/process/restExam/index.vue @@ -130,7 +130,7 @@ - + + + @@ -153,7 +156,7 @@ - + @@ -166,7 +169,7 @@ - + @@ -208,7 +211,7 @@ - + { + this.deptOptions = this.handleTree(response.data, "id"); + }); + }, + /** 转换部门数据结构 */ + normalizer(node) { + if (node.children && !node.children.length) { + delete node.children; + } + return { + id: node.id, + label: node.orgName, + children: node.children + }; + }, + onSelect(selectedNode) { + this.form.orgName = selectedNode.orgName; + } + } }; diff --git a/src/views/report/attReport/index.vue b/src/views/report/attReport/index.vue index 6878866..125927b 100644 --- a/src/views/report/attReport/index.vue +++ b/src/views/report/attReport/index.vue @@ -6,9 +6,9 @@ @keyup.enter.native="handleQuery" /> - - + @@ -446,8 +446,9 @@ export default { pageNum: 1, pageSize: 10, userName: undefined, - orgId: undefined, - attStatus: undefined + orgIdList: undefined, + attStatus: undefined, + orgIds:undefined }, queryRecord: { pageNum: 1, @@ -544,6 +545,13 @@ export default { this.queryParams.startDate = undefined this.queryParams.endDate = undefined } + + if (this.queryParams.orgIdList && this.queryParams.orgIdList.length > 0) { + // 将数组中的每个元素转换为字符串(如果需要) + this.queryParams.orgIds = this.queryParams.orgIdList.map(id => id.toString()); + }else{ + this.queryParams.orgIds = undefined + } getDetailsList(this.queryParams).then(response => { this.typeList = response.rows this.total = response.total @@ -561,6 +569,9 @@ export default { this.dateRange = [] this.getWeekDates() this.resetForm('queryForm') + + this.queryParams.orgIdList =undefined + this.queryParams.orgIds = undefined this.handleQuery() }, // 多选框选中数据 @@ -798,6 +809,14 @@ export default { /** 导出按钮操作 */ handleExport() { this.queryParams.exportType = '考勤明细' + + if (this.queryParams.orgIdList && this.queryParams.orgIdList.length > 0) { + // 将数组中的每个元素转换为字符串(如果需要) + this.queryParams.orgIds = this.queryParams.orgIdList.map(id => id.toString()); + }else{ + this.queryParams.orgIds = undefined + } + exportAttRecord(this.queryParams).then(res => { this.downloadFile({ fileName: `考勤记录_${new Date().getTime()}.xlsx`, @@ -810,6 +829,15 @@ export default { /** 异常排名导出 */ abnormalRankingExport() { this.queryParams.exportType = '异常排名导出' + + if (this.queryParams.orgIdList && this.queryParams.orgIdList.length > 0) { + // 将数组中的每个元素转换为字符串(如果需要) + this.queryParams.orgIds = this.queryParams.orgIdList.map(id => id.toString()); + }else{ + this.queryParams.orgIds = undefined + } + + exportAbnormalRanking(this.queryParams).then(res => { this.downloadFile({ fileName: `异常排名_${new Date().getTime()}.xlsx`, diff --git a/src/views/report/dayReport/index.vue b/src/views/report/dayReport/index.vue index 5211830..c2f3cf1 100644 --- a/src/views/report/dayReport/index.vue +++ b/src/views/report/dayReport/index.vue @@ -127,6 +127,14 @@ + + + + + + + + + + + +