CN109308284A - Report menu generating method, device, computer equipment and storage medium - Google Patents
Report menu generating method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109308284A CN109308284A CN201811137565.9A CN201811137565A CN109308284A CN 109308284 A CN109308284 A CN 109308284A CN 201811137565 A CN201811137565 A CN 201811137565A CN 109308284 A CN109308284 A CN 109308284A
- Authority
- CN
- China
- Prior art keywords
- node
- menu
- report
- tree
- child node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
This application discloses report menu generating method, device, computer equipment and storage mediums.This method is by obtaining menu properties setting information corresponding with report has been uploaded;Obtain each node in current menu tree and menu tree;Parsing obtains the affiliated parent menu for including in menu properties setting information, positions corresponding father node in menu tree according to the affiliated parent menu for including in menu properties setting information, the corresponding node of report and father node are established subordinate relation;If detecting, menu queries are instructed, and instruct corresponding pad name traverse menus tree according to menu queries, if inquiring corresponding pad name in menu tree, father node corresponding with pad name and child node are shown.This method realizes the catalogue that report is shown by tree structure, the report searched needed for position rapidly convenient for user, and newly upload report when increase node need to be only corresponded in tree structure can the fast mapping report.
Description
Technical field
This application involves data sheet technical fields more particularly to a kind of report menu generating method, device, computer to set
Standby and storage medium.
Background technique
Currently, in the Shared Folders disposed in windows system (computer operating system of Microsoft's exploitation)
File storage configuration, the i.e. format of " the specific file of file-sub-folder-", but with the intensification of folder hierarchy, user
It is difficult to find required file to search report, leads to the inefficiency for positioning report.
Apply for content
The embodiment of the present application provides a kind of report menu generating method, device, computer equipment and storage medium, it is intended to
Solving in existing technical method file storage configuration in file is multi-layer folders structure, leads to the low efficiency for positioning report
Under problem.
In a first aspect, the embodiment of the present application provides a kind of report menu generating method comprising:
Obtain menu properties setting information corresponding with report has been uploaded;
Obtain each node in current menu tree and menu tree;
Parsing obtains the affiliated parent menu for including in menu properties setting information, wraps according in menu properties setting information
The affiliated parent menu included positions corresponding father node in menu tree, and the corresponding node of report and father node are established subordinate and closed
System;
If detecting, menu queries are instructed, and corresponding pad name traverse menus tree are instructed according to menu queries, if in dish
Dan Shuzhong inquires corresponding pad name, and father node corresponding with pad name and child node are shown.
Second aspect, the embodiment of the present application provide a kind of report menu formation device comprising:
Menu properties acquiring unit, for obtaining menu properties setting information corresponding with report has been uploaded;
Menu tree acquiring unit, for obtaining each node in current menu tree and menu tree;
Report node setting unit, for parsing the affiliated parent menu for obtaining and including in menu properties setting information, root
Corresponding father node is positioned in menu tree according to the affiliated parent menu for including in menu properties setting information, by the corresponding section of report
Point establishes subordinate relation with father node;
Query unit, if instructing corresponding pad name to traverse according to menu queries for detecting that menu queries are instructed
Menu tree, if inquiring corresponding pad name in menu tree, will father node corresponding with pad name and child node it is equal
It is shown.
The third aspect, the embodiment of the present application provide a kind of computer equipment again comprising memory, processor and storage
On the memory and the computer program that can run on the processor, the processor execute the computer program
Report menu generating method described in the above-mentioned first aspect of Shi Shixian.
Fourth aspect, the embodiment of the present application also provides a kind of storage mediums, wherein the storage medium is stored with calculating
Machine program, the computer program include program instruction, and described program instruction when being executed by a processor holds the processor
Report menu generating method described in the above-mentioned first aspect of row.
The embodiment of the present application provides a kind of report menu generating method, device, computer equipment and storage medium.The party
Method is by obtaining menu properties setting information corresponding with report has been uploaded;It obtains each in current menu tree and menu tree
Node;Parsing obtains the affiliated parent menu for including in menu properties setting information, includes according in menu properties setting information
Affiliated parent menu corresponding father node is positioned in menu tree, the corresponding node of report and father node are established into subordinate relation;
If detecting, menu queries are instructed, and corresponding pad name traverse menus tree are instructed according to menu queries, if looking into menu tree
Corresponding pad name is ask, father node corresponding with pad name and child node are shown.This method is realized logical
The catalogue that tree structure shows report is crossed, is only needed when positioning the required report searched rapidly convenient for user, and newly uploading report
The corresponding node that increases can the fast mapping report in tree structure.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of report menu generating method provided by the embodiments of the present application;
Fig. 2 is another flow diagram of report menu generating method provided by the embodiments of the present application
Fig. 3 is the sub-process schematic diagram of report menu generating method provided by the embodiments of the present application;
Fig. 4 is another sub-process schematic diagram of report menu generating method provided by the embodiments of the present application;
Fig. 5 is another flow diagram of report menu generating method provided by the embodiments of the present application;
Fig. 6 is the schematic block diagram of report menu formation device provided by the embodiments of the present application;
Fig. 7 is another schematic block diagram of report menu formation device provided by the embodiments of the present application;
Fig. 8 is the subelement schematic block diagram of report menu formation device provided by the embodiments of the present application;
Fig. 9 is another subelement schematic block diagram of report menu formation device provided by the embodiments of the present application;
Figure 10 is another schematic block diagram of report menu formation device provided by the embodiments of the present application;
Figure 11 is the schematic block diagram of computer equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen
Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall in the protection scope of this application.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Referring to Fig. 1, Fig. 1 is the schematic flow diagram of report menu generating method provided by the embodiments of the present application.The report
Menu generating method is applied in management server, and this method is held by the application software being installed in management server
Row, more user terminals (i.e. report upload end) are by establishing network connection with management server to carry out information transmission.Wherein,
User terminal is the terminal device with access internet function, such as desktop computer, laptop, tablet computer or mobile phone
Deng;Management server is for the enterprise terminal to report menu formation.
As shown in Figure 1, the method comprising the steps of S101~S104.
S101, menu properties setting information corresponding with report has been uploaded is obtained.
In the present embodiment, in the present embodiment, the mode of user manually or automatically, by report upload to manage clothes
When being engaged on device, need to obtain the menu properties setting information that the report is arranged in user in the management server;Wherein, menu category
Property setting information include at least: affiliated parent menu, pad name, menu mapping the address report URL, menu sequencing number;Institute
Belong to the current report of parent menu representation to be slaves to the sublist of another report (data in sublist may be most of subordinate
In parent table), pad name indicates that current report is mapped as the title of a node when node, the report URL of menu mapping
Location indicates the source report of current report unique address (URL indicates uniform resource locator) on the internet, menu sequencing
It number is that the report set by user is subordinated to which Zhang Zibiao of parent table and under same parent menu according to menu sequencing number
Sequence shows the corresponding node of sublist from small to large.
Each node in S102, acquisition current menu tree and menu tree.
In one embodiment, as shown in Fig. 2, after step S102 further include:
S1021, according to current menu tree, mapping obtains and initial topology figure corresponding to current menu tree.
In the present embodiment, it after current report being had received in management server, needs to obtain in management server and deposit
Current menu tree and menu tree in each node;Already present each report in management server has been combed in this way, being equivalent to
Table can judge which father node it is subordinated to when new report upload, to be added to dish as new child node
Dan Shuzhong.
Moreover, current menu tree is shown by way of topological diagram, it can more intuitive display father node and son section
The subordinate relation of point.Mapping is exactly the corresponding level section for being plotted as opening up correspondingly by each hierarchy node of menu tree on complement
Point, menu tree are a kind of display of relatively simple smaller area on the left of the page, for the ease of user's operation and are checked, also
Menu tree can be mapped as to one and open up complement what large area was shown.
In one embodiment, as shown in figure 3, step S1021 includes:
S10211, father node each in menu tree is mapped as to the father node in initial topology figure, and will be every in menu tree
The title of one father node maps to corresponding father node in initial topology figure;
S10212, the child node that level of child nodes each in menu tree is mapped as to corresponding level in initial topology figure, and root
With the subordinate relation of child node the title of child node each in menu tree is mapped to according to father node corresponding in initial topology figure
Child node.
In the present embodiment, by the way that father node each in menu tree is mapped as the father node in initial topology figure, and will
The title (title of node is interpreted as pad name) of each father node maps to corresponding father node in initial topology figure.
It after the mapping for completing father node, needs to obtain the first level child node, is reflected according to mode same as father node
It penetrates as the first level of child nodes in initial topology figure, later closes every one first level of child nodes according to subordinate with corresponding father node
System is attached the connection of line, such as the affiliated parent node of the first level of child nodes A is a, then the first level of child nodes A is passed through connection
Line is connect with parent node.It is completed in the second level child node-n-th layer grade child node to initial topology figure by same mode
Mapping.
S103, parsing obtain the affiliated parent menu for including in menu properties setting information, are arranged according to menu properties and are believed
The affiliated parent menu for including in breath positions corresponding father node in menu tree, by the corresponding node of report and father node establish from
Category relationship.
In one embodiment, as shown in figure 4, step S103 includes:
S1031, by traverse menus tree interior joint, position father node belonging to the corresponding node of report;
S1032, obtain the father node child node number, judge the child node of the father node number whether etc.
In 0;
If the number of the child node of S1033, the father node is 0, the son section of corresponding number is created on initial topology figure
Point, and by the corresponding node correspondence mappings to newly-built child node of report, it will be between the corresponding child node of report and father node
Increase the foundation that subordinate relation is completed in connecting line;
If the number of the child node of S1034, the father node is greater than 0, the child node number of the father node is obtained, and obtain
Take the menu sequencing number of each child node included by the father node;
S1035, according to the menu sequencing number of the corresponding node of report, the corresponding node of report is pressed to the sequence of ascending order arrangement
Be inserted into the child node of the father node, and will between the corresponding child node of report and father node increase connecting line be completed from
The foundation of category relationship.
In the present embodiment, node category corresponding to report is first positioned in menu tree according to the affiliated parent menu of report
Which father node in menu tree, if whether the child node number for then judging lower layer of the father node is 0 father node
The number of child node is 0, creates the child node of corresponding number on initial topology figure, and by the corresponding node correspondence mappings of report
(can not there is no child node on to newly-built child node below father node, just be not necessarily to according to a sequence number addition child node, directly
Create and increase the connecting line of subordinate relation);If the number of the child node of the father node is greater than 0, father's section is obtained
The child node number of point, and the menu sequencing number of each child node included by the father node is obtained, later according to report
The corresponding node of report is sequentially inserted into as what ascending order arranged to the son section of the father node by the menu sequencing number of corresponding node
Point in.
If S104, detecting that menu queries instruct, corresponding pad name traverse menus tree is instructed according to menu queries, if
Corresponding pad name is inquired in menu tree, and father node corresponding with pad name and child node are shown.
In the present embodiment, it when the menu queries for getting user instruct, need to be looked into menu tree according to pad name
Corresponding child node and father node corresponding with the child node are ask, it, directly will be with menu identity after the inquiry for completing above-mentioned node
Claim corresponding father node and child node to be shown, with ensure user can quickly according to pad name search child node or
Father node, quickly to position the storage location of report.
In one embodiment, as shown in figure 5, after step S104 further include:
S105, corresponding report is linked to according to the address report URL that the menu of child node maps, starts report and is opened up
Show.
In the present embodiment, corresponding child node and corresponding with the child node is inquired in menu tree according to pad name
Father node, after the inquiry for completing above-mentioned node, directly according to the menu of the child node map the address report URL be linked to clothes
Stored in business device to have uploaded report, when detecting that user clicks the child node, the menu for extracting the child node is mapped
(address URL, i.e. uniform resource locator are position and the access of the resource to that can obtain from internet for the address report URL
The succinct expression of one kind of method, is the address of standard resource on internet) corresponding report and opening shown.
In one embodiment, after step S105 further include:
If detecting node selection instruction, the corresponding report of selected interior joint is obtained, using report as pre-set figure
Table visualizes the input parameter of function, obtains chart corresponding with report, carries out corresponding operation to chart according to action type.
In the present embodiment, multiple reports have been passed on the management server, and after generating menu tree, when user needs to look into
When seeing the corresponding report of a certain node in menu tree and the corresponding image of the report, need to select node on present menu tree, choosing
The corresponding report of the node (report is static report) can be positioned after determining node, since static statement is usually that can not compile
(interactive operations such as such as progress lasso trick, box data area are dynamically screened, profile amplifies, resets) are collected, therefore need to be by the node
Corresponding report carries out visualization processing.
This method realizes the catalogue that report is shown by tree structure, the report searched needed for positioning rapidly convenient for user,
And need to only correspond to increase node when newly uploading report in tree structure can the fast mapping report.
The embodiment of the present application also provides a kind of report menu formation device, and the report menu formation device is aforementioned for executing
Any embodiment of report menu generating method.Specifically, referring to Fig. 6, Fig. 6 is report menu provided by the embodiments of the present application
The schematic block diagram of generating means.Report menu formation device 100 can be configured in management server.
As shown in fig. 6, report menu formation device 100 includes menu properties acquiring unit 101, menu tree acquiring unit
102, report node setting unit 103, query unit 104.
Menu properties acquiring unit 101, for obtaining menu properties setting information corresponding with report has been uploaded.
In the present embodiment, in the present embodiment, the mode of user manually or automatically, by report upload to manage clothes
When being engaged on device, need to obtain the menu properties setting information that the report is arranged in user in the management server;Wherein, menu category
Property setting information include at least: affiliated parent menu, pad name, menu mapping the address report URL, menu sequencing number;Institute
Belong to the current report of parent menu representation to be slaves to the sublist of another report (data in sublist may be most of subordinate
In parent table), pad name indicates that current report is mapped as the title of a node when node, the report URL of menu mapping
Location indicates the source report of current report unique address (URL indicates uniform resource locator) on the internet, menu sequencing
It number is that the report set by user is subordinated to which Zhang Zibiao of parent table and under same parent menu according to menu sequencing number
Sequence shows the corresponding node of sublist from small to large.
Menu tree acquiring unit 102, for obtaining each node in current menu tree and menu tree.
In one embodiment, as shown in fig. 7, report menu formation device 100 further include:
Topological diagram map unit 1021, for according to current menu tree, mapping obtain with corresponding to current menu tree
Initial topology figure.
In the present embodiment, it after current report being had received in management server, needs to obtain in management server and deposit
Current menu tree and menu tree in each node;Already present each report in management server has been combed in this way, being equivalent to
Table can judge which father node it is subordinated to when new report upload, to be added to dish as new child node
Dan Shuzhong.
Moreover, current menu tree is shown by way of topological diagram, it can more intuitive display father node and son section
The subordinate relation of point.Mapping is exactly the corresponding level section for being plotted as opening up correspondingly by each hierarchy node of menu tree on complement
Point, menu tree are a kind of display of relatively simple smaller area on the left of the page, for the ease of user's operation and are checked, also
Menu tree can be mapped as to one and open up complement what large area was shown.
In one embodiment, as shown in figure 8, topological diagram map unit 1021 includes:
Father node map unit 10211, for father node each in menu tree to be mapped as the section of the father in initial topology figure
Point, and the title of father node each in menu tree is mapped into corresponding father node in initial topology figure;
Child node map unit 10212, it is corresponding for level of child nodes each in menu tree to be mapped as in initial topology figure
The child node of level, and mapped to the title of child node each in menu tree just according to the subordinate relation of father node and child node
Corresponding child node in beginning topological diagram.
In the present embodiment, by the way that father node each in menu tree is mapped as the father node in initial topology figure, and will
The title (title of node is interpreted as pad name) of each father node maps to corresponding father node in initial topology figure.
It after the mapping for completing father node, needs to obtain the first level child node, is reflected according to mode same as father node
It penetrates as the first level of child nodes in initial topology figure, later closes every one first level of child nodes according to subordinate with corresponding father node
System is attached the connection of line, such as the affiliated parent node of the first level of child nodes A is a, then the first level of child nodes A is passed through connection
Line is connect with parent node.It is completed in the second level child node-n-th layer grade child node to initial topology figure by same mode
Mapping.
Report node setting unit 103, for parsing the affiliated parent menu for obtaining and including in menu properties setting information,
Corresponding father node is positioned in menu tree according to the affiliated parent menu for including in menu properties setting information, report is corresponding
Node and father node establish subordinate relation.
In one embodiment, as shown in figure 9, report node setting unit 103 includes:
Node traverses positioning unit 1031, for positioning belonging to the corresponding node of report by traverse menus tree interior joint
Father node;
Child node number judging unit 1032, the number of the child node for obtaining the father node judge father's section
Whether the number of the child node of point is equal to 0;
First child node establishes unit 1033, if the number of the child node for the father node is 0, in initial topology figure
The child node of upper newly-built corresponding number, and by the corresponding node correspondence mappings to newly-built child node of report, report is corresponded to
Child node and father node between increase connecting line the foundation of subordinate relation be completed;
Second child node establishes unit 1034, if the number of the child node for the father node is greater than 0, obtains the father
The child node number of node, and obtain the menu sequencing number of each child node included by the father node;
Child node is inserted into unit 1035, for the menu sequencing number according to the corresponding node of report, by the corresponding section of report
Being sequentially inserted into the child node of the father node of ascending order arrangement is pressed, and it will be between the corresponding child node of report and father node
Increase the foundation that subordinate relation is completed in connecting line.
In the present embodiment, node category corresponding to report is first positioned in menu tree according to the affiliated parent menu of report
Which father node in menu tree, if whether the child node number for then judging lower layer of the father node is 0 father node
The number of child node is 0, creates the child node of corresponding number on initial topology figure, and by the corresponding node correspondence mappings of report
(can not there is no child node on to newly-built child node below father node, just be not necessarily to according to a sequence number addition child node, directly
Create and increase the connecting line of subordinate relation);If the number of the child node of the father node is greater than 0, father's section is obtained
The child node number of point, and the menu sequencing number of each child node included by the father node is obtained, later according to report
The corresponding node of report is sequentially inserted into as what ascending order arranged to the son section of the father node by the menu sequencing number of corresponding node
Point in.
Query unit 104, if instructing corresponding pad name time according to menu queries for detecting that menu queries are instructed
Menu tree is gone through, it, will father node corresponding with pad name and child node if inquiring corresponding pad name in menu tree
It is shown.
In the present embodiment, it when the menu queries for getting user instruct, need to be looked into menu tree according to pad name
Corresponding child node and father node corresponding with the child node are ask, it, directly will be with menu identity after the inquiry for completing above-mentioned node
Claim corresponding father node and child node to be shown, with ensure user can quickly according to pad name search child node or
Father node, quickly to position the storage location of report.
In one embodiment, as shown in Figure 10, report menu formation device 100 further include:
Report obtains display unit 105, and the address report URL for being mapped according to the menu of child node is linked to corresponding report
Table starts report and is shown.
In the present embodiment, corresponding child node and corresponding with the child node is inquired in menu tree according to pad name
Father node, after the inquiry for completing above-mentioned node, directly according to the menu of the child node map the address report URL be linked to clothes
Stored in business device to have uploaded report, when detecting that user clicks the child node, the menu for extracting the child node is mapped
The corresponding report in the address report URL and open shown.
In one embodiment, report menu formation device 100 further include:
Icon operating unit, if the corresponding report of selected interior joint is obtained, by report for detecting node selection instruction
As the input parameter of pre-set chart visualization function, chart corresponding with report is obtained, according to action type to figure
Table carries out corresponding operation.
In the present embodiment, multiple reports have been passed on the management server, and after generating menu tree, when user needs to look into
When seeing the corresponding report of a certain node in menu tree and the corresponding image of the report, need to select node on present menu tree, choosing
The corresponding report of the node (report is static report) can be positioned after determining node, since static statement is usually that can not compile
(interactive operations such as such as progress lasso trick, box data area are dynamically screened, profile amplifies, resets) are collected, therefore need to be by the node
Corresponding report carries out visualization processing.
The device realizes the catalogue that report is shown by tree structure, the report searched needed for positioning rapidly convenient for user,
And need to only correspond to increase node when newly uploading report in tree structure can the fast mapping report.
Above-mentioned report menu formation device can be implemented as the form of computer program, which can such as scheme
It is run in computer equipment shown in 11.
Figure 11 is please referred to, Figure 11 is the schematic block diagram of computer equipment provided by the embodiments of the present application.
Refering to fig. 11, which includes processor 502, memory and the net connected by system bus 501
Network interface 505, wherein memory may include non-volatile memory medium 503 and built-in storage 504.
The non-volatile memory medium 503 can storage program area 5031 and computer program 5032.The computer program
5032 include program instruction, which is performed, and processor 502 may make to execute report menu generating method.
The processor 502 supports the operation of entire computer equipment 500 for providing calculating and control ability.
The built-in storage 504 provides environment for the operation of the computer program 5032 in non-volatile memory medium 503, should
When computer program 5032 is executed by processor 502, processor 502 may make to execute report menu generating method.
The network interface 505 provides the transmission etc. of data traffic for carrying out network communication, for example network access.This field
Technical staff is appreciated that structure shown in Figure 11, only the block diagram of part-structure relevant to application scheme, not
The restriction for the computer equipment 500 being applied thereon to application scheme is constituted, specific computer equipment 500 may include
Than more or fewer components as shown in the figure, certain components are perhaps combined or with different component layouts.
Wherein, the processor 502 is for running computer program 5032 stored in memory, to realize following function
Can: obtain menu properties setting information corresponding with report has been uploaded;Obtain each section in current menu tree and menu tree
Point;Parsing obtains the affiliated parent menu for including in menu properties setting information, includes according in menu properties setting information
Affiliated parent menu positions corresponding father node in menu tree, and the corresponding node of report and father node are established subordinate relation;If
It detects that menu queries instruct, corresponding pad name traverse menus tree is instructed according to menu queries, if inquiring in menu tree
To corresponding pad name, father node corresponding with pad name and child node are shown.
In one embodiment, after processor 502 obtains each node in current menu tree and menu tree in execution,
Also perform the following operations: according to current menu tree, mapping is obtained and initial topology figure corresponding to current menu tree.
In one embodiment, processor 502 is being executed according to current menu tree, and mapping obtains and current menu tree institute
Corresponding initial topology figure, performs the following operations: father node each in menu tree is mapped as the father node in initial topology figure,
And the title of father node each in menu tree is mapped into corresponding father node in initial topology figure;By straton each in menu tree
Node is mapped as the child node of corresponding level in initial topology figure, and according to the subordinate relation of father node and child node by menu tree
In the title of each child node map to corresponding child node in initial topology figure.
In one embodiment, processor 502 is being executed according to the affiliated parent menu for including in menu properties setting information
Corresponding father node is positioned in menu tree to perform the following operations when the corresponding node of report and father node are established subordinate relation:
By traverse menus tree interior joint, father node belonging to the corresponding node of report is positioned;Obtain the child node of the father node
Number, judges whether the number of the child node of the father node is equal to 0;If the number of the child node of the father node is 0, first
The child node of correspondence number is created on beginning topological diagram, and by the corresponding node correspondence mappings to newly-built child node of report, is incited somebody to action
Increase the foundation that subordinate relation is completed in connecting line between the corresponding child node of report and father node;If the son section of the father node
The number of point is greater than 0, obtains the child node number of the father node, and obtain each child node included by the father node
Menu sequencing number;According to the menu sequencing number of the corresponding node of report, the corresponding node of report is inserted by the sequence that ascending order arranges
Enter into the child node of the father node, and subordinate is completed by connecting line is increased between the corresponding child node of report and father node
The foundation of relationship.
It in one embodiment, will be with menu if processor 502 inquires corresponding pad name in execution in menu tree
It after the corresponding father node of title and child node are shown, also performs the following operations: obtaining and reflected according to the menu of child node
The address report URL penetrated is linked to corresponding report, starts report and is shown.
It will be understood by those skilled in the art that the embodiment of computer equipment shown in Figure 11 is not constituted to computer
The restriction of equipment specific composition, in other embodiments, computer equipment may include components more more or fewer than diagram, or
Person combines certain components or different component layouts.For example, in some embodiments, computer equipment can only include depositing
Reservoir and processor, in such embodiments, the structure and function of memory and processor are consistent with embodiment illustrated in fig. 11,
Details are not described herein.
It should be appreciated that in the embodiment of the present application, processor 502 can be central processing unit
(CentralProcessing Unit, CPU), which can also be other general processors, digital signal processor
(Digital Signal Processor, DSP), specific integrated circuit (Application Specific
IntegratedCircuit, ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or
Person other programmable logic device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor
It can be microprocessor or the processor be also possible to any conventional processor etc..
Storage medium is provided in another embodiment of the application.The storage medium can be that non-volatile computer can
Read storage medium.The storage medium is stored with computer program, and wherein computer program includes program instruction.The program instruction quilt
Processor performs the steps of when executing obtains menu properties setting information corresponding with report has been uploaded;Obtain current dish
Each node in Dan Shu and menu tree;Parsing obtains the affiliated parent menu for including in menu properties setting information, according to menu
The affiliated parent menu for including in attribute setting information positions corresponding father node in menu tree, by the corresponding node of report and father
Node establishes subordinate relation;If detecting, menu queries are instructed, and instruct corresponding pad name traverse menus according to menu queries
Tree carries out father node corresponding with pad name and child node if inquiring corresponding pad name in menu tree
It shows.
In one embodiment, it is performed the steps of when which is executed by processor according to current menu tree, is reflected
It penetrates to obtain and initial topology figure corresponding to current menu tree.
In one embodiment, it is performed the steps of when which is executed by processor and saves father each in menu tree
The father node that is mapped as in initial topology figure of point, and the title of father node each in menu tree mapped to it is right in initial topology figure
The father node answered;Level of child nodes each in menu tree is mapped as to the child node of corresponding level in initial topology figure, and according to father
The title of child node each in menu tree is mapped to corresponding sub- section in initial topology figure with the subordinate relation of child node by node
Point.
In one embodiment, it is performed the steps of when which is executed by processor by being saved in traverse menus tree
Point positions father node belonging to the corresponding node of report;The number for obtaining the child node of the father node judges the father node
The number of child node whether be equal to 0;If the number of the child node of the father node is 0, creates and correspond on initial topology figure
The child node of number, and by the corresponding node correspondence mappings to newly-built child node of report, by the corresponding child node of report with
Increase the foundation that subordinate relation is completed in connecting line between father node;If the number of the child node of the father node is greater than 0, obtain
The child node number of the father node, and obtain the menu sequencing number of each child node included by the father node;According to report
The corresponding node of report is sequentially inserted into as what ascending order arranged to the son of the father node by the menu sequencing number of the corresponding node of table
In node, and the foundation of subordinate relation is completed by connecting line is increased between the corresponding child node of report and father node.
In one embodiment, it performs the steps of when which is executed by processor and is reflected according to the menu of child node
The address report URL penetrated is linked to corresponding report, starts report and is shown.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description is set
The specific work process of standby, device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Those of ordinary skill in the art may be aware that unit described in conjunction with the examples disclosed in the embodiments of the present disclosure and algorithm
Step can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and software
Interchangeability generally describes each exemplary composition and step according to function in the above description.These functions are studied carefully
Unexpectedly the specific application and design constraint depending on technical solution are implemented in hardware or software.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In several embodiments provided herein, it should be understood that disclosed unit and method, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only logical function partition, there may be another division manner in actual implementation, can also will be with the same function
Unit set is at a unit, such as multiple units or components can be combined or can be integrated into another system or some
Feature can be ignored, or not execute.In addition, shown or discussed mutual coupling, direct-coupling or communication connection can
Be through some interfaces, the indirect coupling or communication connection of device or unit, be also possible to electricity, mechanical or other shapes
Formula connection.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of unit therein can be selected to realize the embodiment of the present application scheme according to the actual needs
Purpose.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in one storage medium.Based on this understanding, the technical solution of the application is substantially in other words to existing
The all or part of part or the technical solution that technology contributes can be embodied in the form of software products, should
Computer software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
Personal computer, server or network equipment etc.) execute all or part of step of each embodiment the method for the application
Suddenly.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), magnetic disk or
The various media that can store program code such as person's CD.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should all cover within the scope of protection of this application.Therefore, the protection scope of the application should be with right
It is required that protection scope subject to.
Claims (10)
1. a kind of report menu generating method characterized by comprising
Obtain menu properties setting information corresponding with report has been uploaded;
Obtain each node in current menu tree and menu tree;
Parsing obtains the affiliated parent menu for including in menu properties setting information, includes according in menu properties setting information
Affiliated parent menu positions corresponding father node in menu tree, and the corresponding node of report and father node are established subordinate relation;
If detecting, menu queries are instructed, and corresponding pad name traverse menus tree are instructed according to menu queries, if in menu tree
In inquire corresponding pad name, father node corresponding with pad name and child node are shown.
2. report menu generating method according to claim 1, which is characterized in that the current menu tree of the acquisition, and
After each node in menu tree, further includes:
According to current menu tree, mapping is obtained and initial topology figure corresponding to current menu tree.
3. report menu generating method according to claim 2, which is characterized in that the current menu tree of the basis reflects
It penetrates to obtain and initial topology figure corresponding to current menu tree, comprising:
Father node each in menu tree is mapped as the father node in initial topology figure, and by the name of father node each in menu tree
Title maps to corresponding father node in initial topology figure;
Level of child nodes each in menu tree is mapped as to the child node of corresponding level in initial topology figure, and according to father node and son
The title of child node each in menu tree is mapped to corresponding child node in initial topology figure by the subordinate relation of node.
4. report menu generating method according to claim 1, which is characterized in that described according to menu properties setting information
In include affiliated parent menu corresponding father node is positioned in menu tree, the corresponding node of report and father node are established into subordinate
Relationship, comprising:
By traverse menus tree interior joint, father node belonging to the corresponding node of report is positioned;
The number for obtaining the child node of the father node, judges whether the number of the child node of the father node is equal to 0;
If the number of the child node of the father node is 0, the child node of corresponding number is created on initial topology figure, and by report
In corresponding node correspondence mappings to newly-built child node, connecting line will be increased between the corresponding child node of report and father node
Complete the foundation of subordinate relation;
If the number of the child node of the father node is greater than 0, the child node number of the father node is obtained, and obtains father's section
The menu sequencing number of the included each child node of point;
According to the menu sequencing number of the corresponding node of report, the corresponding node of report is sequentially inserted into as what ascending order arranged to described
In the child node of father node, and building for subordinate relation is completed by connecting line is increased between the corresponding child node of report and father node
It is vertical.
5. report menu generating method according to claim 1, which is characterized in that inquired in menu tree pair if described
The pad name answered, will be after father node corresponding with pad name and child node be shown, further includes:
It is linked to corresponding report according to the address report URL that the menu of child node maps, start report and is shown.
6. a kind of report menu formation device characterized by comprising
Menu properties acquiring unit, for obtaining menu properties setting information corresponding with report has been uploaded;
Menu tree acquiring unit, for obtaining each node in current menu tree and menu tree;
Report node setting unit, for parsing the affiliated parent menu for obtaining and including in menu properties setting information, according to dish
The affiliated parent menu for including in single attribute setting information positions corresponding father node in menu tree, by the corresponding node of report with
Father node establishes subordinate relation;
Query unit, if instructing corresponding pad name traverse menus according to menu queries for detecting that menu queries are instructed
Tree carries out father node corresponding with pad name and child node if inquiring corresponding pad name in menu tree
It shows.
7. report menu formation device according to claim 6, which is characterized in that the report node setting unit, packet
It includes:
Node traverses positioning unit, for positioning father node belonging to the corresponding node of report by traverse menus tree interior joint;
Child node number judging unit, the number of the child node for obtaining the father node judge the son section of the father node
Whether the number of point is equal to 0;
First child node establishes unit, if the number of the child node for the father node is 0, newly-built pair on initial topology figure
The child node of number is answered, and by the corresponding node correspondence mappings to newly-built child node of report, by the corresponding child node of report
Increase the foundation that subordinate relation is completed in connecting line between father node;
Second child node establishes unit, if the number of the child node for the father node is greater than 0, obtains the son of the father node
Node number, and obtain the menu sequencing number of each child node included by the father node;
Child node is inserted into unit, and for the menu sequencing number according to the corresponding node of report, the corresponding node of report is pressed ascending order
Arrangement is sequentially inserted into the child node of the father node, and is connected increasing between the corresponding child node of report and father node
The foundation of subordinate relation is completed in line.
8. report menu formation device according to claim 6, which is characterized in that further include:
Report display unit, the address report URL for being mapped according to the menu of child node are linked to corresponding report, start report
And it is shown.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program
Any one of described in report menu generating method.
10. a kind of storage medium, which is characterized in that the storage medium is stored with computer program, the computer program packet
Program instruction is included, described program instruction executes the processor such as any one of claim 1 to 5 institute
The report menu generating method stated.
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 true CN109308284A (en) | 2019-02-05 |
CN109308284B 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) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110333846A (en) * | 2019-06-18 | 2019-10-15 | 国云科技股份有限公司 | A kind of method of the cleer and peaceful assembling data father and son upper and lower relation list of quick thread |
CN110471962A (en) * | 2019-07-05 | 2019-11-19 | 中国平安人寿保险股份有限公司 | The generation method and system of alive data report |
CN111208927A (en) * | 2019-12-30 | 2020-05-29 | 国电南瑞科技股份有限公司 | Man-machine interface and man-machine interaction method suitable for secondary equipment of power system |
CN111324258A (en) * | 2020-02-04 | 2020-06-23 | 北京字节跳动网络技术有限公司 | Method, device, equipment and medium for generating contents of configuration items of multilevel pull-down menu |
CN111355865A (en) * | 2019-04-16 | 2020-06-30 | 深圳市鸿合创新信息技术有限责任公司 | Recording and broadcasting system node configuration method, equipment and storage medium |
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 |
CN113935276A (en) * | 2021-12-16 | 2022-01-14 | 北京云枢创新软件技术有限公司 | Design data mapping relation construction system |
CN115291773A (en) * | 2022-08-09 | 2022-11-04 | 北京商银微芯科技有限公司 | Tree structure data display method and device |
CN116185413A (en) * | 2023-04-24 | 2023-05-30 | 山东捷瑞数字科技股份有限公司 | Method, system, device and medium for generating specified menu based on three-dimensional engine |
Citations (15)
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 |
US20020078174A1 (en) * | 2000-10-26 | 2002-06-20 | Sim Siew Yong | Method and apparatus for automatically adapting a node in a network |
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 |
US20140317158A1 (en) * | 2013-04-17 | 2014-10-23 | Hon Hai Precision Industry Co., Ltd. | File storage device and method for managing file system thereof |
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 |
-
2018
- 2018-09-28 CN CN201811137565.9A patent/CN109308284B/en active Active
Patent Citations (15)
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 |
US20020078174A1 (en) * | 2000-10-26 | 2002-06-20 | Sim Siew Yong | Method and apparatus for automatically adapting a node in a network |
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 |
US20140317158A1 (en) * | 2013-04-17 | 2014-10-23 | Hon Hai Precision Industry Co., Ltd. | File storage device and method for managing file system thereof |
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 (4)
Title |
---|
翁志良等: "一种基于树结构的数据报表发布体系及实现", 《计算机应用》 * |
翁志良等: "一种基于树结构的数据报表发布体系及实现", 《计算机应用》, no. 03, 28 March 2002 (2002-03-28), pages 31 - 36 * |
邓晨曦等: "二叉树创建算法的研究", 《湖南环境生物职业技术学院学报》 * |
邓晨曦等: "二叉树创建算法的研究", 《湖南环境生物职业技术学院学报》, no. 03, 25 September 2009 (2009-09-25), pages 13 - 16 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111355865A (en) * | 2019-04-16 | 2020-06-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 |
CN110333846A (en) * | 2019-06-18 | 2019-10-15 | 国云科技股份有限公司 | A kind of method of the cleer and peaceful assembling data father and son upper and lower relation list of quick thread |
CN110471962A (en) * | 2019-07-05 | 2019-11-19 | 中国平安人寿保险股份有限公司 | The generation method and system of alive data report |
CN110471962B (en) * | 2019-07-05 | 2023-11-03 | 中国平安人寿保险股份有限公司 | Method and system for generating active data report |
CN111208927A (en) * | 2019-12-30 | 2020-05-29 | 国电南瑞科技股份有限公司 | Man-machine interface and man-machine interaction method suitable for secondary equipment of power system |
CN111324258A (en) * | 2020-02-04 | 2020-06-23 | 北京字节跳动网络技术有限公司 | Method, device, equipment and medium for generating contents of configuration items of multilevel pull-down menu |
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 |
CN113935276A (en) * | 2021-12-16 | 2022-01-14 | 北京云枢创新软件技术有限公司 | Design data mapping relation construction system |
CN115291773A (en) * | 2022-08-09 | 2022-11-04 | 北京商银微芯科技有限公司 | Tree structure data display method and device |
CN116185413A (en) * | 2023-04-24 | 2023-05-30 | 山东捷瑞数字科技股份有限公司 | Method, system, device and medium for generating specified menu based on three-dimensional engine |
Also Published As
Publication number | Publication date |
---|---|
CN109308284B (en) | 2023-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109308284A (en) | Report menu generating method, device, computer equipment and storage medium | |
CN106030487B (en) | For controlling the method and its electronic equipment of the composition of screen | |
KR102317535B1 (en) | Methods and systems for implementing data tracking with software development kits | |
US9846699B2 (en) | System and methods thereof for dynamically updating the contents of a folder on a device | |
KR101522014B1 (en) | The method, device and recording medium for managing application icon | |
JP5546065B2 (en) | Apparatus and method for providing a customized remote user interface page | |
CN109388791A (en) | Chart Dynamic Display method, apparatus, computer equipment and storage medium | |
EP2634682A2 (en) | Apparatus and method for creating a shortcut menu | |
CN109542399A (en) | Software development methodology, device, terminal device and computer readable storage medium | |
CN109408181B (en) | Equipment skill display method and device | |
CN104484189A (en) | Construction and design method of application interface | |
CN105183768B (en) | A kind of file management method, device and terminal device | |
WO2016029160A1 (en) | Systems and methods for using graph modeling to manage, monitor, and control broadcast and multimedia systems | |
US10230589B2 (en) | Methods, systems, and computer readable media for configuring service networks | |
CN104216698B (en) | A kind of registration web page method and relevant apparatus | |
CN103279540A (en) | Method and device for pushing application | |
CN102098233B (en) | Method and system for controlling communication window in instant messenger | |
CN106062693A (en) | Desktop sharing method and mobile terminal | |
EP2933957B1 (en) | Method and mobile terminal for displaying dlna equipment | |
CN105786829A (en) | Tree-form data structure display method and device | |
CN109388462A (en) | Report sharing method, device, computer equipment and storage medium | |
US20150106479A1 (en) | Terminal apparatus and information processing method | |
CN104572981A (en) | Web page caching method and mobile terminal device | |
CN107169012B (en) | POI recommendation method, device, equipment and computer readable storage medium | |
US11792269B2 (en) | Method for generating application for controlling external electronic device and electronic apparatus for supporting the same |
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 |