This commit is contained in:
Pengxiansen
2025-02-17 16:36:36 +08:00
parent 911146848d
commit 64ca9593b1
2 changed files with 134 additions and 170 deletions

View File

@@ -4,6 +4,8 @@
style="width: 100%; height: 290px" style="width: 100%; height: 290px"
src="@/assets/image/growth/bg.png" src="@/assets/image/growth/bg.png"
/> />
<div class="nav"> <div class="nav">
<div class="tabs"> <div class="tabs">
<div <div
@@ -80,7 +82,7 @@
<template v-if="stageProcessList && stageProcessList.length"> <template v-if="stageProcessList && stageProcessList.length">
<div class="growth-list-content" v-loading="loading"> <div class="growth-list-content" v-loading="loading">
<el-row :gutter="24"> <el-row :gutter="40">
<el-col <el-col
style="margin-bottom: 21px" style="margin-bottom: 21px"
:span="6" :span="6"
@@ -271,9 +273,6 @@ const { commit, dispatch, state } = useStore();
const userInfo = computed(() => state.userInfo); const userInfo = computed(() => state.userInfo);
const errorData = computed(() => state.projectError); const errorData = computed(() => state.projectError);
const lastLearned = computed(() =>
stageProcessList.value.find((item) => item.lastStudy)
);
const getAssetsFile = (url) => { const getAssetsFile = (url) => {
return new URL(`../../assets/image/growth/type${url}.png`, import.meta.url) return new URL(`../../assets/image/growth/type${url}.png`, import.meta.url)
@@ -284,7 +283,7 @@ const templateClick = () => {
router.push({ router.push({
path: "/growthRoadmap", path: "/growthRoadmap",
query: { query: {
routerId: routerId, routerId: selectGrowth.value.id,
}, },
}); });
}; };

View File

@@ -4,7 +4,11 @@
style="width: 100%; height: 290px" style="width: 100%; height: 290px"
src="@/assets/image/growth/bg.png" src="@/assets/image/growth/bg.png"
/> />
<div class="nav" :style="{ transform: 'scale(' + transformSize + ')' }"> <div
:style="{ transform: 'scale(' + transformSize + ')' }"
style="transform-origin: top left"
>
<div class="nav">
<div class="tabs"> <div class="tabs">
<div <div
class="tabs-item" class="tabs-item"
@@ -23,40 +27,8 @@
<div class="tabs-line"></div> <div class="tabs-line"></div>
</div> </div>
</div> </div>
<!-- <div style="display: flex">
<el-select
style="width: 230px"
:teleported="false"
v-model="queryParams.completionStatus"
placeholder="搜索学习状态"
>
<el-option label="全部" value="3"> </el-option>
<el-option label="未开始" value="0"> </el-option>
<el-option label="已完成" value="1"> </el-option>
<el-option label="进行中" value="2"> </el-option>
</el-select>
<el-input
style="margin-left: 9px; width: 230px"
v-model="queryParams.taskName"
placeholder="搜索名称"
clearable
/>
<el-button
icon="Search"
style="margin-left: 20px"
type="primary"
@click="getList"
>搜索</el-button
>
<el-button icon="Refresh" style="margin-left: 20px" @click="refresh"
>清除</el-button
>
</div> -->
</div> </div>
<div <div class="growth-path-container">
class="growth-path-container"
:style="{ transform: 'scale(' + transformSize + ')' }"
>
<div class="growth-name-type"> <div class="growth-name-type">
<el-dropdown :teleported="false" trigger="click" ref="dropdownRef"> <el-dropdown :teleported="false" trigger="click" ref="dropdownRef">
<div class="growth-name"> <div class="growth-name">
@@ -94,7 +66,9 @@
:style="point[item.position]" :style="point[item.position]"
v-for="(item, index) of stageProcessList" v-for="(item, index) of stageProcessList"
> >
<template v-if="(item.position + 1) % 2 || item.position + 1 == 15"> <template
v-if="(item.position + 1) % 2 || item.position + 1 == 15"
>
<div class="item-link"> <div class="item-link">
<div class="circle"></div> <div class="circle"></div>
<div class="line"></div> <div class="line"></div>
@@ -161,7 +135,7 @@
<el-empty description="暂无数据" /> <el-empty description="暂无数据" />
</template> </template>
</div> </div>
</div>
<!-- 弹框提示信息 --> <!-- 弹框提示信息 -->
<el-dialog <el-dialog
title="" title=""
@@ -361,7 +335,6 @@ const point = [
top: "267px", top: "267px",
right: "1551px", right: "1551px",
}, },
{ {
top: "650px", top: "650px",
right: "1660px", right: "1660px",
@@ -372,9 +345,7 @@ const { commit, dispatch, state } = useStore();
const userInfo = computed(() => state.userInfo); const userInfo = computed(() => state.userInfo);
const errorData = computed(() => state.projectError); const errorData = computed(() => state.projectError);
const lastLearned = computed(() =>
stageProcessList.value.find((item) => item.lastStudy)
);
const stateData = computed(() => { const stateData = computed(() => {
return (item) => { return (item) => {
@@ -423,7 +394,7 @@ const templateClick = () => {
router.push({ router.push({
path: "/growthList", path: "/growthList",
query: { query: {
routerId: routerId, routerId: selectGrowth.value.id,
}, },
}); });
}; };
@@ -445,12 +416,6 @@ const tabClick = (type, status) => {
// 学习任务列表 // 学习任务列表
const stageProcessList = ref([]); const stageProcessList = ref([]);
// 清除
const refresh = () => {
queryParams.taskName = "";
queryParams.completionStatus = "";
getList();
};
// 是否加载数据中 // 是否加载数据中
const loading = ref(false); const loading = ref(false);
const getList = () => { const getList = () => {
@@ -464,7 +429,7 @@ const getList = () => {
} }
loading.value = true; loading.value = true;
growthRequest(PROFESSIONAL_STUDENT_TASKLIST, params).then((res) => { 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; let num = 15 / newData.length;
stageProcessList.value = newData.map((item, index) => { stageProcessList.value = newData.map((item, index) => {
@@ -793,7 +758,7 @@ function toOffcoursePlanPage(id) {
height: 80px; height: 80px;
background: #ffffff; background: #ffffff;
padding: 0 80px 0 62px; padding: 0 80px 0 62px;
transform-origin: top left; width: 1920px;
} }
.growth-name-type { .growth-name-type {
display: flex; display: flex;