From e79abe7aee68ca3846ccddd97cd2d5451375f8d8 Mon Sep 17 00:00:00 2001 From: sunhonglai Date: Tue, 29 Apr 2025 16:07:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=99=E5=B8=88=E7=AB=AF?= =?UTF-8?q?=E6=88=91=E7=9A=84=E6=8E=88=E8=AF=BE=E8=AE=B0=E5=BD=95=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=92=8C=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/Mylecnotes.vue | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/views/course/Mylecnotes.vue b/src/views/course/Mylecnotes.vue index 1b49b43d..2de099a8 100644 --- a/src/views/course/Mylecnotes.vue +++ b/src/views/course/Mylecnotes.vue @@ -178,19 +178,22 @@ export default { methods: { // 导出所有记录 exportFile() { - let req = { - userId: this.userInfo.sysId - } - apiCourse.courseRecordExport2(req).then(res => { - const link = document.createElement('a');// 创建a标签 - let blob = new Blob([res.data], {type: 'application/vnd.ms-excel'}); // 设置文件类型 - link.style.display = "none"; - link.href = URL.createObjectURL(blob); // 创建URL - link.setAttribute("download", "授课记录.xls"); - document.body.appendChild(link); - link.click(); - document.body.removeChild(link); - }) + // let req = { + // } + // apiCourse.courseRecordExport2(req).then(res => { + // const link = document.createElement('a');// 创建a标签 + // let blob = new Blob([res.data], {type: 'application/vnd.ms-excel'}); // 设置文件类型 + // link.style.display = "none"; + // link.href = URL.createObjectURL(blob); // 创建URL + // link.setAttribute("download", "授课记录.xls"); + // document.body.appendChild(link); + // link.click(); + // document.body.removeChild(link); + // }) + + window.open( + `/manageApi/admin/export/exportInTeacherRecord` + ); }, // 导出课程下的学员信息