Browse Source

第二版修改

master
lucky 5 years ago
parent
commit
3dd8c06ffd
  1. 13
      src/views/NewPlatform/Children/ShareChild/Institute.vue

13
src/views/NewPlatform/Children/ShareChild/Institute.vue

@ -53,8 +53,8 @@
<p>{{ obj.direction }}</p>
</div>
</div>
<!-- <p class="font-bold-24 item-title" v-if="obj !== {} || obj.teamMemberList !== []">团队成员信息</p>
<div style="background: #fff" v-if="obj !== {} || obj.teamMemberList !== []">
<p class="font-bold-24 item-title" v-if="obj !== null">团队成员信息</p>
<div style="background: #fff" v-if="obj !== null">
<div class="d-flex">
<div class="h-box" style="flex: 1">姓名</div>
<div class="h-box" style="flex: 1">性别</div>
@ -63,6 +63,7 @@
<div class="h-box" style="flex: 1">职称职务</div>
<div class="h-box" style="flex: 1">研究方向</div>
</div>
<div v-if="obj.teamMemberList && obj.teamMemberList.length>0">
<div :key="index" class="d-flex" v-for="(item, index) in obj.teamMemberList">
<div class="con-box" style="flex: 1">{{ item.name }}</div>
<div class="con-box" style="flex: 1">
@ -74,7 +75,8 @@
<div class="con-box" style="flex: 1">{{ item.position }}</div>
<div class="con-box" style="flex: 1">{{ item.direction }}</div>
</div>
</div>-->
</div>
</div>
</div>
</div>
</template>
@ -131,7 +133,7 @@ export default {
const res = await selInstrumentByRes(params);
const { code, msg, data } = res.data;
if (code === 200) {
if (data.list !== []) {
if (data.list && data.list.length > 0) {
this.list = data.list;
this.total = parseInt(data.total);
}
@ -147,9 +149,8 @@ export default {
const res = await teamSearch(params);
const { code, msg, data } = res.data;
if (code === 200) {
if (data !== [] && data.length > 0) {
if (data && data.length > 0) {
this.obj = data[0];
console.log('this.obj: ', this.obj);
}
}
} catch (error) {

Loading…
Cancel
Save