|
|
|
@ -79,10 +79,10 @@ |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="liftTheBan(scope.row.id)">{{ $t('liftTheBan') }}</el-button> |
|
|
|
<el-button v-if="scope.row.state === 10 || scope.row.state === 15" |
|
|
|
<el-button v-if="(scope.row.state === 10 || scope.row.state === 15) && scope.row.groupCategory !=='0'" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="disband(scope.row.id)">{{ $t('disband') }}</el-button> |
|
|
|
@click="handDisband(scope.row.id)">{{ $t('disband') }}</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -101,6 +101,29 @@ |
|
|
|
<group-approve v-if="groupApproveVisible" |
|
|
|
ref="groupApprove" |
|
|
|
@refreshDataList="getDataList"></group-approve> |
|
|
|
|
|
|
|
<!-- 解散原因弹框 --> |
|
|
|
<el-dialog :visible.sync="processingOpinionsVisible" |
|
|
|
title="解散社群"> |
|
|
|
<el-form :label-width="$i18n.locale === 'en-US' ? '100px' : '80px'"> |
|
|
|
<el-form-item label="社群ID:" v-if="false"> |
|
|
|
<el-input v-model="postForm.id" type="textarea" placeholder="不超过500字"> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="社群状态:" v-if="false"> |
|
|
|
<el-input v-model="postForm.state" type="textarea" placeholder="不超过500字"> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="解散原因:"> |
|
|
|
<el-input v-model="postForm.processingOpinions" type="textarea" placeholder="不超过500字"> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<template slot="footer"> |
|
|
|
<el-button @click="processingOpinionsVisible = false">{{ $t('cancel') }}</el-button> |
|
|
|
<el-button type="primary" @click="confirmDisBand">确定</el-button> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</template> |
|
|
|
@ -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(() => { }) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|