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({