Report display method, device, computer equipment and storage medium

By automatically obtaining attribute configuration information to generate a report tree structure diagram, it solves the problems of large code volume and poor versatility in the existing technology, realizes convenient report display and query, and reduces costs.

CN112433712BActive Publication Date: 2024-10-18KINGDEE SOFTWARE(CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011237717.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-09
Publication Date
2024-10-18
Estimated Expiration
2040-11-09

AI Technical Summary

Technical Problem

In the existing technology, generating a tree structure diagram of a report requires writing a large amount of code, and different reports need to rewrite the code, which lacks versatility, resulting in high costs.

Method used

By receiving the trigger operation of the preset control, it automatically obtains the attribute configuration information, generates a tree structure diagram of the target report, and displays it in association with the report. There is no need to manually write code, and it has strong applicability.

Benefits of technology

It can easily generate tree structure diagrams without writing a lot of code, saving workload and costs. It is suitable for various types of reports and improves query efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112433712B_ABST
    Figure CN112433712B_ABST
Patent Text Reader

Abstract

The present application relates to a report display method, device, computer equipment and storage medium. The method includes: displaying an initial target report in a report display interface; when a trigger operation for a preset control is received, obtaining the attribute configuration information of the preset control corresponding to the target report; according to the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source, generating a tree structure diagram corresponding to the target report, and associating the nodes in the tree structure diagram with the table content in the target report; in the report display interface, associating the tree structure diagram with the target report; when a trigger operation for a node in the tree structure diagram is received, filtering the table content of the target report, and displaying the remaining table content associated with the node after filtering in the target report. The use of this method can effectively save costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a report display method, apparatus, computer equipment and storage medium. Background Art

[0002] With the development of computer technology, users can quickly query and filter the contents of reports in a variety of ways to display the required data. At present, a more convenient way is to add a tree structure diagram associated with the report content.

[0003] However, currently, the tree structure diagram associated with the report content requires a lot of code to be written to implement. Moreover, after a certain basic data of the report implements the tree structure diagram, the other basic data of the report need to rewrite the code to implement the tree structure diagram, which is not universal. Therefore, the traditional method is relatively costly. Summary of the invention

[0004] Based on this, it is necessary to provide a report display method, device, computer equipment and storage medium that can effectively save costs in response to the above technical problems.

[0005] A report display method, the method comprising:

[0006] Display the initial target report in the report display interface;

[0007] When a trigger operation for a preset control is received, obtaining property configuration information of the preset control corresponding to the target report;

[0008] Generate a tree structure diagram corresponding to the target report according to the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source, and associate the nodes in the tree structure diagram with the table content in the target report;

[0009] In the report display interface, the tree structure diagram is associated with the target report and displayed;

[0010] When a trigger operation for a node in the tree structure diagram is received, the table content of the target report is filtered, and the table content associated with the node remaining after filtering is displayed in the target report.

[0011] In one of the embodiments, the preset control is a left-tree-right-table control;

[0012] In the report display interface, the tree structure diagram is displayed in association with the target report, including:

[0013] When the preset control is a left-tree-right-table control, the tree structure diagram is displayed in the left area of ​​the report display interface, and the target report is displayed in an associated manner in the right area of ​​the report display interface.

[0014] In one embodiment, when a trigger operation is received for a node in the tree structure diagram, filtering the table content of the target report, and displaying the table content associated with the node remaining after filtering in the target report, includes:

[0015] When a trigger operation for a node in the tree structure diagram is received, a filtering condition corresponding to the triggered node is generated;

[0016] Filtering the table content of the target report according to the filtering condition;

[0017] Displays the filtered remaining table contents associated with the node.

[0018] In one embodiment, the method further comprises:

[0019] In response to the re-triggering operation of the preset control, the tree structure diagram is not displayed in the report display interface.

[0020] In one of the embodiments, when a trigger operation for a preset control is received, before obtaining the property configuration information of the preset control corresponding to the target report, the method further includes:

[0021] In response to a trigger operation for a property configuration of a preset control, displaying a property configuration page of the preset control;

[0022] Acquire a first data source corresponding to a node in the tree structure diagram set in the property configuration page, a second data source corresponding to the table content in the target report, and a query-related field; the query-related field is a category name after the table content in the target report corresponding to the second data source is classified, and the node in the tree structure diagram corresponding to the first data source has the same and unique node identifier corresponding to the category name;

[0023] Determining, according to the query association field, an association relationship between the first data source and the second data source;

[0024] According to the first data source, the second data source and the association relationship, attribute configuration information of the preset control corresponding to the target report is generated.

[0025] In one embodiment, the acquiring of the first data source corresponding to the node in the tree structure diagram set in the property configuration page includes:

[0026] Obtaining the data source entered in the tree query object configuration item of the property configuration page to obtain the first data source corresponding to each node in the tree structure diagram; or,

[0027] The data source input in the tree node configuration item of the property configuration page is obtained to obtain a first data source corresponding to a designated node in the tree structure diagram.

[0028] In one embodiment, the method further comprises:

[0029] Obtaining a parent node attribute name input in a parent node configuration control in the attribute configuration page, so as to set a node corresponding to the parent node attribute name as a parent node;

[0030] The parent-child relationship between the parent node and the child nodes under the parent node is saved in the attribute configuration information;

[0031] The step of generating a tree structure diagram corresponding to the target report according to the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source includes:

[0032] A tree structure diagram corresponding to the target report is generated based on the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, the association relationship between the first data source and the second data source, and the parent-child relationship; the tree structure diagram includes at least two layers of relationships.

[0033] A report display device, comprising:

[0034] The display module is used to display the initial target report in the report display interface;

[0035] An acquisition module, configured to acquire, when receiving a trigger operation for a preset control, attribute configuration information of the preset control corresponding to the target report;

[0036] A generating module, configured to generate a tree structure diagram corresponding to the target report according to a first data source corresponding to a node in the attribute configuration information, a second data source corresponding to table content, and an association relationship between the first data source and the second data source, and associate the nodes in the tree structure diagram with table content in the target report;

[0037] The display module is further used to associate and display the tree structure diagram with the target report in the report display interface;

[0038] The display module is further configured to filter the table content of the target report when a trigger operation for a node in the tree structure diagram is received, and to display the table content associated with the node remaining after filtering in the target report.

[0039] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0040] Display the initial target report in the report display interface;

