From f3c42fb83cb1c5b83ed3cb1ceef9fdc060de1ffc Mon Sep 17 00:00:00 2001 From: zzc <1761997216@qq.com> Date: Mon, 1 Jun 2026 16:05:28 +0800 Subject: [PATCH] rating --- src/api/system/robot.js | 5 + .../components/TopicItemRatingEdit.vue | 155 ++++++++++++++++++ src/views/rating/topicItem/index.vue | 13 ++ 3 files changed, 173 insertions(+) create mode 100644 src/views/rating/topicItem/components/TopicItemRatingEdit.vue diff --git a/src/api/system/robot.js b/src/api/system/robot.js index 01293bb..ce1a72a 100644 --- a/src/api/system/robot.js +++ b/src/api/system/robot.js @@ -8,6 +8,11 @@ export function getList(data) { }) } +/** + * 获取机器人列表(基础信息) {appId, pageNo, pageSize, topicId, itemId} + * @param {*} data + * @returns + */ export function getListBase(data) { return request({ url: 'management/api/system/robot/list/base', diff --git a/src/views/rating/topicItem/components/TopicItemRatingEdit.vue b/src/views/rating/topicItem/components/TopicItemRatingEdit.vue new file mode 100644 index 0000000..5e08bdb --- /dev/null +++ b/src/views/rating/topicItem/components/TopicItemRatingEdit.vue @@ -0,0 +1,155 @@ + + + diff --git a/src/views/rating/topicItem/index.vue b/src/views/rating/topicItem/index.vue index cab6686..7b1483f 100644 --- a/src/views/rating/topicItem/index.vue +++ b/src/views/rating/topicItem/index.vue @@ -31,6 +31,12 @@ /> + + + + @@ -138,9 +146,11 @@ import { getList as getTopicList } from '@/api/rating/topic' import { formatTime } from '@/utils' import { getThumbUrl } from '@/utils/blessing' + import TopicItemRatingEdit from './components/TopicItemRatingEdit' export default { name: 'RatingTopicItemIndex', + components: { TopicItemRatingEdit }, data() { return { list: [], @@ -216,6 +226,9 @@ this.listLoading = false } }, + handleRating(row) { + this.$refs['ratingEdit'].showEdit(row, this.queryForm.topicId) + }, }, }