CN115795203B - Method and device for constructing menu page, electronic equipment and storage medium - Google Patents

Method and device for constructing menu page, electronic equipment and storage medium Download PDF

Info

Publication number
CN115795203B
CN115795203B CN202310044664.7A CN202310044664A CN115795203B CN 115795203 B CN115795203 B CN 115795203B CN 202310044664 A CN202310044664 A CN 202310044664A CN 115795203 B CN115795203 B CN 115795203B
Authority
CN
China
Prior art keywords
menu
user
father node
target
tree
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
CN202310044664.7A
Other languages
Chinese (zh)
Other versions
CN115795203A (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.)
Beijing Zhixiang Technology Co Ltd
Original Assignee
Beijing Zhixiang Technology 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 Beijing Zhixiang Technology Co Ltd filed Critical Beijing Zhixiang Technology Co Ltd
Priority to CN202310044664.7A priority Critical patent/CN115795203B/en
Publication of CN115795203A publication Critical patent/CN115795203A/en
Application granted granted Critical
Publication of CN115795203B publication Critical patent/CN115795203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and a device for constructing a menu page, electronic equipment and a storage medium, which are applied to the technical field of data processing, wherein the method comprises the following steps: acquiring a plurality of menu functions corresponding to a target user and the use frequency corresponding to each menu function; determining a corresponding root node of the menu function in the multi-user tree menu according to the corresponding use frequency of the menu function; determining a target father node corresponding to the root node, wherein the target father node is matched with user information corresponding to a target user; and constructing a tree menu corresponding to the target user according to each root node and the target father node. The method is used for solving the defect that a B/S management system in the prior art cannot accurately and rapidly inquire the menu functions required by a user by utilizing three-level menus, and realizing the construction of the tree-shaped menu corresponding to the target user by utilizing the using frequency of the menu functions, so that the electronic equipment can accurately and rapidly inquire the menu functions required by the target user based on the tree-shaped menu.

Description

