|
|
@ -18,9 +18,9 @@ |
|
|
|
<tbody class="table-body"> |
|
|
|
<tr class="table-body-tr" v-for="(value, index) in list" :key="index"> |
|
|
|
<td class="td" v-for="(item, indexs) in value" :key="indexs"> |
|
|
|
<span v-if="typeof item === 'string' || typeof item === 'number'">{{ |
|
|
|
item |
|
|
|
}}</span> |
|
|
|
<div v-if="typeof item === 'string' || typeof item === 'number'"> |
|
|
|
{{ item }} |
|
|
|
</div> |
|
|
|
<div v-if="typeof item === 'object' && item.type == 'index'"> |
|
|
|
<img |
|
|
|
v-if="highlightTop3 && index == 0" |
|
|
@ -46,6 +46,11 @@ |
|
|
|
@click="handleClickBtn(index, btn)" |
|
|
|
>{{ btn }}</a |
|
|
|
> |
|
|
|
<a |
|
|
|
v-else-if="typeof item === 'object' && item.type == 'people'" |
|
|
|
@click="handleClickPeople(item)" |
|
|
|
>{{ item.name }}</a |
|
|
|
> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
@ -139,6 +144,11 @@ export default { |
|
|
|
handleClickBtn(index, type) { |
|
|
|
this.$emit("operate", index, type); |
|
|
|
}, |
|
|
|
handleClickPeople(item) { |
|
|
|
this.$router.push({ |
|
|
|
path: `/main-shuju/visual-basicinfo-people/${item.uid}`, |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
@ -150,6 +160,7 @@ export default { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
border: none; |
|
|
|
table-layout: fixed; |
|
|
|
|
|
|
|
&-header { |
|
|
|
width: 100%; |
|
|
@ -179,9 +190,18 @@ export default { |
|
|
|
min-height: 50px; |
|
|
|
|
|
|
|
.td { |
|
|
|
box-sizing: border-box; |
|
|
|
text-align: center; |
|
|
|
border: none; |
|
|
|
padding: 10px 0; |
|
|
|
padding: 10px 5px; |
|
|
|
|
|
|
|
> div { |
|
|
|
overflow: hidden; |
|
|
|
white-space: nowrap; |
|
|
|
text-overflow: ellipsis; |
|
|
|
word-wrap: normal; |
|
|
|
} |
|
|
|
|
|
|
|
a { |
|
|
|
font-size: 16px; |
|
|
|
font-weight: 400; |
|
|
|