From c02426d4947f46f9879413c0619f2ef8639c1f53 Mon Sep 17 00:00:00 2001 From: songyunpeng Date: Fri, 5 Jun 2020 21:24:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=9A=E7=BE=A4=E7=AE=A1=E7=90=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../partygroup/partygroupofficials.vue | 1 + .../partygroup/partyusergroup-list.vue | 27 ++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/views/modules/partygroup/partygroupofficials.vue b/src/views/modules/partygroup/partygroupofficials.vue index 9e671d0..5e5b528 100644 --- a/src/views/modules/partygroup/partygroupofficials.vue +++ b/src/views/modules/partygroup/partygroupofficials.vue @@ -35,6 +35,7 @@ diff --git a/src/views/modules/partygroup/partyusergroup-list.vue b/src/views/modules/partygroup/partyusergroup-list.vue index 072aded..2a9285c 100644 --- a/src/views/modules/partygroup/partyusergroup-list.vue +++ b/src/views/modules/partygroup/partyusergroup-list.vue @@ -40,6 +40,7 @@ 禁言 设置群主 设置副群主 + 设置群成员 @@ -147,7 +148,31 @@ export default { setGroupManager (id) { this.managerFrom.groupUserId = id this.managerFrom.identityFlag = '0' - this.$confirm('确定设为群主?', '提示', { + this.$confirm('设置该成员为群主后会将原群主设置为副群主,确定设为群主?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$http['post']('/partyGroup/partyusergroup/setGroupManager', this.managerFrom).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.getDataList() + } + }) + }).catch(() => {}) + }).catch(() => { + }) + }, + setGroupManager (id) { + this.managerFrom.groupUserId = id + this.managerFrom.identityFlag = '0' + this.$confirm('确定设为群成员?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning'