多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## **1. Function Introduction** This module allows you to create roles, set different permissions for different roles, and assign corresponding roles for differrnt users. ![](https://img.kancloud.cn/9f/e5/9fe550cd64b79e0ddc404bc48d763ad4_1104x478.png) ## **2.Operate Process** #### **1)Permission Settings** Note: the systenm assigns the system adminstrater role by default, which is the highest permission role and cannot be modified, deleted, disabled or assigned to other employees. Add Roles: Click "+" beside the role list, and input a role name on the "Add Roles" page, click the button "Confirm" to **add a role:** ![](https://img.kancloud.cn/60/0d/600d813bb5cd7e3d147e9afd70af5483_491x232.png) **Set a role permission:** Select the role you want to set in the role list on the left, check the permission on the right, and click the button "Confirm" to set the permission for the role. ![](https://img.kancloud.cn/0c/85/0c85d2fd43b7fbf6600f4467d3abf4e9_1175x407.png) **Modify Roles:** Select the role to be modified, click the button and modify the role on the "Modify Roles" page. **Delete Roles:** Select the role to be deleted, and click the button to delete the role. Note: if the role has already been assigned to an employee, it cannot be deleted. **Disable Roles:** Click the button to disable the role. If the role has already been assigned to an employee, it cannot be disabled. #### **2)Role Assignment** Assign Users to the Role: Select the role to be assigned in the role list on the left, click the button "Add", and select "Employee" on the "Add Users" page, click "Confirm" to assign employees to the role. Remove an employee from the roles: Click the button in the table operation list, and remove the employee from the current role.