教学成果数据穿透
This commit is contained in:
parent
bb81f1e59c
commit
9fc114d972
@ -50,21 +50,23 @@
|
|||||||
<div class="team" v-if="currentActive == 0">
|
<div class="team" v-if="currentActive == 0">
|
||||||
<div class="tt">教学团队</div>
|
<div class="tt">教学团队</div>
|
||||||
<div class="team-list">
|
<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">
|
<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>
|
||||||
<div class="tts">王尔特</div>
|
<!-- <div class="tts">王尔特</div> -->
|
||||||
|
<div class="tts">{{ item.contentTitle }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<!-- <div v-for="(item, index) in nav " :key=index>
|
|
||||||
<div class="teaching-list" v-if="currentActive == index">
|
<div class="team" v-if="currentActive == 999 && isShowDetails">
|
||||||
<div class="neirong" v-html="pageContextList[index]"></div>
|
<div class="neirong" v-html="detailsContent"></div>
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -94,6 +96,8 @@ export default {
|
|||||||
imgurl: process.env.VUE_APP_BASE_API,
|
imgurl: process.env.VUE_APP_BASE_API,
|
||||||
pageContextList: [],
|
pageContextList: [],
|
||||||
teachingAchievements: [],
|
teachingAchievements: [],
|
||||||
|
detailsContent:[],
|
||||||
|
teachingTeam: [],
|
||||||
nav: [
|
nav: [
|
||||||
// { name: '教学团队' },
|
// { name: '教学团队' },
|
||||||
// { name: '教学成果' },
|
// { name: '教学成果' },
|
||||||
@ -112,12 +116,18 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
showDetails(value){
|
||||||
|
this.isShowDetails = true;
|
||||||
|
this.currentActive = 999;
|
||||||
|
this.detailsContent = value.contentDetail;
|
||||||
|
},
|
||||||
// 触发导航
|
// 触发导航
|
||||||
getCurrentActive(value) {
|
getCurrentActive(value) {
|
||||||
if (this.currentActive == value) {
|
if (this.currentActive == value) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.currentActive = value
|
this.currentActive = value
|
||||||
|
this.isShowDetails = false;
|
||||||
},
|
},
|
||||||
initPageData() {
|
initPageData() {
|
||||||
|
|
||||||
@ -129,9 +139,22 @@ export default {
|
|||||||
getPageColumn(routeParam).then(response => {
|
getPageColumn(routeParam).then(response => {
|
||||||
response.data.forEach(cloumnItem => {
|
response.data.forEach(cloumnItem => {
|
||||||
this.nav.push(cloumnItem);
|
this.nav.push(cloumnItem);
|
||||||
|
|
||||||
|
//教学团队
|
||||||
|
if (cloumnItem.id == "1816773589098172416") {
|
||||||
cloumnItem.children.list.forEach(element => {
|
cloumnItem.children.list.forEach(element => {
|
||||||
this.teachingAchievements.push(element);
|
this.teachingAchievements.push(element);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
//教学团队
|
||||||
|
if (cloumnItem.id == "1816773517664980992") {
|
||||||
|
cloumnItem.children.list.forEach(element => {
|
||||||
|
this.teachingTeam.push(element);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// cloumnItem.categoryName
|
// cloumnItem.categoryName
|
||||||
|
Loading…
Reference in New Issue
Block a user