CN114675763A - Menu processing method and device - Google Patents

Menu processing method and device Download PDF

Info

Publication number
CN114675763A
CN114675763A CN202011549109.2A CN202011549109A CN114675763A CN 114675763 A CN114675763 A CN 114675763A CN 202011549109 A CN202011549109 A CN 202011549109A CN 114675763 A CN114675763 A CN 114675763A
Authority
CN
China
Prior art keywords
menu
target
options
node
option
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.)
Pending
Application number
CN202011549109.2A
Other languages
Chinese (zh)
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.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding 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 Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202011549109.2A priority Critical patent/CN114675763A/en
Publication of CN114675763A publication Critical patent/CN114675763A/en
Pending legal-status Critical Current

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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The embodiment of the application provides a menu processing method and device, relates to the technical field of communication, and receives a first operation of a user on a menu list; in response to a first operation, displaying m menu options; the m menu options are menu options related to a user in the n menu options in the menu list, and m is smaller than or equal to n; receiving a second operation for the menu option; the second operation is used for selecting x target menu options in the m menu options, wherein x is smaller than or equal to m; according to a second operation, x target menu options are displayed. In the embodiment of the application, the menu options can be modified through user operation, the menu can be flexibly processed according to the user requirements, and the maintenance cost of the menu can be effectively reduced.

Description

