增加个数为0,total提示,不予导出

This commit is contained in:
zhangsir
2024-07-30 10:15:20 +08:00
parent 4e4f120eb3
commit 247ff6b5de

View File

@@ -127,6 +127,7 @@ import {ONLINE_COURSE_DEL} from "@/api/ThirdApi";
import {useStore} from "vuex";
import {useAsyncStu, useResetRef} from "@/utils/useCommon";
import {downLoadXlsx} from "@/utils/zipdownload";
import {message} from "ant-design-vue";
const props = defineProps({
permissions: {
type: String,
@@ -329,6 +330,9 @@ function exportStu() {
window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportOnlineStudent?type=3&&thirdType=8&pid=${searchParams.value.pid}`);
}
function exportStudy() {
if(studentList.value.length == 0){
return message.warning('暂无可导出的学习记录')
}
downLoadXlsx(`${process.env.VUE_APP_BASE_API}/admin/student/exportOnlineStudentDetail?type=3&&thirdType=8&pid=${searchParams.value.pid}`,'在线课学员')
}
defineExpose({