From daffd10bce90c6bb95daae5b4ac7b349fc8ae48e Mon Sep 17 00:00:00 2001 From: liuye Date: Mon, 18 Nov 2024 10:52:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=BB=E9=87=8C=E4=BA=92=E5=8A=A9=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppHelp/components/List.vue | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) 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() + } + }) + } + }) } } }