Menu processing method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a menu.
Background
The menu bar can provide function entrance for most functions of software or web pages, and the user can access the pages corresponding to the menu options by triggering the menu options in the menu bar of the pages. When generating a menu bar, a related developer can determine the menu options required to be included in the menu bar according to the user requirements, and generate a corresponding menu bar according to the menu options. With the continuous development of the industrialization process, the user needs are in a diversified trend, and the modification of the menu bar is more and more frequent.
Currently, menu bars and menu options contained in the menu bars are relatively fixed, and when a user wants to modify a menu bar (for example, delete a certain menu option), the developer needs to search relevant codes again and then modify the codes to modify the menu bar.
However, the menu modification method cannot flexibly process the menu.
Disclosure of Invention
The embodiment of the application provides a menu processing method and device, and aims to solve the problem that in the prior art, a menu cannot be flexibly processed, and therefore the maintenance cost of the menu is high.
In a first aspect, an embodiment of the present application provides a menu processing method, including: receiving a first operation of a user on a menu list; in response to the first operation, displaying m menu options; wherein the m menu options are menu options related to the user in n menu options in a menu list, and m is smaller than or equal to n; receiving a second operation on the menu option; the second operation is to select x target menu options of the m menu options, the x being less than or equal to the m; and displaying the x target menu options according to the second operation.
Optionally, the displaying the x target menu options according to the second operation includes: according to the second operation, performing tree structure conversion on the x target menu options to obtain a menu tree; the menu tree comprises a father node, a child node and a grandchild node; the parent node corresponds to a first level menu of the x target menu options, the child nodes correspond to q levels of menus of the x target menu options, and the grandchild nodes correspond to k levels of menus of the x target menu options; q is an integer greater than 1, and k is an integer greater than q; and processing the child nodes and the grandchild nodes, and displaying the x target menu options based on the processing result.
Optionally, the processing the child nodes and the grandchild nodes in the menu tree includes: for each child node, if the child node is not subordinate to any node, upgrading the child node to a parent node; for each grandchild node, if the grandchild node does not have a superior node, upgrading the grandchild node to a father node; and if the grandchild node has a father node, upgrading the grandchild node into a superior node with the smallest level difference with the grandchild node.
Optionally, the method further includes: receiving a third operation; the third operation is used for carrying out custom modification on the x target menu options; and responding to the third operation, and displaying the modified target menu option.
Optionally, the third operation includes an operation of dragging the first target menu option from the first position to the second position; the first target menu option is any one of the x target menu options; the displaying the modified target menu option in response to the third operation comprises: in response to the third operation, displaying a modification interface of the first target menu option from the first position to the second position.
Optionally, the third operation includes an operation of modifying the second target menu option from the current level menu to the target level menu; the second target menu option is any one of the x target menu options; the displaying the modified target menu option in response to the third operation comprises: and responding to the third operation, and displaying a menu interface of which the second target menu option is the target level menu.
Optionally, the third operation includes an operation of deleting the third target menu option; the third target menu option is any one of the x target menu options; the displaying the modified target menu option in response to the third operation comprises: and responding to the third operation, and displaying the menu interface after the third target menu option is deleted.
Optionally, the third operation includes an operation of modifying a fourth target menu option function; the fourth target menu option is any one of the x target menu options; the functions include one or more of the following: menu display, menu authority, operation mode or popup display; the displaying the modified target menu option in response to the third operation comprises: and responding to the third operation, modifying the function of the fourth target menu option, and displaying a menu interface comprising the modified fourth target menu option.
In a second aspect, the present application provides a menu processing apparatus, comprising: the device comprises a processing module and a display module.
The processing module is used for receiving a first operation of a user on a menu list;
the display module is used for responding to the first operation and displaying m menu options; wherein the m menu options are menu options related to the user in n menu options in a menu list, and m is smaller than or equal to n;
the processing module is further used for receiving a second operation on the menu option; the second operation is to select x target menu options of the m menu options, the x being less than or equal to the m;
and the display module is used for displaying the x target menu options according to the second operation.
Optionally, the display module is specifically configured to:
according to the second operation, performing tree structure conversion on the x target menu options to obtain a menu tree; the menu tree comprises a father node, a child node and a grandchild node; the parent node corresponds to a first level menu of the x target menu options, the child nodes correspond to q levels of menus of the x target menu options, and the grandchild nodes correspond to k levels of menus of the x target menu options; q is an integer greater than 1, and k is an integer greater than q; and processing the child nodes and the grandchild nodes, and displaying the x target menu options based on the processing result.
Optionally, the display module is specifically configured to:
for each child node, if the child node is not subordinate to any node, upgrading the child node to a parent node; for each grandchild node, if the grandchild node does not have a superior node, upgrading the grandchild node to a father node; and if the grandchild node has a father node, upgrading the grandchild node into a superior node with the smallest level difference with the grandchild node.
Optionally, the processing module is further configured to: receiving a third operation; the third operation is used for carrying out custom modification on the x target menu options; the display module is further configured to: and responding to the third operation, and displaying the modified target menu option.
Optionally, the third operation includes an operation of dragging the first target menu option from the first position to the second position; the first target menu option is any one of the x target menu options; the display module is specifically configured to: in response to the third operation, displaying a modification interface of the first target menu option from the first position to the second position.
Optionally, the third operation includes an operation of modifying the second target menu option from the current level menu to the target level menu; the second target menu option is any one of the x target menu options; the display module is specifically configured to: and responding to the third operation, and displaying a menu interface of which the second target menu option is the target level menu.
Optionally, the third operation includes an operation of deleting the third target menu option; the third target menu option is any one of the x target menu options; the display module is specifically configured to: and responding to the third operation, and displaying the menu interface after the third target menu option is deleted.
Optionally, the third operation includes an operation of modifying a fourth target menu option function; the fourth target menu option is any one of the x target menu options; the functions include one or more of the following: menu display, menu authority, operation mode or popup display; the display module is specifically configured to: and responding to the third operation, modifying the function of the fourth target menu option, and displaying a menu interface comprising the modified fourth target menu option.
In a third aspect, an embodiment of the present application provides an electronic device, including: at least one processor and a memory; the memory stores computer-executable instructions; the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the menu processing method as provided by the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer executing instruction is stored, and when a processor executes the computer executing instruction, the menu processing method according to the first aspect is implemented.
The embodiment of the application provides a menu processing method and a device, which can display m menu options related to a user according to a first operation of the user; and then the user can flexibly select x target menu options from the m options according to the self requirements of the user, and the x target menu options selected by the user are displayed, so that the user can independently select, the processing of a special developer on the menu is omitted, and the maintenance cost of the menu can be effectively reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic flowchart of a menu processing method according to an embodiment of the present disclosure;
FIG. 2 is a first schematic diagram of a menu interface provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a menu interface provided in the embodiment of the present application;
fig. 4 is a schematic diagram of a menu interface provided in the embodiment of the present application;
fig. 5 is a fourth schematic diagram of a menu interface provided in the embodiment of the present application;
fig. 6 is a schematic diagram of a menu interface provided in an embodiment of the present application;
fig. 7 is a sixth schematic diagram of a menu interface provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of a menu processing workflow provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a menu processing apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Since the modification process of the menu bar is complicated and requires a special developer to modify, the menu bar and the menu bar usually contain relatively fixed menu options. However, the relatively fixed menu options have difficulty in satisfying the user's diverse demands for menu functions. For example, for e-commerce platforms, promotional activities or services at different times after online operations require a lot of modifications to the menu.
At present, a common menu modification method is to modify a menu option according to a software development process to modify a corresponding code of the menu. The method has higher technical difficulty and needs special developers to modify, so that a user cannot modify the menu at any time according to the self requirement, the flexibility of the menu modification process is poorer, and the cost of the menu modification is higher.
Based on the problems in the prior art, the embodiment of the application provides a menu processing method, and the overall concept of the embodiment of the application is as follows: the menu is customized and edited according to the user requirements, and the menu list after the user-defined editing is displayed, so that the user can conveniently adjust menu options, and further the maintenance cost of the menu is reduced. Specifically, a first operation of the user on the menu list can be received; in response to a first operation, displaying m menu options; the m menu options are menu options related to a user in the n menu options in the menu list, and m is smaller than or equal to n; receiving a second operation for the menu option; the second operation is used for selecting x target menu options in the m menu options, wherein x is smaller than or equal to m; according to a second operation, x target menu options are displayed. According to the technical scheme, when a user triggers the first operation of menu modification, menu options related to the user can be displayed, the user can flexibly modify the menu according to the self requirement, and a menu list modified by the user is displayed.
The technical solution of the present application will be described in detail by specific examples. It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a menu processing method according to an embodiment of the present application. As shown in fig. 1, the menu processing method may include the steps of:
s101, receiving a first operation of a user on a menu list.
In the embodiment of the application, the first operation may be a single-click operation, a double-click operation, or a drag operation, or may also be a touch operation or a voice wake-up operation, and the corresponding interface control may be triggered by the first operation to perform subsequent menu editing. It is understood that the first operation may include other contents according to an actual scenario, which is not limited in the embodiment of the present application.
S102, responding to the first operation, and displaying m menu options.
The m menu options are menu options related to the user in the n menu options in the menu list, and m is smaller than or equal to n.
In the embodiment of the present application, the menu option related to the user may be understood as a menu option that may be screened out for the user according to the information of the user after the user logs in the system. For example: when the user is a business, menu options associated with the business may be filtered for the user. It can be understood that a relatively relevant menu option may also be screened out for the user according to other information of the user, which is not limited in the embodiment of the present application. Therefore, when the user edits the menu options, the user can only be targeted at the menu options relevant to the user, and the interference of the menu options irrelevant to the user is avoided.
Fig. 2 is a schematic diagram of a menu interface according to an embodiment of the present disclosure. The user may log in to the system through an account number, a password, or other means, and the electronic device may display an interface as shown in fig. 2. One or more of the following controls or modules may be included in the interface, for example: menu bar 201, modification control 202, user control 203, all display control 204, module 205, module 206, module 207, module 208, module 209, or module 210, among other controls or modules.
Menu bar 201 is used to display menu options associated with the user in the system.
The menu editing control 202 is used for modifying the menu bar and the sub-menu options corresponding to each menu option according to the user requirement. For example, the user may click the menu editing control 202, the electronic device displays m menu options, and the user may perform various types of operations such as deleting, adding, or changing the order of the menu options according to the preference of the user.
User controls 203 are used to implement other functions such as displaying user information, changing the system skin, or exiting the system.
The modules 205, 206, 207, 208, 209 and 210 are used for displaying the teletext information corresponding to each function provided by the system.
For example, when the user performs a first operation, such as: when the menu editing control 202 is triggered by an operation such as a single-click operation, a double-click operation, or a drag operation, a menu list interface as shown in fig. 3 may be displayed in response to the user's operation.
Fig. 3 is a schematic diagram of a menu interface provided in an embodiment of the present application. In the interface shown in fig. 3, the menu list contains m menu options related to the user, for example: menu options such as consulting research, video and intelligent data in menu bar 301, and menu options such as intelligent consulting, text news about, and financial calendar in menu list 302.
And S103, receiving a second operation for the menu option.
And the second operation is used for selecting x target menu options in the m menu options, wherein x is smaller than or equal to m.
In this embodiment, the second operation may be a single-click operation, a double-click operation, a drag operation, or other operations. For example, in the interface shown in fig. 3, one or more menu options in the menu list 302 may be selected by a single-click operation or a double-click operation; an operation of deleting a menu option in the menu bar 301 is performed by a right key touch; alternatively, the menu bar 301 or the menu item of the menu list 302 is moved by a drag operation to change the ordering of the menu items. It is understood that the second operation may include other contents according to an actual scenario, which is not limited in the embodiment of the present application.
And S104, displaying x target menu options according to the second operation.
In the embodiment of the present application, when the user deletes the consulting research and video menu option in the menu bar 301 by the second operation in S103 in the interface shown in fig. 3, and the menu list is triggered to be displayed, the interface shown in fig. 4 may be displayed.
Fig. 4 is a schematic diagram of a menu interface provided in an embodiment of the present application. As shown in fig. 4, the interface may cancel the menu options for displaying the consulting research and the video and the sub-menu options corresponding thereto, and display the menu options for the intelligent data, the strategy tool, the analysis and calculation, the transaction center, the intelligent wind control, and the post-delivery management and the sub-menu options corresponding thereto.
According to the menu processing method provided by the embodiment of the application, menu options which are possibly needed can be screened for the user according to the user information, and the interference of irrelevant menu options on the user is avoided; the user can further modify the menu options according to the self requirement, and the menu processing method enables the user to process the menu at any time, improves the flexibility of menu processing and can effectively reduce the maintenance cost of the menu.
On the basis of the above embodiment, S104 may be implemented by the following steps:
and S501, according to the second operation, performing tree structure conversion on the x target menu options to obtain a menu tree.
The menu tree comprises a father node, a child node and a grandchild node; the parent node corresponds to a first-level menu of x target menu options, the child nodes correspond to q-level menus of the x target menu options, and the grandchild nodes correspond to k-level menus of the x target menu options; q is an integer greater than 1, and k is an integer greater than q.
In the embodiment of the present application, the menu tree may generate a tree structure corresponding to a target menu option according to the adjustment of the target menu option by the user, and the menu tree may be used to display a menu list after the adjustment by the user. And if the user adjusts the menu options once, the original menu tree can be modified once correspondingly, and a menu tree corresponding to the modification operation of the user is generated. It will be appreciated that the menu tree is typically stored in the background and is imperceptible to the user.
The menu tree may include parent nodes, child nodes, and grandchild nodes. The parent node may be a node without a higher node, the child node may be a node next to the parent node, and the grandchild node may be a node next to the child node. Wherein, the father node, the child node and the grandchild node can correspond to the menus of different levels in the menu options.
For example, in the interface shown in FIG. 3, menu options such as consulting research 303 and videos 304 may be referred to as primary menus (or may be in a menu tree corresponding to a parent node), menu options such as large coffee set 305 and fund product management may be referred to as secondary menus (or may be in a menu tree corresponding to a child node), and menu options such as macro data 307 and rating management 308 may be referred to as tertiary menus (or may be in a menu tree corresponding to a grandchild node). When the user adjusts the menu option in the interface shown in fig. 3, the node corresponding to the menu option may be adjusted, and a corresponding menu tree may be generated.
And S502, processing the child nodes and the grandchild nodes, and displaying x target menu options based on the processing result.
In the embodiment of the application, child nodes and grandchild nodes in a menu tree are processed according to user operation, and when a menu list is opened by a user, target menu options obtained through processing of the child nodes and grandchild nodes can be displayed.
According to the menu processing method provided by the embodiment of the application, the menu options are modified through user operation, the corresponding menu tree is adjusted according to the modification operation of the user, and the menu list after the user adjustment can be flexibly displayed based on the menu tree.
On the basis of the foregoing embodiment, the foregoing S502 may include:
for each child node, if the child node is not subordinate to any node, the child node is upgraded to a parent node.
In this embodiment, the upgrade may be represented as a process of upgrading the node to an upper node. For example: if the grandchild node is upgraded, the process that the grandchild node can be upgraded into the child node or the parent node is shown.
For example, as shown in the interface of fig. 3, if the parent node of consulting study 303 cancels the display, it may be represented in a menu tree as a plurality of child nodes of consulting study 303, including: the intelligent consultation, the image-text news, the financial calendar, the research and report center and the simplified research and report do not have father nodes, and the child nodes can be upgraded into father nodes.
Optionally, for each grandchild node, if there is no superior node in the grandchild node, the grandchild node is upgraded to a parent node; and if the parent node exists in the grandchild node, upgrading the grandchild node into a superior node with the smallest level difference with the grandchild node.
For example, in the interface shown in fig. 3, if the nodes corresponding to the post-investment management 309 and the fund product management 306 are not displayed, it may indicate that the grandchild node does not exist in the superior node in the menu tree, and the grandchild node corresponding to the fund management 310 may be upgraded to the parent node.
For example, as shown in the interface shown in fig. 3, if the child node corresponding to the fund product management 306 is not displayed, it may indicate that a parent node exists in the grandchild node corresponding to the fund management 310 in the menu tree (post-investment management 309), and the grandchild node corresponding to the fund management 310 may be upgraded to the child node having the smallest difference from the grandchild node.
The menu processing method provided by the embodiment of the application can flexibly modify the menus of all levels and can display the modified menu list.
On the basis of the corresponding embodiments of the above S101 to S103, the method further includes:
s601, receiving a third operation; the third operation is for custom modifying the x target menu options.
In this embodiment of the application, the third operation may be a single-click operation, a double-click operation, a drag operation, or other operations. The specific implementation process of the third operation is similar to that of the second operation, and is not described herein again.
And S602, responding to the third operation, and displaying the modified target menu option.
For example, the user may perform multiple operations on the menu option, and in response to the multiple operations of the user, the target menu option modified by the user may be displayed.
On the basis of the corresponding embodiment of the above S601-S602, the method includes: the third operation comprises an operation of dragging the first target menu option from the first position to the second position; the first target menu option is any one of x target menu options; in response to a third operation, displaying the modified target menu options, including: and displaying a modification interface of the first target menu option from the first position to the second position in response to the third operation.
Fig. 5 is a schematic diagram of a menu interface provided in an embodiment of the present application. As shown in fig. 5, if the stock taken position 503 can be dragged to the position where the fund taken position 504 is located by a drag operation in the interface shown as a in fig. 5, a modified interface from the home position of the stock taken position 503 to the position where the fund taken position 504 is located as shown as b in fig. 5 can be displayed.
The menu processing method provided by the embodiment of the application can flexibly adjust the position of each menu option and display the menu list after the position is adjusted.
On the basis of the corresponding embodiment of the above S601-S602, the method includes: the third operation comprises an operation of modifying a second target menu option from the current level menu to the target level menu; the second target menu option is any one of the x target menu options; in response to a third operation, displaying the modified target menu options, including: and responding to the third operation, and displaying a menu interface with a second target menu option as a target level menu.
Fig. 6 is a schematic diagram of a menu interface provided in an embodiment of the present application. As shown in fig. 6, if the setting can be triggered by a right key in the interface shown in a in fig. 6, the menu level corresponding to the menu option is modified in the setting interface, and the secondary menu corresponding to the fund product management 603 is modified into the primary menu; the fund product management 603 as shown in b of fig. 6 may be displayed as a menu interface of the one-level menu.
The menu processing method provided by the embodiment of the application can flexibly modify the grades of the menus and can display the modified menu list.
On the basis of the corresponding embodiment of the above S601-S602, the method includes: the third operation comprises an operation of deleting the third target menu option; the third target menu option is any one of the x target menu options; in response to a third operation, displaying the modified target menu options, including: and responding to the third operation, and displaying the menu interface after the third target menu option is deleted.
Fig. 7 is a schematic diagram six of a menu interface provided in an embodiment of the present application. As shown in fig. 7, if the fund product management 703 and the fund management 704 can be deleted by an operation such as a checkup cancellation or a right-click trigger setting in the interface shown in a in fig. 7, a menu interface for deleting the fund product management 703 and the fund management 704 shown in b in fig. 7 may be displayed.
The menu processing method provided by the embodiment of the application can flexibly delete each menu option and can display the deleted menu list.
On the basis of the embodiments corresponding to the foregoing S601-S602, in the embodiment of the present application, the third operation includes an operation of modifying the fourth target menu option function; the fourth target menu option is any one of the x target menu options; the functions include one or more of the following: menu display, menu authority, operation mode or popup display; in response to a third operation, displaying the modified target menu options, including: and responding to the third operation, modifying the function of the fourth target menu option, and displaying a menu interface comprising the modified fourth target menu option.
In the embodiment of the present application, the menu display includes: the incomplete menu; background color of the first-level menu, scalable vector graphics (svg) name corresponding to the left-side menu, left-side menu only, hidden menu, user-defined hierarchy selected by the user, internal menu authority, noun displayed by the user-modified tab or menu read-only, and the like; the menu authority includes: internal menu permissions, etc.; the pop-up window display includes: a pop-up form display, a pop-up width, a pop-up height, a pop-up skin style, a pop-up content assembly, etc.
Exemplary, menu option functions that may be modified, and their corresponding fields, types, defaults, significances and notes, are shown in table 1 below:
TABLE 1
Figure BDA0002856581260000111
Figure BDA0002856581260000121
The menu processing method provided by the embodiment of the application can flexibly adjust each menu option and the display interface of the menu, and can display the adjusted menu list.
Based on the content described in the foregoing embodiments, for better understanding of the embodiments of the present application, referring to fig. 8, fig. 8 is a schematic diagram of a menu processing workflow provided in the embodiments of the present application, and as shown in fig. 8, the menu processing workflow includes the following steps:
and S801, returning the interface to a menu list.
When the user is at a specific interface (such as fig. 2), a menu list (such as fig. 3) can be obtained by calling the relevant interface, and the menu list can be edited by the user.
And S802, filtering according to the current user environment.
The menu list is filtered according to the relevant information of the user (e.g., name information of the user) to remove menu options that are not needed by the user from the menu list.
S803, the self-defined configuration is converted into a label which is general to the route.
And acquiring the menu option selected by the user, taking the menu option as a target menu option, and converting the target menu option into a label. The tag may be a meta object. The meta object may be an auxiliary tag of a hypertext markup language (HTML) head area. In the embodiment of the application, the operation of the user can be converted into the corresponding meta object, and the meta object is usually stored in the background and is not perceived by the user. In this embodiment, the meta object may include various display information of the target menu option.
And S804, converting the menu into a tree structure.
And according to the relation among the target menu options, carrying out tree structure conversion on the target menu options to obtain a menu tree.
And S805, judging whether the menu child nodes have only one level (without grandchild nodes), and if so, directly changing the menu into a one-level menu.
And S806, arranging according to the user-defined sequence.
S807, cleaning the tree structure, and upgrading the current menu level if the submenu has no authority.
And cleaning the menu tree, and upgrading the current menu level if the submenu has no authority. The upgrading mode of the menu is not described in detail.
And S808, displaying the generated menu.
It should be understood that the drawings and tables provided in the embodiments of the present application are exemplary only and are not intended as limitations on the embodiments of the present application.
Fig. 9 is a schematic structural diagram of a menu processing apparatus according to an embodiment of the present application. As shown in fig. 9, the apparatus may include a processing module 902 and a display module 901.
A processing module 902, configured to receive a first operation of a menu list by a user;
a display module 901, configured to display m menu options in response to a first operation; the m menu options are menu options relevant to a user in the n menu options in the menu list, and m is smaller than or equal to n;
a processing module 902, further configured to receive a second operation on the menu option; the second operation is used for selecting x target menu options in the m menu options, wherein x is smaller than or equal to m;
a display module 901, configured to display x target menu options according to the second operation.
Optionally, the display module 901 is specifically configured to:
according to the second operation, carrying out tree structure conversion on the x target menu options to obtain a menu tree; the menu tree comprises a father node, a child node and a grandchild node; the parent node corresponds to a first-level menu of x target menu options, the child nodes correspond to q-level menus of the x target menu options, and the grandchild nodes correspond to k-level menus of the x target menu options; q is an integer greater than 1, k is an integer greater than q; and processing the child nodes and the grandchild nodes, and displaying x target menu options based on the processing result.
Optionally, the display module 901 is specifically configured to:
for each child node, if the child node does not belong to any node, upgrading the child node into a father node; for each grandchild node, if the grandchild node does not have a superior node, the grandchild node is upgraded to a father node; and if the parent node exists in the grandchild node, upgrading the grandchild node into a superior node with the smallest level difference with the grandchild node.
Optionally, the processing module 902 is further configured to: receiving a third operation; the third operation is used for carrying out self-defining modification on the x target menu options; a display module 901, further configured to: and displaying the modified target menu option in response to the third operation.
Optionally, the third operation includes an operation of dragging the first target menu option from the first position to the second position; the first target menu option is any one of x target menu options; the display module 901 is specifically configured to display, in response to the third operation, a modification interface of the first target menu option from the first location to the second location.
Optionally, the third operation includes an operation of modifying the second target menu option from the current level menu to the target level menu; the second target menu option is any one of the x target menu options; the display module 901 is specifically configured to: and responding to the third operation, and displaying a menu interface with a second target menu option as a target level menu.
Optionally, the third operation includes an operation of deleting the third target menu option; the third target menu option is any one of the x target menu options; the display module 901 is specifically configured to: and responding to the third operation, and displaying the menu interface after the third target menu option is deleted.
Optionally, the third operation includes an operation of modifying the fourth target menu option function; the fourth target menu option is any one of the x target menu options; the functions include one or more of the following: menu display, menu authority, operation mode or popup display; the display module 901 is specifically configured to: and responding to the third operation, modifying the function of the fourth target menu option, and displaying a menu interface comprising the modified fourth target menu option.
The menu processing apparatus provided in any of the foregoing embodiments may be used to implement the schemes in the foregoing embodiments, and the implementation principle and technical effects are similar, which are not described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the processing module may be a separate processing element, or may be integrated into a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and a processing element of the apparatus calls and executes the functions of the above determination module. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when some of the above modules are implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can call program code. As another example, these modules may be integrated together, implemented in the form of a system-on-a-chip (SOC).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), among others.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 10, the apparatus may include: a processor 1001 and a memory 1002.
The processor 1001 executes computer-executable instructions stored in the memory, so that the processor 1001 executes the scheme in the above-described embodiment.
The processor 1001 may be a general-purpose processor including a central processing unit CPU, a Network Processor (NP), and the like; but also a digital signal processor DSP, an application specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
The memory 1002 stores computer-executable instructions, which may include Random Access Memory (RAM) and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the apparatus may further include: the system bus 1003 and the memory 1002 may be connected to the processor 1001 via the system bus 1003, and communicate with each other.
The system bus 1003 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The embodiments of the present application further provide a computer-readable storage medium, in which computer instructions are stored, and when the computer instructions are executed on a computer, the computer is caused to execute the solution of the foregoing embodiments.
The embodiment of the application also provides a chip for running the instructions, and the chip is used for executing the scheme in the embodiment.
Embodiments of the present application also provide a computer program product, which includes a computer program stored in a computer-readable storage medium, where the computer program can be read by at least one processor from the computer-readable storage medium, and the at least one processor can implement the solutions in the above embodiments when executing the computer program.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A menu processing method, comprising:
receiving a first operation of a user on a menu list;
in response to the first operation, displaying m menu options; wherein the m menu options are menu options related to the user in n menu options in a menu list, and m is smaller than or equal to n;
receiving a second operation on the menu option; the second operation is to select x target menu options of the m menu options, the x being less than or equal to the m;
and displaying the x target menu options according to the second operation.
2. The method of claim 1, wherein said displaying the x target menu options according to the second operation comprises:
according to the second operation, carrying out tree structure conversion on the x target menu options to obtain a menu tree; the menu tree comprises a father node, a child node and a grandchild node; the parent node corresponds to a level one menu of the x target menu options, the child nodes correspond to a level q menu of the x target menu options, and the grandchild nodes correspond to a level k menu of the x target menu options; q is an integer greater than 1, and k is an integer greater than q;
and processing the child nodes and the grandchild nodes, and displaying the x target menu options based on the processing result.
3. The method according to claim 2, wherein said processing child nodes and grandchild nodes in said menu tree comprises:
for each child node, if the child node is not subordinate to any node, upgrading the child node to a parent node;
for each grandchild node, if the grandchild node does not have a superior node, upgrading the grandchild node to a father node; and if the grandchild node has a father node, upgrading the grandchild node into a superior node with the smallest level difference with the grandchild node.
4. The method according to any one of claims 1-3, further comprising:
receiving a third operation; the third operation is used for carrying out custom modification on the x target menu options;
and responding to the third operation, and displaying the modified target menu option.
5. The method of claim 4, wherein the third operation comprises an operation of dragging the first target menu option from a first location to a second location; the first target menu option is any one of the x target menu options; the displaying the modified target menu option in response to the third operation comprises:
in response to the third operation, displaying a modification interface of the first target menu option from the first position to the second position.
6. The method of claim 4, wherein the third operation comprises an operation of modifying a second target menu option from a current level menu to a target level menu; the second target menu option is any one of the x target menu options; the displaying the modified target menu option in response to the third operation comprises:
and responding to the third operation, and displaying a menu interface of which the second target menu option is the target level menu.
7. The method of claim 4, wherein the third operation comprises an operation to delete a third target menu option; the third target menu option is any one of the x target menu options; the displaying the modified target menu option in response to the third operation comprises:
and responding to the third operation, and displaying the menu interface after the third target menu option is deleted.
8. The method of claim 4, wherein the third operation comprises an operation to modify a fourth target menu option function; the fourth target menu option is any one of the x target menu options; the functions include one or more of the following:
menu display, menu authority, operation mode or popup display;
the displaying the modified target menu option in response to the third operation comprises:
and responding to the third operation, modifying the function of the fourth target menu option, and displaying a menu interface comprising the modified fourth target menu option.
9. A menu processing apparatus, comprising: the device comprises a processing module and a display module;
the processing module is used for receiving a first operation of a user on a menu list;
the display module is used for responding to the first operation and displaying m menu options; wherein the m menu options are menu options related to the user in n menu options in a menu list, and m is smaller than or equal to n;
the processing module is further used for receiving a second operation on the menu option; the second operation is to select x target menu options of the m menu options, the x being less than or equal to the m;
and the display module is used for displaying the x target menu options according to the second operation.
10. An electronic device, comprising: a memory for storing program instructions; a processor for invoking and executing computer programs or instructions in the memory, performing the method of any of claims 1-8.
11. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1-8.
CN202011549109.2A 2020-12-24 2020-12-24 Menu processing method and device Pending CN114675763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011549109.2A CN114675763A (en) 2020-12-24 2020-12-24 Menu processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011549109.2A CN114675763A (en) 2020-12-24 2020-12-24 Menu processing method and device

