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

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

Info

Publication number
CN114115645B
CN114115645B CN202111432502.8A CN202111432502A CN114115645B CN 114115645 B CN114115645 B CN 114115645B CN 202111432502 A CN202111432502 A CN 202111432502A CN 114115645 B CN114115645 B CN 114115645B
Authority
CN
China
Prior art keywords
menu
display area
display
level
items
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.)
Active
Application number
CN202111432502.8A
Other languages
Chinese (zh)
Other versions
CN114115645A (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

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

Abstract

The application provides a method, a device, a computer device and a storage medium for displaying a multi-level menu, which belong to the technical field of visualization, wherein the method comprises the following steps: the method comprises the steps of defining a menu display area on a display interface, obtaining the selected frequency and the selected display duration of each menu in a history 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, displaying the menu with the highest priority as a first menu, obtaining the first level of each first menu item in the first menu, arranging and expanding the first menu items step by step according to the first level, displaying the first menu items 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 and expanding the second menu items step by step according to the second level, and displaying the second menu items on the left side of the menu display area so as to improve the searching efficiency of the menu items.

Description

Multi-level menu display method, device, computer equipment and storage medium
Technical Field
The application relates to the technical field of visualization, in particular to a multi-level menu display method, a multi-level menu display device, computer equipment and a storage medium.
Background
The multi-level menu is a common function in the display equipment, and the menu display method provided at present cannot be used for friendly processing of a plurality of menus on an interface, is disordered in nesting, is not clear in relation, is not clear in hierarchy, brings certain confusion and inconvenience in operation to a user, and is low in menu item searching efficiency. For example, many times, users cannot quickly find the menu items that they need to operate through different levels of menus.
Disclosure of Invention
The application mainly aims to provide a multi-level menu display method, a multi-level menu display device, computer equipment and a storage medium, so as to improve the searching efficiency of menu items.
In order to achieve the above object, the present application provides a multi-level menu display method comprising the steps of:
responding to a preset instruction, and defining a menu display area 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 history period;
According to the selected frequency and the display duration of each menu in the history period, respectively calculating the priority of each menu;
determining a display area of each menu in the menu display area according to the priority of each menu and displaying the menu;
screening a menu with highest priority from the menus as a first menu;
responding to a first clicking instruction for clicking the first menu, acquiring menu items of the first menu, and obtaining a plurality of first menu items;
acquiring a first level of each first menu item, arranging a plurality of first menu items step by step according to the first level, and unfolding and displaying the first menu items on the left side of the menu display area;
determining a menu of the next priority of the first menu to obtain a second menu;
responding to a second click command for clicking the second menu, shrinking and hiding all the first menu items, and acquiring 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 and unfolding the second menu items step by step according to the second level to be displayed on the left side of the menu display area.
Further, after the first menu items are arranged step by step according to the first level and are unfolded and displayed on the left side of the menu display area, the method further includes:
responding to a moving instruction of the mouse to move to any first menu item, and determining a first target menu item to which the mouse moves;
ejecting a normal 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 front 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;
determining a target conventional submenu clicked by the mouse when the mouse clicks any conventional submenu in the conventional function floating layer;
and moving the target conventional submenu to the central area of the menu display area for display.
Preferably, the determining, according to the priority, a display area of each menu in the menu display area and displaying the menu includes:
counting the number of the menus of the menu, and determining the top area of the menu display area;
Dividing the top area into a plurality of submenu display areas corresponding to the number of the menus;
setting a display level of each sub-menu display area according to a distance between each sub-menu display area and the center of the menu display area;
distributing sub-menu display areas corresponding to display levels for each menu according to the priority of each menu to obtain target sub-menu display areas corresponding to each menu; wherein the display level of the sub-menu display area allocated to each of the menus is positively correlated with the priority of each of the menus;
and displaying each menu in the corresponding target submenu display area.
Further, after each menu is displayed in the corresponding target submenu display area, the method further includes:
when the fact that the mouse drags the second menu leftwards is detected, the other menus are correspondingly rotated clockwise;
and when the fact that the mouse drags the second menu to the right is detected, the rest menus are correspondingly rotated anticlockwise.
Further, after each menu is displayed in the corresponding target submenu display area, the method further includes:
When the mouse is detected to stop in any target submenu display area, taking the target submenu display area in which the mouse stops as a target display area;
and if the menu corresponding to the target display area has the upper menu, marking and displaying the upper menu in the target submenu 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;
and determining the priority of each menu according to the third numerical value of each menu.
Further, after the first menu items are arranged step by step according to the first level and are unfolded and displayed on the left side of the menu display area, the method further includes:
Displaying a retractable function button of the first menu on the upper left corner of the first menu;
and when the mouse is detected to click the retractable function button, all the first menu items of the first menu are shrunk and hidden.
The present application also provides a multi-level menu display apparatus, comprising:
the demarcation module is used for demarcating a menu display area on the display interface in response to a preset instruction;
a first determining module, configured to determine a plurality of menus 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 history period;
the calculation module is used for calculating the priority of each menu according to the frequency and the display duration of each menu selected in the history period;
the second determining module is used for determining the display area of each menu in the menu display area according to the priority of each menu and displaying the menu;
the screening module is used for screening a menu with highest priority from the menus to be used as a first menu;
the second acquisition module is used for responding to a first clicking 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 a first level of each first menu item, arranging a plurality of first menu items step by step according to the first level, and unfolding and displaying the first menu items on the left side of the menu display area;
a third determining module, configured to determine a menu of a next priority of the first menu, to obtain a second menu;
the contraction module is used for responding to a second click command for clicking the second menu, carrying out contraction hiding on all the first menu items, and acquiring the menu items of the second menu to obtain a plurality of second menu items;
and the display module is used for acquiring a second level of each second menu item, and arranging the second menu items step by step according to the second level and unfolding and displaying the second menu items on the left side of the menu display area.
The application also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
The 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 application provides a multilevel menu display method, a device, a computer device and a storage medium, wherein a menu display area is defined on a display interface by responding to a preset instruction, a plurality of menus needing to be displayed in the menu display area are determined, the selected frequency and the display time length of each menu in a history period are obtained, the priority of each menu is calculated respectively according to the selected frequency and the display time length of each menu in the history period, the display area of each menu in the menu display area is determined according to the priority of each menu and is displayed, the menu with the highest priority is selected from the plurality of menus as a first menu, the menu item of the first menu is obtained in response to a first click instruction of clicking the first menu, a plurality of first menu items are obtained, the first level of each first menu item is obtained, arranging and expanding a plurality of first menu items step by step according to a first level to be displayed on the left side of a menu display area, determining a menu of the next priority of the first menu to obtain a second menu, responding to a second click command of clicking the second menu, shrinking and hiding all the first menu items, obtaining a plurality of second menu items to obtain a plurality of second menu items, arranging and expanding the second menu items step by step according to the second level to be displayed on the left side of the menu display area, thereby completing the display of each menu and the corresponding menu items, distributing the display area based on the using habit of a user, avoiding the display confusion caused by the mutual nesting of each menu, and being inconvenient for the user to search the menu items in each menu, thereby simplifying the user operation and improving the search efficiency of the menu items; in addition, when the menu items of other menus are displayed, the menu items displayed at present are contracted and hidden, so that display confusion caused by mutual nesting of the menu items is avoided.
Drawings
FIG. 1 is a flow chart of a multi-level menu display method according to an embodiment of the application;
FIG. 2 is a schematic block diagram of a multi-level menu display device according to an embodiment of the present application;
fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The multi-level menu display method provided by the application is used for solving the technical problems that the current menu display method cannot be used for friendly processing of a plurality of menus on an interface, nesting confusion is not clear enough, the hierarchy is not clear enough, certain confusion and inconvenience in operation are brought to a user, and the search 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 defining a menu display area on a 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 a history period;
s14, respectively calculating the priority of each menu according to the selected frequency and the display duration of each menu 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 a menu with the highest priority from the menus as a first menu;
s17, responding to a first clicking instruction for clicking the first menu, and acquiring menu items of the first menu to obtain a plurality of first menu items;
s18, acquiring a first level of each first menu item, and arranging and unfolding a plurality of first menu items step by step according to the first level to be displayed on the left side of the menu display area;
s19, determining a menu of the next priority of the first menu to obtain a second menu;
s20, responding to a second click command for clicking the second menu, shrinking and hiding all the first menu items, and acquiring menu items of the second menu to obtain a plurality of second menu items;
S21, obtaining a second level of each second menu item, and arranging the second menu items step by step according to the second level and unfolding and displaying the second menu items on the left side of the menu display area.
As described in the above steps S11 to S12, the menu is an interface for displaying commands executable by the computer device in a hierarchical manner. Typically placed at the top or bottom of the display interface, almost all commands that an application can use can be placed. The importance level is generally lower from left to right, and the more to right. The proposed hierarchy is different according to the application program, and generally, the file operation and editing function are emphasized, so that the file is placed at the leftmost side, then various operations such as setting are performed to the right, and the help options are often set at the rightmost side.
The preset instruction may be a click instruction for displaying a menu, and the computer device defines a menu display area on a display interface of the current computer device in response to the preset instruction, where the menu display area is used for displaying one or more menus, and determines a plurality of menus to be displayed in the menu display area.
As described in the above steps S13 to S15, 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 having the highest priority is displayed in the uppermost layer of the menu display area, and the menu having the lowest priority is displayed in the lowermost layer of the menu display area. For example, for a level four menu, it generally comprises a level one menu (e.g. smart accounting), a level two menu (e.g. general ledger checking), a level three menu (e.g. checking rule maintenance), and a level four menu (e.g. profit-and-loss account maintenance), wherein the level three menu and the level four menu support switching back and forth, and can cache the operation of the user, and the main content area attribution user is completely customized.
In this embodiment, when setting the display area of each menu in the menu display area, the frequency and the display duration of each menu selected in the history period are obtained first, for example, when the user clicks a menu or a menu item in the menu, and invokes the function of the menu item, the menu is considered to be selected once, based on the number of times the menu is selected in the history period and the number of times all the 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, such as 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 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 this embodiment, according to the priority of each menu, the menu with the highest priority is selected from the plurality of menus as the first menu, when the user clicks the first menu of the display interface, a first click command for clicking the first menu is generated, and the computer device responds to the first click command to arrange and expand all the first menu items of the first menu step by step for display. Wherein the first menu item may include a ledger check, log data, and the like. The step-by-step means that the first menu items are displayed in a sequence of one level by one level, for example, all the first menu items are displayed in a sequence of the first level from top to bottom.
As described in the above steps S19-S21, the embodiment determines the menu of the next level of the first menu to obtain the second menu, when the user clicks the second menu of the display interface, generates a second click command for clicking the second menu, and the computer device responds to the second click command to shrink and hide all the first menu items, does not display the first menu items, and arranges and expands and displays all the second menu items of the second menu step by step, thereby completing the display of each menu and the corresponding menu items in the menu display area, avoiding the display confusion caused by the mutual nesting of each menu, and being inconvenient for the user to search, thereby simplifying the user operation.
The application provides a multilevel menu display method, which comprises the steps of defining a menu display area on a display interface through responding to a preset instruction, determining a plurality of menus to be displayed in the menu display area, obtaining the selected frequency and the display time of each menu in a history period, respectively calculating the priority of each menu according to the selected frequency and the display time of each menu in the history period, determining the display area of each menu in the menu display area according to the priority of each menu, displaying, screening out the menu with the highest priority from the plurality of menus as a first menu, responding to a first click instruction of clicking the first menu, obtaining menu items of the first menu, obtaining a plurality of first menu items, obtaining the first level of each first menu item, arranging and expanding a plurality of first menu items step by step according to a first level to be displayed on the left side of a menu display area, determining a menu of the next priority of the first menu to obtain a second menu, responding to a second click command of clicking the second menu, shrinking and hiding all the first menu items, obtaining a plurality of second menu items to obtain a plurality of second menu items, arranging and expanding the second menu items step by step according to the second level to be displayed on the left side of the menu display area, thereby completing the display of each menu and the corresponding menu items, distributing the display area based on the using habit of a user, avoiding the display confusion caused by the mutual nesting of each menu, and being inconvenient for the user to search the menu items in each menu, thereby simplifying the user operation and improving the search efficiency of the menu items; in addition, when the menu items of other menus are displayed, the menu items displayed at present are contracted and hidden, so that display confusion caused by mutual nesting of the menu items is avoided.
In an embodiment, after the first menu items are arranged step by step according to the first level and are unfolded and displayed on the left side of the menu display area, the method may further include:
responding to a moving instruction of the mouse to move to any first menu item, and determining a first target menu item to which the mouse moves;
ejecting a normal 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 front 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;
determining a target conventional submenu clicked by the mouse when the mouse clicks any conventional submenu in the conventional function floating layer;
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 of a mouse moving over any first menu item is detected, the first menu item is used as a first target menu item, and a normal function floating layer of the first target menu item is popped up, where the normal function floating layer is used to display a normal submenu of the first target menu item, the normal submenu is a menu item with a frequency of use arranged in the first 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 automatically pop up to a conventional function floating layer for display, so that the conventional submenus of each first target menu item are set 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 at the uppermost layer of the menu display area and is displayed in the central area of the menu display area, and when the mouse moves away from the conventional function floating layer, the conventional function floating layer disappears so as to quickly respond to menu items required to be searched by a user and highlight the menu items in the display area convenient for the user to view, and the user does not need to click additionally.
In an embodiment, the determining, according to the priority, a display area of each menu in the menu display area and displaying the menu may specifically include:
counting the number of the menus of the menu, and determining the top area of the menu display area;
dividing the top area into a plurality of submenu display areas corresponding to the number of the menus;
setting a display level of each sub-menu display area according to a distance between each sub-menu display area and the center of the menu display area;
distributing sub-menu display areas corresponding to display levels for each menu according to the priority of each menu to obtain target sub-menu display areas corresponding to each menu; wherein the display level of the sub-menu display area allocated to each of the menus is positively correlated with the priority of each of the menus;
And displaying each menu in the corresponding target submenu display area.
In the present 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, a sub-menu display area with a higher priority is set to be larger, a sub-menu display area with a lower priority is set to be smaller, and sub-menu display areas with the same priority are the same size. And then setting the display level of each sub-menu display area according to the distance between each sub-menu display area and the center of the menu display area, and distributing the sub-menu display area corresponding to the display level for each menu according to the priority of each menu to obtain the target sub-menu display area corresponding to each menu.
When the menu is distributed, the display level of the sub-menu display area distributed to each menu is positively correlated with the level of each menu, and each menu is respectively displayed in the corresponding target sub-menu display area so as to reasonably utilize the display area.
In an embodiment, after each menu is displayed in the corresponding target submenu display area, the method further includes:
when the fact that the mouse drags the second menu leftwards is detected, the other menus are correspondingly rotated clockwise;
and when the fact that the mouse drags the second menu to the right is detected, the rest menus are correspondingly rotated anticlockwise.
In this embodiment, the top area of the menu display area may be set to be circular, and includes a plurality of target sub-menu display areas, when it is detected that the mouse drags any one of the menus to the left, for example, when it is detected that the second menu is dragged to the left, the rest of the menus are correspondingly rotated clockwise, and when it is detected that the mouse drags any one of the menus to the right, for example, when it is detected that the second menu is dragged to the right, the rest of the menus are correspondingly rotated anticlockwise, so as to flexibly adjust the display positions of the menus.
In an embodiment, after each menu is displayed in the corresponding target submenu display area, the method further includes:
when the mouse is detected to stop in any target submenu display area, taking the target submenu display area in which the mouse stops as a target display area;
And if the menu corresponding to the target display area has the upper menu, marking and displaying the upper menu in the target submenu display area adjacent to the target display area.
In this embodiment, if the menu corresponding to the target sub-menu display area has the previous menu, when the mouse is detected to be stopped 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, above, below, left side or right side of the target sub-menu display area, and the previous menu of the target sub-menu is marked and displayed 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;
and determining the priority of each menu according to the third numerical value of each menu.
The first weight may be set for the frequency in advance, the second weight may be set for the display duration, and 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, the higher the priority.
In an embodiment, after the first menu items are arranged step by step and unfolded and displayed on the left side of the menu display area according to the first level, the method may further include:
displaying a retractable function button of the first menu on the upper left corner of the first menu;
And when the mouse is detected to click the retractable function button, all the first menu items of the first menu are shrunk and hidden.
In this embodiment, the play function button is located at the upper left corner of the first menu, and when the first menu item of the first menu is in shrink hiding and the user clicks the play function button on the interface, the first menu item of the first menu can be expanded, so that the user can find the desired menu and menu item conveniently. Similarly, the menu items of other menus also have this function, and will not be described here again.
When the first menu is in the unfolded state, the detailed content of each first menu item can be seen in detail, then the corresponding first menu item is clicked, and the submenu of each first menu item is entered for operation.
When the first menu item of the first menu is in expansion display and the user clicks the folding and unfolding function button on the interface, the first menu item of the first menu can be contracted and hidden, so that the occupation of a display area is avoided.
Referring to fig. 2, the embodiment of the present application further provides a multi-level menu display apparatus, including:
a demarcating module 11 for demarcating 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 a display area of each menu in the menu display area according to the priority of each menu and display the menu;
a screening module 16, configured to screen, from the plurality of menus, a menu with a highest priority as a first menu;
a second obtaining module 17, configured to obtain menu items of the first menu in response to a first click command for clicking the first menu, so as to obtain a plurality of first menu items;
an arrangement module 18, configured to obtain a first level of each of the first menu items, and arrange and spread and display a plurality of the first menu items on the left side of the menu display area step by step according to the first level;
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 respond to a second click command for clicking the second menu, contract and hide all the first menu items, and obtain menu items of the second menu, so as to obtain a plurality of second menu items;
and a display module 21, configured to obtain a second level of each second menu item, and arrange and expand and display the second menu item on the left side of the menu display area step by step according to the second level.
In the present apparatus, the menu is an interface that displays commands executable by the computer device in a hierarchical manner. Typically placed at the top or bottom of the display interface, almost all commands that an application can use can be placed. The importance level is generally lower from left to right, and the more to right. The proposed hierarchy is different according to the application program, and generally, the file operation and editing function are emphasized, so that the file is placed at the leftmost side, then various operations such as setting are performed to the right, and the help options are often set at the rightmost side.
The preset instruction may be a click instruction for displaying a menu, and the computer device defines a menu display area on a display interface of the current computer device in response to the preset instruction, where the menu display area is used for displaying one or more menus, and determines a plurality of menus to be displayed in the menu display area.
Further, for the multi-level menus, each menu contains a corresponding priority, and is displayed in the display area according to the priority, for example, the menu with the highest priority is displayed in the uppermost layer of the menu display area, and the menu with the lowest priority is displayed in the lowermost layer of the menu display area. For example, for a level four menu, it generally comprises a level one menu (e.g. smart accounting), a level two menu (e.g. general ledger checking), a level three menu (e.g. checking rule maintenance), and a level four menu (e.g. profit-and-loss account maintenance), wherein the level three menu and the level four menu support switching back and forth, and can cache the operation of the user, and the main content area attribution user is completely customized.
In this embodiment, when setting the display area of each menu in the menu display area, the frequency and the display duration of each menu selected in the history period are obtained first, for example, when the user clicks a menu or a menu item in the menu, and invokes the function of the menu item, the menu is considered to be selected once, based on the number of times the menu is selected in the history period and the number of times all the 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, such as 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 in the corresponding display area. The display area is a partial area of the menu display area.
According to the embodiment, according to the priority of each menu, the menu with the highest priority is selected from a plurality of menus to serve as a first menu, when a user clicks the first menu of a display interface, a first clicking instruction for clicking the first menu is generated, and the computer equipment responds to the first clicking instruction to arrange and expand all first menu items of the first menu step by step for display. Wherein the first menu item may include a ledger check, log data, and the like. The step-by-step means that the first menu items are displayed in a sequence of one level by one level, for example, all the first menu items are displayed in a sequence of the first level from top to bottom.
In the embodiment, the menu of 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 command for clicking the second menu is generated, the computer equipment responds to the second click command, contracts and hides all the first menu items, does not display the first menu items, arranges and expands all the second menu items of the second menu step by step and displays the second menu items, 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, and the user is inconvenient to search, thereby simplifying the user operation.
As described above, it may be understood that each component of the multi-level menu display device provided in the present application may implement a function of any one of the multi-level menu display methods described above, and a specific structure is not described herein.
Referring to fig. 3, in an embodiment of the present application, a computer device is further provided, 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 is configured to provide computing and control capabilities. The memory of the computer device includes a storage medium, an internal memory. The storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operating system and computer programs in the storage media to run. The database of the computer device is used for storing data such as 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, when executed by a processor, implements a multi-level menu display method.
The processor executes the multi-level menu display method, including:
responding to a preset instruction, and defining a menu display area 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 history period;
according to the frequency and the display duration of each menu selected in the history period, respectively calculating the priority of each menu;
determining a display area of each menu in the menu display area according to the priority of each menu and displaying the menu;
screening a menu with highest priority from the menus as a first menu;
responding to a first clicking instruction for clicking the first menu, acquiring menu items of the first menu, and obtaining a plurality of first menu items;
acquiring a first level of each first menu item, arranging a plurality of first menu items step by step according to the first level, and unfolding and displaying the first menu items on the left side of the menu display area;
determining a menu of the next priority of the first menu to obtain a second menu;
responding to a second click command for clicking the second menu, shrinking and hiding all the first menu items, and acquiring 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 and unfolding the second menu items step by step according to the second level to be displayed on the left side of the menu display area.
An embodiment of the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a multi-level menu display method comprising the steps of:
responding to a preset instruction, and defining a menu display area 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 history period;
respectively calculating the priority of each menu according to the frequency and the display duration of each menu selected in the history period;
determining a display area of each menu in the menu display area according to the priority of each menu and displaying the menu;
screening a menu with highest priority from the menus as a first menu;
responding to a first clicking instruction for clicking the first menu, acquiring menu items of the first menu, and obtaining a plurality of first menu items;
Acquiring a first level of each first menu item, arranging a plurality of first menu items step by step according to the first level, and unfolding and displaying the first menu items on the left side of the menu display area;
determining a menu of the next priority of the first menu to obtain a second menu;
responding to a second click command for clicking the second menu, shrinking and hiding all the first menu items, and acquiring 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 and unfolding the second menu items step by step according to the second level to be displayed on the left side of the menu display area.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided by the present application and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile 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), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
In summary, the application has the following maximum beneficial effects:
the application provides a multilevel menu display method, a device, a computer device and a storage medium, wherein a menu display area is defined on a display interface by responding to a preset instruction, a plurality of menus needing to be displayed in the menu display area are determined, the selected frequency and the display time length of each menu in a history period are obtained, the priority of each menu is calculated respectively according to the selected frequency and the display time length of each menu in the history period, the display area of each menu in the menu display area is determined according to the priority of each menu and is displayed, the menu with the highest priority is selected from the plurality of menus as a first menu, the menu item of the first menu is obtained in response to a first click instruction of clicking the first menu, a plurality of first menu items are obtained, the first level of each first menu item is obtained, arranging and expanding a plurality of first menu items step by step according to a first level to be displayed on the left side of a menu display area, determining a menu of the next priority of the first menu to obtain a second menu, responding to a second click command of clicking the second menu, shrinking and hiding all the first menu items, obtaining a plurality of second menu items to obtain a plurality of second menu items, arranging and expanding the second menu items step by step according to the second level to be displayed on the left side of the menu display area, thereby completing the display of each menu and the corresponding menu items, distributing the display area based on the using habit of a user, avoiding the display confusion caused by the mutual nesting of each menu, and being inconvenient for the user to search the menu items in each menu, thereby simplifying the user operation and improving the search efficiency of the menu items; in addition, when the menu items of other menus are displayed, the menu items displayed at present are contracted and hidden, so that display confusion 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 one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application or directly or indirectly applied to other related technical fields are included in the scope of the application.

