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) }, },