diff --git a/src/views/NewPlatform/Children/ShareChild/Institute.vue b/src/views/NewPlatform/Children/ShareChild/Institute.vue index cbd8fbd..1e31957 100644 --- a/src/views/NewPlatform/Children/ShareChild/Institute.vue +++ b/src/views/NewPlatform/Children/ShareChild/Institute.vue @@ -6,21 +6,18 @@
-

设备列表

-
-
+

研究院介绍

+
123
+

设备列表

+
+

{{ item.name }}

了解更多→

-

人才团队带头人情况

-
+

人才团队带头人情况

+

姓名

性别

@@ -34,7 +31,7 @@

工作单位

研究方向

-
+

{{ obj.name }}

@@ -51,12 +48,11 @@

{{ obj.direction }}

-

团队成员信息

-
+
出生年月
学历学位
职称职务
@@ -68,13 +64,12 @@
-
{{ item.birthday }}
{{ item.education }}
{{ item.position }}
{{ item.direction }}
-
+
-->
@@ -131,8 +126,10 @@ export default { const res = await selInstrumentByRes(params); const { code, msg, data } = res.data; if (code === 200) { - this.list = data.list; - this.total = parseInt(data.total); + if (data.list !== []) { + this.list = data.list; + this.total = parseInt(data.total); + } } } catch (error) { console.log(error); @@ -145,7 +142,9 @@ export default { const res = await teamSearch(params); const { code, msg, data } = res.data; if (code === 200) { - this.obj = data[0]; + if (data !== []) { + this.obj = data[0]; + } } } catch (error) { console.log(error);