[0041] When a trigger operation for a preset control is received, obtaining property configuration information of the preset control corresponding to the target report;

[0042] Generate a tree structure diagram corresponding to the target report according to the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source, and associate the nodes in the tree structure diagram with the table content in the target report;

[0043] In the report display interface, the tree structure diagram is associated with the target report and displayed;

[0044] When a trigger operation for a node in the tree structure diagram is received, the table content of the target report is filtered, and the table content associated with the node remaining after filtering is displayed in the target report.

[0045] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0046] Display the initial target report in the report display interface;

[0047] When a trigger operation for a preset control is received, obtaining property configuration information of the preset control corresponding to the target report;

[0048] Generate a tree structure diagram corresponding to the target report according to the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source, and associate the nodes in the tree structure diagram with the table content in the target report;

[0049] In the report display interface, the tree structure diagram is associated with the target report and displayed;

[0050] When a trigger operation for a node in the tree structure diagram is received, the table content of the target report is filtered, and the table content associated with the node remaining after filtering is displayed in the target report.

[0051] The above-mentioned report display method, device, computer equipment and storage medium automatically obtain the attribute configuration information of the preset control corresponding to the target report by receiving a trigger operation for the preset control. The staff can automatically generate the tree structure diagram corresponding to the target report according to the attribute configuration information without writing code, which saves the workload of the staff. Moreover, there is no need to rewrite code for different reports. It only needs to trigger the preset control with the attribute information configured for the target report to automatically generate the tree structure diagram corresponding to each target report and associate it with the target report for display, which has strong applicability. After receiving the trigger operation for the node in the tree structure diagram, the table content of the target report is filtered, and the table content associated with the node remaining after filtering can be displayed, which is convenient for the staff to check the information of interest in the report. The entire scheme can conveniently generate a corresponding tree structure diagram for each report without writing a large amount of code, and realize convenient query, which greatly saves costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 A flowchart of a report display method in one embodiment;

[0053] Figure 2 An initial target report display effect diagram in an embodiment;

[0054] Figure 3 This is a target report display effect diagram in an embodiment;

[0055] Figure 4 A filtering effect diagram in one embodiment;

[0056] Figure 5 A schematic diagram of a property configuration page in an embodiment;

[0057] Figure 6 This is a report display effect diagram in another embodiment;

[0058] Figure 7 It is a structural block diagram of a report display device in an embodiment;

[0059] Figure 8 It is a structural block diagram of a report display device in another embodiment;

[0060] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0062] In one embodiment, Figure 1 As shown, a report display method is provided. This embodiment uses the method applied to a terminal as an example. It can be understood that the terminal can be a mobile terminal, a computer or a special device. Among them, the mobile terminal is such as a mobile phone, a tablet computer, a handheld POS (point of sale, i.e., a sales terminal). Computers are such as desktop computers, laptops, etc. Special equipment for financial management is such as a desktop POS machine or a service inquiry machine. The report display method specifically includes the following steps:

[0063] Step 102: Display the initial target report in the report display interface.

[0064] The report display interface is a user-oriented operation interface that displays report-related information. The target report refers to the report to be processed. The initial target report refers to the report that has not been filtered according to the node trigger operation.

[0065] Specifically, the user can select an initial target report to be processed according to his / her needs. The terminal displays the initial target report selected by the user in the report display interface.

[0066] Step 104: when a trigger operation for a preset control is received, the property configuration information of the preset control corresponding to the target report is obtained.

[0067] The preset control is a control that has been pre-configured with property information corresponding to the target report, and is used to trigger the generation of a tree structure diagram corresponding to the target report. The property configuration information is the property information configured by the preset control corresponding to the target report.

