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