Merge branch '250213-prod-master_1202-gx' into master_1202

This commit is contained in:
joshen
2025-03-07 17:37:03 +08:00
10 changed files with 94 additions and 50 deletions

View File

@@ -92,7 +92,9 @@
</a-button>
</a-col>
<a-col>
<a-button class="cus-btn" style="background: #4ea6ff; color: #fff; width: 150px" @click="exportStudy">
<a-button class="cus-btn" style="background: #4ea6ff; color: #fff; width: 150px"
:disabled="exportDisabled"
@click="exportStudy">
导出详细学习记录
</a-button>
</a-col>
@@ -329,11 +331,16 @@ function reset() {
function exportStu() {
window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportOnlineStudent?type=3&&thirdType=8&pid=${searchParams.value.pid}`);
}
function exportStudy() {
let exportDisabled = ref(false)
const exportStudy = async () => {
if(studentList.value.length == 0){
return message.warning('暂无可导出的学习记录')
}
downLoadXlsx(`${process.env.VUE_APP_BASE_API}/admin/student/exportOnlineStudentDetail?type=4&&thirdType=8&pid=${searchParams.value.pid}`,'在线课学员学习记录')
exportDisabled.value = true;
await downLoadXlsx(`${process.env.VUE_APP_BASE_API}/admin/student/exportOnlineStudentDetail?type=4&&thirdType=8&pid=${searchParams.value.pid}`,'在线课学员学习记录');
exportDisabled.value = false;
}
defineExpose({
searchStu,