From 890a8a7c2f155409bca6dc3c81e56ca51365f427 Mon Sep 17 00:00:00 2001 From: binbin0314 Date: Tue, 19 Jan 2021 17:31:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A0=94=E7=A9=B6=E9=99=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Children/ShareChild/Institute.vue | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) 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);