mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-08 10:26:44 +08:00
增加个数为0,total提示,不予导出
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user