1. Meaning of the role
role: Refers to a category of people, the allocation of the corresponding menu (such as: General manager, sales director, administrative, General Staff, is a different role, different roles must have different permissions. Then we need to create the corresponding 1 roles here, and then set up the corresponding menus for those roles.
650) this.width=650; "id=" aimg_1075 "src=" http://bbs.delit.cn/data/attachment/forum/201602/22/ 152019yu44ne93t4tbb4uu.png.thumb.jpg "width=" 398 "height=" 147 "alt=" 152019yu44ne93t4tbb4uu.png.thumb.jpg "/>
Role: Built-in two roles: Default menu group (the menu that the system login sees (including people who are not authorized); System administrator (System Administrator role is a system built-in role and cannot be removed).
2. Use of roles
2.1 Role Management
Add a role: Click "Add" button, just fill in the necessary role code, role name, and then save (note: Role encoding and role name cannot be duplicated).
Edit role: Refers to the name of the role that was added before the change.
Remove a role: As the name implies, kill a selected character.
650) this.width=650; "id=" aimg_1076 "src=" http://bbs.delit.cn/data/attachment/forum/201602/22/ 152020yqf8av6i3qik7avc.png.thumb.jpg "width=" "height=" 222 "alt=" 152020yqf8av6i3qik7avc.png.thumb.jpg "/>
2.2 Menu Definition
Menu Definition: refers to the addition of a good role, assign the appropriate menu. Select the Role, click "Menu Definition", jump out of the interface, to the right is all the menu, the left is the character already owned menu. From the menu tree on the right, select the menu that the character needs, choose the box to the right, and save it so that the role's permissions are set.
650) this.width=650; "id=" aimg_1077 "src=" http://bbs.delit.cn/data/attachment/forum/201602/22/ 152027dgg5xgmmuupmuk7x.png.thumb.jpg "alt=" 152027dgg5xgmmuupmuk7x.png.thumb.jpg "/>
2.3 Function definition
Feature definition: Refers to certain forms of buttons that are not open to certain people. (For example: Add, Modify button not to ordinary people, it can be set here).
Note: The function definition is based on the assumption that the role already has these menu permissions.
650) this.width=650; "id=" aimg_1078 "src=" http://bbs.delit.cn/data/attachment/forum/201602/22/ 152030nnl1wz4l3hzj143h.png.thumb.jpg "alt=" 152030nnl1wz4l3hzj143h.png.thumb.jpg "/>
Note: The permissions of these buttons need to be in a specific form to control, the function of the button under the management, to control the control of the button permissions to control this bar tick, as shown:
650) this.width=650; "id=" aimg_1079 "src=" http://bbs.delit.cn/data/attachment/forum/201602/22/ 152033bl40xl0e64ha4azm.png.thumb.jpg "alt=" 152033bl40xl0e64ha4azm.png.thumb.jpg "/>
2.4 Role Import and Export
export role, import role: Refers to the role of the project, can be imported into other projects, or other platforms. The exported file is a. role format.
650) this.width=650; "id=" aimg_1080 "src=" http://bbs.delit.cn/data/attachment/forum/201602/22/ 152035tamnj93ymyjymzq5.png.thumb.jpg "alt=" 152035tamnj93ymyjymzq5.png.thumb.jpg "/>
Original address: http://bbs.delit.cn/thread-714-1-1.html
Reprint please specify the source:
Author: metric Technology http://www.delit.cn
The meaning and application of the role of measurement platform