mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-09 19:06:48 +08:00
Merge remote-tracking branch 'yx/250207-growth-prod-master-zp' into dev0731
This commit is contained in:
@@ -54,12 +54,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="growth-name-type">
|
<div class="growth-name-type">
|
||||||
<div class="growth-name">
|
<el-dropdown :teleported="false" trigger="click" ref="dropdownRef">
|
||||||
|
<div class="growth-name">
|
||||||
<div>{{ selectGrowth?.growthName }}</div>
|
<div>{{ selectGrowth?.growthName }}</div>
|
||||||
<el-dropdown :teleported="false" trigger="click" ref="dropdownRef">
|
<div style="margin-left: 20px; cursor: pointer">
|
||||||
<div style="margin-left: 20px; cursor: pointer">
|
|
||||||
<el-icon color="#000" size="16"><CaretBottom /></el-icon>
|
<el-icon color="#000" size="16"><CaretBottom /></el-icon>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
@@ -71,8 +72,6 @@
|
|||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="growth-type">
|
<div class="growth-type">
|
||||||
<div class="type-item-list">列表</div>
|
<div class="type-item-list">列表</div>
|
||||||
<div class="type-item-path" @click="templateClick">路径</div>
|
<div class="type-item-path" @click="templateClick">路径</div>
|
||||||
@@ -638,11 +637,13 @@ function toOffcoursePlanPage(id) {
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.growth-list-content {
|
.growth-list-content {
|
||||||
padding: 0 80px;
|
padding: 0 80px;
|
||||||
.list-item {
|
.list-item {
|
||||||
width: 425px;
|
cursor: pointer;
|
||||||
|
// width: 425px;
|
||||||
}
|
}
|
||||||
.item-time {
|
.item-time {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
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
|
||||||
class="tabs-item"
|
class="tabs-item"
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
>
|
>
|
||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="growth-path-container">
|
<div class="growth-path-container" :style="{transform:'scale('+ transformSize + ')'}">
|
||||||
<div class="growth-name-type">
|
<div class="growth-name-type">
|
||||||
<div class="growth-name">
|
<div class="growth-name">
|
||||||
<div>{{ selectGrowth?.growthName }}</div>
|
<div>{{ selectGrowth?.growthName }}</div>
|
||||||
@@ -407,6 +407,14 @@ const stateData = computed(() => {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 储存屏幕宽
|
||||||
|
const windowWidth = ref(0);
|
||||||
|
const transformSize = ref(0.8);
|
||||||
|
|
||||||
|
const updateWindowWidth = () => {
|
||||||
|
windowWidth.value = window.innerWidth;
|
||||||
|
transformSize.value = windowWidth.value / 1920
|
||||||
|
}
|
||||||
// 样式类型
|
// 样式类型
|
||||||
const templateClick = () => {
|
const templateClick = () => {
|
||||||
router.push({
|
router.push({
|
||||||
@@ -470,13 +478,17 @@ const select = (item) => {
|
|||||||
getList();
|
getList();
|
||||||
};
|
};
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
updateWindowWidth(); // 初始化宽度
|
||||||
|
window.addEventListener('resize', updateWindowWidth());
|
||||||
dispatch("getGrowthInfo", { routerId });
|
dispatch("getGrowthInfo", { routerId });
|
||||||
getList();
|
getList();
|
||||||
growthRequest(PROFESSIONAL_STUDENT_LIST).then((res) => {
|
growthRequest(PROFESSIONAL_STUDENT_LIST).then((res) => {
|
||||||
growthList.value = res.data;
|
growthList.value = res.data;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
// unMounted(() =>{ // Vue 3.x 使用 unmounted
|
||||||
|
// window.removeEventListener('resize', updateWindowWidth());
|
||||||
|
// }),
|
||||||
watch(
|
watch(
|
||||||
() => state.growthInfo,
|
() => state.growthInfo,
|
||||||
(val) => {
|
(val) => {
|
||||||
@@ -787,6 +799,7 @@ function toOffcoursePlanPage(id) {
|
|||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
width: 1920px;
|
width: 1920px;
|
||||||
|
transform-origin: top left;
|
||||||
height: 1122px;
|
height: 1122px;
|
||||||
}
|
}
|
||||||
.path-container {
|
.path-container {
|
||||||
|
|||||||
Reference in New Issue
Block a user