feat:增加外部考试状态更新及判断跳转界面

This commit is contained in:
wyx
2023-02-10 19:25:40 +08:00
parent 4843b91109
commit b63903092f
4 changed files with 42 additions and 5 deletions

View File

@@ -411,7 +411,8 @@ import {
STUDY_RECORD,
EvaluationToLearn,
CompletionList,
PointList
PointList,
SubmitExternalExam
} from "@/api/api";
import { useRoute, useRouter } from "vue-router";
import store from "@/store";
@@ -670,7 +671,21 @@ function toFinish(d, sName, chapterOrStageId) {
return
}
// 此处判断外部考试跳转
if(d.startTime==null || d.endTime==null){
if(d.examType==2){
// 点击即更新状态 进行中
request(SubmitExternalExam, {
"chapterId": chapterOrStageId,
"externalId": d.courseId,
"externalName": d.name,
"targetId": data.value.projectId,
"studentNo": userInfo.value.userNo
}).then(res=>{
console.log(res)
}).catch(err=>{
console.log(err)
})
router.push({
path: '/externalexamination',
query: {