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 => {}); } } },