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 @@ + + + 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: '夯',