Browse Source

屏蔽评论接口

master
王金鹏 6 years ago
parent
commit
6c77ab02d6
  1. 19
      src/views/modules/events/detail.vue

19
src/views/modules/events/detail.vue

@ -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 }) => {

Loading…
Cancel
Save