fix: rating

This commit is contained in:
zzc
2026-06-08 19:08:39 +08:00
parent 6f99958275
commit 0dc2c2f0c3
4 changed files with 160 additions and 2 deletions

View File

@@ -83,6 +83,12 @@
</vab-query-form>
<el-table v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText">
<el-table-column align="center" fixed="left" label="操作" width="100">
<template #default="{ row }">
<el-button type="text" @click="handleLike(row)">点赞</el-button>
</template>
</el-table-column>
<el-table-column align="left" label="评论内容" min-width="250">
<template #default="{ row }">
<div class="comment-content-cell">
@@ -165,6 +171,7 @@
/>
<record-comment-edit ref="commentEdit" @fetch-data="fetchData" />
<record-comment-like-edit ref="likeEdit" @fetch-data="fetchData" />
</div>
</template>
@@ -176,10 +183,11 @@
import { formatTime } from '@/utils'
import { getThumbUrl } from '@/utils/blessing'
import RecordCommentEdit from './components/RecordCommentEdit'
import RecordCommentLikeEdit from './components/RecordCommentLikeEdit'
export default {
name: 'RatingTopicCommentIndex',
components: { RecordCommentEdit },
components: { RecordCommentEdit, RecordCommentLikeEdit },
directives: {
loadmore: {
bind(el, binding) {
@@ -340,6 +348,9 @@
},
// -- 列表数据加载 --
handleLike(row) {
this.$refs['likeEdit'].showEdit(row)
},
handleCommentNow() {
this.$refs['commentEdit'].showEdit()
},