From ed81c985779095b10c1188834d5b8374a27d244b Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Mon, 24 Feb 2025 16:51:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.js | 4 +- .../growth/components/roadmap2/index.vue | 7 ++++ src/views/growth/growthList.vue | 39 +++++++++++-------- src/views/growth/growthRoadmap.vue | 12 +++--- vite.config.js | 18 ++++----- 5 files changed, 47 insertions(+), 33 deletions(-) diff --git a/src/api/api.js b/src/api/api.js index 3fea3db..7badd85 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -134,8 +134,8 @@ export const ROUTER_DETAIL_CHAPTER_LIST = `/stu/router/chapterPcList` /**专业力必修模块 */ -let baseUrl = "/growth" -// let baseUrl = "" +// let baseUrl = "/growth" +let baseUrl = "" //查询专业力必修详情 export const PROFESSIONAL_STUDENT_DETAIL = id => `${baseUrl}/professional/student/studentGrowthDetail/${id}` //查询专业力必修详情 diff --git a/src/views/growth/components/roadmap2/index.vue b/src/views/growth/components/roadmap2/index.vue index e1448c8..1cb1300 100644 --- a/src/views/growth/components/roadmap2/index.vue +++ b/src/views/growth/components/roadmap2/index.vue @@ -276,6 +276,13 @@ const stateData = computed(() => { bgColor: "rgba(242, 144, 61, 0.2)", progressColor: "#F2903D", }; + }else if (item.completionStatus === "3") { + return { + text: "已结束", + color: "#666666", + bgColor: "rgba(102, 102, 102, 0.2)", + progressColor: "#AEB3B8", + }; } }; }); diff --git a/src/views/growth/growthList.vue b/src/views/growth/growthList.vue index eeec222..fb9abaf 100644 --- a/src/views/growth/growthList.vue +++ b/src/views/growth/growthList.vue @@ -15,10 +15,11 @@ @@ -348,7 +349,6 @@ - {{ item }} + {{ item.name }}
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 @@ @@ -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,