[0068] Specifically, in the report display interface, the user triggers a preset control for a target report. The terminal receives the trigger operation for the preset control and obtains the property configuration information of the preset control corresponding to the target report. It can be understood that different property configuration information should correspond to different target reports.

[0069] It is understood that the preset control can be an existing control that is given a new function, such as giving a function to an existing F7 control and using it as a preset control. The preset control can also be a specially developed control.

[0070] In one embodiment, the attribute configuration information may include a first data source corresponding to a node in the tree structure diagram, a second data source corresponding to the table content of the target report, and an association relationship between the first data source and the second data source. In other embodiments, the attribute configuration information may also include other information, which is not limited to this.

[0071] It can be understood that the initial target report in step 102 can be an original complete report obtained from the database, or a report after the table content of the original report is preliminarily filtered according to the attribute configuration information but not filtered according to the node trigger operation.

[0072] In a specific embodiment, the terminal may obtain the attribute configuration information from a database, or the terminal may obtain the attribute configuration information from a local memory.

[0073] Step 106, based on the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source, generate a tree structure diagram corresponding to the target report, and associate the nodes in the tree structure diagram with the table content in the target report.

[0074] Among them, a node is a node in a tree structure diagram. The first data source corresponding to a node refers to a data source used to obtain a node in a tree structure diagram. The second data source corresponding to the table content refers to a data source used to obtain the table content. An association relationship is a relationship that associates the first data source corresponding to a node with the second data source corresponding to the table content. It can be understood that a tree structure diagram is a graphical representation of a data tree, including nodes and hierarchical relationships between nodes. The nodes in a tree structure diagram are determined based on the table content of a target report, and each node has at least one corresponding table content in the target report.

[0075] In one embodiment, the nodes in the tree structure diagram are obtained by deduplicating the table contents of the target report and then based on the key fields of the deduplicated table contents.

[0076] Specifically, the terminal can obtain the first data source corresponding to the pre-configured generated node, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source from the attribute configuration information, thereby generating a tree structure diagram corresponding to the target report. The terminal further associates the nodes in the tree structure diagram with the table content in the target report based on the association relationship. That is, for each node in the tree structure diagram, the terminal can determine the second data source associated with the first data source corresponding to the node based on the association relationship, and associate the node with the table content corresponding to the determined second data source in the target report.

[0077] Step 108: In the report display interface, the tree structure diagram is associated with the target report and displayed.

[0078] Among them, associated display means associating the tree structure diagram with the target report and displaying them together.

[0079] Specifically, the terminal displays the tree structure diagram in association with the target report in the report display interface.

[0080] In one embodiment, the tree structure diagram and the target report can be arranged horizontally or vertically in the report display interface.

[0081] Step 110 , when a trigger operation for a node in the tree structure diagram is received, the table content of the target report is filtered, and the table content associated with the node remaining after filtering is displayed in the target report.

[0082] Specifically, the user can trigger the node in the tree structure diagram to filter the table content in the target report. For example, the user can trigger the node in the tree structure diagram by clicking. When the terminal receives the trigger operation for the node in the tree structure diagram, the table content of the target report is filtered, and the remaining table content associated with the node after filtering is displayed in the target report.

[0083] The above-mentioned report display method, device, computer equipment and storage medium automatically obtain the attribute configuration information of the preset control corresponding to the target report by receiving the trigger operation for the preset control. The staff can automatically generate the tree structure diagram corresponding to the target report according to the attribute configuration information without writing code, which saves the workload of the staff. Moreover, there is no need to rewrite the code for different reports. It only needs to trigger the preset control with the configured attribute information of the target report to automatically generate the tree structure diagram corresponding to each target report and associate it with the target report for display, which has strong applicability. After receiving the trigger operation for the node in the tree structure diagram, the table content of the target report is filtered, and the table content associated with the node remaining after filtering can be displayed, which is convenient for the staff to check the information of interest in the report. The entire solution can conveniently generate the corresponding tree structure diagram for each report without writing a large amount of code, and realize convenient query, which greatly saves costs.

[0084] In one embodiment, in a report display interface, a tree structure diagram is displayed in association with a target report, including: when the preset control is a left-tree-right-table control, the tree structure diagram is displayed in the left area of ​​the report display interface, and the target report is displayed in association in the right area of ​​the report display interface.

[0085] The left-tree-right-table control refers to a preset control that places the tree structure diagram in the left area of ​​the report display interface and the table content of the target report in the right area of ​​the report display interface. When the user faces the report display interface, the left side of the user is the left area of ​​the report display interface, and the right side of the user is the right area of ​​the report display interface.

[0086] Specifically, in response to the trigger operation for the preset control, the terminal first determines what display type the preset control is. When it is determined that the preset control is a left-tree-right-table control, the terminal displays a tree structure diagram in the left area of ​​the report display interface, and associates and displays the target report in the right area of ​​the report display interface.

