mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
修改教师端我的授课记录查询和导出
This commit is contained in:
@@ -195,16 +195,20 @@ export default {
|
|||||||
|
|
||||||
// 导出课程下的学员信息
|
// 导出课程下的学员信息
|
||||||
exportStudentOfCourse(courseId, courseType) {
|
exportStudentOfCourse(courseId, courseType) {
|
||||||
apiCourse.exportStudentOfCourse2(courseId, courseType).then(res => {
|
// apiCourse.exportStudentOfCourse2(courseId, courseType).then(res => {
|
||||||
const link = document.createElement('a');// 创建a标签
|
// const link = document.createElement('a');// 创建a标签
|
||||||
let blob = new Blob([res.data], {type: 'application/vnd.ms-excel'}); // 设置文件类型
|
// let blob = new Blob([res.data], {type: 'application/vnd.ms-excel'}); // 设置文件类型
|
||||||
link.style.display = "none";
|
// link.style.display = "none";
|
||||||
link.href = URL.createObjectURL(blob); // 创建URL
|
// link.href = URL.createObjectURL(blob); // 创建URL
|
||||||
link.setAttribute("download", "授课记录.xls");
|
// link.setAttribute("download", "授课记录.xls");
|
||||||
document.body.appendChild(link);
|
// document.body.appendChild(link);
|
||||||
link.click();
|
// link.click();
|
||||||
document.body.removeChild(link);
|
// document.body.removeChild(link);
|
||||||
})
|
// })
|
||||||
|
|
||||||
|
window.open(
|
||||||
|
`/manageApi/admin/export/exportTeacherRecordStudentInfo?courseId=${courseId}&courseType=${courseType}`
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
// 导出教师下的所有授课记录下的学员信息
|
// 导出教师下的所有授课记录下的学员信息
|
||||||
|
|||||||
Reference in New Issue
Block a user