Claims (8)

1. A multi-level menu display method, comprising:
responding to a preset instruction, and defining a menu display area 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 history period;
according to the frequency and the display duration of each menu selected in the history period, respectively calculating the priority of each menu;
determining a display area of each menu in the menu display area according to the priority of each menu and displaying the menu;
screening a menu with highest priority from the menus as a first menu;
responding to a first clicking instruction for clicking the first menu, acquiring menu items of the first menu, and obtaining a plurality of first menu items;
acquiring a first level of each first menu item, arranging a plurality of first menu items step by step according to the first level, and unfolding and displaying the first menu items on the left side of the menu display area;
determining a menu of the next priority of the first menu to obtain a second menu;
responding to a second click command for clicking the second menu, shrinking and hiding all the first menu items, and acquiring menu items of the second menu to obtain a plurality of second menu items;
acquiring a second level of each second menu item, and arranging and unfolding the second menu items step by step according to the second level to be displayed on the left side of the menu display area;
After the first menu items are arranged step by step according to the first level and are unfolded and displayed on the left side of the menu display area, the method further comprises:
responding to a moving instruction of the mouse to move to any first menu item, and determining a first target menu item to which the mouse moves;
ejecting a normal 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 front 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;
determining a target conventional submenu clicked by the mouse when the mouse clicks any conventional submenu in the conventional function floating layer;
moving the target conventional submenu to a central area of the menu display area for display;
the step of determining and displaying each menu in the display area of the menu display area according to the priority comprises the following steps:
counting the number of the menus of the menu, and determining the top area of the menu display area;
dividing the top area into a plurality of submenu display areas corresponding to the number of the menus;
Setting a display level of each sub-menu display area according to a distance between each sub-menu display area and the center of the menu display area;
distributing sub-menu display areas corresponding to display levels for each menu according to the priority of each menu to obtain target sub-menu display areas corresponding to each menu; wherein the display level of the sub-menu display area allocated to each of the menus is positively correlated with the priority of each of the menus;
and displaying each menu in the corresponding target submenu display area.
2. The method of claim 1, wherein after each menu is displayed in the corresponding target submenu display area, respectively, further comprising:
when the fact that the mouse drags the second menu leftwards is detected, the other menus are correspondingly rotated clockwise;
and when the fact that the mouse drags the second menu to the right is detected, the rest menus are correspondingly rotated anticlockwise.
3. The method of claim 1, wherein after each menu is displayed in the corresponding target submenu display area, respectively, further comprising:
When the mouse is detected to stop in any target submenu display area, taking the target submenu display area in which the mouse stops as a target display area;
and if the menu corresponding to the target display area has the upper menu, marking and displaying the upper menu in the target submenu display area adjacent to the target display area.
4. The method of claim 1, wherein said calculating the priority of each of said menus based on said frequency and display duration of each of said menus selected during a history period, respectively, 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;
and determining the priority of each menu according to the third numerical value of each menu.
5. The method of claim 1, wherein the arranging and expanding the plurality of the first menu items in the first level is followed by displaying on the left side of the menu display area, further comprising:
displaying a retractable function button of the first menu on the upper left corner of the first menu;
and when the mouse is detected to click the retractable function button, all the first menu items of the first menu are shrunk and hidden.
6. A multi-level menu display apparatus for implementing the method of any one of claims 1 to 5, comprising:
the demarcation module is used for demarcating a menu display area on the display interface in response to a preset instruction;
a first determining module, configured to determine a plurality of menus 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 history period;
the calculation module is used for calculating the priority of each menu according to the frequency and the display duration of each menu selected in the history period;
the second determining module is used for determining the display area of each menu in the menu display area according to the priority of each menu and displaying the menu;
The screening module is used for screening a menu with highest priority from the menus to be used as a first menu;
the second acquisition module is used for responding to a first clicking 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 a first level of each first menu item, arranging a plurality of first menu items step by step according to the first level, and unfolding and displaying the first menu items on the left side of the menu display area;
a third determining module, configured to determine a menu of a next priority of the first menu, to obtain a second menu;
the contraction module is used for responding to a second click command for clicking the second menu, carrying out contraction hiding on all the first menu items, and acquiring the menu items of the second menu to obtain a plurality of second menu items;
and the display module is used for acquiring a second level of each second menu item, and arranging the second menu items step by step according to the second level and unfolding and displaying the second menu items on the left side of the menu display area.
7. A computer device, comprising:
a processor;
a memory;
wherein the memory stores a computer program, the processor implementing the multi-level menu display method of any one of claims 1 to 5 when executing the computer program.
8. 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 of claims 1-5.
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 CN114115645A (en) 2022-03-01
CN114115645B true 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661369A (en) * 2008-08-26 2010-03-03 阿尔派株式会社 Menu display device and menu display method
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100973354B1 (en) * 2008-01-11 2010-07-30 성균관대학교산학협력단 Device and method for providing user interface of menu
US8549432B2 (en) * 2009-05-29 2013-10-01 Apple Inc. Radial menus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661369A (en) * 2008-08-26 2010-03-03 阿尔派株式会社 Menu display device and menu display method
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
CN114115645A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
EP2990924B1 (en) Gesture-based on-chart data filtering
US7788599B2 (en) User interface elements for hierarchical selection of items
RU2656993C2 (en) Application window divider control for window layout management
US8595647B2 (en) System and method for providing dynamic prioritization and importance filtering of computer desktop icons and program menu items
CN103530220A (en) Display method and system and terminal for application program icons
RU2017115939A (en) CONTEXT DEPENDENT TABS IN MOBILE TAPES
US20090125845A1 (en) Providing suitable menu position indicators that predict menu placement of menus having variable positions depending on an availability of display space
CN113568540B (en) Function menu display method, device, equipment and medium in Web application
CN111124212B (en) Data display method and device, storage medium and processor
CN105278799A (en) Interface switching method and apparatus
WO2012034726A1 (en) Method and program for menu tree visualisation and navigation
CN112099710A (en) Application starting method, device, equipment and computer readable storage medium
CN114115645B (en) Multi-level menu display method, device, computer equipment and storage medium
CN102622224A (en) Method for achieving tree-like control piece with search function in Windchill system
CN109240678B (en) Code generation method and device
CN107193450B (en) Page element selection method and device
CN101650689B (en) Nonvolatile data storage and search method and device
CN107818000B (en) Operation method and device of page table
CN112578963B (en) Menu processing method and device, storage medium and electronic equipment
CN114816184A (en) Display method, device, equipment and storage medium of operation control
CN113986422A (en) Rapid control method and device for application function
CN105204724A (en) Information display method and device
CN110866379B (en) Data Visualization Chart Library System
JP6248444B2 (en) Information processing program, apparatus, and method
JPH045726A (en) Data display device

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