fix: youhua

This commit is contained in:
zzc
2026-02-05 16:06:31 +08:00
parent 1867d5aa55
commit 61bf50afc7
5 changed files with 34 additions and 11 deletions

View File

@@ -32,7 +32,13 @@
<el-table-column align="center" label="图片" width="200">
<template #default="{ row }">
<div v-if="row.images && row.images.length" class="image-grid">
<el-image v-for="(img, index) in row.images" :key="index" class="grid-image" :preview-src-list="row.images" :src="img" />
<el-image
v-for="(img, index) in row.images"
:key="index"
class="grid-image"
:preview-src-list="row.images"
:src="getThumbUrl(img)"
/>
</div>
<span v-else>--</span>
</template>
@@ -41,7 +47,7 @@
<el-table-column align="left" label="用户信息" show-overflow-tooltip>
<template #default="{ row }">
<div v-if="row.fromUser && row.fromUser.id" class="author-cell">
<img alt="avatar" class="author-avatar" :src="row.fromUser.avatar" />
<img alt="avatar" class="author-avatar" :src="getThumbUrl(row.fromUser.avatar)" />
<div class="author-meta">
<div>
<strong>id</strong>
@@ -96,6 +102,7 @@
<script>
import { getUserFeedbackList } from '@/api/spring/user'
import { formatTime } from '@/utils'
import { getThumbUrl } from '@/utils/blessing'
export default {
name: 'UserFeedback',
@@ -118,6 +125,7 @@
},
methods: {
formatTime,
getThumbUrl,
handleSizeChange(val) {
this.queryForm.pageSize = val
this.fetchData()