fix: youhua

This commit is contained in:
zzc
2026-02-05 15:15:08 +08:00
parent 82b3d7a36d
commit 1867d5aa55
3 changed files with 37 additions and 3 deletions

View File

@@ -29,13 +29,18 @@
<el-table-column align="center" label="分享内容" width="100">
<template slot-scope="scope">
<el-tooltip class="item" :content="scope.row.id" effect="dark" placement="top">
<el-image fit="cover" :preview-src-list="[scope.row.imageUrl]" :src="scope.row.imageUrl" style="width: 50px; height: 50px" />
<el-image
fit="cover"
:preview-src-list="[scope.row?.detail?.imageUrl]"
:src="scope.row?.detail?.imageUrl"
style="width: 50px; height: 50px"
/>
</el-tooltip>
</template>
</el-table-column>
<el-table-column align="center" label="分享类型" show-overflow-tooltip>
<template #default="{ row }">
{{ row.type === 1 ? '祝福卡片' : row.type === 2 ? '抽签' : row.type === 3 ? '壁纸' : '头像' }}
{{ getSceneName(row.scene) }}
</template>
</el-table-column>
<el-table-column align="left" label="信息" show-overflow-tooltip>
@@ -110,6 +115,7 @@
<script>
import { getShareList } from '@/api/spring/user'
import { formatTime } from '@/utils'
import { getSceneName } from '@/utils/blessing'
export default {
name: 'GenerateRecord',
@@ -140,6 +146,7 @@
},
methods: {
formatTime,
getSceneName,
setSelectRows(val) {
this.selectRows = val
},