[0087] In one embodiment, the initial target report display effect diagram is as follows: Figure 2 As shown. Figure 3 , a target report effect diagram displayed by the terminal after the user triggers the left-tree-right-table control is shown. After the user triggers the left-tree-right-table control, the terminal displays the tree structure diagram 302 in the left area of ​​the report display interface and displays the target report 304 in the right area of ​​the report display interface in response to the triggering operation on the left-tree-right-table control.

[0088] In one embodiment, the terminal first obtains the first data source corresponding to the node in the tree structure diagram, the second data source corresponding to the table content in the target report, and the query-related field. Then the terminal automatically inherits the promptSpecial method and re-implements the _create and _initTree methods. Further, the terminal sets the tree structure diagram, the table content in the target report, and the processing of the corresponding click event according to the user's property configuration information in the property configuration page. Finally, the terminal automatically inherits the promptSpecial method, and constructs a tree control on the left side of the page and a table control on the right side through the page scripting language to realize the left-tree-right-table display format.

[0089] In this embodiment, by configuring the preset control as a left-tree-right-table control, the user only needs to trigger the left-tree-right-table control to display the tree structure diagram in the left area of ​​the report display interface and the target report in the right area, so that the user can view the target report corresponding to the right area from the node in the tree structure diagram in the left area, and can check and compare the left and right data.

[0090] In one embodiment, when a trigger operation is received for a node in a tree structure diagram, the table content of the target report is filtered, and the table content associated with the node remaining after filtering is displayed in the target report, including: when a trigger operation is received for a node in a tree structure diagram, generating filtering conditions corresponding to the triggered node; filtering the table content of the target report according to the filtering conditions; and displaying the table content associated with the node remaining after filtering.

[0091] The node identifier is a field that uniquely marks a node in the data source. The filter condition is a condition for filtering the table contents associated with the target report according to the nodes in the tree structure diagram.

[0092] Specifically, when the terminal receives a trigger operation for a node in the tree structure diagram, it generates a filter condition corresponding to the triggered node according to the node identifier of the triggered node contained in the query association field. After filtering the table content of the target report according to the filter condition, the terminal displays the table content associated with the node remaining after filtering. Figure 3 An embodiment of Figure 4 A filtering effect diagram is shown. The user selects a node in the tree structure diagram. This embodiment takes "activity fee" as an example. The terminal filters the table contents of the target report that contain the same field "activity fee" according to "activity fee" and displays the remaining table contents associated with the node after filtering, such as Figure 4 "Activity Fee 01", "Holiday Activity Fee" and table contents related to "Activity Fee 01" and "Holiday Activity Fee".

[0093] In this embodiment, the user only needs to trigger a node in the tree structure diagram to view the table content of the target report associated with the triggered node in the target report, thereby improving the user's efficiency in screening the report content.

[0094] In one embodiment, the method further includes: in response to a re-triggering operation on the preset control, the tree structure diagram is not displayed in the report display interface.

[0095] Specifically, the user may trigger the preset control again, and the terminal, in response to the re-triggering operation on the preset control, causes the tree structure diagram not to be displayed.

[0096] In one embodiment, the terminal may prevent the tree structure diagram from being displayed by partially hiding the tree structure diagram, hiding the tree structure diagram completely, making the tree structure diagram transparent, or directly deleting the tree structure diagram, etc., which will not be described in detail here.

[0097] In one embodiment, the user may trigger the preset control again, and the terminal, in response to the re-triggering operation on the preset control, causes the tree structure diagram to not be displayed and restores the target report to the initial target report.

[0098] In one embodiment, the user may trigger the preset control again, and the terminal responds to the re-triggering operation of the preset control by not displaying the tree structure diagram and retaining the current target report.

[0099] In this embodiment, the user can hide the tree structure diagram by triggering a preset control, so that the user can view more table contents of the target report in the report display interface, or can zoom in on the target report to clearly view the table contents of the target report.

[0100] In one embodiment, when a trigger operation for a preset control is received, before obtaining the property configuration information of the preset control corresponding to the target report, the method also includes: in response to the trigger operation for the property configuration of the preset control, displaying the property configuration page of the preset control; obtaining the first data source corresponding to the node in the tree structure diagram set in the property configuration page, the second data source corresponding to the table content in the target report, and the query associated field; the query associated field is the category name after the table content in the target report corresponding to the second data source is classified, and the node in the tree structure diagram corresponding to the first data source has the same and unique node identifier corresponding to the category name; according to the query associated field, determining the association relationship between the first data source and the second data source; generating the property configuration information of the preset control corresponding to the target report according to the first data source, the second data source and the association relationship.

[0101] Among them, the attribute configuration page is a page for users to fill in corresponding attribute configuration information.

