feat:增加外部考试等

This commit is contained in:
lixg
2023-02-06 18:56:55 +08:00
parent 074c2da761
commit 5f60601581
14 changed files with 457 additions and 62 deletions

View File

@@ -226,19 +226,21 @@ const types = ref({
3: import.meta.env.VITE_BOE_CASS_DETAIL_URL, //案例
4: "/homeworkpage",
5: import.meta.env.VITE_BOE_EXAM_DETAIL_URL, //考试
// 5: "/externalexam",
6: "/livebroadcast",
7: ({ targetId }) => window.open(targetId, "_top"),
8: "/discusspage",
9: "/moreactive",
10: ({ evaType, targetId }) =>
window.open(
evaType == 0
? import.meta.env.VITE_BOE_TEST_DETAIL_URL + targetId
: import.meta.env.VITE_BOE_TEST_OUT_DETAIL_URL +
targetId +
`&quizTaskKid=${projectId}&channelCode=project`,
"_top"
), //测评
// 10: ({ evaType, targetId }) =>
// window.open(
// evaType == 0
// ? import.meta.env.VITE_BOE_TEST_DETAIL_URL + targetId
// : import.meta.env.VITE_BOE_TEST_OUT_DETAIL_URL +
// targetId +
// `&quizTaskKid=${projectId}&channelCode=project`,
// "_top"
// ), //测评
10: "/evaluation", //测评
11: "/surveydetail",
12: "/ballotpage",
13: "/projectdetails",
@@ -341,6 +343,16 @@ function toFinish(d, sName, chapterOrStageId) {
dialogVisible.value = true;
return;
}
// 此处判断外部考试跳转
if (d.startTime == null || d.endTime == null) {
router.push({
path: "/externalexam",
query: {
courseId: d.courseId,
},
});
return;
}
}
// 评估 停用
if (d.type == 11) {
@@ -410,7 +422,12 @@ function toFinish(d, sName, chapterOrStageId) {
courseId: d.courseId,
pName: data.value.name,
sName,
chapterOrStageId,
chapterOrStageId: data.value.currentStageId,
studentId: userInfo.value.id,
status: d.status,
targetId: d.targetId,
evaType: d.evaType,
btype: 1,
},
});
} else if (typeof types.value.path[d.type] === "function") {