|
|
|
@ -33,7 +33,7 @@ |
|
|
|
</template> |
|
|
|
<div>{{commentsDTO.replyComment ? commentsDTO.replyComment.content : ''}}</div> |
|
|
|
</el-collapse-item> |
|
|
|
<el-button @click="pingbi(commentsDTO.content)">屏蔽评论</el-button> |
|
|
|
<el-button @click="deleteComment(commentsDTO.commentId)">屏蔽评论</el-button> |
|
|
|
</el-collapse> |
|
|
|
<el-pagination |
|
|
|
:current-page="pageIndex" |
|
|
|
@ -83,8 +83,21 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
pingbi (val) { |
|
|
|
console.log(val) |
|
|
|
deleteComment (val) { |
|
|
|
this.$http['post']( |
|
|
|
'/events/issue/deleteComment', { commentIds: [val] }).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.getCommentList() |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => {}) |
|
|
|
}, |
|
|
|
getInfo () { |
|
|
|
this.$http.get(`/events/issue/issueContentDetail/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
|