Merge remote-tracking branch 'zshyx/250207-growth-prod-master_1202-zp' into dev0515

This commit is contained in:
joshen
2025-02-16 23:27:07 +08:00

View File

@@ -118,11 +118,11 @@
<div <div
:key="item.id" :key="item.id"
class="item-growth" class="item-growth"
:class="selectData.id == item.id ? 'active' : ''" :class="activeItem.id == item.id ? 'active' : ''"
v-for="item of list" v-for="item of list"
> >
<div class="icon"></div> <div class="icon"></div>
<div @click="HandlerItemGroupName(item)"> <div @click="handlerAnchor(item)">
{{ item.growthName }} {{ item.growthName }}
</div> </div>
</div> </div>
@@ -137,7 +137,6 @@ import { listData, getTotalGrowthTaskDetail } from "@/api/growth/growthpath";
export default { export default {
data() { data() {
return { return {
selectData: {},
list: [], list: [],
loading: false, loading: false,
totalData: {}, totalData: {},
@@ -194,7 +193,7 @@ export default {
"/forward?to=" + studentPath + "/growthList&params=" + params "/forward?to=" + studentPath + "/growthList&params=" + params
); );
}, },
HandlerItemGroupName(item, index) { handlerAnchor(item, index) {
this.activeItem = item; this.activeItem = item;
let a = document.createElement("a"); let a = document.createElement("a");
a.href = `#${item.id}`; a.href = `#${item.id}`;
@@ -208,6 +207,7 @@ export default {
created() { created() {
this.loading = true; this.loading = true;
listData().then((res) => { listData().then((res) => {
this.activeItem = res.data[0];
this.list = res.data; this.list = res.data;
this.loading = false; this.loading = false;
}); });
@@ -345,6 +345,7 @@ export default {
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
padding: 10px 20px 10px 8px; padding: 10px 20px 10px 8px;
cursor: pointer;
} }
.icon { .icon {
width: 4px; width: 4px;