diff --git a/src/components/PlatformList/PlatformList.vue b/src/components/PlatformList/PlatformList.vue index 82f7581..d470f9f 100644 --- a/src/components/PlatformList/PlatformList.vue +++ b/src/components/PlatformList/PlatformList.vue @@ -5,7 +5,7 @@

{{ item.name }}

-

了解更多→

+

了解更多→

@@ -182,24 +182,27 @@ export default { } }, // 查看 研究院/仪器 详情 - jump(id) { + jump(item) { if (this.listState === 0) { this.$router.push({ path: '/NewPlatform/Share/Institute', name: 'Institute', - params: { id }, + params: { + id: item.id, + direction: item.direction, + }, }); } else if (this.listState === 1) { this.$router.push({ path: '/NewPlatform/Share/InsDet', name: 'InsDet', - params: { id }, + params: { id: item.id }, }); } else if (this.listState === 3) { this.$router.push({ path: '/NewPlatform/Share/InsDet', name: 'InsDet', - params: { id }, + params: { id: item.id }, }); } }, diff --git a/src/views/NewPlatform/Children/ShareChild/Institute.vue b/src/views/NewPlatform/Children/ShareChild/Institute.vue index 805278e..238231f 100644 --- a/src/views/NewPlatform/Children/ShareChild/Institute.vue +++ b/src/views/NewPlatform/Children/ShareChild/Institute.vue @@ -7,15 +7,10 @@

研究院介绍

-
研究院介绍
+
{{ direction }}

设备列表

-
+

{{ item.name }}

了解更多→

@@ -63,7 +58,7 @@
职称职务
研究方向
-
+
{{ item.name }}
@@ -104,6 +99,7 @@ export default { ], obj: null, list: [], + direction: '', }; }, computed: mapState('home', ['LabId']), @@ -114,6 +110,9 @@ export default { } else { this.id = this.LabId; } + if (this.$route.params.direction) { + this.direction = this.$route.params.direction; + } this.getData(); this.getTeam(); },