diff --git a/src/views/rating/topicItem/components/TopicItemCommentEdit.vue b/src/views/rating/topicItem/components/TopicItemCommentEdit.vue new file mode 100644 index 0000000..0d6d011 --- /dev/null +++ b/src/views/rating/topicItem/components/TopicItemCommentEdit.vue @@ -0,0 +1,146 @@ + + + + + + + + + {{ item.nickname }} + + + + + + + + + + + + + diff --git a/src/views/rating/topicItem/index.vue b/src/views/rating/topicItem/index.vue index 7b1483f..32ce313 100644 --- a/src/views/rating/topicItem/index.vue +++ b/src/views/rating/topicItem/index.vue @@ -31,9 +31,10 @@ /> - + 评价 + 评论 @@ -138,6 +139,7 @@ /> + @@ -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) + }, }, }