From 8da9a7e8cc18f667f9e8bdefe5b4ee8f78cfd721 Mon Sep 17 00:00:00 2001 From: zzc <1761997216@qq.com> Date: Sun, 5 Jul 2026 18:34:48 +0800 Subject: [PATCH] fix: robot --- .../components/TopicItemCommentEdit.vue | 41 +++++++++++++++---- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/src/views/rating/topicItem/components/TopicItemCommentEdit.vue b/src/views/rating/topicItem/components/TopicItemCommentEdit.vue index 0d6d011..70a03c4 100644 --- a/src/views/rating/topicItem/components/TopicItemCommentEdit.vue +++ b/src/views/rating/topicItem/components/TopicItemCommentEdit.vue @@ -11,13 +11,18 @@ style="width: 100%" > -
- - {{ item.nickname }} +
+
+ + {{ item.nickname }} +
+ + {{ getScoreText(item.score) }} +
@@ -84,6 +89,26 @@ }, methods: { getThumbUrl, + getScoreText(score) { + const map = { + 2: '拉', + 4: 'npc', + 6: '人上人', + 8: '顶级', + 10: '夯', + } + return map[score] || score + }, + getScoreTagType(score) { + const map = { + 2: 'info', + 4: 'warning', + 6: '', + 8: 'success', + 10: 'danger', + } + return map[score] || 'info' + }, async showEdit(row, topicId) { this.title = `给 ${row.name} 写评论` this.form = this.$options.data().form @@ -92,6 +117,8 @@ this.dialogFormVisible = true this.robotQuery.pageNo = 1 + this.robotQuery.onlyTopicId = topicId + this.robotQuery.onlyItemId = row.id this.robotList = [] this.robotTotal = 0 await this.fetchRobotList()