From 8c400f9168db782a328528ba88ca7422f6c64f61 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 17 Feb 2022 17:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=91=E6=B0=91=E5=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppVillagersCircle/components/Detail.vue | 80 ++++++++++++++----- 1 file changed, 59 insertions(+), 21 deletions(-) diff --git a/packages/shandong/AppVillagersCircle/components/Detail.vue b/packages/shandong/AppVillagersCircle/components/Detail.vue index 5a64eec5..cd48040d 100644 --- a/packages/shandong/AppVillagersCircle/components/Detail.vue +++ b/packages/shandong/AppVillagersCircle/components/Detail.vue @@ -7,37 +7,55 @@ + @@ -60,10 +78,11 @@ current: 1, size: 10 }, - isShowAdd: false, form: { - content: '' + opinion: '', + pass: '' }, + isShow: false, type: '' } }, @@ -78,17 +97,36 @@ methods: { getInfo (id) { - this.instance.post(`/app/appvillagediscuss/queryDetailById?id=${id}`).then(res => { + this.instance.post(`/app/appvillagercircleinfo/queryDetailById?id=${id}`).then(res => { if (res.code === 0) { this.info = res.data - this.info.images = res.data.images ? JSON.parse(res.data.images) : [] - this.type = res.data.type } }) }, onClose () { - this.form.content = '' + this.form.pass = '' + this.form.opinion = '' + this.id = '' + }, + + onConfirm() { + this.$refs.form.validate(v => { + if (v) { + this.instance.post('/app/appvillagercircleinfo/examine', null, { + params: { + ...this.form, + id: this.params.id + } + }).then(res => { + if (res.code == 0) { + this.isShow = false + this.getInfo(this.params.id) + this.$message.success('审核成功!') + } + }) + } + }) }, cancel (isRefresh) {