diff --git a/src/api/rating/topicItem.js b/src/api/rating/topicItem.js index 8ce719f..6daec63 100644 --- a/src/api/rating/topicItem.js +++ b/src/api/rating/topicItem.js @@ -58,3 +58,16 @@ export function getPendingList(data) { params: data, }) } + +/** + * 给某个分数段投票 + * @param {topicId: string, itemId: string, score: number, count: number} data + * @returns + */ +export function ItemScorevote(data) { + return request({ + url: 'management/api/rating/topicItem/vote/robot', + method: 'post', + data, + }) +} diff --git a/src/views/rating/topicItem/index.vue b/src/views/rating/topicItem/index.vue index f8b89ba..fbb8935 100644 --- a/src/views/rating/topicItem/index.vue +++ b/src/views/rating/topicItem/index.vue @@ -31,10 +31,11 @@ /> - + @@ -91,6 +92,17 @@ + + + + @@ -323,4 +411,29 @@ color: #409eff; font-weight: bold; } + + .score-segment-list { + display: flex; + flex-wrap: wrap; + gap: 8px; + } + + .score-segment-item { + display: inline-flex; + align-items: center; + padding: 4px 10px; + background: #f5f7fa; + border-radius: 4px; + font-size: 12px; + } + + .score-segment-label { + color: #606266; + margin-right: 6px; + } + + .score-segment-value { + color: #409eff; + font-weight: bold; + }