[0102] Specifically, the user triggers the control of the property configuration page. The terminal displays the property configuration page of the preset control in response to the trigger operation for the property configuration of the preset control. The user enters the first data source corresponding to the node in the tree structure diagram, the second data source corresponding to the table content in the target report, and the query associated field in the property configuration page. The terminal obtains the first data source corresponding to the node in the tree structure diagram set in the property configuration page, the second data source corresponding to the table content in the target report, and the query associated field. The terminal determines the association relationship between the first data source and the second data source based on the query associated field, and generates the property configuration information of the preset control corresponding to the target report based on the first data source, the second data source and the association relationship. In one embodiment, the category names after the table content in the target report is classified are "administrative expenses, management expenses, sales expenses, etc." Taking the category name "management expenses" as an example, the nodes in the tree structure diagram have the same and unique node identifier "management expenses" corresponding to them. When the terminal receives a trigger operation for a node in the tree structure diagram, it generates a filtering condition corresponding to the triggered node, that is, the query associated field ("management fee") is equal to the same and unique node identifier ("management fee") of the corresponding node in the tree structure diagram, and the associated table content in the target report is filtered according to the corresponding filtering condition.

[0103] In one embodiment, the attribute configuration information includes at least one of the following attribute configuration information: tree filter conditions, table query fields, table filter conditions, and root node names, in addition to the first data source corresponding to the node in the tree structure diagram, the second data source corresponding to the table content in the target report, and the query associated field. In this embodiment, the terminal can determine the association relationship between the first data source and the second data source by obtaining the attribute configuration information of the preset control configured in the attribute configuration page, without the user having to enter code to implement the association relationship, thus saving the workload of writing code.

[0104] In one embodiment, obtaining the first data source corresponding to a node in a tree structure diagram set in a property configuration page includes: obtaining the data source entered in the tree query object configuration item of the property configuration page, and obtaining the first data source corresponding to each node in the tree structure diagram; or, obtaining the data source entered in the tree node configuration item of the property configuration page, and obtaining the first data source corresponding to a specified node in the tree structure diagram.

[0105] Among them, the tree query object configuration item is a control used to fill in the data source corresponding to each node (i.e. all nodes) in the property configuration page. The tree node configuration item is a control used to fill in the data source corresponding to the specified node (i.e. all or part of the specified nodes) in the tree structure diagram in the property configuration page.

[0106] Specifically, when the user inputs data in the tree query object configuration item, the terminal obtains the data source input in the tree query object configuration item on the property configuration page, and obtains the first data source corresponding to each node in the tree structure diagram.

[0107] When the user does not need the first data source corresponding to each node in the tree structure diagram, the user enters the data source in the tree node configuration item of the property configuration page. The terminal obtains the data source entered in the tree node configuration item of the property configuration page to obtain the first data source corresponding to the specified node in the tree structure diagram.

[0108] It can be understood that in addition to the tree query object configuration items and tree node configuration items, the property configuration page can also include other property configuration items. For example, it can also include at least one configuration item of the parent node attribute name, tree filter conditions, table query object, query associated fields, table query fields, table filter conditions and root node name. Users can enter corresponding property configuration information for each property configuration item.

[0109] like Figure 5 The diagram illustrates a property configuration page in an embodiment. In the property configuration page, the first data source corresponding to each node in the tree structure diagram is the data source entered in the "tree query object" configuration item. The second data source corresponding to the table content in the target report is the data source entered in the "table query object" configuration item. The first data source corresponding to the specified node in the tree structure diagram is the data source entered in the "Get left tree node..." configuration item (i.e., tree node configuration item). The user can name the root node of the tree structure diagram or not.

[0110] In this embodiment, by obtaining the data source entered in the tree query object configuration item of the property configuration page, the data of all nodes in the tree structure diagram can be obtained. The first data source corresponding to each node in the tree structure diagram can be accessed, and the user can comprehensively filter the table content of the target report. By obtaining the data source entered in the tree node configuration item of the property configuration page, the data source of the specified node in the tree structure diagram is obtained. The user can accurately select a specified single node in the tree structure diagram containing the specified node to filter the table content of the target report.

[0111] In one embodiment, the method also includes: obtaining the parent node attribute name entered in the parent node configuration control to set the node corresponding to the parent node attribute name as the parent node; saving the parent-child relationship between the parent node and the child node under the parent node to the attribute configuration information; generating a tree structure diagram corresponding to the target report according to the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source, including: generating a tree structure diagram corresponding to the target report according to the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, the association relationship between the first data source and the second data source, and the parent-child relationship; the tree structure diagram includes at least two layers of relationships.

[0112] The parent node attribute name is the node attribute identifier of the subordinate node.

[0113] Specifically, the user enters the parent node attribute name in the parent node configuration control. The terminal obtains the parent node attribute name entered in the parent node configuration control, and sets the node corresponding to the parent node attribute name as the parent node. The terminal further saves the parent-child relationship between the parent node and the child node under the parent node to the attribute configuration information. Finally, the terminal generates a tree structure diagram corresponding to the target report including at least two layers of relationships based on the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, the association relationship between the first data source and the second data source, and the parent-child relationship. It can be understood that since there is a parent-child relationship between the nodes, the generated tree structure diagram includes at least two layers of relationships.

