|
|
@ -2,13 +2,17 @@ |
|
|
|
<el-dialog :visible.sync="visible" :title="$t('look')" :close-on-click-modal="false" :close-on-press-escape="false"> |
|
|
|
<el-form :label-width="$i18n.locale === 'en-US' ? '100px' : '80px'"> |
|
|
|
<el-form-item label="群介绍:"> |
|
|
|
<div>{{dataForm.groupIntroduction}}</div> |
|
|
|
<div>{{responseForm.groupIntroduction}}</div> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="状态:"> |
|
|
|
<div>{{dataForm.state}}</div> |
|
|
|
<div v-if="responseForm.state === 0">待审核</div> |
|
|
|
<div v-if="responseForm.state === 5">审核不通过</div> |
|
|
|
<div v-if="responseForm.state === 10">审核通过</div> |
|
|
|
<div v-if="responseForm.state === 15">禁言</div> |
|
|
|
<div v-if="responseForm.state === 20">已解散</div> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="备注:"> |
|
|
|
<div>{{dataForm.processingOpinions}}</div> |
|
|
|
<el-form-item label="备注:" v-if="responseForm.state === 5 || responseForm.state === 20"> |
|
|
|
<div>{{responseForm.processingOpinions}}</div> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" :model="dataForm" ref="dataForm"> |
|
|
@ -55,9 +59,15 @@ export default { |
|
|
|
}, |
|
|
|
visible: false, |
|
|
|
dataForm: { |
|
|
|
groupId: '', |
|
|
|
nickname: '', |
|
|
|
mobile: '' |
|
|
|
}, |
|
|
|
responseForm: { |
|
|
|
id: '', |
|
|
|
mobile: '', |
|
|
|
nickname: '' |
|
|
|
groupIntroduction: '', |
|
|
|
state: '', |
|
|
|
processingOpinions: '' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -66,7 +76,7 @@ export default { |
|
|
|
this.visible = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['dataForm'].resetFields() |
|
|
|
if (this.dataForm.id) { |
|
|
|
if (this.dataForm.groupId) { |
|
|
|
this.getInfo() |
|
|
|
this.getDataList() |
|
|
|
} |
|
|
@ -74,12 +84,12 @@ export default { |
|
|
|
}, |
|
|
|
// 获取信息 |
|
|
|
getInfo () { |
|
|
|
this.$http.get(`/group/group/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
this.$http.get(`/group/group/${this.dataForm.groupId}`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.dataForm = { |
|
|
|
...this.dataForm, |
|
|
|
this.responseForm = { |
|
|
|
...this.responseForm, |
|
|
|
...res.data |
|
|
|
} |
|
|
|
}).catch(() => {}) |
|
|
|