From 9fc114d972a888c0d557edcea1f763e179dc443c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chhk=E2=80=9D?= <“hhk@mail.com”> Date: Tue, 30 Jul 2024 15:29:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=AD=A6=E6=88=90=E6=9E=9C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=A9=BF=E9=80=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/officialWebsite/team.vue | 51 +++++++++++++++------ 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/ruoyi-ui/src/views/officialWebsite/team.vue b/ruoyi-ui/src/views/officialWebsite/team.vue index 913de9a..e7103d4 100644 --- a/ruoyi-ui/src/views/officialWebsite/team.vue +++ b/ruoyi-ui/src/views/officialWebsite/team.vue @@ -33,9 +33,9 @@
-
{{item.contentTitle}}
+
{{ item.contentTitle }}
-
+
@@ -50,21 +50,23 @@
教学团队
-
+
- + +
-
王尔特
+ +
{{ item.contentTitle }}
- - + +
+
-
--> +
@@ -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