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(() => { }) } } }