diff --git a/packages/conv/neighbor2neighbor/AppHelp/components/List.vue b/packages/conv/neighbor2neighbor/AppHelp/components/List.vue
index 4e1cbdd1..caff7d7d 100644
--- a/packages/conv/neighbor2neighbor/AppHelp/components/List.vue
+++ b/packages/conv/neighbor2neighbor/AppHelp/components/List.vue
@@ -49,6 +49,7 @@
详情
删除
{{ row.blacklist ? '解除禁言' : '禁言' }}
+ 审核
@@ -172,6 +173,36 @@
id: id || ''
}
})
+ },
+
+ admin(row) {
+ console.log(row)
+ this.$confirm('是否审核通过该条帖子?', {
+ distinguishCancelAndClose: true,
+ confirmButtonText: '通过',
+ closeOnClickModal: true,
+ cancelButtonText: '拒绝'
+ }).then((e) => {
+ console.log(1,e)
+ this.instance.post(`/app/appneighborhoodassistance/examine?id=${row.id}&pass=1`).then(res => {
+ if (res.code == 0) {
+ this.$message.success('审核成功!')
+ this.search.current = 1
+ this.getList()
+ }
+ })
+ }).catch((e) => {
+ console.log(2,e)
+ if(e == 'cancel') {
+ this.instance.post(`/app/appneighborhoodassistance/examine?id=${row.id}&pass=0`).then(res => {
+ if (res.code == 0) {
+ this.$message.success('审核成功!')
+ this.search.current = 1
+ this.getList()
+ }
+ })
+ }
+ })
}
}
}