mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
Merge remote-tracking branch 'zshyx/250207-growth-prod-master_1202-zp' into dev0515
This commit is contained in:
@@ -118,11 +118,11 @@
|
||||
<div
|
||||
:key="item.id"
|
||||
class="item-growth"
|
||||
:class="selectData.id == item.id ? 'active' : ''"
|
||||
:class="activeItem.id == item.id ? 'active' : ''"
|
||||
v-for="item of list"
|
||||
>
|
||||
<div class="icon"></div>
|
||||
<div @click="HandlerItemGroupName(item)">
|
||||
<div @click="handlerAnchor(item)">
|
||||
{{ item.growthName }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -137,7 +137,6 @@ import { listData, getTotalGrowthTaskDetail } from "@/api/growth/growthpath";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
selectData: {},
|
||||
list: [],
|
||||
loading: false,
|
||||
totalData: {},
|
||||
@@ -194,7 +193,7 @@ export default {
|
||||
"/forward?to=" + studentPath + "/growthList¶ms=" + params
|
||||
);
|
||||
},
|
||||
HandlerItemGroupName(item, index) {
|
||||
handlerAnchor(item, index) {
|
||||
this.activeItem = item;
|
||||
let a = document.createElement("a");
|
||||
a.href = `#${item.id}`;
|
||||
@@ -208,6 +207,7 @@ export default {
|
||||
created() {
|
||||
this.loading = true;
|
||||
listData().then((res) => {
|
||||
this.activeItem = res.data[0];
|
||||
this.list = res.data;
|
||||
this.loading = false;
|
||||
});
|
||||
@@ -345,6 +345,7 @@ export default {
|
||||
font-size: 14px;
|
||||
color: #666666;
|
||||
padding: 10px 20px 10px 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.icon {
|
||||
width: 4px;
|
||||
|
||||
Reference in New Issue
Block a user