mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-06 09:26:46 +08:00
添加弹窗
This commit is contained in:
@@ -217,7 +217,7 @@ import {useRoute, useRouter} from "vue-router/dist/vue-router";
|
||||
import {request, usePage, useRequest} from "@/api/request";
|
||||
import {ASSESSMENT_QUERY, ASSESSMENT_SUBMIT} from "@/api/api";
|
||||
import {ElMessage} from "element-plus";
|
||||
import {ref, watch} from "vue";
|
||||
import {ref, watch,onMounted} from "vue";
|
||||
import dayjs from "dayjs";
|
||||
import {useTaskPage} from "@/api/useCommon";
|
||||
|
||||
@@ -274,7 +274,18 @@ function orderArr(a, b) {
|
||||
}
|
||||
return arrs;
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
useRequest(ASSESSMENT_QUERY(courseId), {
|
||||
id: courseId,
|
||||
type,
|
||||
chapterOrStageId,
|
||||
targetId: infoId ? infoId : 0
|
||||
},(res)=>{
|
||||
if (res.data.isSubmit) {
|
||||
open();
|
||||
}
|
||||
})
|
||||
});
|
||||
const centerDialogVisible = ref(false);
|
||||
const open = () => {
|
||||
centerDialogVisible.value = true;
|
||||
|
||||
Reference in New Issue
Block a user