导出详细学习记录 - loading 更改 6

This commit is contained in:
gengxin
2025-03-03 20:05:30 +08:00
parent c6ed4769e0
commit 0306031848

View File

@@ -332,14 +332,14 @@ function exportStu() {
window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportOnlineStudent?type=3&&thirdType=8&pid=${searchParams.value.pid}`);
}
const exportDisabled = ref(false)
let exportDisabled = ref(false)
const exportStudy = async () => {
if(studentList.value.length == 0){
return message.warning('暂无可导出的学习记录')
}
exportDisabled.value = true;
await downLoadXlsx(`${process.env.VUE_APP_BASE_API}/admin/student/exportOnlineStudentDetail?type=4&&thirdType=8&pid=${searchParams.value.pid}`,'在线课学员学习记录',exportLoading);
await downLoadXlsx(`${process.env.VUE_APP_BASE_API}/admin/student/exportOnlineStudentDetail?type=4&&thirdType=8&pid=${searchParams.value.pid}`,'在线课学员学习记录');
exportDisabled.value = false;
}
defineExpose({