Method and device for constructing menu page, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and apparatus for constructing a menu page, an electronic device, and a storage medium.
Background
Most of the current browser/Server (B/S) manages the pages (web) of the system, and in general, the left menu and the right content are displayed.
However, even if the B/S management system with more functions adopts a three-level menu format, the menu functions required by the user cannot be accurately and quickly queried.
Disclosure of Invention
The invention provides a method, a device, electronic equipment and a storage medium for constructing a menu page, which are used for solving the defect that a B/S management system in the prior art cannot accurately and rapidly inquire a menu function required by a user by utilizing a three-level menu, and realizing the construction of a tree-shaped menu corresponding to a target user by utilizing the use frequency of the menu function, so that the electronic equipment can accurately and rapidly inquire the menu function required by the target user based on the tree-shaped menu.
The invention provides a method for constructing a menu page, which comprises the following steps:
acquiring a plurality of menu functions corresponding to a target user and the use frequency corresponding to each menu function;
determining a corresponding root node of the menu function in the multi-user tree menu according to the corresponding use frequency of the menu function; determining a target father node corresponding to the root node, wherein the target father node is matched with user information corresponding to the target user;
and constructing a tree menu corresponding to the target user according to each root node and the target father node.
According to the method for constructing the menu page provided by the invention, the method for determining the target father node corresponding to the root node comprises the following steps: acquiring a first father node directly connected with the root node; s1, judging whether the first father node is matched with the user information or not; s2, determining the first father node as the target father node under the condition that the first father node is matched with the user information; s3, under the condition that the first father node is not matched with the user information, acquiring a second father node directly connected with the first father node; and taking the second father node as a new first father node, and repeatedly executing the S1-S3 until the new first father node is matched with the user information.
According to the method for constructing the menu page provided by the invention, the method for acquiring the plurality of menu functions corresponding to the target user comprises the following steps: acquiring a plurality of initial menu functions corresponding to the target user; and determining a plurality of initial menu functions corresponding to the use frequency larger than a preset frequency domain threshold value in the plurality of initial menu functions as the plurality of menu functions according to the use frequency corresponding to each initial menu function.
According to the method for constructing the menu page, the corresponding root node of the menu function in the multi-user tree menu is determined according to the maximum use frequency and the minimum use frequency corresponding to the menu function.
According to the method for constructing the menu page provided by the invention, the method for acquiring the plurality of menu functions corresponding to the target user comprises the following steps: responding to the data query operation aiming at the target user, and determining the keywords corresponding to the target user; and determining the menu functions corresponding to the target user from the multi-user tree menu according to the keywords.
According to the method for constructing the menu page provided by the invention, the method further comprises the following steps: responding to the function query operation aiming at the target user, and determining the menu function to be queried corresponding to the target user; and under the condition that the menu function to be queried is not included in the tree menu, updating the tree menu according to the use frequency of the menu function to be queried, and obtaining an updated tree menu.
The invention also provides a device for constructing the menu page, which comprises the following steps:
the acquisition module is used for acquiring a plurality of menu functions corresponding to the target user and the use frequency corresponding to each menu function;
the processing module is used for determining a corresponding root node of the menu function in the multi-user tree menu according to the corresponding use frequency of the menu function; determining a target father node corresponding to the root node, wherein the target father node is matched with user information corresponding to the target user; and constructing a tree menu corresponding to the target user according to each root node and the target father node.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements the method for constructing the menu page according to any one of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of constructing a menu page as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a method of constructing a menu page as described in any one of the above.
According to the method, the device, the electronic equipment and the storage medium for constructing the menu page, the plurality of menu functions corresponding to the target user and the use frequency corresponding to each menu function are obtained; determining a corresponding root node of the menu function in a multi-user tree menu according to the corresponding use frequency of the menu function; determining a target father node corresponding to the root node, wherein the target father node is matched with user information corresponding to the target user; and constructing a tree menu corresponding to the target user according to each root node and the target father node. The method is used for solving the defect that a B/S management system in the prior art cannot accurately and rapidly inquire the menu functions required by a user by utilizing three-level menus, and realizing the construction of the tree-shaped menu corresponding to the target user by utilizing the using frequency of the menu functions, so that the electronic equipment can accurately and rapidly inquire the menu functions required by the target user based on the tree-shaped menu.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a page function manager according to the present invention;
FIG. 2 is a schematic diagram of data interaction between a data management unit and a data analysis unit according to the present invention;
FIG. 3 is a schematic flow chart of a method for constructing a menu page provided by the invention;
FIG. 4 is a schematic diagram of a tree menu corresponding to a target user;
FIG. 5 is a second schematic diagram of a page function manager according to the present invention;
FIG. 6 is a schematic diagram of a device for constructing menu pages according to the present invention;
fig. 7 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, the electronic device according to the embodiment of the present invention may include: B/S management system, computer, mobile terminal, wearable device, etc.
Optionally, a page function manager may be provided in the electronic device.
Exemplary, as shown in fig. 1, a schematic structure of a page function manager provided by the present invention is shown. In fig. 1, the page function manager may include a page presentation device and a server analysis management device.
Wherein, the page presentation device can include: an information calling unit and a function display unit; the information calling unit can call a user table in the server analysis management device; the function display unit can display a tree menu corresponding to the target user in the user table, namely, the number of the user table is at least one;
the server analysis management apparatus may include: a data management unit and a data analysis unit; the data management unit is capable of managing/storing a user table and a menu table; the data analysis unit may be called a menu page construction device, and can construct a tree menu corresponding to each target user based on the user table and the menu table in the data management unit.
Alternatively, the user table may include: user name, password, user role, identity (Identity Document, ID) corresponding to the user table (simply referred to as user ID) and other information; the menu table may include: user ID, menu function, ID corresponding to menu function (simply called menu ID), menu name, menu path, father node ID, frequency of use corresponding to menu function, etc.
It should be noted that, the menu table stores all function menus in the whole electronic device, and the corresponding use frequencies of different target users are different. The whole menu list has no main key, and the user ID and the menu ID can be used as unique indexes, so that the data volume in the menu list is smaller than a preset quantity threshold (the value of the preset quantity threshold can be 1000), and the query efficiency and the query speed of the menu function can be effectively improved.
If the user uses the tree menu for the first time, the corresponding use frequency of the user defaults to 0 in the multi-user tree menu.
An exemplary diagram of data interaction between the data management unit and the data analysis unit provided by the present invention is shown in fig. 2. In fig. 2, 201, a page display device acquires a user identity ID and a menu ID corresponding to a target user; 202. the page display device sends the user ID and the menu ID to a data management unit; the data management unit receives the user ID and the menu ID sent by the page display device; 203. the data management unit; 204. the data management unit sends the frequency of use to the data analysis unit; the data analysis unit receives the use frequency sent by the data management unit; 205. the data analysis unit determines a tree menu corresponding to the target user according to the use frequency; 206. the data analysis unit forwards the tree menu to the page display device through the data management unit; and by analogy, 207, the data analysis unit forwards the tree menu to the page display device through the data management unit, wherein the tree menu corresponds to a plurality of target users.
Wherein, the tree menu corresponding to one target user can be called user-specific menu data; the tree menu corresponding to the plurality of target users may be referred to as full-size user menu data.
It should be noted that, the multi-user tree menu according to the embodiment of the present invention refers to a tree menu formed by menu functions corresponding to a plurality of users.
The execution subject related to the embodiment of the present invention may be a device for constructing a menu page, or may be an electronic device, and the embodiment of the present invention is further described below by taking the electronic device as an example.
As shown in fig. 3, a flow chart of a method for constructing a menu page provided by the present invention may include:
301. and acquiring a plurality of menu functions corresponding to the target user and the use frequency corresponding to each menu function.
Wherein, the target user refers to any user of a plurality of users in the multi-user tree menu;
a menu function (simply referred to as a menu) refers to a chart arranged to provide a user with selection items, the number of the menu functions being plural, and optionally, the menu function may include a user ID and a menu ID corresponding to a target user;
the frequency of use refers to the number of times the target user uses the menu function.
The electronic equipment can firstly acquire the menu function corresponding to the target user; then, the electronic device acquires the number of times the target user uses the menu function, namely, determines the corresponding use frequency of the menu function.
In some embodiments, the electronic device obtains a plurality of menu functions corresponding to the target user, which may include, but is not limited to, at least one implementation of:
implementation 1: the electronic equipment acquires a plurality of initial menu functions corresponding to a target user; the electronic equipment determines a plurality of initial menu functions corresponding to the use frequency larger than a preset frequency domain threshold value as a plurality of menu functions according to the use frequency corresponding to each initial menu function.
Wherein the number of initial menu functions is greater than the number of menu functions.
Optionally, the preset frequency threshold may be set before the electronic device leaves the factory, or may be user-defined, which is not specifically limited herein.
The preset frequency threshold is exemplified by a value of 1.
The electronic equipment firstly acquires a plurality of initial menu functions corresponding to a target user, and acquires the use frequency corresponding to each initial menu function; and then, the electronic equipment compares all the using frequencies with a preset frequency threshold one by one, ignores a plurality of initial menu functions corresponding to the using frequencies smaller than or equal to the preset frequency, and determines a plurality of initial menu functions corresponding to the using frequencies larger than the preset frequency as a plurality of menu functions so as to effectively ensure that the acquired menu functions are frequently used by target users.
Implementation 2: the electronic equipment responds to the data query operation aiming at the target user, and determines keywords corresponding to the target user; the electronic equipment determines a plurality of menu functions corresponding to a target user from the multi-user tree menu according to the keywords.
The keywords and the menu functions have a certain mapping relation, that is, different keywords correspond to different menu functions.
Optionally, the mapping relationship may be set before the electronic device leaves the factory, or may be user-defined, which is not specifically limited herein.
In the process of determining a plurality of menu functions corresponding to a target user, the electronic equipment can firstly input data query operation into the electronic equipment; then, the electronic equipment responds to the data query operation and determines keywords corresponding to the target user based on the data query operation; then, the electronic device can determine a plurality of menu functions corresponding to the target user from the multi-user tree menu according to the keyword based on the preset mapping relation, so that the query efficiency of the plurality of menu functions can be improved.
302. Determining a corresponding root node of the menu function in the multi-user tree menu according to the corresponding use frequency of the menu function; and determining a target father node corresponding to the root node.
Wherein the target parent node matches user information corresponding to the target user, the target parent node may represent a logical relationship between child nodes connected to the target parent node.
Because the multi-user tree menu comprises a plurality of nodes, each node corresponds to one use frequency, after the electronic equipment acquires the use frequency corresponding to the menu function, the electronic equipment can acquire the root node corresponding to the use frequency in the multi-user tree menu; then, the electronic equipment acquires father nodes directly connected or indirectly connected with the root node, and matches the father nodes with user information corresponding to the target user; and finally, the electronic equipment determines the parent node successfully matched as the target parent node corresponding to the root node.
In some embodiments, the determining, by the electronic device, the target parent node corresponding to the root node may include: the electronic equipment acquires a first father node directly connected with a root node; s1, the electronic equipment judges whether a first father node is matched with user information or not; s2, under the condition that the first father node is matched with the user information, the electronic equipment determines the first father node as a target father node; s3, under the condition that the first father node is not matched with the user information, the electronic equipment acquires a second father node which is directly connected with the first father node; and taking the second father node as a new first father node, and repeatedly executing the S1-S3 until the new first father node is matched with the user information.
In the process of determining a target father node corresponding to a root node, the electronic device may first obtain a first father node directly connected to the root node; the electronic device then matches the first parent node with user information: under the condition that the matching is successful, the electronic equipment can directly determine the first father node as a target father node corresponding to the root node; under the condition of failure in matching, the electronic equipment firstly acquires a second father node directly connected with the first father node, determines the second father node as a new first father node, then matches the new first father node with the user information until the new first father node is successfully matched with the user information, and determines the new first father node as a target father node corresponding to the root node.
In addition, the electronic device may combine the first parent node and the second parent node to obtain a target parent node corresponding to the root node.
In some embodiments, the root node corresponding to the menu function in the multi-user tree menu may be determined according to the maximum frequency of use and the minimum frequency of use corresponding to the menu function.
The root node radius corresponding to different root nodes is different, and the root node radius is determined according to the maximum use frequency and the minimum use frequency corresponding to the menu function.
Optionally, the electronic device determines a radius of the root node corresponding to the menu function based on a radius formula.
Wherein the radius formula is
Figure SMS_1
R represents the radius of the root node corresponding to the menu function; n represents the grade number corresponding to the radius of the root node;
Figure SMS_2
representing the maximum frequency of use among all menu functions,/->
Figure SMS_3
Representing the minimum frequency of use among all menu functions; />
Figure SMS_4
Is the frequency of use corresponding to the menu function.
The electronic equipment can accurately determine the radius of the root node corresponding to the menu function based on the radius formula, and further accurately determine the root node corresponding to the menu function in the multi-user tree menu.
303. And constructing a tree menu corresponding to the target user according to each root node and the target father node.
After the electronic equipment acquires the root node and the target father node, a tree menu corresponding to the target user can be constructed according to the root node and the target father node.
In some embodiments, after step 303, the method may further comprise: the electronic equipment responds to the function query operation aiming at the target user, and determines the menu function to be queried corresponding to the target user; under the condition that the menu function to be queried is not included in the tree menu, the electronic equipment updates the tree menu according to the use frequency of the menu function to be queried, and the updated tree menu is obtained.
In the process of using the constructed tree menu, a user can input a function query operation into the electronic equipment; then, the electronic equipment determines a menu function to be queried corresponding to the target user based on the function query operation; and then, the electronic equipment judges whether the constructed tree menu comprises the menu function to be queried or not, and updates the tree menu by using the using frequency of the menu function to be queried under the condition that the constructed tree menu does not comprise the menu function to be queried, so as to obtain an updated tree menu.
And the electronic equipment outputs the tree menu and the menu function to be queried under the condition that the tree menu comprises the menu function to be queried.
Optionally, when the electronic device includes the menu function to be queried in the tree menu, outputting the tree menu and the menu function to be queried may include: and under the condition that the electronic equipment comprises the menu function to be queried in the tree menu, displaying the tree menu and the menu function to be queried on a display screen of the electronic equipment. So that the user can intuitively know the functions of the tree menu and the menu to be queried.
Exemplary, as shown in fig. 4, the structure of the tree menu corresponding to the target user provided by the invention is schematically shown. In fig. 4, the target user corresponding tree menu includes a plurality of target parent nodes and a plurality of root nodes to which the respective target parent nodes are directly connected.
Exemplary, as shown in fig. 5, a schematic diagram of a page function manager provided by the present invention is shown. In fig. 5, the page function manager may include a page presentation device and a server analysis management device.
Wherein the server analysis management apparatus may include: a data management unit and a data analysis unit;
the page display device may include: an information calling unit and a function display unit; a drawing unit may also be included.
It should be noted that the drawing unit may receive json data corresponding to the tree menu sent by the data analysis unit, and draw the tree menu in the function presentation unit by using a scalable vector graphics (Scalable Vector Graphics, SVG) drawing method.
The tree menu is in the form of a natural tree, namely, a target father node and at least one root node, wherein the root node is a natural tree.
Optionally, a configuration area is arranged on the upper right side of the page in the function display unit, and the configuration area can be configured with information such as the positions of nodes in the tree menu, the size of the whole tree, the number of layers of display nodes, the maximum radius and the minimum radius of the nodes, the color of connecting lines between the nodes, the types of the connecting lines, the positions of characters and the like.
Alternatively, the nodes in the tree menu may be represented by circles, where the keywords of the current menu function are written inside the circles, and the names of the current menu function are written below the circles.
Optionally, the sizes of the corresponding nodes are the same when the use frequency is smaller than or equal to a preset frequency threshold, and the sizes of the corresponding nodes when the use frequency is larger than the preset frequency threshold can be obtained according to a line number radius formula.
After the function display unit responds to the operation of clicking the tree menu by a user, a rectangular frame is popped up in the current page in the function display unit, wherein the rectangular frame occupies a preset percentage of the total current page (for example, the preset percentage is a middle page), and in addition, the rectangular frame can realize the zooming in, zooming out, closing and dragging positions based on the configuration operation of the user.
Alternatively, the inside of the rectangular box may present menu functions desired by the user.
Optionally, under the condition that the current tree menu is blocked, responding to a first moving operation of a user, and moving a mouse to the root of the current tree menu, so that the complete current tree menu can be displayed. Wherein, all the rectangular boxes which are popped up are reduced to the side of the page, so as to realize the icon form reduced display.
Alternatively, in the case where the current menu function is blocked, the current menu function may be moved to a page position where it is not blocked in response to a second movement operation by the user.
Optionally, in the case of a new menu function, the clicking operation of the user may be responded to click on the function icon of the page sidebar, so as to restore the original size of the rectangular frame corresponding to the new menu function.
In the embodiment of the invention, a plurality of menu functions corresponding to a target user and the use frequency corresponding to each menu function are acquired; determining a corresponding root node of the menu function in the multi-user tree menu according to the corresponding use frequency of the menu function; determining a target father node corresponding to the root node; and constructing a tree menu corresponding to the target user according to each root node and the target father node. The method is used for solving the defect that a B/S management system in the prior art cannot accurately and rapidly inquire the menu functions required by a user by utilizing three-level menus, and realizing the construction of the tree-shaped menu corresponding to the target user by utilizing the using frequency of the menu functions, so that the electronic equipment can accurately and rapidly inquire the menu functions required by the target user based on the tree-shaped menu.
The device for constructing the menu page provided by the invention is described below, and the device for constructing the menu page described below and the method for constructing the menu page described above can be referred to correspondingly.
As shown in fig. 6, a schematic structural diagram of a device for constructing a menu page provided by the present invention may include:
an obtaining module 601, configured to obtain a plurality of menu functions corresponding to a target user and usage frequencies corresponding to the menu functions;
the processing module 602 is configured to determine, according to a frequency of use corresponding to the menu function, a root node corresponding to the menu function in the multi-user tree menu; determining a target father node corresponding to the root node, wherein the target father node is matched with user information corresponding to the target user; and constructing a tree menu corresponding to the target user according to each root node and the target father node.
Optionally, the acquiring module 601 is specifically configured to acquire a first parent node directly connected to the root node;
the processing module 602 is specifically configured to determine whether the first parent node matches the user information; s2, determining the first father node as the target father node under the condition that the first father node is matched with the user information; s3, under the condition that the first father node is not matched with the user information, acquiring a second father node directly connected with the first father node; and taking the second father node as a new first father node, and repeatedly executing the S1-S3 until the new first father node is matched with the user information.
Optionally, the acquiring module 601 is specifically configured to acquire a plurality of initial menu functions corresponding to the target user;
the processing module 602 is specifically configured to determine, as the plurality of menu functions, a plurality of initial menu functions corresponding to a frequency of use greater than a preset frequency domain threshold value among the plurality of initial menu functions according to the frequency of use corresponding to each initial menu function.
Optionally, the root node corresponding to the menu function in the multi-user tree menu is determined according to the maximum use frequency and the minimum use frequency corresponding to the menu function.
Optionally, the processing module 602 is specifically configured to determine, in response to a data query operation for the target user, a keyword corresponding to the target user; and determining the menu functions corresponding to the target user from the multi-user tree menu according to the keywords.
Optionally, the processing module 602 is further configured to determine a menu function to be queried corresponding to the target user in response to a function query operation for the target user; and under the condition that the menu function to be queried is not included in the tree menu, updating the tree menu according to the use frequency of the menu function to be queried, and obtaining an updated tree menu.
As shown in fig. 7, a schematic structural diagram of an electronic device provided by the present invention may include: processor 710, communication interface (Communications Interface) 720, memory 730, and communication bus 740, wherein processor 710, communication interface 720, memory 730 communicate with each other via communication bus 740. Processor 710 may invoke logic instructions in memory 730 to perform a method of building a menu page, the method comprising: acquiring a plurality of menu functions corresponding to a target user and the use frequency corresponding to each menu function; determining a corresponding root node of the menu function in the multi-user tree menu according to the corresponding use frequency of the menu function; determining a target father node corresponding to the root node, wherein the target father node is matched with user information corresponding to the target user; and constructing a tree menu corresponding to the target user according to each root node and the target father node.
Further, the logic instructions in the memory 730 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute a method for constructing a menu page provided by the above methods, and the method includes: acquiring a plurality of menu functions corresponding to a target user and the use frequency corresponding to each menu function; determining a corresponding root node of the menu function in the multi-user tree menu according to the corresponding use frequency of the menu function; determining a target father node corresponding to the root node, wherein the target father node is matched with user information corresponding to the target user; and constructing a tree menu corresponding to the target user according to each root node and the target father node.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a method of building a menu page provided by the methods described above, the method comprising: acquiring a plurality of menu functions corresponding to a target user and the use frequency corresponding to each menu function; determining a corresponding root node of the menu function in the multi-user tree menu according to the corresponding use frequency of the menu function; determining a target father node corresponding to the root node, wherein the target father node is matched with user information corresponding to the target user; and constructing a tree menu corresponding to the target user according to each root node and the target father node.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. The method for constructing the menu page is characterized by comprising the following steps:
acquiring a plurality of menu functions corresponding to a target user and the use frequency corresponding to each menu function;
determining a corresponding root node of the menu function in a multi-user tree menu according to the corresponding use frequency of the menu function; acquiring a first father node directly connected with the root node; s1, judging whether the first father node is matched with user information or not; s2, determining the first parent node as a target parent node under the condition that the first parent node is matched with the user information; s3, under the condition that the first father node is not matched with the user information, acquiring a second father node directly connected with the first father node; taking the second father node as a new first father node, and repeatedly executing the S1-S3 until the new first father node is matched with the user information;
and constructing a tree menu corresponding to the target user according to the root nodes and the target father node.
2. The method according to claim 1, wherein the obtaining a plurality of menu functions corresponding to the target user includes:
acquiring a plurality of initial menu functions corresponding to the target user;
and determining a plurality of initial menu functions corresponding to the use frequency larger than a preset frequency domain threshold value in the plurality of initial menu functions as the plurality of menu functions according to the use frequency corresponding to each initial menu function.
3. A method according to claim 1 or 2, characterized in that,
and the corresponding root node of the menu function in the multi-user tree menu is determined according to the maximum use frequency and the minimum use frequency corresponding to the menu function.
4. The method according to claim 1 or 2, wherein the acquiring a plurality of menu functions corresponding to the target user includes:
responding to the data query operation aiming at the target user, and determining keywords corresponding to the target user;
and determining the menu functions corresponding to the target user from the multi-user tree menu according to the keywords.
5. The method according to claim 1 or 2, characterized in that the method further comprises:
responding to a function query operation aiming at the target user, and determining a menu function to be queried corresponding to the target user;
and under the condition that the menu function to be queried is not included in the tree menu, updating the tree menu according to the using frequency of the menu function to be queried, and obtaining an updated tree menu.
6. A menu page building apparatus, comprising:
the acquisition module is used for acquiring a plurality of menu functions corresponding to the target user and the use frequency corresponding to each menu function;
the processing module is used for determining a root node corresponding to the menu function in the multi-user tree menu according to the use frequency corresponding to the menu function;
the acquisition module is further used for acquiring a first father node directly connected with the root node;
the processing module is further configured to determine whether the first parent node is matched with the user information; s2, determining the first father node as a target father node under the condition that the first father node is matched with user information; s3, under the condition that the first father node is not matched with the user information, acquiring a second father node directly connected with the first father node; taking the second father node as a new first father node, and repeatedly executing the S1-S3 until the new first father node is matched with the user information; and constructing a tree menu corresponding to the target user according to the root nodes and the target father node.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of constructing a menu page according to any one of claims 1 to 5 when the program is executed by the processor.
8. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements a method of building a menu page according to any one of claims 1 to 5.
CN202310044664.7A 2023-01-30 2023-01-30 Method and device for constructing menu page, electronic equipment and storage medium Active CN115795203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310044664.7A CN115795203B (en) 2023-01-30 2023-01-30 Method and device for constructing menu page, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310044664.7A CN115795203B (en) 2023-01-30 2023-01-30 Method and device for constructing menu page, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115795203A CN115795203A (en) 2023-03-14
CN115795203B true CN115795203B (en) 2023-06-06

