CN114115645A - Multi-level menu display method and device, computer equipment and storage medium - Google Patents

Multi-level menu display method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114115645A
CN114115645A CN202111432502.8A CN202111432502A CN114115645A CN 114115645 A CN114115645 A CN 114115645A CN 202111432502 A CN202111432502 A CN 202111432502A CN 114115645 A CN114115645 A CN 114115645A
Authority
CN
China
Prior art keywords
menu
display area
display
items
level
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
Application number
CN202111432502.8A
Other languages
Chinese (zh)
Other versions
CN114115645B (en
Inventor
黎志勇
任玉龙
庄森彬
杨雄文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Securities Co Ltd
Original Assignee
Ping An Securities Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN202111432502.8A priority Critical patent/CN114115645B/en
Publication of CN114115645A publication Critical patent/CN114115645A/en
Application granted granted Critical
Publication of CN114115645B publication Critical patent/CN114115645B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to the technical field of visualization, and provides a method and a device for displaying a multilevel menu, computer equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of dividing a menu display area on a display interface, obtaining the frequency and the display duration of each menu selected in a historical period, calculating the priority of each menu, determining the display area of each menu in the menu display area according to the priority of each menu and displaying the menu, screening out the menu with the highest priority from a plurality of menus to serve as a first menu, obtaining the first level of each first menu item in the first menu, arranging the plurality of first menu items step by step according to the first level and expanding the first menu items to be displayed on the left side of the menu display area, determining the second menu of the next priority of the first menu, shrinking and hiding all the first menu items, arranging the second menu items step by step according to the second level and expanding and displaying the second menu items on the left side of the menu display area, and improving the searching efficiency of the menu items.

Description

Multi-level menu display method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of visualization technologies, and in particular, to a method and an apparatus for displaying a multi-level menu, a computer device, and a storage medium.
Background
The multi-level menu is a relatively common function in display equipment, and the currently provided menu display method cannot friendly process a plurality of menus on an interface, is disordered in nesting, not clear in relation and unclear in level, brings certain confusion and inconvenience in operation to a user, and causes low efficiency in searching menu items. For example, many times, the user cannot simply and clearly find the menu item needed to be operated by himself or herself through the menus of different levels.
Disclosure of Invention
The application mainly aims to provide a multi-level menu display method, a multi-level menu display device, a computer device and a storage medium, so as to improve the efficiency of searching menu items.
In order to achieve the above object of the invention, the present application provides a multi-level menu display method, comprising the steps of:
in response to a preset instruction, a menu display area is defined on a display interface;
determining a plurality of menus to be displayed in the menu display area;
acquiring the selected frequency and the display duration of each menu in a historical period;
respectively calculating the priority of each menu according to the selected frequency and the display duration of each menu in the historical period;
determining and displaying a display area of each menu in the menu display area according to the priority of each menu;
selecting a menu with the highest priority from the plurality of menus as a first menu;
responding to a first click instruction for clicking the first menu, acquiring menu items of the first menu, and acquiring a plurality of first menu items;
acquiring a first level of each first menu item, and arranging and expanding a plurality of first menu items on the left side of the menu display area in a step-by-step manner according to the first level;
determining a menu of a next priority of the first menu to obtain a second menu;
responding to a second click instruction for clicking the second menu, shrinking and hiding all the first menu items, and acquiring the menu items of the second menu to obtain a plurality of second menu items;
and acquiring a second level of each second menu item, and arranging the second menu items step by step according to the second level and expanding and displaying the second menu items on the left side of the menu display area.
Further, after the step-by-step arrangement and expansion display of the plurality of first menu items on the left side of the menu display area according to the first level, the method further includes:
in response to a movement instruction of moving the mouse to any one of the first menu items, determining a first target menu item to which the mouse moves;
popping up a conventional function floating layer of the first target menu item; the conventional function floating layer is used for displaying a conventional submenu with the use frequency arranged at the top N bits in the first target menu item, wherein N is a positive integer;
determining a conventional submenu of the conventional function floating layer, and displaying the conventional submenu on the conventional function floating layer;
when any conventional submenu in the conventional function floating layer is clicked by a mouse, determining a target conventional submenu clicked by the mouse;
and moving the target conventional submenu to the central area of the menu display area for display.
Preferably, the determining and displaying the display area of each menu in the menu display area according to the priority includes:
counting the number of menus of the menus, and determining the top area of the menu display area;
dividing the top area into a plurality of sub-menu display areas corresponding to the number of menus;
setting the display grade of each submenu display area according to the distance between each submenu display area and the center of the menu display area;
distributing a sub-menu display area corresponding to the display grade for each menu according to the priority of each menu to obtain a target sub-menu display area corresponding to each menu; wherein the display level of the sub-menu display area assigned to each of the menus is positively correlated with the priority of each of the menus;
and respectively displaying each menu in the corresponding target sub-menu display area.
Further, after each menu is displayed in the corresponding target sub-menu display area, the method further includes:
when the mouse is detected to drag the second menu leftwards, performing corresponding clockwise rotation on the other menus;
and when the mouse is detected to drag the second menu to the right, performing corresponding anticlockwise rotation on the other menus.
Further, after each menu is displayed in the corresponding target sub-menu display area, the method further includes:
when the mouse is detected to stop in any one target submenu display area, taking the target submenu display area where the mouse stops as a target display area;
and if the menu corresponding to the target display area has a previous level menu, marking and displaying the previous level menu in a target sub-menu display area adjacent to the target display area.
Preferably, the calculating the priority of each menu according to the frequency and the display duration of each menu selected in the history period includes:
acquiring a first weight preset for the frequency and a second weight preset for the display duration; wherein the first weight is greater than the second weight;
multiplying the frequency of each menu by a first weight to obtain a first numerical value of each menu;
multiplying the display duration of each menu by a second weight to obtain a second numerical value of each menu;
accumulating the first numerical value and the corresponding second numerical value of each menu to obtain a third numerical value of each menu;
determining a priority of each menu according to the third numerical value of each menu.
Further, after the step-by-step arrangement and expansion display of the plurality of first menu items on the left side of the menu display area according to the first level, the method further includes:
displaying the folding and unfolding function button of the first menu at the upper left corner of the first menu;
when the condition that the mouse clicks the retraction function button is detected, all the first menu items of the first menu are contracted and hidden.
The present application also provides a multi-level menu display device, which includes:
the setting module is used for responding to a preset instruction and setting up a menu display area on the display interface;
the first determining module is used for determining a plurality of menus needing to be displayed in the menu display area;
the first acquisition module is used for acquiring the selected frequency and the display duration of each menu in the historical period;
the calculation module is used for respectively calculating the priority of each menu according to the selected frequency and the display duration of each menu in the historical period;
the second determining module is used for determining and displaying a display area of each menu in the menu display area according to the priority of each menu;
the screening module is used for screening out a menu with the highest priority from the plurality of menus to serve as a first menu;
the second acquisition module is used for responding to a first click instruction for clicking the first menu, acquiring menu items of the first menu and obtaining a plurality of first menu items;
the arrangement module is used for acquiring the first level of each first menu item, arranging the first menu items step by step according to the first level and expanding and displaying the first menu items on the left side of the menu display area;
the third determining module is used for determining the menu of the next priority of the first menu to obtain a second menu;
the contraction module is used for responding to a second click instruction for clicking the second menu, contracting and hiding all the first menu items, acquiring the menu items of the second menu and obtaining a plurality of second menu items;
and the display module is used for acquiring the second level of each second menu item, and arranging the second menu items step by step according to the second level and expanding and displaying the second menu items on the left side of the menu display area.
The present application further provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods described above.
The method, the device, the computer equipment and the storage medium for displaying the multi-level menus have the advantages that the menu display area is divided on the display interface in response to the preset instruction, the multiple menus needing to be displayed in the menu display area are determined, the frequency and the display duration of each menu selected in a historical period are obtained, the priority of each menu is respectively calculated according to the frequency and the display duration of each menu selected in the historical period, the display area of each menu in the menu display area is determined and displayed according to the priority of each menu, the menu with the highest priority is selected from the multiple menus to serve as a first menu, the menu items of the first menu are obtained in response to a first click instruction for clicking the first menu, the multiple first menu items are obtained, the first level of each first menu item is obtained, the multiple first menu items are arranged step by step and are displayed on the left side of the menu display area according to the first level, determining menus of next priority of the first menu to obtain a second menu, responding to a second click instruction of clicking the second menu, shrinking and hiding all first menu items, obtaining menu items of the second menu to obtain a plurality of second menu items, obtaining a second level of each second menu item, arranging the second menu items step by step according to the second levels and expanding the second menu items to be displayed on the left side of a menu display area, so that the display of each menu and the corresponding menu items is finished, the display area is distributed based on the use habits of users, the problem that the display is disordered due to the fact that the menus are mutually nested is avoided, the users are not convenient to search the menu items in each menu, the user operation is simplified, and the search efficiency of the menu items is improved; in addition, when the menu items of other menus are displayed, the currently displayed menu items are contracted and hidden, so that display disorder caused by mutual nesting of the menu items is avoided.
Drawings
Fig. 1 is a schematic flowchart illustrating a multi-level menu display method according to an embodiment of the present application;
FIG. 2 is a block diagram illustrating a multi-level menu display device according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The multi-level menu display method is used for solving the technical problems that a plurality of menus on an interface cannot be processed in a friendly manner, nesting is disordered, the relation is not clear enough, the level is not clear enough, certain confusion and inconvenience in operation are brought to a user, and the searching efficiency of menu items is low. Referring to fig. 1, in one embodiment, the multi-level menu display method includes the steps of:
s11, responding to a preset instruction, and delimiting a menu display area on the display interface;
s12, determining a plurality of menus to be displayed in the menu display area;
s13, acquiring the selected frequency and the display duration of each menu in the history period;
s14, respectively calculating the priority of each menu according to the frequency and the display duration of each menu selected in the history period;
s15, determining and displaying the display area of each menu in the menu display area according to the priority of each menu;
s16, screening out a menu with the highest priority from the plurality of menus to serve as a first menu;
s17, responding to a first click instruction for clicking the first menu, acquiring menu items of the first menu, and obtaining a plurality of first menu items;
s18, acquiring a first level of each first menu item, and arranging and expanding a plurality of first menu items on the left side of the menu display area according to the first levels;
s19, determining a menu with the next priority of the first menu to obtain a second menu;
s20, responding to a second click instruction for clicking the second menu, shrinking and hiding all the first menu items, and acquiring the menu items of the second menu to obtain a plurality of second menu items;
and S21, acquiring the second level of each second menu item, and arranging the second menu items step by step according to the second levels and expanding and displaying the second menu items on the left side of the menu display area.
As described in the above steps S11-S12, the menu is an interface that hierarchically displays commands that can be executed by the computer device. Generally, the command is placed at the top or bottom of the display interface, and almost all commands that can be used by the application program can be placed. The degree of importance is generally from left to right, with lower importance going to the right. The level of the assignment is different according to different application programs, generally emphasizes the operation and editing functions of the files, so that the files are placed on the leftmost side, and then various setting operations are performed towards the right, and help options are often set on the rightmost side.
The preset instruction may be a click instruction for displaying a menu, and the computer device, in response to the preset instruction, demarcates a menu display area on a display interface of the current computer device, where the menu display area is used to display one or more menus and determine a plurality of menus to be displayed in the menu display area.
As described in the above steps S13-S15, the menus of the plurality of levels each have a corresponding priority, and are displayed in the display area according to the priority, for example, the menu with the highest priority is displayed at the uppermost layer of the menu display area, and the menu with the lowest priority is displayed at the lowermost layer of the menu display area. For example, the four-level menu generally comprises a first-level menu (such as intelligent accounting), a second-level menu (such as general ledger checking), a third-level menu (such as checking rule maintenance), and a fourth-level menu (such as profit and loss account maintenance), wherein the third-level menu and the fourth-level menu support back and forth switching, meanwhile, the operation of the user can be cached, and the main content area is completely customized by the user.
In this embodiment, when setting the display area of each menu in the menu display area, first obtaining the selected frequency and display duration of each menu in the history period, for example, when a user clicks the menu or a menu item in the menu and invokes the function of the menu item, the menu is considered to be selected once, and based on the number of times the menu is selected in the history period and the number of times all menus are selected in the history period, the frequency of the menu is calculated, and the display duration of the menu item is recorded. And then, respectively calculating the priority of each menu according to the selected frequency and the display duration of each menu in the history period, for example, multiplying the frequency by the corresponding display duration, performing unit conversion to obtain the priority of each menu, and finally, determining the display area of each menu in the menu display area according to the priority of each menu and displaying the menu in the corresponding display area. The display area is a partial area of the menu display area.
As described in the above steps S16-S18, in the present embodiment, a menu with the highest priority is selected from a plurality of menus as a first menu according to the priority of each menu, when a user clicks the first menu of a display interface, a first click instruction for clicking the first menu is generated, and in response to the first click instruction, the computer device arranges and expands and displays all the first menu items of the first menu in a stepwise manner. The first menu item may include, among other things, a general ledger check, log data, and so on. The step-by-step is to arrange and display the first menu items sequentially from one step to one step, for example, all the first menu items are arranged and displayed from top to bottom according to the high-low sequence of the first step.
As described in the foregoing steps S19-S21, in this embodiment, the menu at the next level of the first menu is determined, the second menu is obtained, when the user clicks the second menu of the display interface, a second click instruction for clicking the second menu is generated, the computer device responds to the second click instruction, shrinks and hides all the first menu items, does not display the first menu items, and arranges and expands all the second menu items of the second menu step by step, so as to display each menu and the corresponding menu item in the menu display area, thereby avoiding that each menu is nested with each other, which results in display confusion, and is inconvenient for the user to find, thereby simplifying the user operation.
The method for displaying the multi-level menus comprises the steps of dividing a menu display area on a display interface in response to a preset instruction, determining a plurality of menus to be displayed in the menu display area, obtaining the selected frequency and the selected display time of each menu in a historical period, respectively calculating the priority of each menu according to the selected frequency and the selected display time of each menu in the historical period, determining the display area of each menu in the menu display area according to the priority of each menu and displaying, screening out the menu with the highest priority from the plurality of menus as a first menu, obtaining menu items of the first menu in response to a first click instruction for clicking the first menu, obtaining a plurality of first menu items, obtaining the first level of each first menu item, arranging the plurality of first menu items step by step according to the first level and expanding and displaying the first menu items on the left side of the menu display area, determining menus of next priority of the first menu to obtain a second menu, responding to a second click instruction of clicking the second menu, shrinking and hiding all first menu items, obtaining menu items of the second menu to obtain a plurality of second menu items, obtaining a second level of each second menu item, arranging the second menu items step by step according to the second levels and expanding the second menu items to be displayed on the left side of a menu display area, so that the display of each menu and the corresponding menu items is finished, the display area is distributed based on the use habits of users, the problem that the display is disordered due to the fact that the menus are mutually nested is avoided, the users are not convenient to search the menu items in each menu, the user operation is simplified, and the search efficiency of the menu items is improved; in addition, when the menu items of other menus are displayed, the currently displayed menu items are contracted and hidden, so that display disorder caused by mutual nesting of the menu items is avoided.
In an embodiment, after the step-by-step arranging and expanding the plurality of first menu items according to the first level to be displayed on the left side of the menu display area, the method may further include:
in response to a movement instruction of moving the mouse to any one of the first menu items, determining a first target menu item to which the mouse moves;
popping up a conventional function floating layer of the first target menu item; the conventional function floating layer is used for displaying a conventional submenu with the use frequency arranged at the top N bits in the first target menu item, wherein N is a positive integer;
determining a conventional submenu of the conventional function floating layer, and displaying the conventional submenu on the conventional function floating layer;
when any conventional submenu in the conventional function floating layer is clicked by a mouse, determining a target conventional submenu clicked by the mouse;
and moving the target conventional submenu to the central area of the menu display area for display.
In this embodiment, for a multi-level menu, when a movement instruction that a mouse moves to any first menu item is detected, taking the first menu item as a first target menu item, and popping up a conventional function floating layer of the first target menu item, where the conventional function floating layer is used to display a conventional submenu of the first target menu item, the conventional submenu is a menu item with a use frequency arranged at the top N bits, and N is a positive integer; such as: general ledger checking, statistics, operation logs, clearing and other conventional submenus, and the conventional submenus can be automatically popped up to a conventional function floating layer for displaying so as to set the conventional submenus of each first target menu item according to the use frequency of each menu item used by a user in a history period.
When the mouse is monitored to move to the conventional function floating layer to click the conventional submenu, the clicked conventional submenu is used as a target conventional submenu, the target conventional submenu is displayed on the uppermost layer of the menu display area and is displayed in the center area of the menu display area, and when the mouse is moved away from the conventional function floating layer, the conventional function floating layer disappears to quickly respond to menu items needing to be searched by a user and is highlighted in the display area convenient for the user to view, and the user does not need to click additionally.
In an embodiment, the determining and displaying the display area of each menu in the menu display area according to the priority may specifically include:
counting the number of menus of the menus, and determining the top area of the menu display area;
dividing the top area into a plurality of sub-menu display areas corresponding to the number of menus;
setting the display grade of each submenu display area according to the distance between each submenu display area and the center of the menu display area;
distributing a sub-menu display area corresponding to the display grade for each menu according to the priority of each menu to obtain a target sub-menu display area corresponding to each menu; wherein the display level of the sub-menu display area assigned to each of the menus is positively correlated with the priority of each of the menus;
and respectively displaying each menu in the corresponding target sub-menu display area.
In this embodiment, the top area of the menu display area may be divided into a plurality of sub-menu display areas corresponding to the number of menus, and the sizes of the plurality of sub-menu display areas may be the same or different.
In an embodiment, the size of each sub-menu display area may be divided according to the priority of the menu, for example, the sub-menu display area with higher priority is set to be larger, the sub-menu display area with lower priority is set to be smaller, and the sub-menu display areas with the same priority are the same size. And then setting the display grade of each sub-menu display area according to the distance from each sub-menu display area to the center of the menu display area, and distributing the sub-menu display area corresponding to the display grade for each menu according to the priority of each menu to obtain the target sub-menu display area corresponding to each menu.
During distribution, the display grade of the submenu display area distributed to each menu is positively correlated with the grade of each menu, and each menu is respectively displayed in the corresponding target submenu display area so as to reasonably utilize the display area.
In an embodiment, after displaying each menu in the corresponding target sub-menu display area, the method further includes:
when the mouse is detected to drag the second menu leftwards, performing corresponding clockwise rotation on the other menus;
and when the mouse is detected to drag the second menu to the right, performing corresponding anticlockwise rotation on the other menus.
In this embodiment, the top area of the menu display area may be set to be circular, and the top area includes a plurality of target sub-menu display areas, when it is detected that the mouse drags any menu leftward, for example, the second menu is dragged leftward, the remaining menus are also correspondingly rotated clockwise, and when it is detected that the mouse drags any menu rightward, for example, the second menu is dragged rightward, the remaining menus are also correspondingly rotated counterclockwise, so as to flexibly adjust the display position of each menu.
In an embodiment, after displaying each menu in the corresponding target sub-menu display area, the method further includes:
when the mouse is detected to stop in any one target submenu display area, taking the target submenu display area where the mouse stops as a target display area;
and if the menu corresponding to the target display area has a previous level menu, marking and displaying the previous level menu in a target sub-menu display area adjacent to the target display area.
In this embodiment, if the menu corresponding to the target sub-menu display area exists in the previous menu, when it is detected that the mouse stops in the target sub-menu display area, the previous menu is marked and displayed in the display area adjacent to the target sub-menu display area, for example, the previous menu is displayed above, below, on the left side or on the right side of the target sub-menu display area, and the mark and display is performed in red, so that the user can quickly find the previous menu of the target sub-menu.
In an embodiment, the calculating the priority of each menu according to the frequency and the display duration of each menu selected in the history period includes:
acquiring a first weight preset for the frequency and a second weight preset for the display duration; wherein the first weight is greater than the second weight;
multiplying the frequency of each menu by a first weight to obtain a first numerical value of each menu;
multiplying the display duration of each menu by a second weight to obtain a second numerical value of each menu;
accumulating the first numerical value and the corresponding second numerical value of each menu to obtain a third numerical value of each menu;
determining a priority of each menu according to the third numerical value of each menu.
In this embodiment, a first weight may be set for the frequency in advance, a second weight may be set for the display duration, the first weight is greater than the second weight to highlight the importance of the frequency, then the frequency of each menu is multiplied by the first weight to obtain a first value of each menu, the display duration of each menu is multiplied by the second weight to obtain a second value of each menu, the first value of each menu and the corresponding second value are accumulated to obtain a third value of each menu, and the priority of each menu is determined according to the third value of each menu. Wherein the priority is proportional to the third value, and the larger the third value, the higher the priority.
In an embodiment, after the step-by-step arrangement and expanded display of the first menu item on the left side of the menu display area according to the first level, the method may further include:
displaying the folding and unfolding function button of the first menu at the upper left corner of the first menu;
when the condition that the mouse clicks the retraction function button is detected, all the first menu items of the first menu are contracted and hidden.
In this embodiment, the function button is located at the upper left corner of the first menu, and when the first menu item of the first menu is hidden in a retracted state and the user clicks the function button on the interface, the first menu item of the first menu can be expanded, so that the user can conveniently search for a desired menu and menu items. Similarly, the menu items of other menus also have this function, and are not described herein again.
When the first menu is expanded, the detailed content of each first menu item can be seen in detail, and then the corresponding first menu item is clicked to enter the submenu of each first menu item for operation.
When the first menu item of the first menu is in unfolding display and a user clicks a function button on an interface, the first menu item of the first menu can be contracted and hidden, and the display area is prevented from being occupied.
Referring to fig. 2, an embodiment of the present application further provides a multi-level menu display device, including:
the drawing module 11 is used for drawing a menu display area on the display interface in response to a preset instruction;
a first determining module 12, configured to determine a plurality of menus to be displayed in the menu display area;
a first obtaining module 13, configured to obtain a frequency and a display duration of each menu selected in a history period;
a calculating module 14, configured to calculate a priority of each menu according to the frequency and the display duration of each menu selected in the history period;
a second determining module 15, configured to determine and display a display area of each menu in the menu display area according to the priority of each menu;
a screening module 16, configured to screen a menu with a highest priority from the plurality of menus as a first menu;
a second obtaining module 17, configured to obtain a menu item of the first menu in response to a first click instruction for clicking the first menu, so as to obtain multiple first menu items;
the arrangement module 18 is configured to obtain a first level of each first menu item, arrange the plurality of first menu items step by step according to the first level, and expand and display the first menu items on the left side of the menu display area;
a third determining module 19, configured to determine a menu of a next priority level of the first menu to obtain a second menu;
the contraction module 20 is configured to, in response to a second click instruction for clicking the second menu, contract and hide all the first menu items, and acquire menu items of the second menu to obtain a plurality of second menu items;
and the display module 21 is configured to acquire a second level of each second menu item, arrange the second menu items step by step according to the second level, and expand and display the second menu items on the left side of the menu display area.
In the present apparatus, a menu is an interface that hierarchically displays commands that can be executed by a computer device. Generally, the command is placed at the top or bottom of the display interface, and almost all commands that can be used by the application program can be placed. The degree of importance is generally from left to right, with lower importance going to the right. The level of the assignment is different according to different application programs, generally emphasizes the operation and editing functions of the files, so that the files are placed on the leftmost side, and then various setting operations are performed towards the right, and help options are often set on the rightmost side.
The preset instruction may be a click instruction for displaying a menu, and the computer device, in response to the preset instruction, demarcates a menu display area on a display interface of the current computer device, where the menu display area is used to display one or more menus and determine a plurality of menus to be displayed in the menu display area.
Further, for the multi-level menus, each menu has a corresponding priority, and is displayed in the display area according to the priority, for example, the menu with the highest priority is displayed at the uppermost layer of the menu display area, and the menu with the lowest priority is displayed at the lowermost layer of the menu display area. For example, the four-level menu generally comprises a first-level menu (such as intelligent accounting), a second-level menu (such as general ledger checking), a third-level menu (such as checking rule maintenance), and a fourth-level menu (such as profit and loss account maintenance), wherein the third-level menu and the fourth-level menu support back and forth switching, meanwhile, the operation of the user can be cached, and the main content area is completely customized by the user.
In this embodiment, when setting the display area of each menu in the menu display area, first obtaining the selected frequency and display duration of each menu in the history period, for example, when a user clicks the menu or a menu item in the menu and invokes the function of the menu item, the menu is considered to be selected once, and based on the number of times the menu is selected in the history period and the number of times all menus are selected in the history period, the frequency of the menu is calculated, and the display duration of the menu item is recorded. And then, respectively calculating the priority of each menu according to the selected frequency and the display duration of each menu in the historical period, for example, multiplying the frequency by the corresponding display duration, performing unit conversion to obtain the priority of each menu, and finally, determining the display area of each menu in the menu display area according to the priority of each menu and displaying the menu in the corresponding display area. The display area is a partial area of the menu display area.
In this embodiment, according to the priority of each menu, a menu with the highest priority is screened out from a plurality of menus as a first menu, when a user clicks the first menu of a display interface, a first click instruction for clicking the first menu is generated, and in response to the first click instruction, the computer device arranges and expands all first menu items of the first menu step by step to display. The first menu item may include, among other things, a general ledger check, log data, and so on. The step-by-step is to arrange and display the first menu items sequentially from one step to one step, for example, all the first menu items are arranged and displayed from top to bottom according to the high-low sequence of the first step.
In this embodiment, a menu at a next level of a first menu is determined to obtain a second menu, when a user clicks the second menu of a display interface, a second click instruction for clicking the second menu is generated, a computer device responds to the second click instruction, all the first menu items are contracted and hidden without displaying the first menu items, and all the second menu items of the second menu are arranged step by step and are expanded and displayed, so that each menu and the corresponding menu items are displayed in a menu display area, display confusion caused by mutual nesting of the menus is avoided, the user is not convenient to search, and user operation is simplified.
As described above, it can be understood that each component of the multi-level menu display apparatus provided in the present application may implement the function of any one of the above multi-level menu display methods, and the detailed structure is not described again.
Referring to fig. 3, an embodiment of the present application further provides a computer device, and an internal structure of the computer device may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a storage medium and an internal memory. The storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and computer programs in the storage medium. The database of the computer device is used for storing data of menus, menu items and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a multi-level menu display method.
The processor executes the multi-level menu display method, which comprises the following steps:
in response to a preset instruction, a menu display area is defined on a display interface;
determining a plurality of menus to be displayed in the menu display area;
acquiring the selected frequency and the display duration of each menu in a historical period;
respectively calculating the priority of each menu according to the selected frequency and the selected display duration of each menu in the historical period;
determining and displaying a display area of each menu in the menu display area according to the priority of each menu;
selecting a menu with the highest priority from the plurality of menus as a first menu;
responding to a first click instruction for clicking the first menu, acquiring menu items of the first menu, and acquiring a plurality of first menu items;
acquiring a first level of each first menu item, and arranging and expanding a plurality of first menu items on the left side of the menu display area in a step-by-step manner according to the first level;
determining a menu of a next priority of the first menu to obtain a second menu;
responding to a second click instruction for clicking the second menu, shrinking and hiding all the first menu items, and acquiring the menu items of the second menu to obtain a plurality of second menu items;
and acquiring a second level of each second menu item, and arranging the second menu items step by step according to the second level and expanding and displaying the second menu items on the left side of the menu display area.
An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements a multi-level menu display method, including the steps of:
in response to a preset instruction, a menu display area is defined on a display interface;
determining a plurality of menus to be displayed in the menu display area;
acquiring the selected frequency and the display duration of each menu in a historical period;
respectively calculating the priority of each menu according to the selected frequency and the display duration of each menu in the historical period;
determining and displaying a display area of each menu in the menu display area according to the priority of each menu;
selecting a menu with the highest priority from the plurality of menus as a first menu;
responding to a first click instruction for clicking the first menu, acquiring menu items of the first menu, and acquiring a plurality of first menu items;
acquiring a first level of each first menu item, and arranging and expanding a plurality of first menu items on the left side of the menu display area in a step-by-step manner according to the first level;
determining a menu of a next priority of the first menu to obtain a second menu;
responding to a second click instruction for clicking the second menu, shrinking and hiding all the first menu items, and acquiring the menu items of the second menu to obtain a plurality of second menu items;
and acquiring a second level of each second menu item, and arranging the second menu items step by step according to the second level and expanding and displaying the second menu items on the left side of the menu display area.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
To sum up, the most beneficial effect of this application lies in:
the method, the device, the computer equipment and the storage medium for displaying the multi-level menus have the advantages that the menu display area is divided on the display interface in response to the preset instruction, the multiple menus needing to be displayed in the menu display area are determined, the frequency and the display duration of each menu selected in a historical period are obtained, the priority of each menu is respectively calculated according to the frequency and the display duration of each menu selected in the historical period, the display area of each menu in the menu display area is determined and displayed according to the priority of each menu, the menu with the highest priority is selected from the multiple menus to serve as a first menu, the menu items of the first menu are obtained in response to a first click instruction for clicking the first menu, the multiple first menu items are obtained, the first level of each first menu item is obtained, the multiple first menu items are arranged step by step and are displayed on the left side of the menu display area according to the first level, determining menus of next priority of the first menu to obtain a second menu, responding to a second click instruction of clicking the second menu, shrinking and hiding all first menu items, obtaining menu items of the second menu to obtain a plurality of second menu items, obtaining a second level of each second menu item, arranging the second menu items step by step according to the second levels and expanding the second menu items to be displayed on the left side of a menu display area, so that the display of each menu and the corresponding menu items is finished, the display area is distributed based on the use habits of users, the problem that the display is disordered due to the fact that the menus are mutually nested is avoided, the users are not convenient to search the menu items in each menu, the user operation is simplified, and the search efficiency of the menu items is improved; in addition, when the menu items of other menus are displayed, the currently displayed menu items are contracted and hidden, so that display disorder caused by mutual nesting of the menu items is avoided.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method 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, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A multi-level menu display method, comprising:
in response to a preset instruction, a menu display area is defined on a display interface;
determining a plurality of menus to be displayed in the menu display area;
acquiring the selected frequency and the display duration of each menu in a historical period;
respectively calculating the priority of each menu according to the selected frequency and the selected display duration of each menu in the historical period;
determining and displaying a display area of each menu in the menu display area according to the priority of each menu;
selecting a menu with the highest priority from the plurality of menus as a first menu;
responding to a first click instruction for clicking the first menu, acquiring menu items of the first menu, and acquiring a plurality of first menu items;
acquiring a first level of each first menu item, and arranging and expanding a plurality of first menu items on the left side of the menu display area in a step-by-step manner according to the first level;
determining a menu of a next priority of the first menu to obtain a second menu;
responding to a second click instruction for clicking the second menu, shrinking and hiding all the first menu items, and acquiring the menu items of the second menu to obtain a plurality of second menu items;
and acquiring a second level of each second menu item, and arranging the second menu items step by step according to the second level and expanding and displaying the second menu items on the left side of the menu display area.
2. The method of claim 1, wherein after the step-wise arranging and expanding the plurality of first menu items to be displayed on the left side of the menu display area according to the first level, further comprising:
in response to a movement instruction of moving the mouse to any one of the first menu items, determining a first target menu item to which the mouse moves;
popping up a conventional function floating layer of the first target menu item; the conventional function floating layer is used for displaying a conventional submenu with the use frequency arranged at the top N bits in the first target menu item, wherein N is a positive integer;
determining a conventional submenu of the conventional function floating layer, and displaying the conventional submenu on the conventional function floating layer;
when any conventional submenu in the conventional function floating layer is clicked by a mouse, determining a target conventional submenu clicked by the mouse;
and moving the target conventional submenu to the central area of the menu display area for display.
3. The method according to claim 1, wherein the determining and displaying each menu in a display area of the menu display area according to the priority comprises:
counting the number of menus of the menus, and determining the top area of the menu display area;
dividing the top area into a plurality of sub-menu display areas corresponding to the number of menus;
setting the display grade of each submenu display area according to the distance between each submenu display area and the center of the menu display area;
distributing a sub-menu display area corresponding to the display grade for each menu according to the priority of each menu to obtain a target sub-menu display area corresponding to each menu; wherein the display level of the sub-menu display area assigned to each of the menus is positively correlated with the priority of each of the menus;
and respectively displaying each menu in the corresponding target sub-menu display area.
4. The method according to claim 3, wherein after displaying each menu in the corresponding target sub-menu display area, further comprising:
when the mouse is detected to drag the second menu leftwards, performing corresponding clockwise rotation on the other menus;
and when the mouse is detected to drag the second menu to the right, performing corresponding anticlockwise rotation on the other menus.
5. The method according to claim 3, wherein after displaying each menu in the corresponding target sub-menu display area, further comprising:
when the mouse is detected to stop in any one target submenu display area, taking the target submenu display area where the mouse stops as a target display area;
and if the menu corresponding to the target display area has a previous level menu, marking and displaying the previous level menu in a target sub-menu display area adjacent to the target display area.
6. The method of claim 1, wherein said calculating the priority of each menu according to the frequency and the display duration of each menu selected in the history period comprises:
acquiring a first weight preset for the frequency and a second weight preset for the display duration; wherein the first weight is greater than the second weight;
multiplying the frequency of each menu by a first weight to obtain a first numerical value of each menu;
multiplying the display duration of each menu by a second weight to obtain a second numerical value of each menu;
accumulating the first numerical value and the corresponding second numerical value of each menu to obtain a third numerical value of each menu;
determining a priority of each menu according to the third numerical value of each menu.
7. The method of claim 1, wherein after the step-wise arranging and expanding the plurality of first menu items to be displayed on the left side of the menu display area according to the first level, further comprising:
displaying the folding and unfolding function button of the first menu at the upper left corner of the first menu;
when the condition that the mouse clicks the retraction function button is detected, all the first menu items of the first menu are contracted and hidden.
8. A multi-level menu display device, comprising:
the setting module is used for responding to a preset instruction and setting up a menu display area on the display interface;
the first determining module is used for determining a plurality of menus needing to be displayed in the menu display area;
the first acquisition module is used for acquiring the selected frequency and the display duration of each menu in the historical period;
the calculation module is used for respectively calculating the priority of each menu according to the selected frequency and the display duration of each menu in the historical period;
the second determining module is used for determining and displaying a display area of each menu in the menu display area according to the priority of each menu;
the screening module is used for screening out a menu with the highest priority from the plurality of menus to serve as a first menu;
the second acquisition module is used for responding to a first click instruction for clicking the first menu, acquiring menu items of the first menu and obtaining a plurality of first menu items;
the arrangement module is used for acquiring the first level of each first menu item, arranging the first menu items step by step according to the first level and expanding and displaying the first menu items on the left side of the menu display area;
the third determining module is used for determining the menu of the next priority of the first menu to obtain a second menu;
the contraction module is used for responding to a second click instruction for clicking the second menu, contracting and hiding all the first menu items, acquiring the menu items of the second menu and obtaining a plurality of second menu items;
and the display module is used for acquiring the second level of each second menu item, and arranging the second menu items step by step according to the second level and expanding and displaying the second menu items on the left side of the menu display area.
9. A computer device, comprising:
a processor;
a memory;
wherein the memory stores a computer program which when executed by the processor implements the multi-level menu display method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the multi-level menu display method of any one of claims 1 to 7.
CN202111432502.8A 2021-11-29 2021-11-29 Multi-level menu display method, device, computer equipment and storage medium Active CN114115645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111432502.8A CN114115645B (en) 2021-11-29 2021-11-29 Multi-level menu display method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111432502.8A CN114115645B (en) 2021-11-29 2021-11-29 Multi-level menu display method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114115645A true CN114115645A (en) 2022-03-01
CN114115645B CN114115645B (en) 2023-11-07

Family

ID=80371438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111432502.8A Active CN114115645B (en) 2021-11-29 2021-11-29 Multi-level menu display method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114115645B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090183100A1 (en) * 2008-01-11 2009-07-16 Sungkyunkwan University Foundation For Corporate Collaboration Menu user interface providing device and method thereof
CN101661369A (en) * 2008-08-26 2010-03-03 阿尔派株式会社 Menu display device and menu display method
US20100306702A1 (en) * 2009-05-29 2010-12-02 Peter Warner Radial Menus
CN105630305A (en) * 2015-12-18 2016-06-01 北京奇虎科技有限公司 Method for displaying menu options in browser, and electronic equipment
CN109814779A (en) * 2019-01-04 2019-05-28 平安科技(深圳)有限公司 Menu display method, device, computer equipment and storage medium
CN113568540A (en) * 2021-07-29 2021-10-29 北京锐安科技有限公司 Method, device, equipment and medium for displaying function menu in Web application

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090183100A1 (en) * 2008-01-11 2009-07-16 Sungkyunkwan University Foundation For Corporate Collaboration Menu user interface providing device and method thereof
CN101661369A (en) * 2008-08-26 2010-03-03 阿尔派株式会社 Menu display device and menu display method
US20100306702A1 (en) * 2009-05-29 2010-12-02 Peter Warner Radial Menus
CN105630305A (en) * 2015-12-18 2016-06-01 北京奇虎科技有限公司 Method for displaying menu options in browser, and electronic equipment
CN109814779A (en) * 2019-01-04 2019-05-28 平安科技(深圳)有限公司 Menu display method, device, computer equipment and storage medium
CN113568540A (en) * 2021-07-29 2021-10-29 北京锐安科技有限公司 Method, device, equipment and medium for displaying function menu in Web application

Also Published As

Publication number Publication date
CN114115645B (en) 2023-11-07

Similar Documents

Publication Publication Date Title
US6252597B1 (en) Scalable user interface for graphically representing hierarchical data
US20030227491A1 (en) Active path menu navigation system
CN111124212B (en) Data display method and device, storage medium and processor
CN105808594B (en) Method, device and equipment for displaying navigation page of browser
WO2001009707A1 (en) System and method for navigating in a digital information environment
JP2002518731A (en) A method for dynamically displaying controls in the toolbar display based on the usage of the controls
CN113568540B (en) Function menu display method, device, equipment and medium in Web application
US8554721B2 (en) Systems and methods for replicating values from multiple interface elements
CN109375843A (en) Application search method, device, equipment and medium based on shortcut
CN102622224A (en) Method for achieving tree-like control piece with search function in Windchill system
EP1204048A1 (en) Method and apparatus for handling scenarios in spreadsheet documents
CN114115645A (en) Multi-level menu display method and device, computer equipment and storage medium
EP2215564A1 (en) Computer file storage
CN101650689B (en) Nonvolatile data storage and search method and device
CN115422318A (en) Business data analysis method and device, storage medium and computer equipment
CN111190863B (en) Catalog management method, device, equipment and medium
US20060080622A1 (en) Container metaphor for visualization of complex hierarchical data types
US10678826B2 (en) Interactive visualization for outlier identification
CN111125504A (en) Webpage data display method and device
US20130317945A1 (en) Browser based mapping region builder
JP4181243B2 (en) File management device, file management method, and program recording medium
CN113609410B (en) Method, device, equipment and computer readable storage medium for information navigation
US20220329537A1 (en) Selective Offloading of Bandwidth to Enable Large-Scale Data Indexing
CN110516205B (en) Data structure diagram display method and device, computer equipment and storage medium
KR101967365B1 (en) Method, Apparatus and Computer program for displaying Bookmark

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