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) {