Report page generation method and device, computer readable storage medium
By using modular component technology, the generation chain maps data and parameters to module components, solving the problem of low development efficiency of enterprise report pages. It enables the rapid generation and customization of report pages, adapts to various data business needs, and improves data analysis capabilities.
Patent Information
- Application Number
- CN202211411650.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-11
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2042-11-11
AI Technical Summary
In existing technologies, enterprises face low development efficiency when developing various types of report pages, making it difficult to quickly meet ever-changing data business needs.
It adopts modular component technology, maps data and data type parameters to module components through the report generation chain, and generates report pages that meet specific business scenarios, including query, export, data visualization and pagination module components, and supports customization and extension.
It enables the rapid generation of configurable report pages, improves development efficiency, adapts to various data business needs, and provides rich data analysis tools and intuitive data display.
Smart Images

Figure CN115640009B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of energy internet technology, and in particular to a method and apparatus for generating report pages, and a computer-readable storage medium. Background Technology
[0002] Displaying data on report pages allows for more intuitive observation, aids in statistical analysis, and helps fully uncover the value inherent in the data. Businesses across various industries accumulate diverse data types during their operations, management, and production activities, necessitating multiple report pages to display these data types. Furthermore, as businesses expand, they require new data types for report pages. Following the development methods of relevant technologies, each report page needs to be developed independently, leading to decreased development efficiency. Summary of the Invention
[0003] This disclosure provides a method and apparatus for generating report pages, as well as a computer-readable storage medium, which employs modular component technology to quickly generate configurable report pages.
[0004] According to one aspect of this disclosure, a method for generating report pages is provided, comprising:
[0005] Obtain the corresponding type of data based on the user's data service needs;
[0006] Process the acquired data;
[0007] The processed data and data type parameters are mapped to the report generation chain, which includes a variety of module components.
[0008] Based on the processed data and data type parameters, a report page that meets the corresponding data business scenario is generated based on the report generation chain.
[0009] In some embodiments of this disclosure, generating a report page that meets the corresponding data business scenario based on the processed data and data type parameters according to the report generation chain includes:
[0010] The report page structure is designed according to data business requirements, wherein the report page structure includes at least one of the following components: query module component, export module component, data visualization module component, data display module component, and pagination module component;
[0011] Based on the report page structure, all module components are encapsulated into a report generation chain;
[0012] Based on the processed data and data type parameters, a report page that meets the corresponding data business scenario is generated based on the report generation chain.
[0013] In some embodiments of this disclosure, designing the report page structure according to data service requirements includes:
[0014] Add a query module component, wherein the query module component is used to implement at least one of the following functions: querying report data for a specific time or time period, defining query conditions, and filtering report data;
[0015] An export module component is added, which is used to export data reports in different formats;
[0016] Add a data visualization module component, wherein the data visualization module component is used to visualize data as a specific type of chart.
[0017] In some embodiments of this disclosure, the report page generation method further includes:
[0018] The types of modules and components included in the report generation chain are expanded according to data business needs.
[0019] In some embodiments of this disclosure, the report page generation method further includes:
[0020] Receive custom parameters input by the user;
[0021] Identifier elements are used to map module function parameters to module components, so as to enable the customization of report pages according to different data business function requirements. The identifier elements are components packaged into custom elements.
[0022] In some embodiments of this disclosure, mapping parameters to module components using identifier elements includes:
[0023] Parse custom elements;
[0024] Find the input attributes on the report page;
[0025] Based on the user's input of custom parameters, customize the corresponding attributes on the custom element, and pass in the module function parameters to define the component template content;
[0026] The custom module function parameters on the custom element are communicated to the report page through output attributes.
[0027] In some embodiments of this disclosure, mapping the processed data and data type parameters to the report generation chain includes:
[0028] When using pre-packaged module components in the development report page, the processed data, data type parameters, and module function parameters are mapped to the module components.
[0029] In some embodiments of this disclosure, generating a report page that meets the corresponding data business scenario based on the processed data and data type parameters according to the report generation chain includes: generating a report page that meets the corresponding data business scenario through the report generation chain based on the processed data, data type parameters and module function parameters.
[0030] According to another aspect of this disclosure, a report page generation apparatus is provided, comprising:
[0031] The data acquisition module is configured to acquire the corresponding type of data based on the user's data service requirements;
[0032] The data processing module is configured to process the acquired data;
[0033] The parameter mapping module is configured to map the processed data and data type parameters to the report generation chain, wherein the report generation chain includes multiple module components;
[0034] The page generation module is configured to generate report pages that meet the corresponding data business scenarios based on the processed data and data type parameters and the report generation chain.
[0035] In some embodiments of this disclosure, the page generation module is configured to design a report page structure according to data business requirements. The report page structure includes at least one of a query module component, an export module component, a data visualization module component, a data display module component, and a pagination module component. Based on the report page structure, all module components are encapsulated into a report generation chain. Based on the processed data and data type parameters, a report page that meets the corresponding data business scenario is generated based on the report generation chain.
[0036] In some embodiments of this disclosure, the page generation module is configured to, when designing the report page structure according to data business requirements, add a query module component, wherein the query module component is used to implement at least one of the following functions: querying report data for a specific time or time period, defining query conditions, and filtering report data; add an export module component, wherein the export module component is used to export data reports in different formats; and add a data visualization module component, wherein the data visualization module component is used to visualize the data as charts of a specific type.
[0037] In some embodiments of this disclosure, the report page generation apparatus further includes:
[0038] The component extension module is configured to expand the types of module components included in the report generation chain according to data business needs.
[0039] In some embodiments of this disclosure, the data acquisition module is also configured to receive custom parameters input by the user;
[0040] The parameter mapping module is also configured to use identifier elements to map module function parameters to module components, so as to realize the customization of report pages according to different data business function requirements. The identifier element is a component packaged into a custom element.
[0041] In some embodiments of this disclosure, the parameter mapping module is configured to, when mapping parameters to module components using identifier elements, parse custom elements; find input attributes on the report page; customize corresponding attributes on the custom elements according to the user-input custom parameters, pass in module function parameters to define component template content; and inform the report page of the customized module function parameters on the custom elements through output attributes.
[0042] In some embodiments of this disclosure, the parameter mapping module is configured to map processed data, data type parameters, and module function parameters to the module components when using encapsulated module components on the development report page.
[0043] In some embodiments of this disclosure, the page generation module is configured to generate a report page that meets the corresponding data business scenario based on the processed data, data type parameters, and module function parameters through the report generation chain.
[0044] According to another aspect of this disclosure, a report page generation apparatus is provided, comprising:
[0045] The memory is configured to store instructions;
[0046] A processor, coupled to a memory, is configured to execute instructions stored in the memory to implement the report page generation method as described in any of the above embodiments.
[0047] According to another aspect of this disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions that, when executed by a processor, implement the control method as described in any of the above embodiments.
[0048] Based on the various aspects provided in this disclosure, this disclosure adopts modular component technology, which can quickly generate configurable report pages.
[0049] Other features and advantages of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0050] The accompanying drawings, which are included to provide a further understanding of this disclosure and form part of this disclosure, illustrate exemplary embodiments of the present disclosure and are used to explain the disclosure, but do not constitute an undue limitation of the disclosure. In the drawings:
[0051] Figure 1 These are schematic diagrams illustrating some embodiments of the report page generation method disclosed herein.
[0052] Figure 2 This is a schematic diagram of the report page structure in some embodiments of this disclosure.
[0053] Figure 3 This is a schematic diagram illustrating the implementation of report page functions in some embodiments of this disclosure.
[0054] Figure 4 These are schematic diagrams illustrating other embodiments of the report page generation method disclosed herein.
[0055] Figure 5 This is a schematic diagram of some embodiments of the report page generation method disclosed herein.
[0056] Figure 6 These are schematic diagrams of some embodiments of the report page generation apparatus disclosed herein.
[0057] Figure 7 The diagram shows the structure of some other embodiments of the report page generation apparatus disclosed herein. Detailed Implementation
[0058] The technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.
[0059] Unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of this disclosure. It should also be understood that, for ease of description, the dimensions of the various parts shown in the drawings are not drawn to actual scale. Techniques, methods, and devices known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and devices should be considered part of the specification. In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters in the following drawings denote similar items; therefore, once an item is defined in one drawing, it need not be further discussed in subsequent drawings.
[0060] For ease of description, spatial relative terms such as "above," "over," "on the upper surface of," "above," etc., are used herein to describe the spatial positional relationship of a device or feature as shown in the figures to other devices or features. It should be understood that spatial relative terms are intended to encompass different orientations in use or operation beyond the orientation of the device as described in the figures. For example, if the device in the figures were inverted, a device described as "above" or "above" other devices or structures would subsequently be positioned as "below" or "under" other devices or structures. Thus, the exemplary term "above" can include both "above" and "below." The device may also be positioned in other different ways, and the spatial relative descriptions used herein will be interpreted accordingly.
[0061] Figure 1 This is a schematic diagram illustrating some embodiments of the report page generation method of this disclosure. Preferably, this embodiment can be executed by the report page generation apparatus of this disclosure. The method includes at least one of steps 11 to 14, wherein:
[0062] Step 11: Obtain the corresponding type of data based on the user's data service requirements.
[0063] Step 12: Process the acquired data.
[0064] In some embodiments of this disclosure, step 12 may include: processing the data, wherein the processing includes cleaning and formatting to obtain data type parameters and module function parameters.
[0065] In some embodiments of this disclosure, step 12 may include: extracting and cleaning the data to facilitate its display in report form.
[0066] Step 13: Map the processed data and data type parameters to the report generation chain, wherein the report generation chain includes multiple module components.
[0067] In some embodiments of this disclosure, the report generation chain is an extensible chain of modular components, which contains various modular components for generating report pages.
[0068] Step 14: Based on the processed data and data type parameters, generate a report page that meets the corresponding data business scenario based on the report generation chain.
[0069] The embodiments described above employ modular component technology, enabling the rapid generation of configurable report pages to meet the ever-increasing data analysis needs of enterprises across various industries. Therefore, the embodiments described above significantly improve the development efficiency of report pages.
[0070] In some embodiments of this disclosure, step 14 may include at least one of steps 141 to 143, wherein:
[0071] Step 141: Design the report page structure according to data business requirements. The report page structure includes at least one of the following components: a query module component, an export module component, a data visualization module component, a data display module component, and a pagination module component.
[0072] Figure 2 This is a schematic diagram of the report page structure in some embodiments of this disclosure. For example... Figure 2 As shown, the report page structure includes at least one of the following components: a query module component, an export module component, a data visualization module component, a data display module component, and a pagination module component. Figure 2 As shown, the query module component is used to set the report type, query conditions, date picker, and search box; the data visualization module component includes visualization components such as bar chart, line chart, and scatter plot; the export module component is used to set the export format; the data display module component is used to set the table header and report body; and the pagination module component is used to set the number of records displayed per page.
[0073] In some embodiments of this disclosure, step 141 may include: adding a query module component, wherein the query module component is used to implement at least one of the functions of querying report data for a specific time or time period, defining query conditions, and filtering report data; adding an export module component, wherein the export module component is used to export data reports in different formats; and adding a data visualization module component, wherein the data visualization module component is used to visualize the data as a specific type of chart.
[0074] Step 142: Based on the report page structure, encapsulate all module components into a report generation chain.
[0075] Step 143: Based on the processed data and data type parameters, generate a report page that meets the corresponding data business scenario based on the report generation chain.
[0076] Figure 3 This is a schematic diagram illustrating the implementation of report page functionality in some embodiments of this disclosure. For example... Figure 3 As shown, the report page structure includes at least one of the following components: query module component, export module component, data visualization module component, data display module component, and pagination module component. Figure 3 As shown, based on parameters such as data type, report type (daily, monthly, yearly reports), data filter identifiers and values, and search box identifiers and values, a query module component is constructed, which provides the query bar for the report page; based on parameters such as export format, an export module component is constructed, which provides the report page export function; based on parameters such as table headers and event functions, a data display module component is constructed, which displays the data on the registration page; based on parameters such as the number of data entries displayed per page, a pagination module component is constructed, which provides the report page pagination function; and based on parameters such as chart type, a data visualization module component is constructed, which visualizes the report data.
[0077] The module components of the above embodiments of this disclosure can use parameter mapping to implement configurable report pages to adapt to the functional requirements of different types of data report pages.
[0078] The embodiments disclosed above can design a report generation chain using component module encapsulation technology and report page design patterns. The report generation chain encapsulates query module components, export module components, data display module components, pagination module components, and data visualization module components for generating report pages, which can be used to quickly develop report pages of different data types.
[0079] The report generation chain of the above embodiments of this disclosure provides a method for quickly customizing report page generation. By simply mapping type parameters and module parameters to the chain according to the data type, a report page that conforms to the scenario of that data type can be quickly developed.
[0080] The inventors discovered through research that basic report pages only need to implement basic functions such as data display and page turning. However, as data accumulates and new types of data are generated, basic report pages can no longer meet business needs.
[0081] The embodiments disclosed above can be designed with report page structure according to data business needs, and add query module components to realize functions such as querying report data for a specific time or time period, defining query conditions, and filtering report data; add export module components to realize the export of data reports in different formats, providing richer data analysis methods; and add data visualization module components to visualize data into a specific type of chart, allowing for more intuitive observation and analysis of the data.
[0082] The embodiments disclosed above can also be used to encapsulate all module components into an extensible report generation chain based on the report page structure, for rapid development of custom report pages that adapt to various types of business.
[0083] Figure 4 The diagram illustrates other embodiments of the report page generation method of this disclosure. Preferably, this embodiment can be executed by the report page generation apparatus of this disclosure. In addition to including... Figure 1 In addition to at least one of steps 11 to 14 in the embodiment, it may also include Figure 4 In the embodiment, at least one of steps 41 to 43, wherein:
[0084] Step 41: Expand the types of module components included in the report generation chain according to data business needs.
[0085] In some embodiments of this disclosure, as shown in 3, the report generation chain can be extended to meet data business requirements.
[0086] The module component chain of the above embodiments disclosed herein is extensible.
[0087] The report generation chain of the above embodiments of this disclosure is scalable and can be expanded according to the business needs of the company.
[0088] Step 42: Receive custom parameters input by the user.
[0089] In some embodiments of this disclosure, step 42 includes... Figure 1 In step 11 of the embodiment.
[0090] Step 43: Use identifier elements to map module function parameters to module components to enable customized report pages according to different data business function requirements. The identifier elements are components packaged into custom elements.
[0091] The embodiments described above can use identifier elements to map parameters to module components, thereby enabling the customization of report pages according to different data service function requirements.
[0092] In some embodiments of this disclosure, step 43 includes... Figure 1In steps 13 and 14 of the embodiment.
[0093] In the above embodiments of this disclosure, the most crucial step in generating report pages that adapt to various data business scenarios based on components is parameter mapping. Implementing parameter mapping requires the use of identifier elements, which are components packaged into custom elements. Custom elements are a set of Web standards that define new HTML elements and are independent of specific frameworks.
[0094] In some embodiments of this disclosure, custom elements are self-bootstrapping: a custom element starts itself when it is added to the DOM (Document Object Model) and destroys itself when it is removed from the DOM.
[0095] In some embodiments of this disclosure, custom elements are added to the DOM of any page, and the appearance and behavior of the custom elements are the same as other HTML elements. Appearance and behavior refer to the fact that the custom element can be displayed like an HTML element; for example, a custom element... <self-defined>Define its syntax so that when it is rendered to the page, it interacts with certain HTML elements such as... <input> In other words, custom elements look and behave just like other HTML elements. HTML elements added directly to the DOM when developing with a framework are not processed by the framework; the conversion of components into custom elements and other assembly tasks are done automatically. This method applies to the three major web development frameworks: React, Vue, and Angular.
[0096] In some embodiments of this disclosure, the custom element hosting the component establishes a bridge between the "data and logic" defined in the component and the standard DOM API (Application Programming Interface). The component's attributes and logic are directly mapped to HTML attributes and the browser's event system. Here, API is a general term encompassing a collection of predefined functions, methods, etc., used to implement certain functionalities. DOM API refers to the DOM as the interface for JavaScript to manipulate web pages; the DOM contains many encapsulated functions and methods (referring to APIs) that can be used.
[0097] In some embodiments of this disclosure, step 43, the step of mapping parameters to module components using identifier elements, may include at least one of steps 431 to 435, wherein:
[0098] Step 431: Parse the custom element.
[0099] In some embodiments of this disclosure, step 431 may include: the API used for creation parses the custom element. The API is some methods or functions. The API used for creation refers to methods in the DOM, which parse the component and obtain the custom parameters passed from the parent component (report page).
[0100] Step 432: Locate the input properties on the report page.
[0101] Step 433: Based on the user-inputted custom parameters, customize the corresponding attributes on the custom element and pass in the module function parameters to define the component template content.
[0102] Step 434: Inform the report page of the custom module function parameters on the custom element through the output attributes.
[0103] In some embodiments of this disclosure, the output properties of a component are distributed in the form of HTML custom events, where the name of the custom event is the name of the output property.
[0104] Step 435: When using the encapsulated module components on the report development page, map the parameters to components such as the query module to customize and generate report pages that meet the requirements of this type of data.
[0105] In the above embodiments of this disclosure, parent and child components are involved, wherein the report page is equivalent to the parent component and the child component is a custom element.
[0106] In the above embodiments of this disclosure, the attributes and logic of the sub-components are the syntax written in the custom elements, which are used to implement the appearance and behavior of the custom elements, so that they have a certain function or a certain complex operation, such as the report type drop-down selection bar, time picker, or search box in the filter-query component of the query module.
[0107] In the above embodiments of this disclosure, the input attribute is used to receive parameters passed in by the parent component. When the parent component uses a custom element, it needs to declare the functions required by this report page. If the query module needs to have a time selector, it needs to pass in the corresponding parameters to tell the custom element (e.g., the query module) to provide the time selector function to the parent component.
[0108] In the above embodiments of this disclosure, the output element is the opposite of the input element. The output element can inform the parent component (i.e., the report page) of certain changes that have occurred in the custom element. For example, the report type is switched. This is a change in the query module. When the type is switched, the data must be changed. However, the data display belongs to other component modules. In this case, it is necessary to inform the parent component through the output attribute that the report type has been switched. The parent component then notifies the data display module to re-render the data.
[0109] In some specific embodiments of this disclosure, step 43 may include: customizing the filtering conditions, report type, etc. of the query bar by using parameter identifiers, changing the header display information or adding a certain event function according to the mapped parameter identifiers, thereby meeting the needs of generating report pages for multiple types of data business scenarios.
[0110] The "data and logic," output attributes, and parameters in the custom elements of the above embodiments of this disclosure are for customizing components, report page content, and functions. For example, the filter-query component in the query module can have a drop-down selection bar for report types, a time selector, or a search box, etc., and the filter conditions can be customized according to different data types of reports. The filter conditions are the corresponding query and search bars for retrieving and filtering data after the report page displays data.
[0111] The above embodiments of this disclosure can customize the content of the report page according to the user's needs. For example, when a user displays a certain data type, they need to display the data size of that data type over a certain period of time. In this case, when generating the report page, the corresponding parameters need to be passed to the filter-query component of the query module so that the generated query bar has the function of selecting the time range, so as to realize data retrieval and filtering.
[0112] The above embodiments of this disclosure provide a method for generating report pages applicable to multi-data type businesses. Through component module encapsulation technology and report page design patterns, a report generation chain is generated. This chain provides a method for quickly generating report pages and customizing report pages according to different data business function requirements. Its fast and customizable features facilitate enterprises in various industries to process, display, and analyze different types of data that are constantly accumulated and generated in their business and production activities.
[0113] Figure 5 This is a schematic diagram illustrating further embodiments of the report page generation method of this disclosure. Preferably, this embodiment can be executed by the report page generation device of this disclosure. Figure 5 As shown, the report page generation method of this disclosure may include at least one of steps 51 to 54. Figure 5 Steps 51 to 54 of the embodiment are respectively in Figure 1 Steps 11 to 14 of the embodiment are the same or similar, wherein:
[0114] Step 51: Obtain the corresponding type of data based on the user's data service requirements.
[0115] In some embodiments of this disclosure, step 51 may include: obtaining data of the corresponding type from a relational database via an API.
[0116] In some embodiments of this disclosure, step 51 may include: based on the concept of Web component encapsulation, encapsulating a data formatting component according to the API return parameters.
[0117] In some embodiments of this disclosure, step 51 may include: the developer obtaining requirements from the requirements side (users), and selecting the module function parameters corresponding to the requirements when developing the report page.
[0118] Step 52: Process the acquired data.
[0119] In some embodiments of this disclosure, step 52 may include: processing the data according to the API return parameters, wherein the processing includes cleaning and formatting to obtain data type parameters and module function parameters.
[0120] In some embodiments of this disclosure, step 52 may include: extracting and cleaning the data to facilitate its display in report form.
[0121] Step 53: Map the processed data and data type parameters to the report generation chain, wherein the report generation chain includes multiple module components.
[0122] In some embodiments of this disclosure, the report generation chain is an extensible chain of modular components, which contains various modular components for generating report pages.
[0123] In some embodiments of this disclosure, step 53 may include: mapping the processed data, data type parameters, and module function parameters to the module component when using encapsulated module components on the development report page.
[0124] In some embodiments of this disclosure, step 53 may include: mapping the cleaned data, data type parameters, and module function parameters to the report generation chain to generate report pages with different functions.
[0125] In some embodiments of this disclosure, step 53 may include: importing the cleaned data, data type parameters, and module function parameters into the report generation chain to participate in the generation of the data report page.
[0126] In some embodiments of this disclosure, such as Figure 3 As shown, step 53 may include: designing the module components in the report generation chain according to the business scenario. This disclosure divides the data report page into five major modules and encapsulates them into components, namely the query module component filter-query, the export module component export, the data display module component table-list, the pagination module component pagenation, and the data visualization module component data-view.
[0127] In some embodiments of this disclosure, step 53 may include: Figure 4 Step 43 of the embodiment.
[0128] Step 54: Based on the processed data and data type parameters, generate a report page that meets the corresponding data business scenario based on the report generation chain.
[0129] In some embodiments of this disclosure, such as Figure 3 As shown, step 54 may include: generating a report page that meets the corresponding data business scenario based on the processed data, data type parameters, and module function parameters through the report generation chain.
[0130] In the embodiments described above, the developers obtain requirements from the demand side (users), select the module function parameters corresponding to the requirements when developing the report page, and pass them along with the data type parameters into the report generation chain to finally generate a report page that meets the user's requirements.
[0131] In the embodiments described above, the module components can use identifier elements to map parameters to the module components, thereby enabling the customization of report pages according to different data service function requirements.
[0132] In the embodiments described above, the module components can use identifier elements to map the required parameters to the corresponding module components according to the needs of different types of business, thereby quickly developing report pages that adapt to different data types of business.
[0133] Figure 6 These are schematic diagrams illustrating some embodiments of the report page generation apparatus disclosed herein. For example... Figure 6 As shown, the report page generation device of this disclosure may include a data acquisition module 61, a data processing module 62, a parameter mapping module 63, and a page generation module 64, wherein:
[0134] The data acquisition module 61 is configured to acquire data of the corresponding type according to the user's data service requirements.
[0135] The data processing module 62 is configured to process the acquired data.
[0136] The parameter mapping module 63 is configured to map the processed data and data type parameters to the report generation chain, wherein the report generation chain includes a variety of module components.
[0137] The page generation module 64 is configured to generate a report page that meets the corresponding data business scenario based on the processed data and data type parameters and the report generation chain.
[0138] In some embodiments of this disclosure, the page generation module 64 can be configured to design a report page structure according to data business requirements. The report page structure includes at least one of a query module component, an export module component, a data visualization module component, a data display module component, and a pagination module component. Based on the report page structure, all module components are encapsulated into a report generation chain. Based on the processed data and data type parameters, a report page that meets the corresponding data business scenario is generated based on the report generation chain.
[0139] In some embodiments of this disclosure, the page generation module 63 can be configured to, when designing the report page structure according to data business requirements, add a query module component, wherein the query module component is used to implement at least one of the following functions: querying report data for a specific time or time period, defining query conditions, and filtering report data; add an export module component, wherein the export module component is used to export data reports in different formats, thereby providing richer data analysis methods; and add a data visualization module component, wherein the data visualization module component is used to visualize data as specific types of charts, thereby allowing for more intuitive observation and analysis of the data.
[0140] In some embodiments of this disclosure, such as Figure 6 As shown, the report page generation device may further include a component expansion module 65, wherein:
[0141] Component extension module 65 is configured to extend the types of module components included in the report generation chain according to data business requirements.
[0142] This disclosure utilizes component module encapsulation technology and report page design patterns to design a report generation chain. The report generation chain encapsulates query module components, export module components, data display module components, pagination module components, and data visualization module components for generating report pages. This allows for the rapid development of report pages for different data types. Furthermore, the report generation chain is scalable and can be expanded according to the company's business needs.
[0143] The embodiments disclosed above can encapsulate all module components into an extensible report generation chain based on the report page structure, enabling rapid development of custom report pages that adapt to various business types.
[0144] In some embodiments of this disclosure, the data acquisition module 61 can also be configured to receive custom parameters input by the user; the parameter mapping module 63 can also be configured to use identifier elements to map module function parameters to module components, so as to realize the customization of report pages according to different data business function requirements, wherein the identifier element is a component packaged into a custom element.
[0145] In some embodiments of this disclosure, the parameter mapping module 63 can be configured to, when using an identifier element to map parameters to a module component, parse a custom element; find the input attributes of the report page; customize corresponding attributes on the custom element according to the user-input custom parameters, pass in module function parameters to define the component template content; and inform the report page of the customized module function parameters on the custom element through output attributes.
[0146] In some embodiments of this disclosure, the parameter mapping module 63 can be configured to map processed data, data type parameters, and module function parameters to the module components when using encapsulated module components on the development report page.
[0147] In some embodiments of this disclosure, the page generation module 64 can be configured to generate a report page that meets the corresponding data business scenario based on the processed data, data type parameters and module function parameters through the report generation chain.
[0148] The module components of the embodiments described above can use identifier elements for parameter mapping, allowing for customization of the functions of each module in the report. For example, the query module can be configured with different data filtering conditions based on business type; furthermore, the data display page can be customized with relevant click functions according to business needs. The embodiments described above can meet the filtering function requirements of report pages for different data types.
[0149] Figure 7 The diagram shows the structure of some other embodiments of the report page generation apparatus disclosed herein. For example... Figure 7 As shown, the report page generation device includes a memory 71 and a processor 72.
[0150] Memory 71 is used to store instructions, and processor 72 is coupled to memory 71. Processor 72 is configured to execute instructions stored in memory as described in any of the above embodiments (e.g., Figures 1 to 5 The report page generation method described in any of the embodiments.
[0151] like Figure 7 As shown, the report page generation device also includes a communication interface 73 for exchanging information with other devices. Additionally, the device includes a bus 74, through which the processor 72, communication interface 73, and memory 71 communicate with each other.
[0152] The memory 71 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk drive. The memory 71 may also be a memory array. The memory 71 may also be divided into blocks, and these blocks may be combined into virtual volumes according to certain rules.
[0153] Furthermore, processor 72 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present disclosure.
[0154] The present disclosure provides a method and apparatus for generating report pages for multiple types of business.
[0155] If the above embodiments of this disclosure adopt modular component technology, configurable report pages can be quickly generated to meet the ever-increasing data analysis needs of enterprises in various industries.
[0156] According to another aspect of this disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions that, when executed by a processor, implement any of the embodiments described above (e.g., Figures 1 to 5 The control method described in any of the embodiments.
[0157] In some embodiments of this disclosure, the computer-readable storage medium may be implemented as a non-transitory computer-readable storage medium.
[0158] The embodiments disclosed above can quickly generate report pages based on modular component technology. The module components in the embodiments of this disclosure can use parameter mapping to implement configurable report pages to adapt to the functional requirements of different types of data report pages.
[0159] The embodiments disclosed above can be flexibly applied to the generation of report pages for various types of data services, solving the problem of enterprise data service expansion.
[0160] Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, apparatus, or computer program products. Therefore, this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this disclosure can take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0161] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0162] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0163] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0164] The report page generation device, component expansion module, data acquisition module, data processing module, parameter mapping module, and page generation module described above can be implemented as a general-purpose processor, programmable logic controller (PLC), digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or any suitable combination thereof for performing the functions described in this application.
[0165] This concludes the detailed description of the present disclosure. To avoid obscuring the concept of the disclosure, some details known in the art have not been described. Those skilled in the art will fully understand how to implement the technical solutions disclosed herein based on the above description.
[0166] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing the relevant hardware to implement them. The program can be stored in a non-transitory computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0167] The description in this disclosure is provided for illustrative and descriptive purposes only and is not intended to be exhaustive or to limit the disclosure to its forms. Many modifications and variations will be apparent to those skilled in the art. The embodiments were chosen and described in order to better illustrate the principles and practical application of this disclosure and to enable those skilled in the art to understand this disclosure and to design various embodiments with various modifications suitable for a particular purpose.
Claims
1. A method of generating a report page, characterized by, The method comprises the following steps: According to the user's data service demand, the corresponding type of data is obtained; The obtained data is processed; The processed data and data type parameters are mapped to a report generation chain, wherein the report generation chain comprises a plurality of module components; According to the processed data and data type parameters, a report page that meets the corresponding data service scene is generated based on the report generation chain; According to the data service demand, the types of the module components contained in the report generation chain are expanded; Receive user input custom parameters; Map the module function parameters to the module components using the identification elements to realize custom report pages according to different data service function requirements, wherein the identification elements are components packaged into custom elements; According to the processed data and data type parameters, a report page that meets the corresponding data service scene is generated based on the report generation chain, which comprises: According to the data service demand, the report page structure is designed, wherein the report page structure comprises at least one component of the query module component, the export module component, the data visualization module component, the data display module component and the page turning module component; According to the report page structure, all module components are encapsulated into a report generation chain; According to the processed data and data type parameters, a report page that meets the corresponding data service scene is generated based on the report generation chain.
2. The report page generation method of claim 1, wherein, According to the data service demand, the report page structure is designed, which comprises: Add a query module component, wherein the query module component is used to realize at least one function of querying report data of a specific time or time period, defining query conditions and filtering report data; Add an export module component, wherein the export module component is used to realize the export of data report in different formats; Add a data visualization module component, wherein the data visualization module component is used to visualize data into a specific type of chart.
3. The report page generation method of claim 1 or 2, wherein, The use of identification elements to map parameters to module components comprises: Parse the custom element; Find the input attribute of the report page; According to the user input custom parameters, define the corresponding attributes on the custom element, and pass in the module function parameters to define the component template content; The module function parameters defined on the custom element are informed to the report page through the output attribute.
4. The report page generation method according to claim 3, wherein: The processed data and data type parameters are mapped to the report generation chain, which comprises: In the case of using encapsulated module components to develop report pages, the processed data, data type parameters and module function parameters are mapped to the module components; And / or, According to the processed data and data type parameters, a report page that meets the corresponding data service scene is generated based on the report generation chain, which comprises:
5. A report page generation apparatus characterized by comprising: According to the processed data, data type parameters and module function parameters, a report page that meets the corresponding data service scene is generated based on the report generation chain. The method comprises the following steps: The data acquisition module is configured to obtain the corresponding type of data according to the user's data service demand; The data processing module is configured to process the obtained data; The parameter mapping module is configured to map the processed data and the data type parameter to a report generation chain, wherein the report generation chain comprises a plurality of module components. The page generation module is configured to generate a report page meeting a corresponding data service scenario based on the report generation chain according to the processed data and the data type parameter. The component extension module is configured to extend the types of the module components included in the report generation chain according to data service requirements. The data acquisition module is further configured to receive a user-input custom parameter. The parameter mapping module is further configured to map the module function parameters to the module components using an identification element to realize customizing the report page according to different data service function requirements, wherein the identification element is a component packaged into a custom element. The page generation module is configured to design a report page structure according to data service requirements, wherein the report page structure comprises at least one of a query module component, an export module component, a data visualization module component, a data display module component, and a page turning module component; encapsulate all the module components into a report generation chain according to the report page structure; and generate a report page meeting a corresponding data service scenario based on the report generation chain according to the processed data and the data type parameter.
6. The report page generation apparatus according to claim 5, wherein: The page generation module is configured to add a query module component in the case of designing the report page structure according to data service requirements, wherein the query module component is used to realize at least one of querying report data of a specific time or time period, defining a query condition, and filtering report data; add an export module component, wherein the export module component is used to realize exporting data report in different formats; and add a data visualization module component, wherein the data visualization module component is used to visualize data into a specific type of chart.
7. The report page generation apparatus according to claim 5 or 6, wherein: The parameter mapping module is configured to parse a custom element in the case of mapping parameters to module components using an identification element; find input attributes of the report page; customize corresponding attributes on the custom element according to a user-input custom parameter, and pass in module function parameters for defining component template content; and inform the report page of the module function parameters customized on the custom element through output attributes.
8. The report page generation apparatus according to claim 7, wherein: The parameter mapping module is configured to map the processed data, the data type parameter, and the module function parameters to the module components in the case of developing a report page using encapsulated module components. And / or, The page generation module is configured to generate a report page meeting a corresponding data service scenario according to the processed data, the data type parameter, and the module function parameters through the report generation chain.
9. A report page generation apparatus characterized by comprising: The memory is configured to store instructions. The processor is coupled to the memory, and the processor is configured to execute the instructions stored in the memory to implement the report page generation method according to any one of claims 1 to 4. 10. A computer readable storage medium, wherein, The computer readable storage medium stores computer instructions, and the instructions are executed by the processor to implement the report page generation method in any one of claims 1 to 4.
Citation Information
Patent Citations
Metadata-based WEB report automatic generation method and device
CN114064716A
Template generation method, data entry template and data entry method and device
CN114090544A