From a260b98725e239b4621123b7f826fcfff83c0f6d Mon Sep 17 00:00:00 2001 From: zzc <1761997216@qq.com> Date: Mon, 15 Jun 2026 15:49:51 +0800 Subject: [PATCH] feat: audit --- src/views/rating/topicReview/index.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/views/rating/topicReview/index.vue b/src/views/rating/topicReview/index.vue index 2f5142c..26285f9 100644 --- a/src/views/rating/topicReview/index.vue +++ b/src/views/rating/topicReview/index.vue @@ -92,8 +92,8 @@ @@ -141,6 +141,11 @@ methods: { formatTime, getThumbUrl, + canReviewTopic(row) { + const items = row && row.topicItems ? row.topicItems : [] + if (!items.length) return true + return items.every((item) => [2, 3, 4].includes(item && item.status)) + }, handleSizeChange(val) { this.queryForm.pageSize = val this.fetchData() @@ -166,6 +171,10 @@ } }, handleReview(row, status, type) { + if (type === 'topic' && !this.canReviewTopic(row)) { + this.$message.warning('请先审核该话题下所有评分项,再审核话题') + return + } this.$refs['edit'].showEdit(row, status, type) }, },