From 6cb7be66582038e19c8375163dc680f2fca0ddd2 Mon Sep 17 00:00:00 2001
From: zzc <1761997216@qq.com>
Date: Mon, 1 Jun 2026 10:22:07 +0800
Subject: [PATCH] rating
---
src/api/rating/topicOperate.js | 4 +-
.../robot/components/RobotCommentEdit.vue | 114 ++++++++++++++++++
src/views/systemManagement/robot/index.vue | 8 +-
3 files changed, 123 insertions(+), 3 deletions(-)
create mode 100644 src/views/systemManagement/robot/components/RobotCommentEdit.vue
diff --git a/src/api/rating/topicOperate.js b/src/api/rating/topicOperate.js
index 34b0446..fc8ef53 100644
--- a/src/api/rating/topicOperate.js
+++ b/src/api/rating/topicOperate.js
@@ -22,7 +22,7 @@ export function score(data) {
export function comment(data) {
return request({
url: 'management/api/rating/topicItemOperate/comment',
- method: 'get',
- params: data,
+ method: 'post',
+ data,
})
}
diff --git a/src/views/systemManagement/robot/components/RobotCommentEdit.vue b/src/views/systemManagement/robot/components/RobotCommentEdit.vue
new file mode 100644
index 0000000..5d7b281
--- /dev/null
+++ b/src/views/systemManagement/robot/components/RobotCommentEdit.vue
@@ -0,0 +1,114 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/systemManagement/robot/index.vue b/src/views/systemManagement/robot/index.vue
index 5e28d37..f087351 100644
--- a/src/views/systemManagement/robot/index.vue
+++ b/src/views/systemManagement/robot/index.vue
@@ -73,6 +73,7 @@
评分
+ 评论
@@ -88,6 +89,7 @@
/>
+
@@ -97,10 +99,11 @@
import { formatTime } from '@/utils'
import { getThumbUrl } from '@/utils/blessing'
import RobotRatingEdit from './components/RobotRatingEdit'
+ import RobotCommentEdit from './components/RobotCommentEdit'
export default {
name: 'RobotManagement',
- components: { RobotRatingEdit },
+ components: { RobotRatingEdit, RobotCommentEdit },
data() {
return {
list: [],
@@ -180,6 +183,9 @@
handleRating(row) {
this.$refs['ratingEdit'].showEdit(row)
},
+ handleComment(row) {
+ this.$refs['commentEdit'].showEdit(row)
+ },
getScoreTypeText(type) {
const map = {
1: '夯',