fix: rating
This commit is contained in:
@@ -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()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user