fix: 更新用户组权限问题

This commit is contained in:
wangruidong
2023-12-29 10:23:24 +08:00
committed by Bryan
parent bd9456ba2d
commit d29b3effbc

View File

@@ -86,6 +86,9 @@ export default {
width: 150,
objects: this.object.users,
formatter: DeleteActionFormatter,
formatterArgs: {
disabled: !this.$hasPerm('users.change_usergroup')
},
onDelete: function(col, row, cellValue, reload) {
this.$axios.delete(
'/api/v1/users/users-groups-relations/', {
@@ -134,6 +137,7 @@ export default {
},
showHasObjects: false,
hasObjectsId: this.object.users,
disabled: !this.$hasPerm('users.change_usergroup'),
performAdd: (items) => {
const relationUrl = `/api/v1/users/users-groups-relations/`
const groupId = this.object.id