[0114] In this embodiment, in a tree structure diagram with only a root node and leaf nodes, by obtaining the parent node attribute name input by the parent node attribute configuration control, a tree structure diagram corresponding to the target report including at least two layers of relationships can be generated. Thus, the user can view a more clearly organized tree structure diagram for node selection, and quickly and accurately find the child node to be selected according to the parent node.

[0115] In one embodiment, when a trigger operation for a preset control is received, before obtaining the property configuration information of the preset control corresponding to the target report, the method also includes: in response to the trigger operation for the property configuration of the preset control, displaying the property configuration page of the preset control; obtaining the table filtering condition set in the property configuration page; the table filtering condition includes the fields of the table content that need to be filtered out in the original target report; according to the table filtering condition, determining the table content of the original target report corresponding to the fields of the table content, and displaying only the table content corresponding to the fields of the table content in the original target report in the target report display area in the report display interface.

[0116] The original target report is a complete report without table content filtering.

[0117] Specifically, the terminal displays the property configuration page of the preset control in response to a trigger operation for the property configuration of the preset control. The user fills in the fields of the table content of the target report in the table filter condition configuration item in the property configuration page. The terminal obtains the table filter condition set in the property configuration page, and determines the table content of the original target report corresponding to the field of the table content according to the table filter condition. Finally, the terminal displays the table content corresponding to the field of the table content in the original target report in the target report display area in the report display interface.

[0118] In one embodiment, the target report that only contains the table content filtered according to the table filtering conditions may be the initial target report in step 102, that is, the target report that is preliminarily filtered based on the table filtering conditions. Then, after that, the user can trigger the preset control to trigger the generation of a tree structure diagram corresponding to the target report after the preliminary filtering, and associate the tree structure diagram with the target report after the preliminary filtering for display. In other embodiments, the terminal may also generate a complete tree structure diagram corresponding to the original target report based on the original target report that has not been preliminarily filtered according to the table filtering conditions, and associate the tree structure diagram with the target report after the preliminary filtering for display.

[0119] In one embodiment, when a trigger operation for a preset control is received, before obtaining the property configuration information of the preset control corresponding to the target report, the method also includes: in response to the trigger operation for the property configuration of the preset control, displaying the property configuration page of the preset control; obtaining the table query field set in the property configuration page; the table query field includes the header field of the table content of the target report to be filtered out; according to the table query field, determining the table content corresponding to the header field of the initial target report corresponding to the table query field, and displaying in the target report display area in the report display interface only the table content corresponding to the header field of the target report corresponding to the table query field.

[0120] Specifically, the terminal displays the property configuration page of the preset control in response to the trigger operation for the property configuration of the preset control. The user fills in the header field of the table content of the target report in the table query field configuration item in the property configuration page. The terminal obtains the table query field set in the property configuration page, and determines the table content of the target report corresponding to the header field of the table content according to the table query field. Finally, the terminal displays the table content of the target report corresponding to the header field of the table content in the target report display area in the report display interface.

[0121] In one embodiment, the target report that only contains the table content filtered according to the table query field query can be the initial target report in step 102, that is, the target report after preliminary filtering based on the table query field. Then, the user can trigger the preset control to trigger the generation of a tree structure diagram corresponding to the target report after preliminary filtering, and associate the tree structure diagram with the target report after preliminary filtering for display. In other embodiments, the terminal can also generate a complete tree structure diagram corresponding to the original target report based on the original target report that has not been preliminary filtered according to the table query field, and associate the tree structure diagram with the target report after preliminary filtering for display.

[0122] In one embodiment, when a table query field and a table filter condition are set in the property configuration page, the terminal can determine the table content corresponding to the table query field in the original target report according to the table query field; then determine the table content corresponding to the field of the table content in the original target report according to the table filter condition; after the original target report is subjected to a double filtering operation, the corresponding table content is displayed in the target report display area in the report display interface. Wherein, the double filtering operation refers to filtering according to the table query field first, and then filtering according to the table filter condition. Specifically, the terminal obtains a trigger operation in response to the property configuration of the preset control, and displays the property configuration page of the preset control. The user can input property configuration information in the table query field configuration item and the table filter condition configuration item in the property configuration page. The terminal obtains and parses the table query field and the table filter condition set in the property configuration page. After parsing, the terminal determines the header field corresponding to the table query field in the original target report according to the table query field, and then determines the table content corresponding to the header field, and then determines the table content corresponding to the field of the table content in the original target report according to the table filter condition. Furthermore, after the terminal performs a double filtering operation on the target report, the corresponding table content is displayed in the target report display area in the report display interface.

[0123] like Figure 6 In the figure, a rendering generated according to the "type code" of the table query field is shown. When the user fills in the "type code" in the configuration item of the "table query field". The terminal obtains the table query field set in the property configuration page, and determines the table content corresponding to the header field of the target report corresponding to the table query field according to the table query field. Finally, the terminal displays the table content corresponding to the header field of the target report corresponding to the table query field in the target report display area in the report display interface, and the tree structure diagram of the associated display is the complete tree structure diagram corresponding to the unfiltered, original target report.

