diff --git a/src/views/modules/property/group-detail.vue b/src/views/modules/property/group-detail.vue index fbd893f..944a2b1 100644 --- a/src/views/modules/property/group-detail.vue +++ b/src/views/modules/property/group-detail.vue @@ -77,7 +77,7 @@ 指定群主 + @click="toBecomeAdmin(scope.row)">指定群主 @@ -174,7 +174,7 @@ export default { toBecomeAdmin (row) { this.checkDto.id = row.id this.checkDto.groupId = row.groupId - this.$http.post(`/property/group/checkGroupOwner`, this.checkDto).then(({ data: res }) => { + this.$http.post(`/property/usergroup/checkGroupOwner`, this.checkDto).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } @@ -184,7 +184,7 @@ export default { cancelButtonText: '取消', type: 'warning' }).then(() => { - this.$http['post']('/property/group/toBecomeGroupOwner', this.postForm).then(({ data: res }) => { + this.$http.post(`/property/usergroup/toBecomeGroupOwner`, this.checkDto).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } @@ -197,7 +197,7 @@ export default { }).catch(() => { }) }).catch(() => { }) } else { - this.$http['post']('/property/group/toBecomeGroupOwner', this.postForm).then(({ data: res }) => { + this.$http.post(`/property/usergroup/toBecomeGroupOwner`, this.checkDto).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } @@ -210,6 +210,7 @@ export default { }).catch(() => { }) } }).catch(() => { }) + this.getDataList() } } }