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 @@
+ {{ $t('update') }}
{{ $t('delete') }}
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'