mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 03:16:47 +08:00
feat:增加外部内部测评
This commit is contained in:
1
.env
1
.env
@@ -7,6 +7,7 @@ VITE_PROXY_URL=http://111.231.196.214:30001
|
|||||||
VITE_BOE_ONLINE_CLASS_URL=https://u-pre.boe.com/pc/course/studyindex?id=
|
VITE_BOE_ONLINE_CLASS_URL=https://u-pre.boe.com/pc/course/studyindex?id=
|
||||||
VITE_BOE_CASS_DETAIL_URL=https://u-pre.boe.com/pc/case/detail?id=
|
VITE_BOE_CASS_DETAIL_URL=https://u-pre.boe.com/pc/case/detail?id=
|
||||||
VITE_BOE_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId=
|
VITE_BOE_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId=
|
||||||
|
VITE_BOE_TEST_OUT_DETAIL_URL=https://u-pre.boe.com/api/b1/tale/do-quiz?quizKid=
|
||||||
VITE_BOE_EXAM_DETAIL_URL=https://u-pre.boe.com/pc/exam/test?id=
|
VITE_BOE_EXAM_DETAIL_URL=https://u-pre.boe.com/pc/exam/test?id=
|
||||||
|
|
||||||
VITE_BOE_API_URL=https://u-pre.boe.com
|
VITE_BOE_API_URL=https://u-pre.boe.com
|
||||||
1
.env.boe
1
.env.boe
@@ -4,6 +4,7 @@ VITE_BASE_API=/manageApi
|
|||||||
VITE_BOE_ONLINE_CLASS_URL=https://u-pre.boe.com/pc/course/studyindex?id=
|
VITE_BOE_ONLINE_CLASS_URL=https://u-pre.boe.com/pc/course/studyindex?id=
|
||||||
VITE_BOE_CASS_DETAIL_URL=https://u-pre.boe.com/pc/case/detail?id=
|
VITE_BOE_CASS_DETAIL_URL=https://u-pre.boe.com/pc/case/detail?id=
|
||||||
VITE_BOE_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId=
|
VITE_BOE_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId=
|
||||||
|
VITE_BOE_TEST_OUT_DETAIL_URL=https://u-pre.boe.com/api/b1/tale/do-quiz?quizKid=
|
||||||
VITE_BOE_EXAM_DETAIL_URL=https://u-pre.boe.com/pc/exam/test?id=
|
VITE_BOE_EXAM_DETAIL_URL=https://u-pre.boe.com/pc/exam/test?id=
|
||||||
|
|
||||||
VITE_BOE_API_URL=https://u-pre.boe.com
|
VITE_BOE_API_URL=https://u-pre.boe.com
|
||||||
@@ -4,6 +4,7 @@ VITE_BASE_API=/manageApi-release
|
|||||||
VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id=
|
VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id=
|
||||||
VITE_BOE_CASS_DETAIL_URL=https://u.boe.com/pc-release/case/detail?id=
|
VITE_BOE_CASS_DETAIL_URL=https://u.boe.com/pc-release/case/detail?id=
|
||||||
VITE_BOE_TEST_DETAIL_URL=https://u.boe.com/web/quizsummary?detailId=
|
VITE_BOE_TEST_DETAIL_URL=https://u.boe.com/web/quizsummary?detailId=
|
||||||
|
VITE_BOE_TEST_OUT_DETAIL_URL=https://u.boe.com/api/b1/tale/do-quiz?quizKid=
|
||||||
VITE_BOE_EXAM_DETAIL_URL=https://u.boe.com/pc-release/exam/test?id=
|
VITE_BOE_EXAM_DETAIL_URL=https://u.boe.com/pc-release/exam/test?id=
|
||||||
|
|
||||||
VITE_BOE_API_URL=https://u.boe.com
|
VITE_BOE_API_URL=https://u.boe.com
|
||||||
@@ -5,6 +5,7 @@ VITE_BASE_LOGIN_URL=https://u.boe.com/web/
|
|||||||
VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id=
|
VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id=
|
||||||
VITE_BOE_CASS_DETAIL_URL=https://u.boe.com/pc-release/case/detail?id=
|
VITE_BOE_CASS_DETAIL_URL=https://u.boe.com/pc-release/case/detail?id=
|
||||||
VITE_BOE_TEST_DETAIL_URL=https://u.boe.com/web/quizsummary?detailId=
|
VITE_BOE_TEST_DETAIL_URL=https://u.boe.com/web/quizsummary?detailId=
|
||||||
|
VITE_BOE_TEST_OUT_DETAIL_URL=https://u.boe.com/api/b1/tale/do-quiz?quizKid=
|
||||||
VITE_BOE_EXAM_DETAIL_URL=https://u.boe.com/pc-release/exam/test?id=
|
VITE_BOE_EXAM_DETAIL_URL=https://u.boe.com/pc-release/exam/test?id=
|
||||||
|
|
||||||
VITE_BOE_API_URL=https://u.boe.com
|
VITE_BOE_API_URL=https://u.boe.com
|
||||||
@@ -311,10 +311,11 @@ import { PROJECT_PROCESS, ROUTER_PROCESS, LINK_DETAILS } from "@/api/api";
|
|||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
|
|
||||||
const {
|
const {
|
||||||
query: { projectId },
|
query: { courseId },
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { data } = useRequest(PROJECT_PROCESS, { projectId });
|
const { data } = useRequest(PROJECT_PROCESS, { projectId: courseId });
|
||||||
|
console.log("data", data);
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
course: [
|
course: [
|
||||||
{
|
{
|
||||||
@@ -544,7 +545,10 @@ const types = ref({
|
|||||||
7: " ",
|
7: " ",
|
||||||
8: "/discusspage",
|
8: "/discusspage",
|
||||||
9: "/moreactive",
|
9: "/moreactive",
|
||||||
10: import.meta.env.VITE_BOE_TEST_DETAIL_URL, //测评
|
10: [
|
||||||
|
import.meta.env.VITE_BOE_TEST_DETAIL_URL,
|
||||||
|
import.meta.env.VITE_BOE_TEST_OUT_DETAIL_URL,
|
||||||
|
], //测评
|
||||||
11: "/surveydetail",
|
11: "/surveydetail",
|
||||||
12: "/ballotpage",
|
12: "/ballotpage",
|
||||||
13: "去完成",
|
13: "去完成",
|
||||||
@@ -556,10 +560,21 @@ function toFinish(d) {
|
|||||||
ElMessage.error("暂时未开放");
|
ElMessage.error("暂时未开放");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (d.type == 10) {
|
||||||
|
let url = "";
|
||||||
|
if (d.evaTyp == 1) {
|
||||||
|
url = types.value.path[d.type][1] + d.targetId;
|
||||||
|
} else {
|
||||||
|
url = types.value.path[d.type][0] + d.targetId;
|
||||||
|
}
|
||||||
|
import.meta.env.DEV
|
||||||
|
? (window.location.href = url)
|
||||||
|
: (window.parent.location.href = url);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
|
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
|
||||||
//配置文件
|
//配置文件
|
||||||
const url = types.value.path[d.type] + d.targetId;
|
const url = types.value.path[d.type] + d.targetId;
|
||||||
console.log("url", d, url);
|
|
||||||
import.meta.env.DEV
|
import.meta.env.DEV
|
||||||
? (window.location.href = url)
|
? (window.location.href = url)
|
||||||
: (window.parent.location.href = url);
|
: (window.parent.location.href = url);
|
||||||
|
|||||||
@@ -591,10 +591,13 @@ const types = ref({
|
|||||||
7: " ",
|
7: " ",
|
||||||
8: "/discusspage",
|
8: "/discusspage",
|
||||||
9: "/moreactive",
|
9: "/moreactive",
|
||||||
10: import.meta.env.VITE_BOE_TEST_DETAIL_URL, //测评
|
10: [
|
||||||
|
import.meta.env.VITE_BOE_TEST_DETAIL_URL,
|
||||||
|
import.meta.env.VITE_BOE_TEST_OUT_DETAIL_URL,
|
||||||
|
], //测评
|
||||||
11: "/surveydetail",
|
11: "/surveydetail",
|
||||||
12: "/ballotpage",
|
12: "/ballotpage",
|
||||||
13: "去完成",
|
13: "/projectdetails",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -604,6 +607,18 @@ function toFinish(d) {
|
|||||||
ElMessage.error("暂时未开放");
|
ElMessage.error("暂时未开放");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (d.type == 10) {
|
||||||
|
let url = "";
|
||||||
|
if (d.evaTyp == 1) {
|
||||||
|
url = types.value.path[d.type][1] + d.targetId;
|
||||||
|
} else {
|
||||||
|
url = types.value.path[d.type][0] + d.targetId;
|
||||||
|
}
|
||||||
|
import.meta.env.DEV
|
||||||
|
? (window.location.href = url)
|
||||||
|
: (window.parent.location.href = url);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
|
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
|
||||||
//配置文件
|
//配置文件
|
||||||
const url = types.value.path[d.type] + d.targetId;
|
const url = types.value.path[d.type] + d.targetId;
|
||||||
|
|||||||
Reference in New Issue
Block a user