diff --git a/src/views/modules/group/group.vue b/src/views/modules/group/group.vue index 73d26634..30d4fc7c 100644 --- a/src/views/modules/group/group.vue +++ b/src/views/modules/group/group.vue @@ -195,48 +195,66 @@ export default { return row.groupCategory === '0' ? '党员群' : row.groupCategory === '1' ? '自建群' : '未知' }, ban (id) { - this.postForm.state = 15 - this.postForm.id = id - this.$http['post']('/group/group/operate', this.postForm).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.getDataList() - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500 - }) + this.$confirm('确定禁言社群?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.postForm.state = 15 + this.postForm.id = id + this.$http['post']('/group/group/operate', this.postForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.getDataList() + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500 + }) + }).catch(() => { }) }).catch(() => { }) }, liftTheBan (id) { - this.postForm.state = 10 - this.postForm.id = id - this.$http['post']('/group/group/operate', this.postForm).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.getDataList() - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500 - }) + this.$confirm('确定解禁社群?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.postForm.state = 10 + this.postForm.id = id + this.$http['post']('/group/group/operate', this.postForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.getDataList() + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500 + }) + }).catch(() => { }) }).catch(() => { }) }, disband (id) { - this.postForm.state = 20 - this.postForm.id = id - this.$http['post']('/group/group/operate', this.postForm).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.getDataList() - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500 - }) + this.$confirm('确定解散社群?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.postForm.state = 20 + this.postForm.id = id + this.$http['post']('/group/group/operate', this.postForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.getDataList() + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500 + }) + }).catch(() => { }) }).catch(() => { }) }, look (id) { diff --git a/src/views/modules/group/topic-detail.vue b/src/views/modules/group/topic-detail.vue index b26f744c..7aa74aa0 100644 --- a/src/views/modules/group/topic-detail.vue +++ b/src/views/modules/group/topic-detail.vue @@ -14,10 +14,10 @@ @click="clickImg(url)"> - +
{{dataForm.allDeptNames}}
- +
{{dataForm.groupName}}
@@ -27,6 +27,10 @@ 点击查看评论 +
+
上报位置: {{dataForm.topicAddress}}
+
+
返回 @@ -60,6 +64,7 @@