[0124] In one embodiment, when a trigger operation for a preset control is received, before obtaining the property configuration information of the preset control corresponding to the target report, the method further includes: in response to the trigger operation for the property configuration of the preset control, displaying the property configuration page of the preset control; obtaining the tree filtering condition set in the property configuration page; the tree filtering condition includes the field of the node in the tree structure diagram to be filtered out. In this embodiment, according to the first data source corresponding to the node in the property configuration information, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source, a tree structure diagram corresponding to the target report is generated, including: according to the tree filtering condition, filtering out the nodes used to generate the tree structure diagram from the property configuration information, and generating the tree structure diagram according to the first data source corresponding to the filtered node, the second data source of the table content related to the filtered node, and the association relationship between the first data source and the second data source. In the report display interface, the tree structure diagram is associated with the target report for display, including: in the report display interface, displaying the generated tree structure diagram containing only the filtered nodes, and displaying the table content associated with the nodes in the tree structure diagram in the target report.

[0125] Specifically, the terminal displays the property configuration page of the preset control in response to a trigger operation for the property configuration of the preset control. The user fills in the fields of the nodes in the tree structure diagram in the tree filter condition item in the property configuration page. The terminal obtains the tree filter condition set in the property configuration page, filters out the nodes used to generate the tree structure diagram from the property configuration information according to the tree filter condition, and generates a tree structure diagram according to the first data source corresponding to the filtered nodes, the second data source of the table content related to the filtered nodes, and the association relationship between the first data source and the second data source. Finally, the terminal displays the tree structure diagram in association with the target report in the report display interface, including: displaying the generated tree structure diagram containing only the filtered nodes in the report display interface, and displaying the table content associated with the nodes in the tree structure diagram in the target report.

[0126] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0127] In one embodiment, Figure 7 As shown, a report display device 700 is provided, including: a display module 702, an acquisition module 704 and a generation module 706, wherein:

[0128] The display module 702 is used to display the initial target report in the report display interface.

[0129] The acquisition module 704 is used to acquire the property configuration information of the preset control corresponding to the target report when receiving a trigger operation for the preset control.

[0130] The generation module 706 is used to generate a tree structure diagram corresponding to the target report according to the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source, and associate the nodes in the tree structure diagram with the table content in the target report.

[0131] The display module 702 is further used to associate and display the tree structure diagram with the target report in the report display interface.

[0132] The display module 702 is further configured to filter the table contents of the target report when receiving a trigger operation for a node in the tree structure diagram, and to display the table contents associated with the node remaining after filtering in the target report.

[0133] In one embodiment, the display module 702 is further used to display the tree structure diagram in the left area of ​​the report display interface when the preset control is a left-tree-right-table control, and to associate and display the target report in the right area of ​​the report display interface.

[0134] In one embodiment, the display module 702 is also used to generate filtering conditions corresponding to the triggered nodes when a trigger operation is received for a node in the tree structure diagram; filter the table content of the target report according to the filtering conditions; and display the remaining table content associated with the node.

[0135] In one embodiment, the display module 702 is further configured to prevent the tree structure diagram from being displayed in the report display interface in response to a re-triggering operation on the preset control.

[0136] like Figure 8 As shown, in one embodiment, the device further comprises:

[0137] Configuration module 701 is used to display the property configuration page of the preset control in response to a trigger operation for the property configuration of the preset control; obtain the first data source corresponding to the node in the tree structure diagram set in the property configuration page, the second data source corresponding to the table content in the target report, and the query associated field; the query associated field is the category name after the table content in the target report corresponding to the second data source is classified, and the node in the tree structure diagram corresponding to the first data source has the same and unique node identifier corresponding to the category name; according to the query associated field, determine the association relationship between the first data source and the second data source; according to the first data source, the second data source and the association relationship, generate the property configuration information of the preset control corresponding to the target report.

[0138] In one embodiment, the configuration module 701 is also used to obtain the data source entered in the tree query object configuration item of the property configuration page, and obtain the first data source corresponding to each node in the tree structure diagram; or, obtain the data source entered in the tree node configuration item of the property configuration page, and obtain the first data source corresponding to the specified node in the tree structure diagram.

[0139] In one embodiment, the configuration module 701 is also used to obtain the parent node attribute name entered in the parent node configuration control to set the node corresponding to the parent node attribute name as the parent node; and save the parent-child relationship between the parent node and the child nodes under the parent node to the attribute configuration information.

[0140] In one embodiment, the generation module 706 is also used to generate a tree structure diagram corresponding to the target report according to the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, the association relationship between the first data source and the second data source, and the parent-child relationship; the tree structure diagram includes at least two layers of relationships.

[0141] For the specific definition of the report display device, please refer to the definition of the report display method above, which will not be repeated here. Each module in the above report display device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0142] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a report display method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0143] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0144] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the report display methods of the above-mentioned various embodiments when executing the computer program.

[0145] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the report display method of the above-mentioned various embodiments is implemented.

