From c454285c0abb5031608006af08b55fb1689d8f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0?= <15071126431@163.com> Date: Tue, 18 May 2021 15:35:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/Studentcommon/registration.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/common/Studentcommon/registration.vue b/src/components/common/Studentcommon/registration.vue index b5bb991..d7187fd 100644 --- a/src/components/common/Studentcommon/registration.vue +++ b/src/components/common/Studentcommon/registration.vue @@ -62,7 +62,18 @@ export default { let arr = this.multipleSelection.map(e => e.reportId).join() location.href = `${this.api.exportKdTeachReport}?reportIds=${arr}&userId=${this.userId}` }else{ - this.$message.error('请先选择数据再进行导出 !'); + this.$post(this.api.fictitiousRecord, { + classId: this.$children[1].classId, + userId: this.userId, + page: 1, + size: this.$children[1].totals, + searchContent: this.core.encodeString(this.$children[1].searchContent), + source: 2, + systemId: 3 + }).then(res => { + let arr = res.data.list.map(e => e.reportId).join() + location.href = `${this.api.exportKdTeachReport}?reportIds=${arr}&userId=${this.userId}` + }).catch(err => {}); } } },