diff --git a/src/api/rating/topicOperate.js b/src/api/rating/topicOperate.js index 70f9f1d..8320987 100644 --- a/src/api/rating/topicOperate.js +++ b/src/api/rating/topicOperate.js @@ -68,8 +68,8 @@ export function commentLike(data) { /** * 审核话题 - * @param { topicId, userId, status, type, rejectReason?, auditRemark? } - * @param {*} status 2: 通过, 3: 拒绝 + * @param { topicId, itemmId, userId, status, type, rejectReason?, auditRemark? } + * @param {*} status 2: 通过, 3: 拒绝 4: 禁用 * @param {*} type topic topicItem * @param {*} rejectReason 拒绝原因 * @param {*} auditRemark 审核备注 @@ -77,7 +77,7 @@ export function commentLike(data) { */ export function reviewTopic(data) { return request({ - url: 'management/api/rating/topicItemOperate/review', + url: 'management/api/rating/topicItemOperate/audit', method: 'post', data, }) diff --git a/src/views/rating/topic/index.vue b/src/views/rating/topic/index.vue index 230882e..6565fe5 100644 --- a/src/views/rating/topic/index.vue +++ b/src/views/rating/topic/index.vue @@ -6,6 +6,14 @@ + + + + + + + + @@ -17,11 +25,9 @@ - + - + - + - + - + @@ -113,6 +121,7 @@ diff --git a/src/views/rating/topicReview/components/ReviewEdit.vue b/src/views/rating/topicReview/components/ReviewEdit.vue index c4342e9..786f9a2 100644 --- a/src/views/rating/topicReview/components/ReviewEdit.vue +++ b/src/views/rating/topicReview/components/ReviewEdit.vue @@ -32,6 +32,7 @@ saving: false, form: { topicId: '', + itemId: '', userId: '', status: '', type: '', // topic 或 topicItem @@ -44,8 +45,9 @@ showEdit(row, status, type) { this.title = `审核确认 (${type === 'topic' ? '话题' : '评价项'})` this.form = { - topicId: row.id, - userId: row.userId || '', + topicId: type === 'topic' ? row.id : row.topicId || '', + itemId: type === 'topicItem' ? row.id : '', + userId: this.$store.state.user.userId || '', status, type, rejectReason: '', diff --git a/src/views/rating/topicReview/index.vue b/src/views/rating/topicReview/index.vue index 75adfc3..2f5142c 100644 --- a/src/views/rating/topicReview/index.vue +++ b/src/views/rating/topicReview/index.vue @@ -19,8 +19,8 @@ - +