mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-20 00:06:50 +08:00
fix:修改在线案例考试测评跳转
This commit is contained in:
1
.env
1
.env
@@ -6,5 +6,6 @@ VITE_BASE_LOGIN_URL=https://u-pre.boe.com/web/
|
|||||||
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_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,5 +4,6 @@ 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_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,5 +4,6 @@ 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_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,5 +5,6 @@ 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_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
|
||||||
38
src/App.vue
38
src/App.vue
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2022-11-21 17:28:10
|
* @Date: 2022-11-21 17:28:10
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2022-12-13 22:10:22
|
* @LastEditTime: 2022-12-14 22:48:46
|
||||||
* @FilePath: /fe-stu/src/App.vue
|
* @FilePath: /fe-stu/src/App.vue
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
@@ -22,35 +22,33 @@
|
|||||||
</router-link>
|
</router-link>
|
||||||
</div> -->
|
</div> -->
|
||||||
<main>
|
<main>
|
||||||
<router-view/>
|
<router-view />
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { boeRequest } from "@/api/request";
|
||||||
|
import { GET_USER_INFO } from "@/api/ThirdApi";
|
||||||
|
import { useStore } from "vuex";
|
||||||
|
import { onMounted } from "vue";
|
||||||
|
|
||||||
import {boeRequest} from "@/api/request";
|
const store = useStore();
|
||||||
import {GET_USER_INFO} from "@/api/ThirdApi";
|
|
||||||
import { useStore } from "vuex";
|
|
||||||
import {onMounted} from "vue";
|
|
||||||
|
|
||||||
const store = useStore();
|
|
||||||
|
|
||||||
onMounted(()=>{
|
|
||||||
getUserInfo()
|
|
||||||
})
|
|
||||||
function getUserInfo(){
|
|
||||||
boeRequest(GET_USER_INFO).then(res=>{
|
|
||||||
store.commit("SET_USER", res.result);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
getUserInfo();
|
||||||
|
});
|
||||||
|
function getUserInfo() {
|
||||||
|
boeRequest(GET_USER_INFO).then((res) => {
|
||||||
|
store.commit("SET_USER", res.result);
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
#app {
|
#app {
|
||||||
// font-family: MicrosoftYaHei, Microsoft YaHei, Avenir, Helvetica, Arial,
|
// font-family: MicrosoftYaHei, Microsoft YaHei, Avenir, Helvetica, Arial,
|
||||||
// sans-serif;
|
// sans-serif;
|
||||||
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
|
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
|
||||||
Microsoft YaHei, Arial, sans-serif;
|
Microsoft YaHei, Arial, sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
color: #2c3e50;
|
color: #2c3e50;
|
||||||
@@ -61,8 +59,8 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
background-color: rgba(242, 245, 247, 1);
|
// background-color: rgba(242, 245, 247, 1);
|
||||||
// background-color: #ccc;
|
background-color: #ccc;
|
||||||
#nav {
|
#nav {
|
||||||
width: 220px;
|
width: 220px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2022-12-11 16:57:58
|
* @Date: 2022-12-11 16:57:58
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2022-12-12 17:05:42
|
* @LastEditTime: 2022-12-15 10:56:54
|
||||||
* @FilePath: /fe-stu/src/api/api.js
|
* @FilePath: /fe-stu/src/api/api.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
@@ -13,6 +13,7 @@ export const COMMON_TOKEN = 'https://upload-z2.qiniup.com'
|
|||||||
export const ROUTER_CHAPTER_LIST = '/stu/router/chapterList'
|
export const ROUTER_CHAPTER_LIST = '/stu/router/chapterList'
|
||||||
export const ROUTER_LIST = '/stu/router/list post'
|
export const ROUTER_LIST = '/stu/router/list post'
|
||||||
export const ROUTER_PROCESS = '/stu/router/process'
|
export const ROUTER_PROCESS = '/stu/router/process'
|
||||||
|
export const LINK_DETAILS = linkId => `/link/getOne?linkId=${linkId} post`
|
||||||
export const PROJECT_PROCESS = '/stu/project/process'
|
export const PROJECT_PROCESS = '/stu/project/process'
|
||||||
export const ROUTER_UNCOMPLETE_LIST = '/stu/router/unCompleteTaskList post'
|
export const ROUTER_UNCOMPLETE_LIST = '/stu/router/unCompleteTaskList post'
|
||||||
export const TAS_ACTIVITY_DETAIL = '/activity'
|
export const TAS_ACTIVITY_DETAIL = '/activity'
|
||||||
|
|||||||
@@ -9,10 +9,11 @@
|
|||||||
<div style="font-weight: 700; font-size: 16px">直播详情</div>
|
<div style="font-weight: 700; font-size: 16px">直播详情</div>
|
||||||
|
|
||||||
<div class="preNext">
|
<div class="preNext">
|
||||||
<button class="btn btn01"></button>
|
<!-- 2022-12-15注释 李晓鸽 后面打开 -->
|
||||||
|
<!-- <button class="btn btn01"></button>
|
||||||
<span class="content" style="margin-left: 6px">上一个</span>
|
<span class="content" style="margin-left: 6px">上一个</span>
|
||||||
<span class="content" style="margin-left: 31px">下一个</span>
|
<span class="content" style="margin-left: 31px">下一个</span>
|
||||||
<button class="btn btn02" style="margin-left: 6px"></button>
|
<button class="btn btn02" style="margin-left: 6px"></button> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 面包屑导航 -->
|
<!-- 面包屑导航 -->
|
||||||
@@ -26,16 +27,19 @@
|
|||||||
style="width: 15px; height: 17px"
|
style="width: 15px; height: 17px"
|
||||||
src="../../assets/image/time.png"
|
src="../../assets/image/time.png"
|
||||||
/>
|
/>
|
||||||
<div style="margin-left: 8px">{{ data?.liveStartTime }}</div>
|
<div style="margin-left: 8px">
|
||||||
|
{{ data?.liveStartTime + "-" + data?.liveEndTime }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="time" style="margin-top: 23px">
|
<!-- todo #直播详情 没有位置字段-->
|
||||||
|
<!-- <div class="time" style="margin-top: 23px">
|
||||||
<img
|
<img
|
||||||
style="width: 16px; height: 18px"
|
style="width: 16px; height: 18px"
|
||||||
src="../../assets/image/position.png"
|
src="../../assets/image/position.png"
|
||||||
/>
|
/>
|
||||||
<!-- todo #直播详情 没有位置字段-->
|
|
||||||
<div style="margin-left: 8px">大族广场</div>
|
<div style="margin-left: 8px">{{ data?.activityAddress }}</div>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="threeBtn">
|
<div class="threeBtn">
|
||||||
<botton
|
<botton
|
||||||
@@ -51,6 +55,7 @@
|
|||||||
v-if="!data.signFlag"
|
v-if="!data.signFlag"
|
||||||
>签到
|
>签到
|
||||||
</botton>
|
</botton>
|
||||||
|
|
||||||
<botton class="btn" @click="commitClick" v-if="!data.evalFlag"
|
<botton class="btn" @click="commitClick" v-if="!data.evalFlag"
|
||||||
>评估
|
>评估
|
||||||
</botton>
|
</botton>
|
||||||
@@ -68,20 +73,13 @@
|
|||||||
style="width: 20px; height: 20px"
|
style="width: 20px; height: 20px"
|
||||||
src="../../assets/image/course.png"
|
src="../../assets/image/course.png"
|
||||||
/>
|
/>
|
||||||
<div class="text">课前预习</div>
|
<div class="text">直播说明</div>
|
||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; align-items: center">
|
<div style="display: flex; align-items: center">
|
||||||
<!-- todo #直播 没有课前预习字段-->
|
<!-- todo #直播 没有课前预习字段-->
|
||||||
<div class="content">
|
<div class="content">
|
||||||
通过对各级人员的软件平台培训,使其能够了解如何运用乾元坤和智能信息管理系统来提升企业管理水平,最大限度发挥软件产品在企业中的作用;<br />
|
{{ data?.liveExplain }}
|
||||||
● 培训目标
|
|
||||||
<br />1.使企业不同部门人员掌握便捷、有效的系统平台操作方法;<br />
|
|
||||||
2.通过系统平台的培训提高员工对企业的管理理念认识与提升。<br />
|
|
||||||
3.通过系统平台培训加强沟通,统一部署,协同工作,提高效率。
|
|
||||||
<br />
|
|
||||||
●培训对象<br />
|
|
||||||
集团领导、各相关部门领导、总经理、车间主管、车间操作员等;<br />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -91,15 +89,12 @@
|
|||||||
src="../../assets/image/write.png"
|
src="../../assets/image/write.png"
|
||||||
/>
|
/>
|
||||||
<!-- todo #直播 课后作业-->
|
<!-- todo #直播 课后作业-->
|
||||||
<div class="text">课后作业</div>
|
<div class="text">回放链接</div>
|
||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; align-items: center">
|
<div style="display: flex; align-items: center">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<span style="font-weight: 600"
|
{{ data?.livePlaybackLink ? data?.livePlaybackLink : "-" }}
|
||||||
>网易有道词典现有功能结构拆解+问题分析</span
|
|
||||||
><br />
|
|
||||||
查找资料,介绍一种国外(日本、美国、欧洲)道路(公路、铁路、城市道路、地铁)设计规范的演变过程,可以一种或几种主要技术指标为例,并说明其原因。<br />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -115,7 +110,7 @@
|
|||||||
<div class="text">直播公告</div>
|
<div class="text">直播公告</div>
|
||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" v-html="data?.liveExplain"></div>
|
<div class="content" v-html="data?.liveNotice"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="teacher">
|
<div class="teacher">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
@@ -157,12 +152,12 @@ import { useRouter } from "vue-router";
|
|||||||
import { useUserInfo } from "@/api/utils";
|
import { useUserInfo } from "@/api/utils";
|
||||||
|
|
||||||
const {
|
const {
|
||||||
query: { courseId: liveId },
|
query: { courseId },
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId });
|
const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId: courseId });
|
||||||
|
console.log("datadatadatadata", data, courseId);
|
||||||
const { avatar: userAvatar } = useUserInfo(
|
const { avatar: userAvatar } = useUserInfo(
|
||||||
computed(() => data.value.userInfoBo?.userId)
|
computed(() => data.value.userInfoBo?.userId)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -306,7 +306,7 @@ import medal1 from "@/assets/image/medal/medal1.png";
|
|||||||
import medal2 from "@/assets/image/medal/medal2.png";
|
import medal2 from "@/assets/image/medal/medal2.png";
|
||||||
import medal3 from "@/assets/image/medal/medal3.png";
|
import medal3 from "@/assets/image/medal/medal3.png";
|
||||||
import img from "@/assets/image/uploadimg.png";
|
import img from "@/assets/image/uploadimg.png";
|
||||||
import { useRequest } from "@/api/request";
|
import { useRequest, request } from "@/api/request";
|
||||||
import { PROJECT_PROCESS, ROUTER_PROCESS } from "@/api/api";
|
import { PROJECT_PROCESS, ROUTER_PROCESS } from "@/api/api";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
|
|
||||||
@@ -535,16 +535,16 @@ const types = ref({
|
|||||||
13: "去完成",
|
13: "去完成",
|
||||||
},
|
},
|
||||||
path: {
|
path: {
|
||||||
1: "去上课",
|
1: import.meta.env.VITE_BOE_ONLINE_CLASS_URL, //在线
|
||||||
2: "/faceteach",
|
2: "/faceteach",
|
||||||
3: "案例",
|
3: import.meta.env.VITE_BOE_CASS_DETAIL_URL, //案例
|
||||||
4: "/homeworkpage",
|
4: "/homeworkpage",
|
||||||
5: "去完成",
|
5: import.meta.env.VITE_BOE_EXAM_DETAIL_URL, //考试
|
||||||
6: "/livebroadcast",
|
6: "/livebroadcast",
|
||||||
7: "外链",
|
7: " ",
|
||||||
8: "/discusspage",
|
8: "/discusspage",
|
||||||
9: "/moreactive",
|
9: "/moreactive",
|
||||||
10: "/starttest",
|
10: import.meta.env.VITE_BOE_TEST_DETAIL_URL, //测评
|
||||||
11: "/surveydetail",
|
11: "/surveydetail",
|
||||||
12: "/ballotpage",
|
12: "/ballotpage",
|
||||||
13: "去完成",
|
13: "去完成",
|
||||||
@@ -552,6 +552,32 @@ const types = ref({
|
|||||||
});
|
});
|
||||||
|
|
||||||
function toFinish(d) {
|
function toFinish(d) {
|
||||||
|
if (!types.value.path[d.type]) {
|
||||||
|
ElMessage.error("暂时未开放");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
|
||||||
|
//配置文件
|
||||||
|
const url = types.value.path[d.type] + d.targetId;
|
||||||
|
console.log("url", d, url);
|
||||||
|
import.meta.env.DEV
|
||||||
|
? (window.location.href = url)
|
||||||
|
: (window.parent.location.href = url);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (d.type === 7) {
|
||||||
|
// console.log("url", d, url);
|
||||||
|
request(LINK_DETAILS(d.courseId), {}).then((res) => {
|
||||||
|
console.log("resssss", res);
|
||||||
|
if (res.code === 200) {
|
||||||
|
const url = res.data.linkAddress;
|
||||||
|
import.meta.env.DEV
|
||||||
|
? (window.location.href = url)
|
||||||
|
: (window.parent.location.href = url);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
router.push({
|
router.push({
|
||||||
path: types.value.path[d.type],
|
path: types.value.path[d.type],
|
||||||
query: { id: d.projectTaskId, type: 2, courseId: d.courseId },
|
query: { id: d.projectTaskId, type: 2, courseId: d.courseId },
|
||||||
|
|||||||
@@ -341,8 +341,8 @@ import medal1 from "@/assets/image/medal/medal1.png";
|
|||||||
import medal2 from "@/assets/image/medal/medal2.png";
|
import medal2 from "@/assets/image/medal/medal2.png";
|
||||||
import medal3 from "@/assets/image/medal/medal3.png";
|
import medal3 from "@/assets/image/medal/medal3.png";
|
||||||
import img from "@/assets/image/uploadimg.png";
|
import img from "@/assets/image/uploadimg.png";
|
||||||
import { boeRequest, useRequest } from "@/api/request";
|
import { boeRequest, useRequest, request } from "@/api/request";
|
||||||
import { ROUTER_PROCESS } from "@/api/api";
|
import { ROUTER_PROCESS, LINK_DETAILS } from "@/api/api";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import { useUserInfo } from "@/api/utils";
|
import { useUserInfo } from "@/api/utils";
|
||||||
@@ -352,6 +352,8 @@ const {
|
|||||||
} = useRoute();
|
} = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { data } = useRequest(ROUTER_PROCESS, { routerId });
|
const { data } = useRequest(ROUTER_PROCESS, { routerId });
|
||||||
|
console.log("datadata", data);
|
||||||
|
|
||||||
const { avatar: userAvatar } = useUserInfo(
|
const { avatar: userAvatar } = useUserInfo(
|
||||||
computed(() => data.value?.userInfoBo?.userId)
|
computed(() => data.value?.userInfoBo?.userId)
|
||||||
);
|
);
|
||||||
@@ -576,16 +578,16 @@ const types = ref({
|
|||||||
13: "去完成",
|
13: "去完成",
|
||||||
},
|
},
|
||||||
path: {
|
path: {
|
||||||
1: import.meta.env.VITE_BOE_ONLINE_CLASS_URL,
|
1: import.meta.env.VITE_BOE_ONLINE_CLASS_URL, //在线
|
||||||
2: "/faceteach",
|
2: "/faceteach",
|
||||||
3: import.meta.env.VITE_BOE_CASS_DETAIL_URL,
|
3: import.meta.env.VITE_BOE_CASS_DETAIL_URL, //案例
|
||||||
4: "/homeworkpage",
|
4: "/homeworkpage",
|
||||||
5: import.meta.env.VITE_BOE_TEST_DETAIL_URL,
|
5: import.meta.env.VITE_BOE_EXAM_DETAIL_URL, //考试
|
||||||
6: "/livebroadcast",
|
6: "/livebroadcast",
|
||||||
7: "",
|
7: " ",
|
||||||
8: "/discusspage",
|
8: "/discusspage",
|
||||||
9: "/moreactive",
|
9: "/moreactive",
|
||||||
10: "/surveydetail",
|
10: import.meta.env.VITE_BOE_TEST_DETAIL_URL, //测评
|
||||||
11: "/surveydetail",
|
11: "/surveydetail",
|
||||||
12: "/ballotpage",
|
12: "/ballotpage",
|
||||||
13: "去完成",
|
13: "去完成",
|
||||||
@@ -593,19 +595,33 @@ const types = ref({
|
|||||||
});
|
});
|
||||||
|
|
||||||
function toFinish(d) {
|
function toFinish(d) {
|
||||||
|
console.log("ddd", d);
|
||||||
if (!types.value.path[d.type]) {
|
if (!types.value.path[d.type]) {
|
||||||
ElMessage.error("暂时未开放");
|
ElMessage.error("暂时未开放");
|
||||||
return;
|
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 =
|
const url = types.value.path[d.type] + d.targetId;
|
||||||
types.value.path[d.type] + (d.type === 1 ? d.targetId : d.courseId);
|
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);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (d.type === 7) {
|
||||||
|
// console.log("url", d, url);
|
||||||
|
request(LINK_DETAILS(d.courseId), {}).then((res) => {
|
||||||
|
console.log("resssss", res);
|
||||||
|
if (res.code === 200) {
|
||||||
|
const url = res.data.linkAddress;
|
||||||
|
import.meta.env.DEV
|
||||||
|
? (window.location.href = url)
|
||||||
|
: (window.parent.location.href = url);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
router.push({
|
router.push({
|
||||||
path: types.value.path[d.type],
|
path: types.value.path[d.type],
|
||||||
query: { id: d.routerTaskId, type: 1, courseId: d.courseId },
|
query: { id: d.routerTaskId, type: 1, courseId: d.courseId },
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2022-11-21 17:28:10
|
* @Date: 2022-11-21 17:28:10
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2022-12-13 20:49:00
|
* @LastEditTime: 2022-12-15 10:22:25
|
||||||
* @FilePath: /fe-stu/vite.config.js
|
* @FilePath: /fe-stu/vite.config.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
@@ -13,8 +13,8 @@ import { viteMockServe } from 'vite-plugin-mock'
|
|||||||
import topLevelAwait from "vite-plugin-top-level-await";
|
import topLevelAwait from "vite-plugin-top-level-await";
|
||||||
|
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const url = 'http://localhost:30001'
|
// const url = 'http://localhost:30001'
|
||||||
// const url = 'http://111.231.196.214:12013/manageApi'
|
const url = 'http://111.231.196.214:12013/manageApi'
|
||||||
export default defineConfig(({ command }) =>
|
export default defineConfig(({ command }) =>
|
||||||
({
|
({
|
||||||
base: '/fe-student',
|
base: '/fe-student',
|
||||||
@@ -91,6 +91,9 @@ export default defineConfig(({ command }) =>
|
|||||||
}, '/userbasic': {
|
}, '/userbasic': {
|
||||||
target: 'https://u-pre.boe.com',
|
target: 'https://u-pre.boe.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
}, '/link': {
|
||||||
|
target: url,
|
||||||
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user