Publications (1)

Publication Number Publication Date
CN114675763A true CN114675763A (en) 2022-06-28

Family

ID=82070955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011549109.2A Pending CN114675763A (en) 2020-12-24 2020-12-24 Menu processing method and device

Country Status (1)

Country Link
CN (1) CN114675763A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5530796A (en) * 1994-09-30 1996-06-25 International Business Machines Corporation Menu bar editor
CN102752656A (en) * 2012-07-06 2012-10-24 四川长虹电器股份有限公司 Method for customizing menus by digital TV (televesion) subscribers
CN103377051A (en) * 2013-07-16 2013-10-30 广东欧珀移动通信有限公司 Application interface customizing method based on Android system
CN104811786A (en) * 2015-04-24 2015-07-29 无锡天脉聚源传媒科技有限公司 Filtering method and device for menu bar option
CN107688423A (en) * 2017-05-19 2018-02-13 平安科技(深圳)有限公司 The management method and processing equipment of menu option in a kind of system
CN108268190A (en) * 2016-12-30 2018-07-10 北京普源精电科技有限公司 Frequency spectrograph custom menu setting method and device
CN109189291A (en) * 2018-07-26 2019-01-11 新华三大数据技术有限公司 Menu managing method and device
CN109933402A (en) * 2019-03-22 2019-06-25 深圳市元征科技股份有限公司 A kind of methods of exhibiting of function menu, system and relevant device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5530796A (en) * 1994-09-30 1996-06-25 International Business Machines Corporation Menu bar editor
CN102752656A (en) * 2012-07-06 2012-10-24 四川长虹电器股份有限公司 Method for customizing menus by digital TV (televesion) subscribers
CN103377051A (en) * 2013-07-16 2013-10-30 广东欧珀移动通信有限公司 Application interface customizing method based on Android system
CN104811786A (en) * 2015-04-24 2015-07-29 无锡天脉聚源传媒科技有限公司 Filtering method and device for menu bar option
CN108268190A (en) * 2016-12-30 2018-07-10 北京普源精电科技有限公司 Frequency spectrograph custom menu setting method and device
CN107688423A (en) * 2017-05-19 2018-02-13 平安科技(深圳)有限公司 The management method and processing equipment of menu option in a kind of system
CN109189291A (en) * 2018-07-26 2019-01-11 新华三大数据技术有限公司 Menu managing method and device
CN109933402A (en) * 2019-03-22 2019-06-25 深圳市元征科技股份有限公司 A kind of methods of exhibiting of function menu, system and relevant device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱旭;: "用IWTreeView实现用户动态菜单的加载", 电脑编程技巧与维护, no. 16, pages 24 - 26 *

