diff --git a/ruoyi-ui/src/views/officialWebsite/committee.vue b/ruoyi-ui/src/views/officialWebsite/committee.vue index ca0c1c7..c8fd11a 100644 --- a/ruoyi-ui/src/views/officialWebsite/committee.vue +++ b/ruoyi-ui/src/views/officialWebsite/committee.vue @@ -36,7 +36,13 @@
-
+
+
{{item.contentTitle}}
+
{{item.publishDate}}
+
+
+
+
@@ -75,6 +81,7 @@ export default { data() { return { onelist:[], + twolist:[], dataList: [], categoryId:'', pageContextList: [], @@ -98,9 +105,12 @@ export default { methods: { handleDataFromPage(data){ - if (this.currentActive === 0){ + if (this.currentActive == 0){ this.onelist = data } + if (this.currentActive == 2){ + this.twolist = data + } }, goDeatail(data){ @@ -122,6 +132,12 @@ export default { }, // 触发导航 getCurrentActive(value) { + if (this.currentActive === 0){ + this.categoryId = this.oneid + } + if (this.currentActive === 1){ + this.categoryId = this.twoid + } if (this.currentActive == value) { return } @@ -141,6 +157,9 @@ export default { console.log('routeParam',response) this.onelist = response.data[0].children.list + this.oneid = response.data[0].id + this.twolist = response.data[2].children.list + this.twoid = response.data[2].id this.categoryId = response.data[0].id response.data.forEach(cloumnItem => { this.nav.push(cloumnItem);