diff --git a/src/views/systemManagement/robot/components/RobotCommentView.vue b/src/views/systemManagement/robot/components/RobotCommentView.vue
new file mode 100644
index 0000000..67cd1b3
--- /dev/null
+++ b/src/views/systemManagement/robot/components/RobotCommentView.vue
@@ -0,0 +1,166 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/systemManagement/robot/index.vue b/src/views/systemManagement/robot/index.vue
index f087351..8c9107b 100644
--- a/src/views/systemManagement/robot/index.vue
+++ b/src/views/systemManagement/robot/index.vue
@@ -73,7 +73,8 @@
评分
- 评论
+ 去评论
+ 用户评论
@@ -90,6 +91,7 @@
+
@@ -100,10 +102,11 @@
import { getThumbUrl } from '@/utils/blessing'
import RobotRatingEdit from './components/RobotRatingEdit'
import RobotCommentEdit from './components/RobotCommentEdit'
+ import RobotCommentView from './components/RobotCommentView'
export default {
name: 'RobotManagement',
- components: { RobotRatingEdit, RobotCommentEdit },
+ components: { RobotRatingEdit, RobotCommentEdit, RobotCommentView },
data() {
return {
list: [],
@@ -186,23 +189,26 @@
handleComment(row) {
this.$refs['commentEdit'].showEdit(row)
},
+ handleViewComment(row) {
+ this.$refs['commentView'].show(row.commentInfo || [])
+ },
getScoreTypeText(type) {
const map = {
- 1: '夯',
- 2: '顶级',
+ 5: '夯',
+ 4: '顶级',
3: '人上人',
- 4: 'NPC',
- 5: '拉',
+ 2: 'NPC',
+ 1: '拉',
}
return map[type] || '未知'
},
getScoreTypeTag(type) {
const map = {
- 1: 'success', // 夯
- 2: 'primary', // 顶级
+ 5: 'success', // 夯
+ 4: 'primary', // 顶级
3: 'warning', // 人上人
- 4: 'info', // NPC
- 5: 'danger', // 拉
+ 2: 'info', // NPC
+ 1: 'danger', // 拉
}
return map[type] || 'info'
},