diff --git a/src/views/course/Mylecnotes.vue b/src/views/course/Mylecnotes.vue index 39356407..1b49b43d 100644 --- a/src/views/course/Mylecnotes.vue +++ b/src/views/course/Mylecnotes.vue @@ -195,16 +195,20 @@ export default { // 导出课程下的学员信息 exportStudentOfCourse(courseId, courseType) { - apiCourse.exportStudentOfCourse2(courseId, courseType).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); - }) + // apiCourse.exportStudentOfCourse2(courseId, courseType).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/exportTeacherRecordStudentInfo?courseId=${courseId}&courseType=${courseType}` + ); }, // 导出教师下的所有授课记录下的学员信息