[0146] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0147] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0148] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A report display method, It is characterized in that The method comprises: Displaying the initial target report in the report display interface; the report display interface is a user-oriented operation interface for displaying report related information; When a trigger operation for a preset control is received, the property configuration information of the preset control corresponding to the target report is obtained; the preset control is a control with property information pre-configured corresponding to the target report, and is used to trigger the generation of a tree structure diagram corresponding to the target report; Generate a tree structure diagram corresponding to the target report according to the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source, and associate the nodes in the tree structure diagram with the table content in the target report; the nodes in the tree structure diagram are obtained by removing duplicates from the table content of the target report and according to the key fields of the removed table content; In the report display interface, the tree structure diagram is associated with the target report and displayed; When a trigger operation for a node in the tree structure diagram is received, the table content of the target report is filtered, and the table content associated with the node remaining after filtering is displayed in the target report; In response to a re-triggering operation on the preset control, the tree structure diagram is not displayed in the report display interface; When a trigger operation for a node in the tree structure diagram is received, filtering the table content of the target report, and displaying the table content associated with the node remaining after filtering in the target report, includes: When a trigger operation for a node in the tree structure diagram is received, a filtering condition corresponding to the triggered node is generated; Filtering the table content of the target report according to the filtering condition; Displays the filtered remaining table contents associated with the node.

2. The method according to claim 1, It is characterized in that In the report display interface, the tree structure diagram is displayed in association with the target report, including: When the preset control is a left-tree-right-table control, the tree structure diagram is displayed in the left area of ​​the report display interface, and the target report is displayed in an associated manner in the right area of ​​the report display interface.

3. The method according to claim 1, It is characterized in that Before obtaining the property configuration information of the preset control corresponding to the target report when a trigger operation for the preset control is received, the method further includes: In response to a trigger operation for a property configuration of a preset control, displaying a property configuration page of the preset control; Acquire a first data source corresponding to a node in the tree structure diagram set in the property configuration page, a second data source corresponding to the table content in the target report, and a query association field; the query association field is a category name after the table content in the target report corresponding to the second data source is classified, and the node in the tree structure diagram corresponding to the first data source has the same and unique node identifier corresponding to the category name; determine the association relationship between the first data source and the second data source according to the query association field; According to the first data source, the second data source and the association relationship, attribute configuration information of the preset control corresponding to the target report is generated.

4. The method according to claim 3, It is characterized in that The acquiring of the first data source corresponding to the node in the tree structure diagram set in the property configuration page comprises: Obtaining the data source entered in the tree query object configuration item of the property configuration page to obtain the first data source corresponding to each node in the tree structure diagram; or, The data source input in the tree node configuration item of the property configuration page is obtained to obtain a first data source corresponding to a designated node in the tree structure diagram.

5. The method according to claim 3, It is characterized in that The method further comprises: Obtaining a parent node attribute name input in a parent node configuration control in the attribute configuration page, so as to set a node corresponding to the parent node attribute name as a parent node; The parent-child relationship between the parent node and the child nodes under the parent node is saved in the attribute configuration information; The step of generating a tree structure diagram corresponding to the target report according to the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source includes: A tree structure diagram corresponding to the target report is generated based on the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, the association relationship between the first data source and the second data source, and the parent-child relationship; the tree structure diagram includes at least two layers of relationships.

6. The method according to claim 3, It is characterized in that The property configuration page includes tree query object configuration items and tree node configuration items, as well as at least one configuration item of parent node property name, tree filter condition, table query object, query association field, table query field, table filter condition and root node name.

7. A report display device, It is characterized in that The device comprises: A display module, used to display the initial target report in a report display interface; the report display interface is a user-oriented operation interface for displaying report-related information; An acquisition module, used for acquiring the property configuration information of the preset control corresponding to the target report when receiving a trigger operation for the preset control; the preset control is a control with property information pre-configured corresponding to the target report, and is used for triggering the generation of a tree structure diagram corresponding to the target report; A generating module, configured to generate a tree structure diagram corresponding to the target report according to the first data source corresponding to the node in the attribute configuration information, the second data source corresponding to the table content, and the association relationship between the first data source and the second data source, and associate the nodes in the tree structure diagram with the table content in the target report; the nodes in the tree structure diagram are obtained by removing duplicates from the table content of the target report and according to the key fields of the table content after removing duplicates; The display module is further used to display the tree structure diagram in association with the target report in the report display interface; in response to the re-triggering operation of the preset control, the tree structure diagram is not displayed in the report display interface; The display module is further configured to filter the table content of the target report when receiving a trigger operation for a node in the tree structure diagram, and display the table content associated with the node remaining after filtering in the target report; The display module is also used to generate filtering conditions corresponding to the triggered nodes when a trigger operation is received for a node in the tree structure diagram; filter the table content of the target report according to the filtering conditions; and display the remaining table content associated with the node.

8. The device according to claim 7, It is characterized in that The display module is also used to display the tree structure diagram in the left area of ​​the report display interface when the preset control is a left-tree-right-table control, and to display the target report in an associated manner in the right area of ​​the report display interface.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.