CN119045693A - Menu display method, device, equipment, medium and product - Google Patents
Menu display method, device, equipment, medium and product Download PDFInfo
- Publication number
- CN119045693A CN119045693A CN202411039625.9A CN202411039625A CN119045693A CN 119045693 A CN119045693 A CN 119045693A CN 202411039625 A CN202411039625 A CN 202411039625A CN 119045693 A CN119045693 A CN 119045693A
- Authority
- CN
- China
- Prior art keywords
- target
- menu
- information
- identification
- role
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2141—Access rights, e.g. capability lists, access control lists, access tables, access matrices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a menu display method, a device, equipment, a medium and a product, which belong to the technical field of data processing and are applied to a target system; the method comprises the steps of searching target role information corresponding to target identification information, wherein the target role information comprises target authority identifications corresponding to target role identifications, determining target authority identifications corresponding to first users according to the target role information, searching target authority information corresponding to the target authority identifications, wherein the target authority information comprises target menu identifications corresponding to the target authority identifications, determining target menu identifications corresponding to the target authority identifications according to the target authority information, calling target menu information corresponding to the target menu identifications from a plurality of preset menu information, and displaying a target menu based on the target menu information. Therefore, the code development amount is small, the redundant code amount is small, and the maintenance cost is reduced.
Description
Technical Field
The application belongs to the technical field of data processing, and particularly relates to a menu display method, device, equipment, medium and product.
Background
Many systems are not limited to use by a single tenant, but multiple tenants commonly use one system.
Currently, a set of codes is typically developed and maintained separately for each tenant. However, this results in a large code development amount, a large redundant code amount, and high maintenance costs, and the maintenance costs are multiplied every time one tenant is added.
Disclosure of Invention
The embodiment of the application provides a menu display method, device, equipment, medium and product, which can at least solve the problems that the code development amount is large, the redundant code amount is also large, the maintenance cost is high, and the maintenance cost is multiplied when one tenant is added in the prior art.
In a first aspect, an embodiment of the present application provides a menu display method, applied to a target system, where the method includes:
Obtaining login information of a first user logging in a target system, wherein the login information comprises target identification information corresponding to the first user, the target identification information comprises target tenant identification and target role identification, and the first user is any user under any tenant of a plurality of tenants using the target system;
Searching target role information corresponding to the target identification information, wherein the target role information comprises a target authority identification corresponding to the target role identification;
Determining a target authority identifier corresponding to the first user according to the target role information;
searching target authority information corresponding to the target authority identification, wherein the target authority information comprises a target menu identification corresponding to the target authority identification;
determining a target menu identifier corresponding to the target authority identifier according to the target authority information;
calling target menu information corresponding to the target menu identifier from a plurality of preset menu information;
And displaying the target menu based on the target menu information.
In a second aspect, an embodiment of the present application provides a menu display apparatus applied to a target system, the apparatus including:
the system comprises an acquisition module, a first user registration module and a second user registration module, wherein the acquisition module is used for acquiring registration information of the first user registration target system, the registration information comprises target identification information corresponding to the first user, the target identification information comprises target tenant identification and target role identification, and the first user is any user under any tenant of a plurality of tenants using the target system;
the searching module is used for searching target role information corresponding to the target identification information, wherein the target role information comprises a target authority identification corresponding to the target role identification;
The determining module is used for determining a target authority identifier corresponding to the first user according to the target role information;
the searching module is also used for searching target authority information corresponding to the target authority identification, wherein the target authority information comprises a target menu identification corresponding to the target authority identification;
the determining module is also used for determining a target menu identifier corresponding to the target authority identifier according to the target authority information;
The calling module is used for calling the target menu information corresponding to the target menu identifier from a plurality of preset menu information;
And the display module is used for displaying the target menu based on the target menu information.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing computer program instructions;
The processor, when executing the computer program instructions, implements a menu display method as shown in any of the embodiments of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer storage medium having stored thereon computer program instructions which, when executed by a processor, implement a menu display method as shown in any of the embodiments of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, instructions in which, when executed by a processor of an electronic device, cause the electronic device to perform the menu display method shown in any one of the embodiments of the first aspect.
According to the menu display method, device, equipment, medium and product, login information of a first user logging in a target system can be obtained, the login information comprises target identification information corresponding to the first user, the target identification information comprises target tenant identifications and target role identifications, the first user is any user under any tenant of a plurality of tenants using the target system, then target role information corresponding to the target identification information can be searched, the target role information comprises target authority identifications corresponding to the target role identifications, therefore, the target authority identifications corresponding to the first user can be determined according to the target role information, then target authority information corresponding to the target authority identifications can be searched, the target authority information comprises target menu identifications corresponding to the target authority identifications, therefore, the target menu identifications corresponding to the target authority identifications can be determined according to the target authority information, then the target menu information corresponding to the target menu identifications can be called from the plurality of preset menu information, and then the target menu is displayed based on the target menu information. Thus, by pre-configuring a plurality of menu information, a set of codes does not need to be developed and maintained for each tenant individually. Any user under any tenant can index the menu information corresponding to the user from a plurality of preset menu information through tenant identification, role identification, authority identification and menu identification, so that the menu corresponding to the user is displayed. Thus, the development amount of codes is small, the redundant code amount is small, the maintenance cost is reduced, and the maintenance cost is not increased too much when the tenant is increased.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings that are needed to be used in the embodiments of the present application will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
FIG. 1 is one of the flowcharts of a menu display method provided in one embodiment of the present application;
FIG. 2 is a schematic diagram of a configuration relationship provided by an embodiment of the present application;
FIG. 3 is a second flowchart of a menu display method according to an embodiment of the present application;
FIG. 4 is a schematic illustration of a menu display provided by one embodiment of the present application;
fig. 5 is a schematic structural view of a menu display device according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below, and in order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail below with reference to the accompanying drawings and the detailed embodiments. It should be understood that the particular embodiments described herein are meant to be illustrative of the application only and not limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the application by showing examples of the application.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of additional identical elements in a process, method, article, or apparatus that comprises the element.
It should be noted that, in the technical scheme of the application, the acquisition, storage, use, processing and the like of the data all conform to the relevant regulations of national laws and regulations.
It should be noted that, in the embodiments of the present application, some existing solutions in the industry such as software, components, models, etc. may be mentioned, and they should be regarded as exemplary only for illustrating the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or must not use the solution.
As background technology, at present, many systems are used by more than one tenant, the system has more application tenants, menu configuration and authority control are complex, if all the authorities of the tenants are controlled in application codes, the code development amount is large, the redundant code amount is very large, and when one tenant is added, the maintenance cost is increased by times.
In order to solve the technical problems described above, embodiments of the present application provide a menu display method, apparatus, device, medium, and product, where login information of a first user logging in to a target system may be obtained, where the login information includes target identification information corresponding to the first user, where the target identification information includes a target tenant identification and a target role identification, the first user is any user under any tenant of multiple tenants using the target system, then may find target role information corresponding to the target identification information, where the target role information includes a target authority identification corresponding to the target role identification, so that the target authority identification corresponding to the first user may be determined according to the target role information, then may find target authority information corresponding to the target authority identification, where the target authority information includes a target menu identification corresponding to the target authority identification, therefore may determine the target menu identification corresponding to the target authority identification according to the target authority information, and then may call the target menu information corresponding to the target menu identification from the multiple preset menu information, and then display the target menu based on the target menu information. Thus, by pre-configuring a plurality of menu information, a set of codes does not need to be developed and maintained for each tenant individually. Any user under any tenant can index the menu information corresponding to the user from a plurality of preset menu information through tenant identification, role identification, authority identification and menu identification, so that the menu corresponding to the user is displayed. Thus, the development amount of codes is small, the redundant code amount is small, the maintenance cost is reduced, and the maintenance cost is not increased too much when the tenant is increased.
The menu display method according to the embodiment of the present application will be described in detail with reference to fig. 1.
Fig. 1 is a schematic flow chart of a menu display method according to an embodiment of the present application, and it should be noted that the menu display method may be applied to a target system or a menu display device, and as shown in fig. 1, the menu display method may include the following steps:
S110, acquiring login information of a first user login target system;
S120, searching target role information corresponding to the target identification information;
S130, determining a target authority identifier corresponding to the first user according to the target role information;
s140, searching target authority information corresponding to the target authority identification;
s150, determining a target menu identifier corresponding to the target authority identifier according to the target authority information;
s160, calling target menu information corresponding to the target menu identification from a plurality of preset menu information;
S170, displaying the target menu based on the target menu information.
Therefore, the login information of the first user login target system can be obtained, the login information comprises target identification information corresponding to the first user, the target identification information comprises target tenant identifications and target role identifications, the first user is any user under any tenant of a plurality of tenants using the target system, then the target role information corresponding to the target identification information can be searched, the target role information comprises target authority identifications corresponding to the target role identifications, therefore, the target authority identifications corresponding to the first user can be determined according to the target role information, then the target authority information corresponding to the target authority identifications is searched, the target authority information comprises target menu identifications corresponding to the target authority identifications, therefore, the target menu identifications corresponding to the target authority identifications can be determined according to the target authority information, then the target menu information corresponding to the target menu identifications is called from a plurality of preset menu information, and then the target menu is displayed based on the target menu information. Thus, by pre-configuring a plurality of menu information, a set of codes does not need to be developed and maintained for each tenant individually. Any user under any tenant can index the menu information corresponding to the user from a plurality of preset menu information through tenant identification, role identification, authority identification and menu identification, so that the menu corresponding to the user is displayed. Thus, the development amount of codes is small, the redundant code amount is small, the maintenance cost is reduced, and the maintenance cost is not increased too much when the tenant is increased.
Referring to S110, the target system may be configured with multiple tenants.
The first user may be any user under any of a plurality of tenants using the target system. The login information may include target identification information corresponding to the first user. The target identification information may include a target tenant identification and a target role identification. The target tenant identifier may be a unique identifier of a tenant to which the first user belongs, and the target role identifier may be a unique identifier of a role corresponding to the first user. One first user may correspond to one or more roles.
The target system may be, for example, a cloud customer service system. The tenant may be a company or organization and the first user may be an employee of the company or organization.
The login information can be input by the first user, or the first user inputs an account number and a password, and the account number is associated with the login information.
Referring to S120, target role information may be determined from among a plurality of role information according to the target tenant identification and the target role identification.
The target role information may include a target authority identification corresponding to the target role identification.
The target authority identifier may be a unique identifier of the authority possessed by the role corresponding to the first user.
Illustratively, the role information may be as shown in table 1. The role information role_info may include a tenant identification multinancy _id, a role name role_name, a role identification role_id, a rights identification permission_id, a component identification pk_id, and an update time update_time.
TABLE 1 role information table
Referring to S130, the permission identifier included in the target role information may be determined as a target permission identifier corresponding to the first user.
Referring to S140, target authority information may be determined from a plurality of authority information according to the target authority identification.
The target authority information may include a target menu identifier corresponding to the target authority identifier.
The rights information may be as shown in table 2, for example. The rights information premission _info may include a rights identification permission_id, a rights name permission_name, a menu identification menu_id, a component identification pk_id, an update time update_time, a role identification role_id, and a tenant identification multinancy _id.
TABLE 2 rights information table
Referring to S150, a menu identifier included in the target authority information may be determined as a target menu identifier.
Referring to S160, the target system may be preconfigured with a plurality of menu information.
Specifically, the target menu information corresponding to the target menu identifier may be called from a plurality of menu information configured in advance according to the target menu identifier.
Illustratively, the menu information may be as shown in table 3. The menu information munu _info may include a menu name menu_name, a route (not shown in the table), a menu identification menu_id, a menu description menu_desc, a menu icon menu_icon, a menu order menu_order, a creation time create_time, a parent menu parent_menu, a child menu child_menu, and a role identification role_id.
TABLE 3 Menu information Table
Referring to S170, a target menu, which is a menu that a character corresponding to the first user has authority to view and use, may be displayed based on the target menu information.
In some examples, as shown in fig. 2, the target system configures multiple tenants, namely tenant 1, tenant 2 and tenant 3, wherein the tenant is down-mounted with roles, namely tenant 1 and role 2, the tenant 2 is down-mounted with roles 1 and role 3, the tenant 3 is down-mounted with roles 3 and role 4, different roles of different tenants are allocated with different rights, namely, role 1 under tenant 1 can be allocated with right 1, role 2 under tenant 1 can be allocated with right 2, role 1 under tenant 2 can be allocated with right 3, role 3 under tenant 2 can be allocated with right 4, role 3 under tenant 3 can be allocated with right 5, role 4 under tenant 3 can be allocated with right 6, different menus, namely, the right 1 is down-mounted with menu 1, the right 2 is down-mounted with menu 2, the right 3 is down-mounted with menu 4, the right 5 is down-mounted with menu 5, and the right 6 is down-mounted with menu 6. In addition, a tenant may include multiple users, each of which may be assigned one or more roles under the tenant.
In some embodiments, in order to accurately determine the display position of the target menu, the target menu information may include the target display position of the target menu, and S170 may include:
And displaying the target menu at the target display position.
Here, the display position corresponding to the menu may be set in the menu information in advance.
For example, the target display position may be coordinates of a display area of the target menu in the page.
Thus, the display position of the target menu can be accurately determined based on the target menu information.
In some embodiments, in order to avoid overlapping display of a plurality of menus, the target menu information may include a priority and creation time of the target menu, as shown in fig. 3, S170 may include:
S171, determining a target display position of a target menu according to the priority and the creation time;
s172, displaying the target menu at the target display position.
Here, when there are a plurality of menus, the display position of the menu with higher priority is the earlier the display position of the menu with later creation time is the earlier the display position of the menu.
The priority may be menu order menu_order in table 3 above, and the creation time may be creation time create_time in table 3 above.
The priorities may be preset, and different priorities may be set for the same role of different tenants and different roles of the same tenant.
The creation time may be recorded when the target menu information is created.
Therefore, the display position of the menu can be determined based on the priority and the creation time of the menu, and the probability that the priority and the creation time of a plurality of menus are the same is small, so that the plurality of menus can be prevented from being displayed at the same position, and overlapping display of the plurality of menus is avoided.
In some embodiments, in order to make the display position of the menu more consistent with the usage habit of the corresponding user, the method may further include, before S170:
In response to a first input of a second user, setting the priority of a first menu in the first menu information corresponding to the first identification information as a first priority, and setting the priority of a second menu in the second menu information corresponding to the second identification information as a second priority.
Here, the second user may be an administrator of the target system.
The first menu may be the same as the second menu. The first priority may be different from the second priority. The first priority may be used to determine a display position of the first menu. The second priority may be used to determine a display position of the second menu. The first identification information may be different from the second identification information. The first identification information and the second identification information may each include a tenant identification and a role identification.
The first input may be an input of setting a priority of a first menu in the first menu information corresponding to the first identification information to a first priority and setting a priority of a second menu in the second menu information corresponding to the second identification information to a second priority.
For example, the display positions of two identical menus may be different for two different characters. For example, character a uses menu a more frequently and uses menu B less frequently, so it is necessary to display menu a in a relatively front position and menu B in a relatively rear position, and character B uses menu B more frequently and uses menu a less frequently, so it is necessary to display menu B in a relatively front position and menu a in a relatively rear position. Therefore, different priorities can be set for the menus a of the two roles, and different priorities can be set for the menus b of the two roles, so that the difference of the menu display positions is achieved. Illustratively, as shown in fig. 4, the display position of menu a is above the display position of menu B in page 410 corresponding to character a, and the display position of menu B is above the display position of menu a in page 420 corresponding to character B, where the upper position may be considered to be the forward position and the lower position may be considered to be the rearward position.
Therefore, the same menu is set to have different display positions when corresponding to the same role of different tenants or different roles of the same tenant, and the display positions of the menu can be more in accordance with the use habit of corresponding users.
In some embodiments, in order to quickly and accurately display the menu corresponding to the user, the method may further include, before S110:
the target information is generated and stored in response to a second input of the second user configuration target information.
Here, the second input may be an input of configuration target information.
The target information may include at least one of character information, authority information, and menu information.
Wherein the character information may include target character information, the authority information may include target authority information, and the menu information may include a plurality of menu information configured in advance.
Therefore, a plurality of menu information, a plurality of role information and a plurality of authority information can be configured in advance, and based on the information, the index of the menu information corresponding to any user under any tenant can be realized, so that the menu corresponding to the user can be displayed rapidly and accurately.
In the embodiment of the application, different roles are configured for different tenants (the role names among different tenants can be the same but are hung under different tenants) by repository tenant identification, role information, authority information, menu information and user information, and different roles are assigned to each login user. Through layer-by-layer configuration control, the accurate configuration of menus is achieved, the authority control difficulty when multiple tenants use the same system is reduced, and repeated development work can be reduced.
In some embodiments, to facilitate maintenance of the target system, after generating and storing the target information in response to the second input of the second user configuration target information, the method may further include:
And responding to a third input of updating the target information by the second user, and performing an updating operation on the target information.
Here, the update operation may include at least one of addition, deletion, and modification.
Specifically, at least one of menu information, character information, and authority information may be added, deleted, and/or modified through user input.
Therefore, operations such as adding, deleting, changing and the like of menu information, role information and authority information can be realized through user input, so that the maintenance of a target system is simpler and more convenient, and the maintenance cost is reduced.
The menu configuration and control methods of the system are diverse. The front-end single-page application is diversified, the functions are various, when a plurality of tenants are simultaneously used in the same system, the authority of the page needs to be precisely controlled, and the front-end single-page application is used for isolating the page functions and separating the operations of people with different authorities. And all pages are not required to be opened to all users, and only users with corresponding rights are required to be opened to display the corresponding pages, so that code development is effectively reduced, and the menu rights are accurately controlled.
In the embodiment of the application, the target system can be configured with a plurality of tenants, each tenant can be hung with a plurality of roles, each tenant maintains the respective roles, the roles used by different tenants are isolated from each other, and each role can maintain different menus. Users using the target system can be distributed and hung with different roles, so that effective configuration and accurate control of display menus of different tenants and different users can be realized.
According to the embodiment of the application, through role allocation to the users, the menu information of the authority possessed by the users can be indexed and displayed based on the login information of the users through configured layer-by-layer association, so that the accurate control of menu display of different users without roles among multiple tenants is realized, and the timely effect is achieved through configuration maintenance.
According to the embodiment of the application, the cloud customer service system can be used by multiple tenants at the same time, the authority control of multiple mechanisms (namely tenants) of the cloud customer service system can be solved, repeated code development is reduced, reusability is high, role association mechanisms are formed, different mechanisms are isolated from each other and can be compatible and parallel, different menus are hung by roles, the roles are specific to users, accurate control of the menus is achieved through layer-by-layer association, information is maintained in a database, and timely adding, deleting and modifying are realized, and timely effectiveness is realized.
Based on the same inventive concept, the embodiment of the application also provides a menu display device. The menu display apparatus according to the embodiment of the present application will be described in detail with reference to fig. 5.
Fig. 5 is a schematic structural diagram of a menu display device according to an embodiment of the present application.
As shown in fig. 5, the menu display apparatus may be applied to a target system, and the menu display apparatus may include:
The obtaining module 501 is configured to obtain login information of a first user logging in to a target system, where the login information includes target identification information corresponding to the first user, the target identification information includes a target tenant identification and a target role identification, and the first user is any user under any tenant of multiple tenants using the target system;
The searching module 502 is configured to search target role information corresponding to target identification information, where the target role information includes a target authority identifier corresponding to a target role identifier;
a determining module 503, configured to determine a target permission identifier corresponding to the first user according to the target role information;
the searching module 502 is further configured to search for target authority information corresponding to a target authority identifier, where the target authority information includes a target menu identifier corresponding to the target authority identifier;
The determining module 503 is further configured to determine a target menu identifier corresponding to the target authority identifier according to the target authority information;
a calling module 504, configured to call target menu information corresponding to the target menu identifier from a plurality of preset menu information;
a display module 505 for displaying the target menu based on the target menu information.
Therefore, the login information of the first user login target system can be obtained, the login information comprises target identification information corresponding to the first user, the target identification information comprises target tenant identifications and target role identifications, the first user is any user under any tenant of a plurality of tenants using the target system, then the target role information corresponding to the target identification information can be searched, the target role information comprises target authority identifications corresponding to the target role identifications, therefore, the target authority identifications corresponding to the first user can be determined according to the target role information, then the target authority information corresponding to the target authority identifications is searched, the target authority information comprises target menu identifications corresponding to the target authority identifications, therefore, the target menu identifications corresponding to the target authority identifications can be determined according to the target authority information, then the target menu information corresponding to the target menu identifications is called from a plurality of preset menu information, and then the target menu is displayed based on the target menu information. Thus, by pre-configuring a plurality of menu information, a set of codes does not need to be developed and maintained for each tenant individually. Any user under any tenant can index the menu information corresponding to the user from a plurality of preset menu information through tenant identification, role identification, authority identification and menu identification, so that the menu corresponding to the user is displayed. Thus, the development amount of codes is small, the redundant code amount is small, the maintenance cost is reduced, and the maintenance cost is not increased too much when the tenant is increased.
In some embodiments, in order to accurately determine a display position of the target menu, the target menu information may include a target display position of the target menu, and the display module 505 may include:
And the display sub-module is used for displaying the target menu at the target display position.
In some embodiments, to avoid overlapping display of multiple menus, the target menu information includes a priority and creation time of the target menu, the display module 505 may include:
And the display sub-module is used for displaying the target menu at the target display position.
In some embodiments, in order to make the display position of the menu more consistent with the usage habit of the corresponding user, the apparatus may further include:
The setting module is used for responding to the first input of the second user, setting the priority of the first menu in the first menu information corresponding to the first identification information as the first priority, and setting the priority of the second menu in the second menu information corresponding to the second identification information as the second priority;
the first menu is the same as the second menu, the first priority is different from the second priority, the first priority is used for determining the display position of the first menu, the second priority is used for determining the display position of the second menu, the first identification information is different from the second identification information, and the first identification information and the second identification information both comprise tenant identifications and role identifications.
In some embodiments, in order to quickly and accurately display a menu corresponding to a user, the apparatus may further include:
The processing module is used for responding to the second input of the second user configuration target information and generating and storing target information;
the target information includes at least one of character information, authority information, and menu information, the character information includes target character information, the authority information includes target authority information, and the menu information includes a plurality of menu information configured in advance.
In some embodiments, to facilitate maintenance of the target system, the apparatus may further include:
and the updating module is used for responding to the third input of the second user for updating the target information and carrying out updating operation on the target information, wherein the updating operation comprises at least one of adding, deleting and modifying.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
As shown in fig. 6, the electronic device 6 is capable of implementing a structural diagram of an exemplary hardware architecture of the electronic device according to the menu display method and the menu display apparatus in the embodiment of the present application. The electronic device may refer to an electronic device in an embodiment of the present application.
The electronic device 6 may comprise a processor 601 and a memory 602 storing computer program instructions.
In particular, the processor 601 may include a Central Processing Unit (CPU), or an Application SPECIFIC INTEGRATED Circuit (ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present application.
Memory 602 may include mass storage for data or instructions. By way of example, and not limitation, memory 602 may include a hard disk drive (HARD DISK DRIVE, HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a universal serial bus (Universal Serial Bus, USB) drive, or a combination of two or more of these. The memory 602 may include removable or non-removable (or fixed) media, where appropriate. Memory 602 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 602 is a non-volatile solid state memory. In particular embodiments, memory 602 may include Read Only Memory (ROM), random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory 602 includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors) it is operable to perform the operations described with reference to a method in accordance with an aspect of the application.
The processor 601 implements any of the menu display methods of the above embodiments by reading and executing computer program instructions stored in the memory 602.
In one example, the electronic device may also include a communication interface 603 and a bus 604. As shown in fig. 6, the processor 601, the memory 602, and the communication interface 603 are connected to each other through the bus 604 and perform communication with each other.
The communication interface 603 is mainly used for implementing communication between each module, apparatus, unit and/or device in the embodiment of the present application.
Bus 604 includes hardware, software, or both, that couple components of the electronic device to one another. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 604 may include one or more buses, where appropriate. Although embodiments of the application have been described and illustrated with respect to a particular bus, the application contemplates any suitable bus or interconnect.
The electronic device can execute the menu display method in the embodiment of the application, thereby realizing the menu display method and the menu display device described in connection with fig. 1 to 5.
In addition, in combination with the menu display method in the above embodiment, the embodiment of the present application may be implemented by providing a computer storage medium. The computer storage medium having stored thereon computer program instructions which when executed by a processor implement any of the menu display methods of the above embodiments.
It should be understood that the application is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. The method processes of the present application are not limited to the specific steps described and shown, but various changes, modifications and additions, or the order between steps may be made by those skilled in the art after appreciating the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. The present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
Aspects of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable menu display device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable menu display device, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present application are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present application is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present application, and they should be included in the scope of the present application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411039625.9A CN119045693B (en) | 2024-07-31 | 2024-07-31 | Menu display methods, devices, equipment, media and products |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411039625.9A CN119045693B (en) | 2024-07-31 | 2024-07-31 | Menu display methods, devices, equipment, media and products |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN119045693A true CN119045693A (en) | 2024-11-29 |
| CN119045693B CN119045693B (en) | 2025-11-14 |
Family
ID=93576883
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411039625.9A Active CN119045693B (en) | 2024-07-31 | 2024-07-31 | Menu display methods, devices, equipment, media and products |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN119045693B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100271312A1 (en) * | 2009-04-22 | 2010-10-28 | Rachid Alameh | Menu Configuration System and Method for Display on an Electronic Device |
| CN115640558A (en) * | 2022-09-28 | 2023-01-24 | 中国建设银行股份有限公司 | Target object verification method and device, electronic equipment and readable storage medium |
| CN117667094A (en) * | 2023-12-06 | 2024-03-08 | 中国农业银行股份有限公司 | Menu configuration and display method and device, electronic equipment and storage medium |
-
2024
- 2024-07-31 CN CN202411039625.9A patent/CN119045693B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100271312A1 (en) * | 2009-04-22 | 2010-10-28 | Rachid Alameh | Menu Configuration System and Method for Display on an Electronic Device |
| CN115640558A (en) * | 2022-09-28 | 2023-01-24 | 中国建设银行股份有限公司 | Target object verification method and device, electronic equipment and readable storage medium |
| CN117667094A (en) * | 2023-12-06 | 2024-03-08 | 中国农业银行股份有限公司 | Menu configuration and display method and device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN119045693B (en) | 2025-11-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111241133A (en) | Sensitive data identification method, device, equipment and computer storage medium | |
| CN104660688A (en) | Method and device for acquiring login information | |
| CN114095332A (en) | Information processing method, device, equipment and computer storage medium | |
| CN104571871A (en) | Method and system for selecting files | |
| CN112052005A (en) | Interface processing method, device, equipment and storage medium | |
| CN114372072A (en) | Data storage method, device, equipment, computer storage medium and program product | |
| CN119045693B (en) | Menu display methods, devices, equipment, media and products | |
| CN114677211A (en) | Methods, apparatus, electronic equipment, media and program products for updating credit parameters | |
| CN115186741A (en) | Method, device and equipment for verifying POI fusion data | |
| CN115033534A (en) | File processing method, device, equipment and computer readable storage medium | |
| US9069863B2 (en) | Identifying unknown parameter and name value pairs | |
| CN116775110A (en) | Data synchronization method, device, equipment, medium and product | |
| CN106503005B (en) | Information processing method and terminal | |
| CN108073663B (en) | A task data entry method and system | |
| CN112328595A (en) | Data searching method, device, equipment and storage medium | |
| CN110932884B (en) | Method and device for adding multiple networks to cloud physical machine | |
| CN115022266A (en) | Group member adding method, device, equipment and medium | |
| CN115048917B (en) | Information processing method, device, equipment, medium and product | |
| CN114676459B (en) | Resource access processing method, device, equipment, medium and product | |
| CN114201390B (en) | Buried point test method and related equipment | |
| CN113079052A (en) | Model training method, device, equipment and storage medium, and method and device for identifying data of Internet of things | |
| CN117194402B (en) | Data cleaning methods, devices, equipment, media, and products | |
| CN116010682B (en) | Data query method and its device, equipment, medium and product | |
| CN114090504B (en) | Document management method, device, equipment and storage medium in electronic system | |
| CN116051093A (en) | Payment method, device, apparatus, storage medium and program product |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |