This commit is contained in:
zzc
2026-06-01 16:18:27 +08:00
parent 99bc334d0b
commit ca1585962b
2 changed files with 154 additions and 2 deletions

View File

@@ -31,9 +31,10 @@
/>
<el-table v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText">
<el-table-column align="center" fixed="left" label="操作" width="100">
<el-table-column align="center" fixed="left" label="操作" width="120">
<template #default="{ row }">
<el-button type="text" @click="handleRating(row)">评价</el-button>
<el-button type="text" @click="handleComment(row)">评论</el-button>
</template>
</el-table-column>
@@ -138,6 +139,7 @@
/>
<topic-item-rating-edit ref="ratingEdit" @fetch-data="fetchData" />
<topic-item-comment-edit ref="commentEdit" @fetch-data="fetchData" />
</div>
</template>
@@ -147,10 +149,11 @@
import { formatTime } from '@/utils'
import { getThumbUrl } from '@/utils/blessing'
import TopicItemRatingEdit from './components/TopicItemRatingEdit'
import TopicItemCommentEdit from './components/TopicItemCommentEdit'
export default {
name: 'RatingTopicItemIndex',
components: { TopicItemRatingEdit },
components: { TopicItemRatingEdit, TopicItemCommentEdit },
data() {
return {
list: [],
@@ -229,6 +232,9 @@
handleRating(row) {
this.$refs['ratingEdit'].showEdit(row, this.queryForm.topicId)
},
handleComment(row) {
this.$refs['commentEdit'].showEdit(row, this.queryForm.topicId)
},
},
}
</script>