1) {
- openCourseList.value = d.targetName?.split(",");
- openCourseIdList.value = d.targetId?.split(",");
+ openCourseList.value = d.offcoursePlanList;
openCourseVisible.value = true;
return;
+ } else if (d.offcoursePlanList && d.offcoursePlanList.length == 1) {
+ let date1 = new Date(d.offcoursePlanList[0].endTime).getTime();
+ let date2 = new Date().getTime();
+ if (date1 < date2) {
+ dialogVisibleTip.value = "当前课程已结束";
+ dialogVisible.value = true;
+ return
+ }
}
}
@@ -645,7 +652,7 @@ async function toFinish(d) {
if (date1 < date2) {
dialogVisibleTip.value = "当前作业已结束";
dialogVisible.value = true;
- //return
+ return
}
}
// 直播结束时间
@@ -655,7 +662,7 @@ async function toFinish(d) {
if (date1 < date2) {
dialogVisibleTip.value = "当前直播已结束";
dialogVisible.value = true;
- //return
+ return
}
}
// 考试 停用
@@ -702,7 +709,7 @@ async function toFinish(d) {
if (date1 < date2) {
dialogVisibleTip.value = "当前活动已结束";
dialogVisible.value = true;
- //return
+ return
}
}
@@ -849,11 +856,11 @@ async function toFinish(d) {
}
}
-function toOffcoursePlanPage(id) {
+function toOffcoursePlanPage(item) {
window.open(
`${location.protocol}//${location.host}${
import.meta.env.VITE_BASE_API
- }/stu/project/redirectDetail?courseId=${id}`,
+ }/stu/project/redirectDetail?courseId=${item.id}`,
"_top"
);
}
diff --git a/src/views/growth/growthRoadmap.vue b/src/views/growth/growthRoadmap.vue
index 69dc6d2..106259e 100644
--- a/src/views/growth/growthRoadmap.vue
+++ b/src/views/growth/growthRoadmap.vue
@@ -15,10 +15,11 @@
- {{ item.growthName }}
+ {{ item.growthName }}
@@ -231,7 +232,6 @@
},
server: {
proxy: {
- // "/professional": {
- // // target: 'http://192.168.16.195:32002',
- // // target: 'http://192.168.150.97:32002',
- // target: 'http://192.168.66.211:32002',
- // changeOrigin: true,
- // },
- '/growth': {
- target: 'https://u-pre.boe.com',
+ "/professional": {
+ // target: 'http://192.168.16.195:32002',
+ // target: 'http://192.168.150.97:32002',
+ target: 'http://192.168.31.211:32002',
changeOrigin: true,
- },
+ },
+ // '/growth': {
+ // target: 'https://u-pre.boe.com',
+ // changeOrigin: true,
+ // },
'/file/upload': {
target: loadEnv(mode, process.cwd()).VITE_PROXY_URL,
changeOrigin: true,