From f2389e73aaf2c1f1df91bac1bf8568b15e8c3974 Mon Sep 17 00:00:00 2001 From: zzc <1761997216@qq.com> Date: Sat, 4 Jul 2026 20:11:32 +0800 Subject: [PATCH] fix: add robot score --- src/api/system/robot.js | 2 +- .../pk/comment/components/PkCommentEdit.vue | 6 +- src/views/rating/pk/comment/index.vue | 14 +-- src/views/rating/pk/list/index.vue | 115 +++++++++++++++++- 4 files changed, 125 insertions(+), 12 deletions(-) diff --git a/src/api/system/robot.js b/src/api/system/robot.js index 301b2d3..3823809 100644 --- a/src/api/system/robot.js +++ b/src/api/system/robot.js @@ -9,7 +9,7 @@ export function getList(data) { } /** - * 获取机器人列表(基础信息) {appId, pageNo, pageSize, topicId, itemId, commentId?} + * 获取机器人列表(基础信息) {appId, pageNo, pageSize, topicId, itemId, commentId?, pkId?} * @param {*} data * @returns */ diff --git a/src/views/rating/pk/comment/components/PkCommentEdit.vue b/src/views/rating/pk/comment/components/PkCommentEdit.vue index 0b8116a..acf5dc4 100644 --- a/src/views/rating/pk/comment/components/PkCommentEdit.vue +++ b/src/views/rating/pk/comment/components/PkCommentEdit.vue @@ -95,9 +95,9 @@ getThumbUrl, getPkLabel(item) { if (!item) return '' - const left = item.leftItem ? item.leftItem.name : '未知' - const right = item.rightItem ? item.rightItem.name : '未知' - return `[${item.topic ? item.topic.title : '未知主题'}] ${left} vs ${right}` + const left = item.leftItemName ? item.leftItemName : '未知' + const right = item.rightItemName ? item.rightItemName : '未知' + return `[${item.topicTitle ? item.topicTitle : '未知主题'}] ${left} vs ${right}` }, showEdit(replyToRow = null, parentCommentId = null) { this.dialogFormVisible = true diff --git a/src/views/rating/pk/comment/index.vue b/src/views/rating/pk/comment/index.vue index c8a6973..c442c79 100644 --- a/src/views/rating/pk/comment/index.vue +++ b/src/views/rating/pk/comment/index.vue @@ -65,12 +65,12 @@ + + + + + + + + + + +
+ + {{ item.nickname || '未知用户' }} +
+
+
+
+ + + + +
+ +
+ 取消 + 确定 +
+