From 64ca9593b1d9c7626c9a8866247300df238f288a Mon Sep 17 00:00:00 2001
From: Pengxiansen <2422914688@qq.com>
Date: Mon, 17 Feb 2025 16:36:36 +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/views/growth/growthList.vue | 9 +-
src/views/growth/growthRoadmap.vue | 295 +++++++++++++----------------
2 files changed, 134 insertions(+), 170 deletions(-)
diff --git a/src/views/growth/growthList.vue b/src/views/growth/growthList.vue
index b5cd5a4..e4f4ca3 100644
--- a/src/views/growth/growthList.vue
+++ b/src/views/growth/growthList.vue
@@ -4,6 +4,8 @@
style="width: 100%; height: 290px"
src="@/assets/image/growth/bg.png"
/>
+
+
-
+
state.userInfo);
const errorData = computed(() => state.projectError);
-const lastLearned = computed(() =>
- stageProcessList.value.find((item) => item.lastStudy)
-);
const getAssetsFile = (url) => {
return new URL(`../../assets/image/growth/type${url}.png`, import.meta.url)
@@ -284,7 +283,7 @@ const templateClick = () => {
router.push({
path: "/growthRoadmap",
query: {
- routerId: routerId,
+ routerId: selectGrowth.value.id,
},
});
};
diff --git a/src/views/growth/growthRoadmap.vue b/src/views/growth/growthRoadmap.vue
index c83e0b4..d092fbd 100644
--- a/src/views/growth/growthRoadmap.vue
+++ b/src/views/growth/growthRoadmap.vue
@@ -4,164 +4,138 @@
style="width: 100%; height: 290px"
src="@/assets/image/growth/bg.png"
/>
-
-
-
-
-
我的选修
-
+
-
-
-
-
-
{{ selectGrowth?.growthName }}
-
-
+
+
+
+
+
{{ selectGrowth?.growthName }}
+
+
+
+
+
+
+
+ {{ item.growthName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ item.taskName }}
+
+
+
+
+
+
+
+ {{ stateData(item).text }}
+
+
+
+
+
+
{{ item.taskName }}
+
+
+
+
+
+
+
+
+ {{ stateData(item).text }}
+
+
+
+
-
-
-
- {{ item.growthName }}
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
{{ item.taskName }}
-
-
-
-
-
-
-
- {{ stateData(item).text }}
-
-
-
-
-
-
{{ item.taskName }}
-
-
-
-
-
-
-
-
- {{ stateData(item).text }}
-
-
-
-
-
-
-
-
-
-
-
state.userInfo);
const errorData = computed(() => state.projectError);
-const lastLearned = computed(() =>
- stageProcessList.value.find((item) => item.lastStudy)
-);
+
const stateData = computed(() => {
return (item) => {
@@ -423,7 +394,7 @@ const templateClick = () => {
router.push({
path: "/growthList",
query: {
- routerId: routerId,
+ routerId: selectGrowth.value.id,
},
});
};
@@ -445,12 +416,6 @@ const tabClick = (type, status) => {
// 学习任务列表
const stageProcessList = ref([]);
-// 清除
-const refresh = () => {
- queryParams.taskName = "";
- queryParams.completionStatus = "";
- getList();
-};
// 是否加载数据中
const loading = ref(false);
const getList = () => {
@@ -464,7 +429,7 @@ const getList = () => {
}
loading.value = true;
growthRequest(PROFESSIONAL_STUDENT_TASKLIST, params).then((res) => {
- let newData = res.data.slice(0, 15);
+ let newData = res.data.slice(0, 15).reverse()
// 默认第一个在第一点位
let num = 15 / newData.length;
stageProcessList.value = newData.map((item, index) => {
@@ -793,7 +758,7 @@ function toOffcoursePlanPage(id) {
height: 80px;
background: #ffffff;
padding: 0 80px 0 62px;
- transform-origin: top left;
+ width: 1920px;
}
.growth-name-type {
display: flex;