教学成果数据穿透

This commit is contained in:
“hhk” 2024-07-30 15:29:51 +08:00
parent bb81f1e59c
commit 9fc114d972

View File

@ -50,21 +50,23 @@
<div class="team" v-if="currentActive == 0">
<div class="tt">教学团队</div>
<div class="team-list">
<div class="item" v-for="(item, index) in 8">
<div class="item" v-for="(item, index) in teachingTeam" :key="index">
<div class="img">
<img src="../../assets/gw/Snipaste_2024-07-23_22-51-23.jpg" alt="" class="imgWO">
<img :src="imgurl + item.contentImg" alt="" class="imgWO">
<!-- <img src="../../assets/gw/Snipaste_2024-07-23_22-51-23.jpg" alt="" class="imgWO"> -->
</div>
<div class="tts">王尔特</div>
<!-- <div class="tts">王尔特</div> -->
<div class="tts">{{ item.contentTitle }}</div>
</div>
</div>
</div>
<!-- main -->
<!-- <div v-for="(item, index) in nav " :key=index>
<div class="teaching-list" v-if="currentActive == index">
<div class="neirong" v-html="pageContextList[index]"></div>
<div class="team" v-if="currentActive == 999 && isShowDetails">
<div class="neirong" v-html="detailsContent"></div>
</div>
</div> -->
</div>
@ -94,6 +96,8 @@ export default {
imgurl: process.env.VUE_APP_BASE_API,
pageContextList: [],
teachingAchievements: [],
detailsContent:[],
teachingTeam: [],
nav: [
// { name: '' },
// { name: '' },
@ -112,12 +116,18 @@ export default {
},
methods: {
showDetails(value){
this.isShowDetails = true;
this.currentActive = 999;
this.detailsContent = value.contentDetail;
},
//
getCurrentActive(value) {
if (this.currentActive == value) {
return
}
this.currentActive = value
this.isShowDetails = false;
},
initPageData() {
@ -129,9 +139,22 @@ export default {
getPageColumn(routeParam).then(response => {
response.data.forEach(cloumnItem => {
this.nav.push(cloumnItem);
//
if (cloumnItem.id == "1816773589098172416") {
cloumnItem.children.list.forEach(element => {
this.teachingAchievements.push(element);
});
}
//
if (cloumnItem.id == "1816773517664980992") {
cloumnItem.children.list.forEach(element => {
this.teachingTeam.push(element);
});
}
// cloumnItem.categoryName