fix:面授课交作业及考试白屏问题

This commit is contained in:
wyx
2023-03-03 13:36:15 +08:00
parent a7305abfe1
commit aeab8ef0e9
3 changed files with 19 additions and 15 deletions

View File

@@ -518,6 +518,8 @@ function toExamItem(obj) {
courseId: obj.id,
type: 3,
exname: obj.examinationName, // 考试名称
pName: '',
sName: ''
},
});
}else{

View File

@@ -459,20 +459,6 @@ import {useTaskPage} from "@/api/useCommon";
import {ElLoading} from "element-plus";
//import AlertSuccess from "@/components/alert/AlertSuccess.vue";
const loading = ref(false);
const fileList = ref([]);
const fielPath = ref(import.meta.env.VITE_FILE_PATH);
const uploadRef = ref();
const {nextPage,prevPage,hasPrev, hasNext} = useTaskPage()
const centerDialogVisible = ref(false);
const sbValue = ref({
content: "",
attach: "",
});
const router = useRouter();
const returnclick = () => {
router.back();
};
const {
query: {
courseId: workId,
@@ -485,6 +471,22 @@ const {
infoId,
},
} = useRoute();
const loading = ref(false);
const fileList = ref([]);
const fielPath = ref(import.meta.env.VITE_FILE_PATH);
const uploadRef = ref();
const {nextPage,prevPage,hasPrev, hasNext} = type==3 ? '' : useTaskPage()
const centerDialogVisible = ref(false);
const sbValue = ref({
content: "",
attach: "",
});
const router = useRouter();
const returnclick = () => {
router.back();
};
const { data } =
taskId && taskId !== "undefined"
? useRequest(TASK_WORK_DETAIL, { workId, taskId, type })

View File

@@ -84,7 +84,7 @@
const {
query: {courseId, pName, sName, chapterOrStageId, infoId, id, exname, type},
} = useRoute();
const {nextPage,prevPage,hasPrev, hasNext} = useTaskPage()
const {nextPage,prevPage,hasPrev, hasNext} = type==3 ? '' : useTaskPage()
const router = useRouter();
const returnclick = () => {
router.back();