教学成果数据穿透
This commit is contained in:
parent
bb81f1e59c
commit
9fc114d972
@ -33,9 +33,9 @@
|
||||
<!-- <img src="../../assets/gw/Snipaste_2024-07-23_22-51-23.jpg" alt=""> -->
|
||||
</div>
|
||||
<div class="text">
|
||||
<div class="tts">{{item.contentTitle}}</div>
|
||||
<div class="tts">{{ item.contentTitle }}</div>
|
||||
<div class="desc">
|
||||
<div class="desc" v-html="item.summary"></div>
|
||||
<div class="desc" v-html="item.summary"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="more">
|
||||
@ -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>
|
||||
<!-- main -->
|
||||
|
||||
<div class="team" v-if="currentActive == 999 && isShowDetails">
|
||||
<div class="neirong" v-html="detailsContent"></div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
@ -93,7 +95,9 @@ export default {
|
||||
return {
|
||||
imgurl: process.env.VUE_APP_BASE_API,
|
||||
pageContextList: [],
|
||||
teachingAchievements:[],
|
||||
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);
|
||||
cloumnItem.children.list.forEach(element => {
|
||||
this.teachingAchievements.push(element);
|
||||
});
|
||||
|
||||
//教学团队
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user