mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-07 01:46:46 +08:00
feat:增加外部考试状态更新及判断跳转界面
This commit is contained in:
@@ -277,7 +277,7 @@ import { computed, reactive, ref, watch } from "vue";
|
||||
// import circle from '../../assets/image/pathdetails/circle.png';
|
||||
// import circle2 from '../../assets/image/pathdetails/circle2.png';
|
||||
import { boeRequest, useRequest, request } from "@/api/request";
|
||||
import { ROUTER_PROCESS, LINK_DETAILS, STUDY_RECORD, EvaluationToLearn } from "@/api/api";
|
||||
import { ROUTER_PROCESS, LINK_DETAILS, STUDY_RECORD, EvaluationToLearn, SubmitExternalExam } from "@/api/api";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { ElMessage } from "element-plus";
|
||||
import store from "@/store";
|
||||
@@ -440,7 +440,21 @@ function toFinish(d) {
|
||||
return
|
||||
}
|
||||
// 此处判断外部考试跳转
|
||||
if(d.startTime==null || d.endTime==null){
|
||||
if(d.examType==2){
|
||||
|
||||
// 点击即更新状态 进行中
|
||||
request(SubmitExternalExam, {
|
||||
"chapterId": data.value.currentStageId,
|
||||
"externalId": d.courseId,
|
||||
"externalName": d.name,
|
||||
"targetId": routerId,
|
||||
"studentNo": userInfo.value.userNo
|
||||
}).then(res=>{
|
||||
console.log(res)
|
||||
}).catch(err=>{
|
||||
console.log(err)
|
||||
})
|
||||
|
||||
router.push({
|
||||
path: '/externalexamination',
|
||||
query: {
|
||||
@@ -527,7 +541,7 @@ function toFinish(d) {
|
||||
// 测评模块 请求接口跳转新的页面 - 新增 暂时未调试 目前无测评数据 2023-02-04
|
||||
if(d.type == 10) {
|
||||
|
||||
|
||||
|
||||
// 此处判断测评跳转详情界面
|
||||
router.push({
|
||||
path: '/evaluation',
|
||||
|
||||
Reference in New Issue
Block a user