Development permission list corresponding specifications
The basic page layout of the permission list
! Render card view (permission level)
Add a border line for the first level of authority
Rendering secondary permissions
Add a minimum width to the page
Center the first and second level permissions list
Set a removable label
Delete the corresponding data permissions according to the id
Update after deleting data permissions according to id
Define Assign Permission Dialog
Tree control
Effect after realization:
Add optional checkbox
Let the checked box bind a unique id value
Expand all nodes by default
Existing functions are checked by default
Recursively obtain all three levels of permissions under the role
I found that the problem is only added to the array every time the id is not cleared
Save the checked function to the database
Get all selected and selected nodes
Assigning Roles
Click the button to assign roles