mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-09 10:56:47 +08:00
feat:增加外部考试等
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user