Commit cf4892bc by 李乾广

修改bug

1 parent 59009bff
......@@ -251,8 +251,20 @@
特征
</span>
</div>
<el-image v-if="person.imageDisplayType" :error="dataSources==1?'去加载':'加载失败'" :src="item.eventPic" :fit="'fill'" class="single-image"></el-image>
<el-image v-else :src="item.picture_url" :error="dataSources==1?'去加载':'加载失败'" :fit="'fill'" class="single-image"></el-image>
<el-image v-if="person.imageDisplayType" :src="item.eventPic" :fit="'fill'" class="single-image">
<template #error>
<div class="image-slot">
{{dataSources==1?'去加载':'加载失败'}}
</div>
</template>
</el-image>
<el-image v-else :src="item.picture_url" :fit="'fill'" class="single-image">
<template #error>
<div class="image-slot">
{{dataSources==1?'去加载':'加载失败'}}
</div>
</template>
</el-image>
<div>时间:{{ item.counttime }}</div>
<div>人员类型:{{ personTypeStr(item.person_type)}}({{ formatChildAdult(item.childAdult) }})</div>
<div>性别:{{ formatGender(item.gender) }}({{item.age}})</div>
......
......@@ -180,12 +180,12 @@
>删除</span>
</a-popconfirm>
</div>
<el-image :src="item.picture_url"
:error="dataSources==1?'去加载':'加载失败'"
:fit="'fill'"
class="single-image"
:style="{'height':imgHeight+'px'}"
>
<el-image :src="item.picture_url" :fit="'fill'" class="single-image" :style="{'height':imgHeight+'px'}">
<template #error>
<div class="image-slot">
{{dataSources==1?'去加载':'加载失败'}}
</div>
</template>
</el-image>
<div @click="personUnidClick(item.person_unid)">人id: {{ item.person_unid }}</div>
<div>时间:{{ item.counttime }}</div>
......@@ -1568,5 +1568,15 @@ export default {
.person-tag-one{
line-height: 24px;
}
.image-slot {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
color: #c0c4cc;
font-size: 14px;
background: #f5f7fa;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!