Similar Documents

Publication Publication Date Title
US11150882B2 (en) Naming robotic process automation activities according to automatically detected target labels
US10740121B2 (en) User interface for navigating multiple applications
US8584082B2 (en) System for dynamic discovery, configuration, and development of process-bound widgets
US20150293764A1 (en) Method and system to compose and execute business rules
US9524145B2 (en) Rebuildable service-oriented applications
US20140351684A1 (en) Methods and apparatus for translating forms to native mobile applications
US11886895B2 (en) Enhanced target selection for robotic process automation
US9032363B2 (en) Providing a user interface library for building web-based applications
WO2018232421A1 (en) Computer system decision engine
JP5588695B2 (en) Content sharing system
JP6750124B2 (en) Terminal device, UI expansion method, and UI expansion program
WO2020004156A1 (en) Display control device, display control method, and display control program
CN113434063B (en) Information display method, device and equipment
CN117055766A (en) Tree data processing method and device based on Ant Design, medium and electronic equipment
CN113435669B (en) Method and device for optimizing access workflow, electronic equipment and readable storage medium
US10133556B1 (en) Technical building block
CN114675763A (en) Menu processing method and device
US20100125804A1 (en) Object positioning in a graphical user interface
Homann et al. Towards user interface patterns for ERP applications on smartphones
CN115758016A (en) Webpage content staticizing processing method and system
US20060041623A1 (en) Method and system to trigger an activity associated with a user interface element on a web page
WO2016011248A1 (en) Systems and methods for generating an interactive user interface from a database
JP2009205353A (en) User interface providing method, and device and program therefor
CN115292588B (en) Hot spot information guiding browsing method and device, storage medium and electronic equipment
CN115292589B (en) Hot spot information guiding browsing method and device, storage medium and electronic equipment

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