添加接口

This commit is contained in:
zhangsir
2024-06-25 19:53:33 +08:00
parent fdc2344560
commit 9094ca0dd0

View File

@@ -236,6 +236,8 @@ import {
SubmitExternalExam,
UPDATE_CURRENT_TASK,
checkStudentExist,
EvaluationToLearn,
QueryEvaluationTaskStatusOne
} from "@/api/api";
import { useRoute, useRouter } from "vue-router";
import store from "@/store";
@@ -568,16 +570,7 @@ function toFinish(d, sName, chapterOrStageId,studyModel) {
if (d.type == 10) {
if (d.quizTaskId == null) {
// 肯定没有完成测评
// 调用接口 跳转页面
console.log('我是查询测评跳转链接所传递得参数', {
"businessType": "project",
"chapterId": chapterOrStageId,
"courseId": d.courseId,
"quizKid": d.targetId,
"routerOrProjectId": projectId,
"studentId": userInfo.value.id,
"studentName": userInfo.value.realName
})
// 调用接口 跳转页面
request(EvaluationToLearn, {
"businessType": "project",
"chapterId": chapterOrStageId,
@@ -613,16 +606,7 @@ function toFinish(d, sName, chapterOrStageId,studyModel) {
return
} else {
// 重新查询跳转
// 调用接口 跳转页面
console.log('我是查询测评跳转链接所传递得参数', {
"businessType": "project",
"chapterId": chapterOrStageId,
"courseId": d.courseId,
"quizKid": d.targetId,
"routerOrProjectId": projectId,
"studentId": userInfo.value.id,
"studentName": userInfo.value.realName
})
// 调用接口 跳转页面
request(EvaluationToLearn, {
"businessType": "project",
"chapterId": chapterOrStageId,