Family

ID=85429160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310044664.7A Active CN115795203B (en) 2023-01-30 2023-01-30 Method and device for constructing menu page, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115795203B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116185413B (en) * 2023-04-24 2023-08-01 山东捷瑞数字科技股份有限公司 Method, system, device and medium for generating specified menu based on three-dimensional engine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880395A (en) * 2012-09-17 2013-01-16 深圳中兴网信科技有限公司 System and method for intelligently adjusting tree menu
CN106302483A (en) * 2016-08-19 2017-01-04 上海帜讯信息技术股份有限公司 Decentralized management method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484099B (en) * 2014-11-18 2018-01-19 珠海格力电器股份有限公司 A kind of method and device for showing menu
CN110780793B (en) * 2019-10-31 2021-11-09 北京梆梆安全科技有限公司 Tree menu construction method and device, electronic equipment and storage medium
CN113204726A (en) * 2021-07-07 2021-08-03 苏州浪潮智能科技有限公司 BS architecture page response time optimization method, device, equipment and medium
CN115048174A (en) * 2022-06-22 2022-09-13 平安科技(深圳)有限公司 User-based personalized menu generation method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880395A (en) * 2012-09-17 2013-01-16 深圳中兴网信科技有限公司 System and method for intelligently adjusting tree menu
CN106302483A (en) * 2016-08-19 2017-01-04 上海帜讯信息技术股份有限公司 Decentralized management method and system

