功能变化: 修复授权管理的bug
This commit is contained in:
@@ -238,7 +238,11 @@ class RoleMenuButtonPermissionViewSet(CustomModelViewSet):
|
||||
instance = RoleMenuButtonPermission.objects.create(role_id=pk, menu_button_id=btn.get('id'),data_range=data_range)
|
||||
instance.dept.set(btn.get('dept',[]))
|
||||
for col in menu.get('columns', []):
|
||||
FieldPermission.objects.update_or_create(role_id=pk,field_id=col.get('id'),is_query=col.get('is_query'),is_create=col.get('is_create'),is_update=col.get('is_update'))
|
||||
FieldPermission.objects.update_or_create(role_id=pk,field_id=col.get('id'),defaults={
|
||||
"is_query":col.get('is_query'),
|
||||
"is_create":col.get('is_create'),
|
||||
"is_update":col.get('is_update')
|
||||
})
|
||||
return DetailResponse(msg="授权成功")
|
||||
|
||||
|
||||
|
||||
@@ -349,7 +349,7 @@ export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps)
|
||||
},
|
||||
},
|
||||
is_active: {
|
||||
title: '锁定',
|
||||
title: '状态',
|
||||
search: {
|
||||
show: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user