mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-09 19:06:48 +08:00
feat:增加外部考试状态更新及判断跳转界面
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user