CN109308284B - Report menu generation method and device, computer equipment and storage medium - Google Patents

Report menu generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109308284B
CN109308284B CN201811137565.9A CN201811137565A CN109308284B CN 109308284 B CN109308284 B CN 109308284B CN 201811137565 A CN201811137565 A CN 201811137565A CN 109308284 B CN109308284 B CN 109308284B
Authority
CN
China
Prior art keywords
menu
node
report
child
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
CN201811137565.9A
Other languages
Chinese (zh)
Other versions
CN109308284A (en
Inventor
张海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201811137565.9A priority Critical patent/CN109308284B/en
Publication of CN109308284A publication Critical patent/CN109308284A/en
Application granted granted Critical
Publication of CN109308284B publication Critical patent/CN109308284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a report menu generation method, a report menu generation device, computer equipment and a storage medium. The method comprises the steps of obtaining menu attribute setting information corresponding to an uploaded report; acquiring a current menu tree and each node in the menu tree; analyzing and acquiring the belonged parent level menu included in the menu attribute setting information, positioning a corresponding parent node in a menu tree according to the belonged parent level menu included in the menu attribute setting information, and establishing a subordinate relation between the node corresponding to the report and the parent node; if the menu query instruction is detected, traversing the menu tree according to the menu name corresponding to the menu query instruction, and if the corresponding menu name is queried in the menu tree, displaying the father node and the child node corresponding to the menu name. The method realizes the display of the catalogue of the report forms through the tree structure, is convenient for a user to quickly locate the report forms to be searched, and can quickly map the report forms only by correspondingly adding nodes in the tree structure when the report forms are newly uploaded.

Description

Report menu generation method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of data report technologies, and in particular, to a report menu generating method, apparatus, computer device, and storage medium.
Background
At present, the file storage structure in the shared folder deployed in windows system (computer operating system developed by microsoft corporation), namely the format of "folder-subfolder-specific file", but as the folder hierarchy is deepened, it is difficult for the user to find the required folder to find the report, resulting in low efficiency of locating the report.
Content of the application
The embodiment of the application provides a report menu generation method, a report menu generation device, computer equipment and a storage medium, and aims to solve the problem that in the prior art, the efficiency of positioning a report is low because a file storage structure in a folder is a multi-layer folder structure.
In a first aspect, an embodiment of the present application provides a report menu generating method, including:
acquiring menu attribute setting information corresponding to the uploaded report;
acquiring a current menu tree and each node in the menu tree;
analyzing and acquiring the belonged parent level menu included in the menu attribute setting information, positioning a corresponding parent node in a menu tree according to the belonged parent level menu included in the menu attribute setting information, and establishing a subordinate relation between the node corresponding to the report and the parent node;
if the menu query instruction is detected, traversing the menu tree according to the menu name corresponding to the menu query instruction, and if the corresponding menu name is queried in the menu tree, displaying the father node and the child node corresponding to the menu name.
In a second aspect, an embodiment of the present application provides a report menu generating apparatus, including:
the menu attribute acquisition unit is used for acquiring menu attribute setting information corresponding to the uploaded report;
the menu tree acquisition unit is used for acquiring the current menu tree and each node in the menu tree;
the report node setting unit is used for analyzing and acquiring the father-level menu included in the menu attribute setting information, positioning the corresponding father node in the menu tree according to the father-level menu included in the menu attribute setting information, and establishing a subordinate relation between the node corresponding to the report and the father node;
the query unit is used for traversing the menu tree according to the menu name corresponding to the menu query instruction if the menu query instruction is detected, and displaying the father node and the child node corresponding to the menu name if the corresponding menu name is queried in the menu tree.
In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the report menu generating method described in the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, where the computer program includes program instructions, where the program instructions when executed by a processor cause the processor to perform the report menu generating method according to the first aspect.
The embodiment of the application provides a report menu generation method, a report menu generation device, computer equipment and a storage medium. The method comprises the steps of obtaining menu attribute setting information corresponding to an uploaded report; acquiring a current menu tree and each node in the menu tree; analyzing and acquiring the belonged parent level menu included in the menu attribute setting information, positioning a corresponding parent node in a menu tree according to the belonged parent level menu included in the menu attribute setting information, and establishing a subordinate relation between the node corresponding to the report and the parent node; if the menu query instruction is detected, traversing the menu tree according to the menu name corresponding to the menu query instruction, and if the corresponding menu name is queried in the menu tree, displaying the father node and the child node corresponding to the menu name. The method realizes the display of the catalogue of the report forms through the tree structure, is convenient for a user to quickly locate the report forms to be searched, and can quickly map the report forms only by correspondingly adding nodes in the tree structure when the report forms are newly uploaded.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a report menu generating method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a report menu generating method according to an embodiment of the present application
FIG. 3 is a schematic sub-flowchart of a report menu generating method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another sub-flowchart of the report menu generating method according to the embodiment of the present application;
FIG. 5 is another flow chart of a report menu generating method according to an embodiment of the present application;
FIG. 6 is a schematic block diagram of a report menu generating device according to an embodiment of the present application;
FIG. 7 is another schematic block diagram of a report menu generating device according to an embodiment of the present application;
FIG. 8 is a schematic block diagram of a subunit of the report menu generating device according to the embodiment of the present application;
FIG. 9 is a schematic block diagram of another subunit of the report menu generating device according to an embodiment of the present application;
FIG. 10 is another schematic block diagram of a report menu generating device according to an embodiment of the present application;
fig. 11 is a schematic block diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1, fig. 1 is a schematic flowchart of a report menu generating method according to an embodiment of the present application. The report menu generating method is applied to the management server, the method is executed through application software installed in the management server, and a plurality of user terminals (namely report uploading ends) are connected with the management server through a network so as to transmit information. The user terminal is terminal equipment with an internet access function, such as a desktop computer, a notebook computer, a tablet computer or a mobile phone; the management server is an enterprise terminal for generating report menus.
As shown in fig. 1, the method includes steps S101 to S104.
S101, acquiring menu attribute setting information corresponding to the uploaded report.
In this embodiment, when a user uploads a report to a management server in a manual or automatic manner, menu attribute setting information set by the user on the report needs to be acquired in the management server; wherein the menu attribute setting information includes at least: the menu name, report URL address of menu mapping, menu ordering number; the parent level menu is used for indicating that the current report is subordinate to another Zhang Baobiao (the data in the child table is probably mostly subordinate to the parent table), the menu name is used for indicating the name of the node when the current report is mapped to the node, the URL address of the report mapped by the menu is used for indicating the unique address (URL is used for indicating a uniform resource locator) of the source report of the current report on the Internet, and the menu ordering number is used for indicating the number of the child table subordinate to the parent table and displaying the corresponding node of the child table according to the sequence from small to large in the same parent level menu.
S102, acquiring a current menu tree and each node in the menu tree.
In one embodiment, as shown in fig. 2, step S102 further includes:
s1021, mapping to obtain an initial topological graph corresponding to the current menu tree according to the current menu tree.
In this embodiment, after the management server receives the current report, it needs to acquire the current menu tree existing in the management server and each node in the menu tree; thus, when the new report is uploaded, the report can be judged to be subordinate to which parent node, and the new report is added into the menu tree as a new child node.
In addition, the current menu tree is displayed in a topological graph mode, and the subordinate relation between the father node and the child node can be displayed more intuitively. The mapping is to draw each level node of the menu tree into a corresponding level node on the topology map, the menu tree is only a simpler display of a smaller area on the left side of the page, and in order to facilitate the operation and viewing of a user, the menu tree can be mapped into a topology map displayed in a larger area.
In one embodiment, as shown in fig. 3, step S1021 includes:
S10211, mapping each father node in the menu tree to a father node in the initial topological graph, and mapping the name of each father node in the menu tree to a corresponding father node in the initial topological graph;
s10212, mapping each layer of child nodes in the menu tree into child nodes of a corresponding level in the initial topological graph, and mapping the name of each child node in the menu tree to the corresponding child node in the initial topological graph according to the subordinate relation between the father node and the child node.
In this embodiment, each parent node in the menu tree is mapped to a parent node in the initial topology map, and the name of each parent node (the name of the node is understood as the menu name) is mapped to the corresponding parent node in the initial topology map.
After the mapping of the parent nodes is completed, the first-level child nodes need to be acquired, the first-level child nodes are mapped into the first-level child nodes in the initial topological graph according to the same mode as the parent nodes, then each first-level child node is connected with the corresponding parent node according to the subordinate relation, for example, the parent node to which the first-level child node A belongs is a, and then the first-level child node A is connected with the parent node through the connecting line. Mapping of the second-N-th level child nodes onto the initial topology map is accomplished in the same manner.
S103, analyzing and acquiring the affiliated father-level menu included in the menu attribute setting information, positioning the corresponding father node in the menu tree according to the affiliated father-level menu included in the menu attribute setting information, and establishing a subordinate relation between the node corresponding to the report and the father node.
In one embodiment, as shown in fig. 4, step S103 includes:
s1031, locating a father node to which a node corresponding to the report belongs by traversing the nodes in the menu tree;
s1032, acquiring the number of the child nodes of the father node, and judging whether the number of the child nodes of the father node is equal to 0;
s1033, if the number of the child nodes of the father node is 0, creating a corresponding number of child nodes on the initial topological graph, mapping the node corresponding to the report to the newly created child nodes, and adding connecting lines between the child nodes corresponding to the report and the father node to complete establishment of the subordinate relationship;
s1034, if the number of the child nodes of the father node is larger than 0, acquiring the number of the child nodes of the father node, and acquiring the menu sequence number of each child node included in the father node;
s1035, inserting the nodes corresponding to the report into the child nodes of the father node according to the menu ordering numbers of the nodes corresponding to the report, and adding connecting wires between the child nodes corresponding to the report and the father node to complete establishment of the subordinate relationship.
In this embodiment, a node corresponding to a report is located in a menu tree according to a parent level menu to which the report belongs in the menu tree, then whether the number of child nodes in a next layer of the parent node is 0 is judged, if the number of child nodes of the parent node is 0, a corresponding number of child nodes are newly built on an initial topology graph, and the node corresponding to the report is mapped onto the newly built child nodes (that is, no child node is arranged below the parent node, no child node is added according to a ranking number, and a connecting line of a subordinate relationship is directly newly built and added); if the number of the child nodes of the father node is greater than 0, the number of the child nodes of the father node is obtained, the menu sequence number of each child node included in the father node is obtained, and then the nodes corresponding to the report are inserted into the child nodes of the father node according to the menu sequence number of the nodes corresponding to the report in an ascending order.
And S104, traversing the menu tree according to the menu name corresponding to the menu query instruction if the menu query instruction is detected, and displaying the father node and the child node corresponding to the menu name if the corresponding menu name is queried in the menu tree.
In this embodiment, when a menu query instruction of a user is obtained, a corresponding child node and a parent node corresponding to the child node need to be queried in a menu tree according to a menu name, and after the query of the node is completed, the parent node and the child node corresponding to the menu name are directly displayed, so that the user can be ensured to quickly search the child node or the parent node according to the menu name, and the storage position of the report is quickly located.
In one embodiment, as shown in fig. 5, step S104 further includes:
s105, the report URL address mapped according to the menu of the child node is linked to the corresponding report, and the report is started and displayed.
In this embodiment, after the query of the corresponding child node and the parent node corresponding to the child node is completed according to the menu name, the report URL address mapped by the menu of the child node is directly linked to the uploaded report stored in the server, and when the user is detected to click on the child node, the report URL address (URL address, that is, uniform resource locator, is a concise representation of the location and access method of the resource available from the internet, that is, the address of the standard resource on the internet) mapped by the menu of the child node is extracted and displayed.
In one embodiment, step S105 further includes:
if a node selection instruction is detected, a report corresponding to the selected node is obtained, the report is used as an input parameter of a preset chart visualization function, a chart corresponding to the report is obtained, and corresponding operation is carried out on the chart according to the operation type.
In this embodiment, after a plurality of reports are uploaded at the management server, and after a menu tree is generated, when a user needs to view a report corresponding to a certain node in the menu tree and an image corresponding to the report, the node needs to be selected on the menu tree, and the report corresponding to the node (the report is a static report) can be located after the node is selected, and because the static report is generally not editable (such as performing interactive operations such as dynamic screening, contour amplification, resetting, etc. of a data range such as lasso, a box, etc.), the report corresponding to the node needs to be subjected to visual processing.
The method realizes the display of the catalogue of the report forms through the tree structure, is convenient for a user to quickly locate the report forms to be searched, and can quickly map the report forms only by correspondingly adding nodes in the tree structure when the report forms are newly uploaded.
The embodiment of the application also provides a report menu generating device which is used for executing any embodiment of the report menu generating method. Specifically, referring to fig. 6, fig. 6 is a schematic block diagram of a report menu generating apparatus according to an embodiment of the present application. The report menu generating apparatus 100 may be configured in a management server.
As shown in fig. 6, the report menu generating apparatus 100 includes a menu attribute acquiring unit 101, a menu tree acquiring unit 102, a report node setting unit 103, and a query unit 104.
And a menu attribute acquiring unit 101 for acquiring menu attribute setting information corresponding to the uploaded report.
In this embodiment, when a user uploads a report to a management server in a manual or automatic manner, menu attribute setting information set by the user on the report needs to be acquired in the management server; wherein the menu attribute setting information includes at least: the menu name, report URL address of menu mapping, menu ordering number; the parent level menu is used for indicating that the current report is subordinate to another Zhang Baobiao (the data in the child table is probably mostly subordinate to the parent table), the menu name is used for indicating the name of the node when the current report is mapped to the node, the URL address of the report mapped by the menu is used for indicating the unique address (URL is used for indicating a uniform resource locator) of the source report of the current report on the Internet, and the menu ordering number is used for indicating the number of the child table subordinate to the parent table and displaying the corresponding node of the child table according to the sequence from small to large in the same parent level menu.
A menu tree obtaining unit 102, configured to obtain a current menu tree, and each node in the menu tree.
In one embodiment, as shown in fig. 7, the report menu generating apparatus 100 further includes:
the topology map mapping unit 1021 is configured to map an initial topology map corresponding to a current menu tree according to the current menu tree.
In this embodiment, after the management server receives the current report, it needs to acquire the current menu tree existing in the management server and each node in the menu tree; thus, when the new report is uploaded, the report can be judged to be subordinate to which parent node, and the new report is added into the menu tree as a new child node.
In addition, the current menu tree is displayed in a topological graph mode, and the subordinate relation between the father node and the child node can be displayed more intuitively. The mapping is to draw each level node of the menu tree into a corresponding level node on the topology map, the menu tree is only a simpler display of a smaller area on the left side of the page, and in order to facilitate the operation and viewing of a user, the menu tree can be mapped into a topology map displayed in a larger area.
In one embodiment, as shown in fig. 8, the topology map mapping unit 1021 includes:
a parent node mapping unit 10211, configured to map each parent node in the menu tree to a parent node in the initial topology map, and map a name of each parent node in the menu tree to a corresponding parent node in the initial topology map;
the child node mapping unit 10212 is configured to map each layer of child nodes in the menu tree to child nodes of a corresponding level in the initial topology map, and map a name of each child node in the menu tree to a corresponding child node in the initial topology map according to a subordinate relationship between a parent node and the child node.
In this embodiment, each parent node in the menu tree is mapped to a parent node in the initial topology map, and the name of each parent node (the name of the node is understood as the menu name) is mapped to the corresponding parent node in the initial topology map.
After the mapping of the parent nodes is completed, the first-level child nodes need to be acquired, the first-level child nodes are mapped into the first-level child nodes in the initial topological graph according to the same mode as the parent nodes, then each first-level child node is connected with the corresponding parent node according to the subordinate relation, for example, the parent node to which the first-level child node A belongs is a, and then the first-level child node A is connected with the parent node through the connecting line. Mapping of the second-N-th level child nodes onto the initial topology map is accomplished in the same manner.
The report node setting unit 103 is configured to parse and obtain the parent level menu included in the menu attribute setting information, locate the corresponding parent node in the menu tree according to the parent level menu included in the menu attribute setting information, and establish a subordinate relationship between the node corresponding to the report and the parent node.
In an embodiment, as shown in fig. 9, the report node setting unit 103 includes:
the node traversing positioning unit 1031 is configured to position a parent node to which a node corresponding to the report belongs by traversing nodes in the menu tree;
a child node number judging unit 1032, configured to obtain the number of child nodes of the parent node, and judge whether the number of child nodes of the parent node is equal to 0;
a first child node establishing unit 1033, configured to, if the number of child nodes of the parent node is 0, create a corresponding number of child nodes on the initial topology map, map the node corresponding to the report to the newly created child nodes, and add connection lines between the child nodes corresponding to the report and the parent node to complete establishment of the subordinate relationship;
a second child node establishing unit 1034, configured to obtain the number of child nodes of the parent node and obtain a menu row number of each child node included in the parent node if the number of child nodes of the parent node is greater than 0;
The child node inserting unit 1035 is configured to insert the nodes corresponding to the report into the child nodes of the parent node according to the menu ordering numbers of the nodes corresponding to the report, and add connection lines between the child nodes corresponding to the report and the parent node to complete establishment of the subordinate relationship.
In this embodiment, a node corresponding to a report is located in a menu tree according to a parent level menu to which the report belongs in the menu tree, then whether the number of child nodes in a next layer of the parent node is 0 is judged, if the number of child nodes of the parent node is 0, a corresponding number of child nodes are newly built on an initial topology graph, and the node corresponding to the report is mapped onto the newly built child nodes (that is, no child node is arranged below the parent node, no child node is added according to a ranking number, and a connecting line of a subordinate relationship is directly newly built and added); if the number of the child nodes of the father node is greater than 0, the number of the child nodes of the father node is obtained, the menu sequence number of each child node included in the father node is obtained, and then the nodes corresponding to the report are inserted into the child nodes of the father node according to the menu sequence number of the nodes corresponding to the report in an ascending order.
The query unit 104 is configured to traverse the menu tree according to the menu name corresponding to the menu query instruction if the menu query instruction is detected, and display both the parent node and the child node corresponding to the menu name if the corresponding menu name is queried in the menu tree.
In this embodiment, when a menu query instruction of a user is obtained, a corresponding child node and a parent node corresponding to the child node need to be queried in a menu tree according to a menu name, and after the query of the node is completed, the parent node and the child node corresponding to the menu name are directly displayed, so that the user can be ensured to quickly search the child node or the parent node according to the menu name, and the storage position of the report is quickly located.
In one embodiment, as shown in fig. 10, the report menu generating apparatus 100 further includes:
the report acquiring and displaying unit 105 is configured to link to a corresponding report according to the report URL address mapped by the menu of the child node, start the report, and display the report.
In this embodiment, a corresponding child node and a parent node corresponding to the child node are queried in a menu tree according to a menu name, after the query of the node is completed, a report corresponding to a report URL address mapped by a menu of the child node is directly linked to an uploaded report stored in a server, and when the user is detected to click on the child node, a report corresponding to the report URL address mapped by the menu of the child node is extracted and opened for display.
In one embodiment, the report menu generating apparatus 100 further includes:
and the icon operation unit is used for acquiring a report corresponding to the selected node if the node selection instruction is detected, taking the report as an input parameter of a preset chart visualization function, obtaining a chart corresponding to the report, and performing corresponding operation on the chart according to the operation type.
In this embodiment, after a plurality of reports are uploaded at the management server, and after a menu tree is generated, when a user needs to view a report corresponding to a certain node in the menu tree and an image corresponding to the report, the node needs to be selected on the menu tree, and the report corresponding to the node (the report is a static report) can be located after the node is selected, and because the static report is generally not editable (such as performing interactive operations such as dynamic screening, contour amplification, resetting, etc. of a data range such as lasso, a box, etc.), the report corresponding to the node needs to be subjected to visual processing.
The device realizes the display of the catalogue of the report forms through the tree structure, is convenient for a user to quickly locate the report forms to be searched, and can quickly map the report forms only by correspondingly adding nodes in the tree structure when the report forms are newly uploaded.
The report menu generating means described above may be implemented in the form of a computer program which can be run on a computer device as shown in fig. 11.
Referring to fig. 11, fig. 11 is a schematic block diagram of a computer device according to an embodiment of the present application.
With reference to FIG. 11, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a report menu generating method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a report menu generating method.
The network interface 505 is used for network communications, such as providing for the transmission of data traffic for network access, etc. It will be appreciated by those skilled in the art that the structure shown in FIG. 11 is merely a block diagram of some of the structures associated with the present inventive arrangements and does not constitute a limitation of the computer device 500 to which the present inventive arrangements may be applied, and that a particular computer device 500 may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Wherein the processor 502 is configured to execute a computer program 5032 stored in a memory to perform the following functions: acquiring menu attribute setting information corresponding to the uploaded report; acquiring a current menu tree and each node in the menu tree; analyzing and acquiring the belonged parent level menu included in the menu attribute setting information, positioning a corresponding parent node in a menu tree according to the belonged parent level menu included in the menu attribute setting information, and establishing a subordinate relation between the node corresponding to the report and the parent node; if the menu query instruction is detected, traversing the menu tree according to the menu name corresponding to the menu query instruction, and if the corresponding menu name is queried in the menu tree, displaying the father node and the child node corresponding to the menu name.
In one embodiment, the processor 502, after executing the acquisition of the current menu tree, and each node in the menu tree, further performs the following operations: and mapping to obtain an initial topological graph corresponding to the current menu tree according to the current menu tree.
In one embodiment, the processor 502 performs the following operations when performing mapping according to the current menu tree to obtain an initial topology map corresponding to the current menu tree: mapping each father node in the menu tree to a father node in the initial topological graph, and mapping the name of each father node in the menu tree to a corresponding father node in the initial topological graph; mapping each layer of child nodes in the menu tree into child nodes of a corresponding level in the initial topological graph, and mapping the name of each child node in the menu tree to the corresponding child node in the initial topological graph according to the subordinate relation between the father node and the child node.
In one embodiment, the processor 502 performs the following operations when performing locating a corresponding parent node in the menu tree according to the belonging parent level menu included in the menu attribute setting information, and establishing a affiliation between a node corresponding to the report and the parent node: positioning a father node to which a node corresponding to the report belongs by traversing the nodes in the menu tree; acquiring the number of the child nodes of the father node, and judging whether the number of the child nodes of the father node is equal to 0; if the number of the child nodes of the father node is 0, creating a corresponding number of child nodes on the initial topological graph, mapping the node corresponding to the report to the newly created child nodes, and adding connecting wires between the child nodes corresponding to the report and the father node to complete establishment of the subordinate relationship; if the number of the child nodes of the father node is larger than 0, acquiring the number of the child nodes of the father node, and acquiring the menu sequence number of each child node included in the father node; according to the menu ordering numbers of the nodes corresponding to the report, inserting the nodes corresponding to the report into the child nodes of the father node according to the ascending order, and establishing the affiliation by adding connecting wires between the child nodes corresponding to the report and the father node.
In one embodiment, after executing the presentation of the parent node and the child node corresponding to the menu name if the corresponding menu name is queried in the menu tree, the processor 502 further executes the following operations: and obtaining a report URL address mapped according to the menu of the child node, linking to a corresponding report, starting the report and displaying.
Those skilled in the art will appreciate that the embodiment of the computer device shown in fig. 11 is not limiting of the specific construction of the computer device, and in other embodiments, the computer device may include more or less components than those shown, or certain components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may include only a memory and a processor, and in such embodiments, the structure and function of the memory and the processor are consistent with the embodiment shown in fig. 11, and will not be described again.
It should be appreciated that in embodiments of the present application, the processor 502 may be a central processing unit (CentralProcessing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific IntegratedCircuit, ASIC), off-the-shelf Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the present application, a storage medium is provided. The storage medium may be a non-volatile computer readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. The program instructions, when executed by a processor, implement the steps of: acquiring menu attribute setting information corresponding to the uploaded report; acquiring a current menu tree and each node in the menu tree; analyzing and acquiring the belonged parent level menu included in the menu attribute setting information, positioning a corresponding parent node in a menu tree according to the belonged parent level menu included in the menu attribute setting information, and establishing a subordinate relation between the node corresponding to the report and the parent node; if the menu query instruction is detected, traversing the menu tree according to the menu name corresponding to the menu query instruction, and if the corresponding menu name is queried in the menu tree, displaying the father node and the child node corresponding to the menu name.
In one embodiment, the program instructions when executed by a processor perform the steps of: and mapping to obtain an initial topological graph corresponding to the current menu tree according to the current menu tree.
In one embodiment, the program instructions when executed by a processor perform the steps of: mapping each father node in the menu tree to a father node in the initial topological graph, and mapping the name of each father node in the menu tree to a corresponding father node in the initial topological graph; mapping each layer of child nodes in the menu tree into child nodes of a corresponding level in the initial topological graph, and mapping the name of each child node in the menu tree to the corresponding child node in the initial topological graph according to the subordinate relation between the father node and the child node.
In one embodiment, the program instructions when executed by a processor perform the steps of: positioning a father node to which a node corresponding to the report belongs by traversing the nodes in the menu tree; acquiring the number of the child nodes of the father node, and judging whether the number of the child nodes of the father node is equal to 0; if the number of the child nodes of the father node is 0, creating a corresponding number of child nodes on the initial topological graph, mapping the node corresponding to the report to the newly created child nodes, and adding connecting wires between the child nodes corresponding to the report and the father node to complete establishment of the subordinate relationship; if the number of the child nodes of the father node is larger than 0, acquiring the number of the child nodes of the father node, and acquiring the menu sequence number of each child node included in the father node; according to the menu ordering numbers of the nodes corresponding to the report, inserting the nodes corresponding to the report into the child nodes of the father node according to the ascending order, and establishing the affiliation by adding connecting wires between the child nodes corresponding to the report and the father node.
In one embodiment, the program instructions when executed by a processor perform the steps of: and linking the report URL address mapped according to the menu of the child node to a corresponding report, starting the report and displaying.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, device and unit described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein. Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units is merely a logical function division, there may be another division manner in actual implementation, or units having the same function may be integrated into one unit, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present application.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units may be stored in a storage medium if implemented in the form of software functional units and sold or used as stand-alone products. Based on such understanding, the technical solution of the present application is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied 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, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (8)

1. A report menu generating method, comprising:
acquiring menu attribute setting information corresponding to the uploaded report;
acquiring a current menu tree and each node in the menu tree;
analyzing and acquiring the belonged parent level menu included in the menu attribute setting information, positioning a corresponding parent node in a menu tree according to the belonged parent level menu included in the menu attribute setting information, and establishing a subordinate relation between the node corresponding to the report and the parent node;
if a menu query instruction is detected, traversing a menu tree according to a menu name corresponding to the menu query instruction, and if the corresponding menu name is queried in the menu tree, displaying a father node and a child node corresponding to the menu name;
wherein the menu attribute setting information includes at least: the menu name, report URL address of menu mapping, menu ordering number; the affiliated father level menu comprises father table information of the subordinate corresponding to the current report;
After the current menu tree and each node in the menu tree are obtained, the method further comprises the following steps:
according to the current menu tree, mapping to obtain an initial topological graph corresponding to the current menu tree;
the mapping to obtain the initial topological graph corresponding to the current menu tree according to the current menu tree comprises the following steps:
mapping each father node in the menu tree to a father node in the initial topological graph, and mapping the name of each father node in the menu tree to a corresponding father node in the initial topological graph;
mapping each layer of child nodes in the menu tree into child nodes of a corresponding level in the initial topological graph, and mapping the name of each child node in the menu tree to the corresponding child node in the initial topological graph according to the subordinate relation between the father node and the child node;
wherein the display area of the initial topological graph is larger than the display area of the menu tree.
2. The report menu generating method according to claim 1, wherein the locating the corresponding parent node in the menu tree according to the belonging parent level menu included in the menu attribute setting information, and establishing the affiliation between the node corresponding to the report and the parent node, comprises:
positioning a father node to which a node corresponding to the report belongs by traversing the nodes in the menu tree;
Acquiring the number of the child nodes of the father node, and judging whether the number of the child nodes of the father node is equal to 0;
if the number of the child nodes of the father node is 0, creating a corresponding number of child nodes on the initial topological graph, mapping the node corresponding to the report to the newly created child nodes, and adding connecting wires between the child nodes corresponding to the report and the father node to complete establishment of the subordinate relationship;
if the number of the child nodes of the father node is larger than 0, acquiring the number of the child nodes of the father node, and acquiring the menu sequence number of each child node included in the father node;
according to the menu ordering numbers of the nodes corresponding to the report, inserting the nodes corresponding to the report into the child nodes of the father node according to the ascending order, and establishing the affiliation by adding connecting wires between the child nodes corresponding to the report and the father node.
3. The report menu generating method according to claim 1, wherein if the corresponding menu name is queried in the menu tree, after displaying both the parent node and the child node corresponding to the menu name, further comprising:
and linking the report URL address mapped according to the menu of the child node to a corresponding report, starting the report and displaying.
4. A report menu generating apparatus, comprising:
the menu attribute acquisition unit is used for acquiring menu attribute setting information corresponding to the uploaded report;
the menu tree acquisition unit is used for acquiring the current menu tree and each node in the menu tree;
the report node setting unit is used for analyzing and acquiring the father-level menu included in the menu attribute setting information, positioning the corresponding father node in the menu tree according to the father-level menu included in the menu attribute setting information, and establishing a subordinate relation between the node corresponding to the report and the father node;
the query unit is used for traversing the menu tree according to the menu name corresponding to the menu query instruction if the menu query instruction is detected, and displaying the father node and the child node corresponding to the menu name if the corresponding menu name is queried in the menu tree;
wherein the menu attribute setting information includes at least: the menu name, report URL address of menu mapping, menu ordering number; the affiliated father level menu comprises father table information of the subordinate corresponding to the current report;
the report menu generating device further comprises:
the topology map mapping unit is used for mapping to obtain an initial topology map corresponding to the current menu tree according to the current menu tree;
The topology map mapping unit includes:
the parent node mapping unit is used for mapping each parent node in the menu tree into a parent node in the initial topological graph and mapping the name of each parent node in the menu tree into a corresponding parent node in the initial topological graph;
the child node mapping unit is used for mapping each layer of child nodes in the menu tree into child nodes of a corresponding level in the initial topological graph, and mapping the name of each child node in the menu tree to the corresponding child node in the initial topological graph according to the subordinate relation between the father node and the child node;
wherein the display area of the initial topological graph is larger than the display area of the menu tree.
5. The report menu generating apparatus as claimed in claim 4, wherein the report node setting unit comprises:
the node traversing and positioning unit is used for positioning the father node to which the node corresponding to the report belongs by traversing the nodes in the menu tree;
the child node number judging unit is used for acquiring the number of child nodes of the father node and judging whether the number of child nodes of the father node is equal to 0 or not;
the first child node building unit is used for building a corresponding number of child nodes on the initial topological graph if the number of child nodes of the father node is 0, mapping the corresponding nodes of the report to the newly built child nodes correspondingly, and building the subordinate relations by adding connecting wires between the child nodes corresponding to the report and the father node;
The second child node establishing unit is used for acquiring the number of child nodes of the father node and acquiring the menu sequence number of each child node included in the father node if the number of child nodes of the father node is greater than 0;
the child node inserting unit is used for inserting the nodes corresponding to the report into the child nodes of the father node according to the menu ordering numbers of the nodes corresponding to the report and the ascending order, and adding connecting wires between the child nodes corresponding to the report and the father node to complete establishment of the subordinate relationship.
6. The report menu generating apparatus of claim 4, further comprising:
and the report display unit is used for linking to the corresponding report according to the report URL address mapped by the menu of the child node, starting the report and displaying the report.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the report menu generating method of any of claims 1 to 3 when the computer program is executed.
8. A storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the report menu generating method of any one of claims 1 to 3.
CN201811137565.9A 2018-09-28 2018-09-28 Report menu generation method and device, computer equipment and storage medium Active CN109308284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811137565.9A CN109308284B (en) 2018-09-28 2018-09-28 Report menu generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811137565.9A CN109308284B (en) 2018-09-28 2018-09-28 Report menu generation method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109308284A CN109308284A (en) 2019-02-05
CN109308284B true CN109308284B (en) 2023-09-19

Family

ID=65225243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811137565.9A Active CN109308284B (en) 2018-09-28 2018-09-28 Report menu generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109308284B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111355865B (en) * 2019-04-16 2023-05-30 深圳市鸿合创新信息技术有限责任公司 Recording and broadcasting system node configuration method, equipment and storage medium
CN110333846B (en) * 2019-06-18 2022-12-06 国云科技股份有限公司 Method for quickly clearing and assembling data parent-child context list
CN110471962B (en) * 2019-07-05 2023-11-03 中国平安人寿保险股份有限公司 Method and system for generating active data report
CN111208927B (en) * 2019-12-30 2021-09-07 国电南瑞科技股份有限公司 Man-machine interface and man-machine interaction method suitable for secondary equipment of power system
CN111324258B (en) * 2020-02-04 2021-07-06 北京字节跳动网络技术有限公司 Method, device, equipment and medium for generating contents of configuration items of multilevel pull-down menu
CN111522999A (en) * 2020-04-22 2020-08-11 北京思特奇信息技术股份有限公司 Method and device for managing service operation tree
CN112433712A (en) * 2020-11-09 2021-03-02 金蝶软件(中国)有限公司 Report display method and device, computer equipment and storage medium
CN113935276B (en) * 2021-12-16 2022-03-25 北京云枢创新软件技术有限公司 Design data mapping relation construction system
CN115291773A (en) * 2022-08-09 2022-11-04 北京商银微芯科技有限公司 Tree structure data display method and device
CN116185413B (en) * 2023-04-24 2023-08-01 山东捷瑞数字科技股份有限公司 Method, system, device and medium for generating specified menu based on three-dimensional engine

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6385649B1 (en) * 1998-11-06 2002-05-07 Microsoft Corporation Routers and methods for optimal routing table compression
CN101315640A (en) * 2008-07-01 2008-12-03 中兴通讯股份有限公司 Directory management method and apparatus
WO2011128454A1 (en) * 2010-04-17 2011-10-20 The University Court Of The University Of Edinburgh Storing a directory tree structure
CN102520933A (en) * 2011-11-28 2012-06-27 深圳市五巨科技有限公司 Method and device for establishing tree menu based on user right
CN103198119A (en) * 2013-04-02 2013-07-10 浪潮电子信息产业股份有限公司 Method for fast searching all chained files having same repeating data deleting identification
CN104142952A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Method and device for showing reports
CN104699706A (en) * 2013-12-06 2015-06-10 中国移动通信集团海南有限公司 Directory tree generation method, device and system
CN105786829A (en) * 2014-12-19 2016-07-20 深圳云之家网络有限公司 Tree-form data structure display method and device
CN106294349A (en) * 2015-05-13 2017-01-04 中国核工业第五建设有限公司 Engineering management inquiry system based on structuring and customization
CN106339450A (en) * 2016-08-25 2017-01-18 成都索贝数码科技股份有限公司 Index method of tree-shaped data
CN107193569A (en) * 2017-05-31 2017-09-22 福建三元达科技有限公司 The multilevel menu management system and management method of embedded system
CN107329942A (en) * 2017-06-28 2017-11-07 深圳市康必达中创科技有限公司 Report form generation method and device based on tree structure
CN107908657A (en) * 2017-10-17 2018-04-13 平安科技(深圳)有限公司 Querying method, device, computer equipment and the storage medium of bordereau

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6970939B2 (en) * 2000-10-26 2005-11-29 Intel Corporation Method and apparatus for large payload distribution in a network
CN103226593B (en) * 2013-04-17 2016-08-24 马鞍山百助网络科技有限公司 The management method of a kind of file system and file storage terminal thereof

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6385649B1 (en) * 1998-11-06 2002-05-07 Microsoft Corporation Routers and methods for optimal routing table compression
CN101315640A (en) * 2008-07-01 2008-12-03 中兴通讯股份有限公司 Directory management method and apparatus
WO2011128454A1 (en) * 2010-04-17 2011-10-20 The University Court Of The University Of Edinburgh Storing a directory tree structure
CN102520933A (en) * 2011-11-28 2012-06-27 深圳市五巨科技有限公司 Method and device for establishing tree menu based on user right
CN103198119A (en) * 2013-04-02 2013-07-10 浪潮电子信息产业股份有限公司 Method for fast searching all chained files having same repeating data deleting identification
CN104142952A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Method and device for showing reports
CN104699706A (en) * 2013-12-06 2015-06-10 中国移动通信集团海南有限公司 Directory tree generation method, device and system
CN105786829A (en) * 2014-12-19 2016-07-20 深圳云之家网络有限公司 Tree-form data structure display method and device
CN106294349A (en) * 2015-05-13 2017-01-04 中国核工业第五建设有限公司 Engineering management inquiry system based on structuring and customization
CN106339450A (en) * 2016-08-25 2017-01-18 成都索贝数码科技股份有限公司 Index method of tree-shaped data
CN107193569A (en) * 2017-05-31 2017-09-22 福建三元达科技有限公司 The multilevel menu management system and management method of embedded system
CN107329942A (en) * 2017-06-28 2017-11-07 深圳市康必达中创科技有限公司 Report form generation method and device based on tree structure
CN107908657A (en) * 2017-10-17 2018-04-13 平安科技(深圳)有限公司 Querying method, device, computer equipment and the storage medium of bordereau

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种基于树结构的数据报表发布体系及实现;翁志良等;《计算机应用》;20020328(第03期);第31-36页 *
二叉树创建算法的研究;邓晨曦等;《湖南环境生物职业技术学院学报》;20090925(第03期);第13-16页 *

Also Published As

Publication number Publication date
CN109308284A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
CN109308284B (en) Report menu generation method and device, computer equipment and storage medium
US11366686B1 (en) Managing user data in a multitenant deployment
US11075825B2 (en) Generating and displaying topology map time-lapses of cloud computing resources
CN109388791B (en) Dynamic diagram display method and device, computer equipment and storage medium
US11822597B2 (en) Geofence-based object identification in an extended reality environment
US11410403B1 (en) Precise scaling of virtual objects in an extended reality environment
US11145123B1 (en) Generating extended reality overlays in an industrial environment
TWI478558B (en) Method, apparatus and computer program product for providing analysis and visualization of content items association
US20210019106A1 (en) Desktop Sharing Method and Mobile Terminal
US11089107B1 (en) Management of connected sensor devices
US11790649B1 (en) External asset database management in an extended reality environment
US11676345B1 (en) Automated adaptive workflows in an extended reality environment
CN112000911B (en) Page management method, device, electronic equipment and storage medium
US11699268B1 (en) Techniques for placement of extended reality objects relative to physical objects in an extended reality environment
US11670062B1 (en) Web-based three-dimensional extended reality workspace editor
US11544282B1 (en) Three-dimensional drill-down data visualization in extended reality environment
US11461408B1 (en) Location-based object identification and data visualization
CN112015696A (en) Data access method, data relationship setting method, data access device, data relationship setting device and storage medium
US20150280996A1 (en) Cloud topology visualizations
US9817891B1 (en) System, method, and computer program for creating metadata-based search queries
US11048760B1 (en) Techniques for placing content in and applying layers in an extended reality environment
CN111142989B (en) Object management method, device and storage medium
CN106055688B (en) Search result display method and device and mobile terminal
US11836869B1 (en) Generating three-dimensional data visualizations in an extended reality environment
US12019939B1 (en) Control of a display device included in a display grid

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