From 20e2d9f1cf88f05df2edf89fb0e16f1a8a648225 Mon Sep 17 00:00:00 2001 From: yinzuomei Date: Wed, 18 Dec 2019 15:44:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E7=BE=A4=E7=AE=A1=E7=90=86=E8=A7=A3?= =?UTF-8?q?=E6=95=A3=E6=8C=89=E9=92=AE=E4=BF=AE=E6=94=B9=EF=BC=9A1?= =?UTF-8?q?=E5=85=9A=E5=91=98=E7=BE=A4=E5=8E=BB=E9=99=A4=E8=A7=A3=E6=95=A3?= =?UTF-8?q?=E6=8C=89=E9=92=AE2=E6=B7=BB=E5=8A=A0=E5=BD=95=E5=85=A5?= =?UTF-8?q?=E8=A7=A3=E6=95=A3=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/group/group.vue | 51 +++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/src/views/modules/group/group.vue b/src/views/modules/group/group.vue index 1fbbbbd2..b41440da 100644 --- a/src/views/modules/group/group.vue +++ b/src/views/modules/group/group.vue @@ -79,10 +79,10 @@ type="text" size="small" @click="liftTheBan(scope.row.id)">{{ $t('liftTheBan') }} - {{ $t('disband') }} + @click="handDisband(scope.row.id)">{{ $t('disband') }} @@ -101,6 +101,29 @@ + + + + + + + + + + + + + + + + + + + @@ -119,6 +142,7 @@ export default { }, groupDetailVisible: false, groupApproveVisible: false, + processingOpinionsVisible: false, // 解散原因弹框显示标识 dataForm: { id: '', streetId: '', @@ -128,7 +152,8 @@ export default { }, postForm: { id: '', - state: 0 + state: 0, + processingOpinions: ''// 解散原因 }, ids: [], options: [], @@ -278,6 +303,26 @@ export default { } this.options = res.data.options }).catch(() => { }) + }, + handDisband (id) { + this.postForm.state = 20 + this.postForm.id = id + this.postForm.processingOpinions = '' + this.processingOpinionsVisible = true + }, + confirmDisBand () { + this.$http['post']('/group/group/operate', this.postForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.processingOpinionsVisible = false + this.getDataList() + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500 + }) + }).catch(() => { }) } } }