Permission configuration method and device, storage medium and electronic device
By displaying the first-level menu and the second-level menu on the target page in the web application, and performing associated configurations according to the configuration signal, the problem of the lack of hierarchical relationship between the parent page and the child page is solved, and intuitive interface display and linkage are achieved. Configuration effect.
Patent Information
- Application Number
- CN201910944568.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-09-30
AI Technical Summary
In web applications, when configuring page permissions, there is a lack of hierarchical relationship between the parent page and the child page, resulting in the inability to realize the linkage configuration between the parent page and the child page, and the lack of intuitive interface display.
By displaying the first-level menu and the second-level menu on the target page, the configuration signal is received, and the associated configuration is performed according to the hierarchical relationship, showing the linkage relationship between menus, and using a tree structure to display the permission configuration panel.
It realizes the linkage configuration between the parent page and the child page, improves the intuitiveness of the interface, and solves the problem of unintuitive permission configuration in the existing technology.
Smart Images

Figure CN112580090B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of page configuration, and in particular to a permission configuration method and device, a storage medium and an electronic device. Background Art
[0002] In Web applications, there is usually an important function in system management: permission configuration. The combination of user-role-permission is also called RBAC model, which is the current mainstream permission configuration model.
[0003] In the related art, in the page configuration, there is no hierarchical relationship between the parent page and the child page, the interface display is not intuitive, and the linkage configuration of the parent page and the child page cannot be realized.
[0004] Currently, no effective solution has been proposed for the above-mentioned problems existing in the related technologies. Summary of the invention
[0005] The main purpose of the present invention is to provide a permission configuration method and device, a storage medium and an electronic device to solve the technical problem that when configuring page permissions in the related technology, there is no hierarchical relationship between the parent page and the child page, resulting in the inability to implement the linkage configuration between the parent page and the child page.
[0006] In order to achieve the above-mentioned object, according to one aspect of the present invention, a method for configuring permissions is provided. The invention comprises: displaying a first menu and a second menu on a target page, wherein the first menu includes at least one first-level permission, and the second menu includes at least part of the second-level permissions corresponding to the first-level permissions; receiving a first signal, wherein the first signal is used to configure permissions of the first menu and the second menu; and according to the configured permissions, associating and configuring permissions in the first menu and the second menu that have a hierarchical relationship with the configured permissions and displaying them.
[0007] Furthermore, before receiving the first signal on the first menu of the target page, the method also includes: receiving a second signal, displaying the target page based on the second signal, wherein one side of the target page is a role list; based on the role list, displaying a target menu corresponding to the roles included in the role list, wherein the first menu contains the first-level permissions corresponding to the roles, and the second menu contains the second-level permissions corresponding to the roles.
[0008] Further, when the first signal is used to configure the first-level permission in the first menu to the first state, all the second-level permissions in the second menu corresponding to the first menu are configured to the first state, wherein the first state is an accessible state; when the first signal is used to configure the first-level permission in the first menu to the second state, all the second-level permissions in the second menu corresponding to the first menu are configured to the second state, wherein the second state is an inaccessible state.
[0009] Further, when the first signal is used to configure part of the second-level permissions corresponding to a first-level permission to the first state, the first-level permission corresponding to the configured second-level permission is configured to the third state, wherein the first state is an accessible state and the third state is a semi-selected state; when the first signal is used to configure all the second-level permissions corresponding to a first-level permission to the first state, the first-level permission corresponding to the configured second-level permission is configured to the first state.
[0010] Furthermore, the first menu and the second menu are displayed in a tree structure.
[0011] In order to achieve the above-mentioned object, according to another aspect of the present invention, a device for configuring permissions is provided. The device comprises: a display unit, configured to display a first menu and a second menu on a target page, wherein the first menu comprises at least one first-level permission, and the second menu comprises at least a part of the second-level permissions corresponding to the first-level permissions; a receiving unit, configured to receive a first signal, wherein the first signal is used to configure permissions of the first menu and the second menu; and a first configuration unit, configured to associate and display permissions in the first menu and the second menu that have a hierarchical relationship with the configured permissions according to the configured permissions.
[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a storage medium is provided, the storage medium includes a stored program, wherein the program executes any one of the above-mentioned methods for configuring a permission.
[0013] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is provided, which includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call the program instructions in the memory to execute a method for configuring a permission of any one of the above items.
[0014] Through the present invention, the following steps are adopted: displaying a first menu and a second menu on a target page, wherein the first menu includes at least one first-level permission, and the second menu includes second-level permissions corresponding to at least part of the first-level permissions; receiving a first signal, wherein the first signal is used to configure the permissions of the first menu and the second menu; according to the configured permissions, associating and configuring and displaying the permissions in the first menu and the second menu that have a hierarchical relationship with the configured permissions, thereby solving the technical problem in the related art that when configuring the permissions of the page, there is no hierarchical relationship between the parent page and the child page, resulting in the inability to implement the linkage configuration between the parent page and the child page, thereby achieving the technical effect of intuitively displaying each interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0016] Figure 1 is a flowchart of a method for configuring permissions provided according to an embodiment of the present invention;
[0017] Figure 2 is a schematic diagram of a permission configuration device provided according to an embodiment of the present invention; and
[0018] Figure 3 A schematic diagram of an electronic device provided according to the present application. DETAILED DESCRIPTION
[0019] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0020] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0022] For the convenience of description, some nouns or terms involved in the embodiments of the present invention are explained below:
[0023] Permission configuration: refers to configuring users to access and only access the resources they are authorized to access based on the security rules or security policies set by the system.
[0024] Access permission: whether the page is allowed to be accessed by the user.
[0025] Operation permissions: permissions for operations on the page, such as adding, editing, and deleting.
[0026] According to an embodiment of the present invention, a method for configuring permissions is provided.
[0027] Figure 1 FIG. 1 is a flowchart of a method for configuring permissions according to an embodiment of the present invention. Figure 1 As shown, the invention comprises the following steps:
[0028] Step S101, displaying a first menu and a second menu on a target page, wherein the first menu includes at least one first-level permission, and the second menu includes second-level permissions corresponding to at least part of the first-level permissions.
[0029] As mentioned above, on the target page that needs to be configured, there are target menus with hierarchical relationships between permissions, wherein the target menus include at least two levels of menus, and there is a hierarchical relationship between the two levels of menus, for example, the first menu is the first level menu, and the second menu is the second level menu. Since there is a hierarchical relationship between the menus, the control relationship between the hierarchical menus is a linkage relationship. By setting the first-level permissions of one of the menus, the second-level permissions on other second menus that are linked to it can be configured accordingly, that is, the first menu has the first-level permissions, the second menu is configured with the second permissions, and some of the second-level permissions on the second menu have a hierarchical relationship with the first-level permissions on the first menu.
[0030] Step S102: receiving a first signal, wherein the first signal is used to configure permissions of the first menu and the second menu.
[0031] Specifically, when a configuration signal is received on the first menu, after the permissions of the first menu are configured, the permissions of the second menu may be configured accordingly.
[0032] As mentioned above, the permissions of the first menu and the permissions of the second menu include page permissions and operation editing permissions.
[0033] Step S103: According to the configured permissions, permissions in the first menu and the second menu that are in a hierarchical relationship with the configured permissions are associated and displayed.
[0034] As described above, according to the permissions configured in the first menu, the permissions of the second menu are configured accordingly and displayed according to the content of the permission configuration.
[0035] Optionally, before receiving the first signal on the first menu of the target page, the method also includes: receiving a second signal, displaying the target page based on the second signal, wherein one side of the target page is a role list; based on the role list, displaying a target menu corresponding to the roles included in the role list, wherein the first menu contains the first-level permissions corresponding to the roles, and the second menu contains the second-level permissions corresponding to the roles.
[0036] As mentioned above, before configuring the permissions of menus that are linked to this menu at the same time through the configuration signal of a menu, it is also necessary to display the target page, and the displayed page contains multi-level menus, and each menu has a hierarchical relationship, that is, a linkage control relationship, wherein one side of the displayed page is a role list. For example, in a target page, the left side is a role list, and the right side is a permission configuration interface, and the permission configuration interface includes a target menu, and three columns are displayed in the target menu, including: the name of the menu (including at least the first menu and the second menu, which have a hierarchical relationship), menu display (page permission), and menu function settings (operation permission).
[0037] Specifically, the first menu includes first-level permissions, and the second menu includes second-level permissions. There is a hierarchical linkage relationship between the first-level permissions and the second-level permissions. That is, by configuring the first-level permissions, the second-level permissions can be configured accordingly at the same time, or, after configuring the second-level permissions, the first-level permissions can be configured accordingly at the same time.
[0038] It should be noted that the page can also include multi-level menus, for example: a three-level menu, wherein there is a linkage control relationship between the first menu and the second menu, and there is a linkage control relationship between the second menu and the third menu. Therefore, through such a one-level linkage control, the technical effect of controlling the configuration of multi-level menus according to one signal is achieved.
[0039] Optionally, when the first signal is used to configure the first-level permission in the first menu to a first state, all the second-level permissions in the second menu corresponding to the first menu are configured to the first state, wherein the first state is an accessible state; when the first signal is used to configure the first-level permission in the first menu to a second state, all the second-level permissions in the second menu corresponding to the first menu are configured to the second state, wherein the second state is an inaccessible state.
[0040] Specifically, the second menu can be configured at the same time through the first signal received on the first menu. When the first signal makes the first-level permission in the first menu accessible, that is, when the "Menu Display" corresponding to the first menu is checked, it means that the page configuration of the first menu is a configuration that allows access. Accordingly, because there is a linkage and hierarchical relationship between the first-level permission of the first menu and the second-level permission of the second menu, when the first-level permission in the first menu is in a state where access is allowed, the second-level permissions in multiple second menus corresponding to the first menu are all configured to be accessible.
[0041] On the contrary, when the first signal received on the first menu makes the primary permission in the first menu in an inaccessible state, the secondary permission of the second menu corresponding to the first menu is configured to be in an inaccessible state at the same time.
[0042] Optionally, when the first signal is used to configure part of the second-level permissions corresponding to a first-level permission to the first state, the first-level permission corresponding to the configured second-level permission is configured to the third state, wherein the first state is an accessible state and the third state is a semi-selected state; when the first signal is used to configure all the second-level permissions corresponding to a first-level permission to the first state, the first-level permission corresponding to the configured second-level permission is configured to the first state.
[0043] As described above, when the first signal configures part of the secondary permissions of the second menu to be in an accessible state, the primary permissions that have a linkage relationship with the secondary permissions are correspondingly configured to be in a "half-selected" state, that is, a half-accessible state.
[0044] Correspondingly, when the first signal makes all the secondary permissions of the secondary menu configured to be accessible, the primary permissions corresponding to the first menu having a linkage configuration relationship with the secondary permissions are configured to be accessible.
[0045] Through the above method, when configuring the permissions of the first menu or the second menu, the permission configuration of the secondary menu or the first menu is configured in linkage.
[0046] Optionally, the first menu and the second menu are displayed in a tree structure.
[0047] Therefore, this embodiment provides a method for configuring page permissions and operation permissions for roles in a role list. The target menu corresponding to each role in the role list contains at least two levels of menus, the two levels of menus are the first menu and the second menu, and the first menu and the second menu are displayed in a tree structure. By displaying the permission configuration panel in a tree table, a concise and intuitive technical effect is achieved. It should be noted that
[0048] A method for configuring permissions provided by an embodiment of the present invention comprises displaying a first menu and a second menu on a target page, wherein the first menu includes at least one first-level permission, and the second menu includes second-level permissions corresponding to at least some of the first-level permissions; receiving a first signal, wherein the first signal is used to configure permissions of the first menu and the second menu; and according to the configured permissions, associating and configuring permissions in the first menu and the second menu that have a hierarchical relationship with the configured permissions and displaying them. In the related art, when configuring permissions of a page, there is no hierarchical relationship between a parent page and a child page, resulting in a technical problem that the linkage configuration between the parent page and the child page cannot be implemented, thereby achieving the technical effect of intuitively displaying each interface.
[0049] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0050] The embodiment of the present invention further provides a permission configuration device. It should be noted that the permission configuration device of the embodiment of the present invention can be used to execute the permission configuration method provided by the embodiment of the present invention. The following introduces a permission configuration device provided by the embodiment of the present invention.
[0051] Figure 2 FIG. 1 is a schematic diagram of a permission configuration device provided according to an embodiment of the present invention. Figure 2 As shown, the device includes: a display unit 201, used to display a first menu and a second menu on a target page, wherein the first menu includes at least one first-level permission, and the second menu includes second-level permissions corresponding to at least some of the first-level permissions; a receiving unit 202, used to receive a first signal, wherein the first signal is used to configure permissions of the first menu and the second menu; a first configuration unit 202, used to associate and configure and display permissions in the first menu and the second menu that have a hierarchical relationship with the configured permissions according to the configured permissions.
[0052] A permission configuration device provided in an embodiment of the present invention is used to display a first menu and a second menu on a target page through a display unit 201, wherein the first menu includes at least one first-level permission, and the second menu includes second-level permissions corresponding to at least some of the first-level permissions; a receiving unit 202 is used to receive a first signal, wherein the first signal is used to configure the permissions of the first menu and the second menu; the first configuration unit 202 is used to associate and configure and display permissions in the first menu and the second menu that have a hierarchical relationship with the configured permissions according to the configured permissions, thereby solving the technical problem in the related art that when configuring the permissions of the page, there is no hierarchical relationship between the parent page and the child page, resulting in the inability to implement the linkage configuration between the parent page and the child page, thereby achieving the technical effect of intuitively displaying each interface.
[0053] Optionally, the device also includes: a receiving unit, used to receive a second signal before receiving a first signal on a first menu of the target page, and display the target page based on the second signal, wherein one side of the target page is a role list; a first display unit, used to display a target menu corresponding to the roles included in the role list based on the role list, wherein the first menu contains the first-level permissions corresponding to the roles, and the second menu contains the second-level permissions corresponding to the roles.
[0054] Optionally, the device also includes a second configuration unit, which is used to configure all secondary permissions in the second menu corresponding to the first menu to the first state when the first signal is used to configure the first-level permission in the first menu to the first state, wherein the first state is an accessible state; and a third configuration unit, which is used to configure all secondary permissions in the second menu corresponding to the first menu to the second state when the first signal is used to configure the first-level permission in the first menu to the second state, wherein the second state is an inaccessible state.
[0055] Optionally, the device also includes a fourth configuration unit, which is used to configure the first-level permission corresponding to the configured second-level permission to a third state when the first signal is used to configure part of the second-level permissions corresponding to a first-level permission to the first state, wherein the first state is an accessible state and the third state is a semi-selected state; and a fifth configuration unit, which is used to configure the first-level permission corresponding to the configured second-level permission to the first state when the first signal is used to configure all the second-level permissions corresponding to a first-level permission to the first state.
[0056] Optionally, the device further includes a second display unit, configured to display the first menu and the second menu in a tree structure.
[0057] A permission configuration device includes a processor and a memory. The display unit 201, the receiving unit 202, and the first configuration unit 202 are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
[0058] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters are adjusted to solve the technical problem that when configuring the permissions of the page in the related technology, there is no hierarchical relationship between the parent page and the child page, resulting in the inability to implement the linkage configuration between the parent page and the child page.
[0059] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, a method for configuring permissions is implemented.
[0060] An embodiment of the present invention provides a processor, which is used to run a program, wherein a permission configuration method is executed when the program is running.
[0061] Figure 3 This is a schematic diagram of an electronic device provided according to the present application. As shown in the figure, the electronic device 30 includes at least one processor 301, at least one memory 302 and a bus 303 connected to the processor 301; wherein the processor 301 and the memory 302 communicate with each other through the bus 303; the processor 301 is used to call the program instructions in the memory 302 to execute the above-mentioned method for configuring a permission. The device in this article can be a server, PC, PAD, mobile phone, etc.
[0062] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: displaying a first menu and a second menu on a target page, wherein the first menu includes at least one first-level permission, and the second menu includes second-level permissions corresponding to at least some of the first-level permissions; receiving a first signal, wherein the first signal is used to configure permissions of the first menu and the second menu; and according to the configured permissions, associating and configuring and displaying permissions in the first menu and the second menu that have a hierarchical relationship with the configured permissions.
[0063] Optionally, before receiving the first signal on the first menu of the target page, the method also includes: receiving a second signal, displaying the target page based on the second signal, wherein one side of the target page is a role list; based on the role list, displaying a target menu corresponding to the roles included in the role list, wherein the first menu contains the first-level permissions corresponding to the roles, and the second menu contains the second-level permissions corresponding to the roles.
[0064] Optionally, when the first signal is used to configure the first-level permission in the first menu to a first state, all the second-level permissions in the second menu corresponding to the first menu are configured to the first state, wherein the first state is an accessible state; when the first signal is used to configure the first-level permission in the first menu to a second state, all the second-level permissions in the second menu corresponding to the first menu are configured to the second state, wherein the second state is an inaccessible state.
[0065] Optionally, when the first signal is used to configure part of the second-level permissions corresponding to a first-level permission to the first state, the first-level permission corresponding to the configured second-level permission is configured to the third state, wherein the first state is an accessible state and the third state is a semi-selected state; when the first signal is used to configure all the second-level permissions corresponding to a first-level permission to the first state, the first-level permission corresponding to the configured second-level permission is configured to the first state.
[0066] Optionally, the first menu and the second menu are displayed in a tree structure.
[0067] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0068] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.
[0069] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
[0070] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0071] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0072] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0073] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for configuring permissions. It is characterized in that include: Displaying a first menu and a second menu on a target page, wherein the first menu includes at least one first-level permission, and the second menu includes at least part of the second-level permissions corresponding to the first-level permissions; wherein the first menu and the second menu have a hierarchical relationship; receiving a first signal, wherein the first signal is used to configure permissions of the first menu and the second menu; According to the configured permissions, permissions in the first menu and the second menu that have a hierarchical relationship with the configured permissions are associated and displayed; Wherein, when the first signal is used to configure the primary authority in the first menu to a first state, all secondary authorities in the second menu corresponding to the first menu are configured to the first state, wherein the first state is an accessible state; When the first signal is used to configure the primary permission in the first menu to a second state, all secondary permissions in the second menu corresponding to the first menu are configured to the second state, wherein the second state is an inaccessible state.
2. The method according to claim 1, It is characterized in that Before receiving the first signal on the first menu of the target page, the method further includes: receiving a second signal, and displaying the target page according to the second signal, wherein one side of the target page is a role list; According to the role list, target menus corresponding to the roles included in the role list are displayed, wherein the first menu includes the first-level permissions corresponding to the roles, and the second menu includes the second-level permissions corresponding to the roles.
3. The method according to claim 1, It is characterized in that include: When the first signal is used to configure part of the second-level permissions corresponding to a first-level permission to the first state, the first-level permission corresponding to the configured second-level permission is configured to the third state, wherein the first state is the accessible state and the third state is the semi-selected state; When the first signal is used to configure all the second-level permissions corresponding to a first-level permission to the first state, the first-level permission corresponding to the configured second-level permission is configured to the first state.
4. The method according to claim 1, It is characterized in that The first menu and the second menu are displayed in a tree structure.
5. A permission configuration device, It is characterized in that include: A display unit, configured to display a first menu and a second menu on a target page, wherein the first menu includes at least one first-level permission, and the second menu includes at least part of the second-level permissions corresponding to the first-level permissions; A receiving unit, configured to receive a first signal, wherein the first signal is used to configure permissions for the first menu and the second menu; A first configuration unit, configured to associate and display permissions in the first menu and the second menu that are in a hierarchical relationship with the configured permissions according to the configured permissions; wherein the first menu and the second menu are in a hierarchical relationship; The device also includes a second configuration unit, which is used to configure all secondary permissions in the second menu corresponding to the first menu to the first state when the first signal is used to configure the first-level permission in the first menu to the first state, wherein the first state is an accessible state; and a third configuration unit, which is used to configure all secondary permissions in the second menu corresponding to the first menu to the second state when the first signal is used to configure the first-level permission in the first menu to the second state, wherein the second state is an inaccessible state.
6. The device according to claim 5, It is characterized in that The device further includes: a receiving unit, configured to, before receiving a first signal on a first menu of a target page, receiving a second signal, and displaying the target page according to the second signal, wherein one side of the target page is a role list; The first display unit is used to display the target menu corresponding to the role included in the role list according to the role list, wherein the first menu includes the first-level authority corresponding to the role, and the second menu includes the second-level authority corresponding to the role.
7. A storage medium, It is characterized in that The storage medium includes a stored program, wherein the program executes a permission configuration method as described in any one of claims 1 to 4.
8. An electronic device, It is characterized in that The device includes at least one processor, and at least one memory and a bus connected to the processor; Wherein, the processor and the memory communicate with each other through the bus; The processor is used to call the program instructions in the memory to execute the permission configuration method as described in any one of claims 1 to 4.
