refector: opl和visit显示照片

This commit is contained in:
caoqianming 2023-04-13 17:01:58 +08:00
parent e63926cffb
commit 1460a6466a
2 changed files with 11 additions and 4 deletions

View File

@ -111,8 +111,7 @@
:key = "item.id" :key = "item.id"
style="margin-right: 8px;height: 146px;height:146px;" style="margin-right: 8px;height: 146px;height:146px;"
:src="item.path" :src="item.path"
:preview-src-list="item.path" :preview-src-list="[item.path]"
:initial-index="1"
fit="cover" fit="cover"
/> />
</el-descriptions-item> </el-descriptions-item>
@ -122,8 +121,7 @@
:key = "item.id" :key = "item.id"
style="margin-right: 8px;height: 146px;height:146px;" style="margin-right: 8px;height: 146px;height:146px;"
:src="item.path" :src="item.path"
:preview-src-list="item.path" :preview-src-list="[item.path]"
:initial-index="1"
fit="cover" fit="cover"
/> />
</el-descriptions-item> </el-descriptions-item>

View File

@ -41,6 +41,15 @@
<el-space v-if="scope.row.is_main == true"></el-space> <el-space v-if="scope.row.is_main == true"></el-space>
<el-space v-else></el-space> <el-space v-else></el-space>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="照片:">
<el-image
v-if="scope.row.visitor_ && scope.row.visitor_.photo"
style="margin-right: 8px;height: 146px;height:146px;"
:src="scope.row.visitor_.photo"
:preview-src-list="[scope.row.visitor_.photo]"
fit="cover"
/>
</el-descriptions-item>
<!-- <el-descriptions-item label="健康码:"> <!-- <el-descriptions-item label="健康码:">
<el-image style="width: 100px; height: 100px" :src="scope.row.health_code" <el-image style="width: 100px; height: 100px" :src="scope.row.health_code"
:preview-src-list="[scope.row.health_code]" fit="cover" /> :preview-src-list="[scope.row.health_code]" fit="cover" />