Also Published As

Publication number Publication date
CN115795203A (en) 2023-03-14

Similar Documents

Publication Publication Date Title
US11288319B1 (en) Generating trending natural language request recommendations
US11017764B1 (en) Predicting follow-on requests to a natural language request received by a natural language processing system
US9024955B2 (en) Method and system for displaying proiritized live thumbnail of process graphic views
CN108205674B (en) Social APP content identification method, electronic device, storage medium and system
US10049473B2 (en) Systems and methods for providing for third party visualizations
US10083247B2 (en) Generating state-driven role-based landing pages
US20150026167A1 (en) Discovering fields to filter data returned in response to a search
CN107908442B (en) Spring-based resource loading method and device, terminal equipment and computer-readable storage medium
CN104268229B (en) Resource obtaining method and device based on multi-process browser
US10268655B2 (en) Method, device, server and storage medium of searching a group based on social network
CN115795203B (en) Method and device for constructing menu page, electronic equipment and storage medium
CN103678704A (en) Picture recognition method, system, equipment and device based on picture information
WO2017142792A1 (en) Malware identification using qualitative data
US20240078491A1 (en) Systems and methods for distributed risk analysis
CN107122104B (en) Data display method and device
JP7369229B2 (en) How to change the skin of the mini program page, devices and electronic devices
CN110765158A (en) Paging query method, system and device
CN113010255B (en) Interaction method and device based on binding session group and computer equipment
CN111191174A (en) Method, system and device for integrating Spanish Bitums
WO2019186777A1 (en) Information processing device, control method, and program
CN113010059B (en) Application icon management method and device and electronic equipment
CN110659096B (en) Method, device, system and storage medium for displaying network topological graph
CN115687704A (en) Information display method and device, electronic equipment and computer readable storage medium
CN113094367A (en) Data processing method and device and server
CN110232393B (en) Data processing method and device, storage medium and electronic 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