CN114118033A - Report generation method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN114118033A
CN114118033A CN202111191479.8A CN202111191479A CN114118033A CN 114118033 A CN114118033 A CN 114118033A CN 202111191479 A CN202111191479 A CN 202111191479A CN 114118033 A CN114118033 A CN 114118033A
Authority
CN
China
Prior art keywords
data model
chart component
report
setting instruction
chart
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111191479.8A
Other languages
Chinese (zh)
Inventor
李伟
胡张东
党杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhuiyi Technology Co Ltd
Original Assignee
Shenzhen Zhuiyi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhuiyi Technology Co Ltd filed Critical Shenzhen Zhuiyi Technology Co Ltd
Priority to CN202111191479.8A priority Critical patent/CN114118033A/en
Publication of CN114118033A publication Critical patent/CN114118033A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a report generation method, a report generation device, a report generation equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: receiving a chart component setting instruction, and acquiring a chart component according to the chart component setting instruction; receiving a data model setting instruction aiming at the chart component, and setting a related data model for the chart component according to the data model setting instruction, wherein the data model is used for acquiring back reference from a data source according to the back reference; receiving a parameter input option setting instruction, and setting a global screening option according to the parameter input option setting instruction, wherein the global screening option is used for a user to input parameters; generating a report based on the graph component, the data model, and the global sifting item. According to the technical scheme, the time consumption of generating the report is reduced, and the labor cost input is reduced.

Description

Report generation method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a report.
Background
Currently, many fields have the requirement of creating reports, which refer to tables or charts for presenting data.
In the related art, the generation of the report is generally that a front-end developer writes a code according to the specific generation requirement of the report, and the report is generated through personalized code logic.
However, such a generation method takes a long time and requires a large investment in labor cost.
Disclosure of Invention
On the basis, the report generation method, the report generation device, the report generation equipment and the storage medium are provided for reducing the time consumption of report generation and reducing the labor cost input.
In a first aspect, a report generating method is provided, and the method includes:
receiving a chart component setting instruction, and acquiring a chart component according to the chart component setting instruction; receiving a data model setting instruction aiming at the chart component, and setting a related data model for the chart component according to the data model setting instruction, wherein the data model is used for acquiring back reference from a data source according to the back reference; receiving a parameter input option setting instruction, and setting a global screening option according to the parameter input option setting instruction, wherein the global screening option is used for a user to input parameters; generating a report based on the graph component, the data model, and the global sifting item.
In one embodiment, the method further comprises: receiving a style setting instruction aiming at the chart component, and adjusting the style of the chart component according to the style setting instruction;
generating a report based on the graph component, the data model and the global sifting item, including: and generating the report based on the chart component after the style adjustment, the data model and the global screening item.
In one embodiment, the chart component setting instruction includes a drag instruction and an adjustment instruction, and acquiring the chart component according to the chart component setting instruction includes:
determining a drag object of the drag instruction in a chart component library, wherein the drag object is a chart component in the chart component library; and dragging the dragged object to a target position according to the dragging instruction, and adjusting the size and/or the position of the dragged object according to the adjusting instruction.
In one embodiment, before setting the associated data model for the chart component according to the data model setting instruction, the method further comprises:
and mapping a data interface of the data source to the data model, wherein the data interface is used for maintaining the entry and the return according to an agreed format specification.
In one embodiment, the method further comprises: and generating a report configuration file based on the chart component, the data model and the global screening item, and generating an access address corresponding to the report configuration file so that the terminal equipment can call the report configuration file according to the access address.
In one embodiment, the method further comprises: receiving a calling request sent by the terminal equipment according to the access address; and sending the report configuration file to the terminal equipment based on the calling request so that the terminal equipment can render a report page according to the report configuration file.
In one embodiment, after generating a report based on the graph component, the data model, and the global sifting option, the method further comprises: in the process of loading the report, receiving parameters input by a user in the global screening item; calling the data model to acquire the back reference from the data source according to the parameters input by the user by using the data model; the retrieved back reference is displayed in the graph component.
In a second aspect, a report generating apparatus is provided, the apparatus including:
the first receiving module is used for receiving a chart component setting instruction;
the acquisition module is used for acquiring the chart component according to the chart component setting instruction;
the second receiving module is used for receiving a data model setting instruction aiming at the chart component;
the first setting module is used for setting an associated data model for the chart component according to the data model setting instruction, and the data model is used for acquiring the back reference from a data source according to the back reference;
the third receiving module is used for receiving a parameter input option setting instruction;
the second setting module is used for setting a global screening item according to the parameter input item setting instruction, and the global screening item is used for a user to input parameters;
and the first generation module is used for generating a report based on the chart component, the data model and the global screening item.
In one embodiment, the apparatus further comprises:
a fourth receiving module, configured to receive a style setting instruction for the chart component;
the adjusting module is used for adjusting the style of the chart component according to the style setting instruction;
the first generation module is specifically configured to: and generating the report based on the chart component after the style adjustment, the data model and the global screening item.
In one embodiment, the chart component setting instruction includes a drag instruction and an adjustment instruction, and the obtaining module is specifically configured to: determining a drag object of the drag instruction in a chart component library, wherein the drag object is a chart component in the chart component library; and dragging the dragged object to a target position according to the dragging instruction, and adjusting the size and/or the position of the dragged object according to the adjusting instruction.
In one embodiment, the apparatus further comprises a mapping module;
the mapping module is used for mapping a data interface of the data source into the data model, and the data interface is used for maintaining the entry and the return according to an agreed format specification.
In one embodiment, the apparatus further comprises a second generating module;
the second generation module is used for generating a report configuration file based on the chart component, the data model and the global screening item, and generating an access address corresponding to the report configuration file, so that the terminal equipment can call the report configuration file according to the access address.
In one embodiment, the apparatus further comprises:
a fifth receiving module, configured to receive a call request sent by the terminal device according to the access address;
and the sending module is used for sending the report configuration file to the terminal equipment based on the calling request so as to render a report page by the terminal equipment according to the report configuration file.
In one embodiment, the apparatus further comprises:
a sixth receiving module, configured to receive, during the process of loading the report, a parameter input by a user in the global screening item;
the calling module is used for calling the data model so as to obtain the back reference from the data source according to the parameters input by the user by using the data model;
and the display module is used for displaying the acquired echo in the chart component.
In a third aspect, a computer device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, implements the report generating method according to any one of the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the report generating method according to any of the first aspect.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the method comprises the steps of receiving a diagram component setting instruction, obtaining a diagram component according to the diagram component setting instruction, then receiving a data model setting instruction aiming at the diagram component, setting a related data model for the diagram component according to the data model setting instruction, wherein the data model is used for obtaining back parameters from a data source according to the back parameters, then receiving a parameter input option setting instruction, setting a global screening option according to the parameter input option setting instruction, wherein the global screening option is used for a user to input parameters, and finally generating a report based on the diagram component, the data model and the global screening option, so that a technician can finish generating the report by inputting a simple setting instruction, and besides, the technician can realize adaptation to different generation requirements by simply adjusting the setting instruction according to different generation requirements, because no code is required to be written, the time consumption of generating the report can be greatly reduced, and the labor cost is reduced.
Drawings
Fig. 1 is a flowchart of a report generation method according to an embodiment of the present application;
fig. 2 is a flowchart of another report generation method provided in the embodiment of the present application;
fig. 3 is a flowchart of another report generation method provided in the embodiment of the present application;
fig. 4 is a flowchart of another report generation method provided in the embodiment of the present application;
fig. 5 is a flowchart of another report generation method provided in the embodiment of the present application;
fig. 6 is a block diagram of a report generation apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Currently, there are report creation generation requirements in many fields, for example, in a banking system, there are requirements for generating a bank running report, and for an application provider, there are report requirements for generating a monthly visit amount, and the like.
In the related art, the generation of the report is generally that a front-end developer writes a code according to the specific generation requirement of the report, and the report is generated through personalized code logic.
However, such a generation method takes a long time and requires a large investment in labor cost. In view of the above, an embodiment of the present application provides a report generation method, which includes receiving a chart component setting instruction, obtaining a chart component according to the chart component setting instruction, receiving a data model setting instruction for the chart component, setting an associated data model for the chart component according to the data model setting instruction, wherein the data model is used for obtaining back parameters from a data source according to the back parameters, receiving a parameter input option setting instruction, setting a global screen option according to the parameter input option setting instruction, the global screen option is used for a user to input parameters, and generating a report based on the chart component, the data model and the global screen option, so that a technician can complete generation of the report by inputting a simple setting instruction, and in addition, for different generation requirements, the technician can implement adaptation to different generation requirements by simply adjusting the setting instruction, because no code is required to be written, the time consumption of generating the report can be greatly reduced, and the labor cost is reduced.
It should be noted that, in the report generation method provided in the embodiment of the present application, the execution main body may be a report generation apparatus, and the report generation apparatus may be implemented as part or all of a terminal or a server in a software, hardware, or combination of software and hardware. In the following method embodiments, an execution subject is taken as an example to be described, where the terminal in the present application embodiment may be a tablet computer, a desktop computer, a notebook computer, a mobile phone, a wearable device, an e-book reader, and the like, and the server in the present application embodiment may be one server or a server cluster composed of multiple servers.
Please refer to fig. 1, which shows a flowchart of a report generation method provided in an embodiment of the present application, and the report generation method may be applied in a terminal. As shown in fig. 1, the report generation method may include the following steps:
step 101, receiving a chart component setting instruction, and acquiring a chart component according to the chart component setting instruction.
It should be noted that, in an alternative embodiment of the present application, the terminal may provide a report generation interface, the terminal may receive a chart component setting instruction input by a user based on the report generation interface, and after receiving the chart component setting instruction, the terminal may obtain a chart component according to the chart component setting instruction, where the chart component may be, for example, a table, a line graph, a bar graph, a pie graph, or the like, and a specific type of the chart component is not limited in this embodiment of the present application.
It should be noted that, in an alternative embodiment of the present application, the terminal may receive a chart component setting instruction input multiple times by the user, and obtain multiple chart components according to the chart component setting instruction input multiple times, in other words, one or more chart components may be mentioned in the embodiment of the present application, and the embodiment of the present application does not limit the number of the chart components.
It should be further noted that, in the case where the terminal acquires a plurality of chart components, the terminal also needs to acquire layout information of the plurality of chart components, the layout information being used to indicate the relative positional relationship between the plurality of chart components.
In practical application, charts such as tables, line graphs, bar graphs or pie charts are important components of the report, so that in the process of generating the report, chart components can be obtained first, optionally, in the case that the number of the chart components is multiple, layout information of the multiple chart components can be obtained, and then, the improvement processing is performed based on the chart components, so that the final report is obtained.
And 102, receiving a data model setting instruction aiming at the chart component, and setting an associated data model for the chart component according to the data model setting instruction.
In practical applications, a report includes not only a graph component but also data, and generally, most of the data in the report is imported from an external data source, for example, the external data source may be a database or the like.
Therefore, in the embodiment of the application, after the graph component is obtained, the obtaining manner of the data in the graph component needs to be set, specifically, the terminal may receive a data model setting instruction based on the report generation interface, and set the associated data model for the graph component according to the data model setting instruction, where the data model is used to obtain the back reference from the data source according to the back reference, so that the back reference may be obtained from the data source through the data model associated with the graph component to show the back reference in the graph component.
It should be noted that, if the number of the graph assemblies is multiple, the terminal may receive a data model setting instruction for each graph assembly to set an associated data model for each graph assembly, where the data models of the graph assemblies may be the same or different, and this is not specifically limited in this embodiment of the application.
In an optional embodiment of the present application, for a data source corresponding to data to be imported into a graph component, a data interface of the data source may be created, where the data interface is used to maintain entry and participation back references of the interface according to an agreed format specification, and then the data interface is subjected to mapping processing, so as to obtain a data model.
For example, for a report for counting the system access amount in the last half month, data needs to be imported from the access amount index database, at this time, a data interface for returning the access amount index value according to the date can be created for the access amount index database, so as to maintain participation and parameter return according to an agreed format, and after the data interface is obtained, the data interface can be mapped into a data model.
It should be noted that mapping the data interface to the data model may be performed before generating the report, in other words, the terminal may store a plurality of data models in advance, and in the process of generating the report, the terminal only needs to set the associated data model for the graph component from the plurality of data models stored in advance according to the data model setting instruction, and does not need to perform the technical process of mapping the data interface to the data model while generating the report, so that the complexity and time of generating the report may be greatly reduced.
And 103, receiving a parameter input option setting instruction, and setting a global screening option according to the parameter input option setting instruction.
The global screening item may be associated with a chart component, and in the case that the number of chart components is multiple, the global screening item may be associated with each chart component.
The global sifter is used for the user to input parameters, which can be used as the entries of the data model, and as described above, the data model can obtain the back reference from the data source based on the entries to display the back reference in the chart component.
It should be noted that, in the case that the number of chart components is multiple, the global sifting option provides a parameter input function for each chart component, so that the data model associated with each chart component can obtain the back reference according to the parameter corresponding to each chart component input in the global sifting option, so as to display the back reference in the corresponding chart component.
And 104, generating a report based on the chart component, the data model and the global screening item.
It should be noted that, in an alternative embodiment of the present application, in addition to setting an associated data model for a chart component based on a data model setting instruction, a style of the chart component may be adjusted based on a style setting instruction, and specifically, the terminal may receive a style setting instruction for the chart component and adjust the style of the chart component according to the style setting instruction.
The style of the chart component may refer to the appearance of the chart component, such as the display style of the chart component, the various chart items included in the chart component, and the like.
Such as a table-type chart, whose styles may include header, cross-line, background color, flipper, export button, etc. Such as a polyline type chart, whose styles may include legends, X-axis headings, double Y-axes, polylines tooltip, etc.
It should be noted that, if the number of the chart assemblies is multiple, the terminal may receive a style setting instruction for each chart assembly to adjust the style of each chart assembly, and it should be noted that the styles of the chart assemblies may be the same or different, and this is not limited in this embodiment of the present application.
Correspondingly, the terminal can generate a report based on the chart component, the data model and the global screening item after the style adjustment.
Referring to FIG. 2, a flowchart of an exemplary process for retrieving chart components according to chart component setup instructions is shown, as shown in FIG. 2, the process comprising the steps of:
step 201, determining a drag object of a drag instruction in a chart component library, wherein the drag object is a chart component in the chart component library.
In alternative embodiments of the present application, the chart component setup instructions may include drag instructions and adjustment instructions.
The terminal can provide a chart component library which can include a plurality of chart components, for example, the plurality of chart components can be table components, bar chart components, line chart components or pie chart components. The terminal can receive a dragging instruction based on the report generation interface, and the dragging instruction points to a certain dragging object, wherein the dragging object is a certain chart component displayed in the report generation interface.
It should be noted that the terminal may receive the drag instruction multiple times, and determine the drag object of the drag instruction each time, and in this way, the terminal may obtain multiple chart components.
Step 202, dragging the dragged object to a target position according to the dragging instruction, and adjusting the size and/or position of the dragged object according to the adjusting instruction.
After receiving the dragging instruction, the terminal can drag the dragging object to a target position in the canvas according to the dragging instruction, and then the terminal can receive an adjusting instruction based on the report generation interface and adjust the size and/or the position of the chart component in the canvas according to the adjusting instruction.
Referring to fig. 3, which is a flow chart illustrating an alternative technical process in the embodiment of the present application, as shown in fig. 3, the technical process may include the following steps:
step 301, generating a report configuration file based on the chart component, the data model and the global screening item.
In an optional embodiment of the present application, the report generation method provided by the present application further supports online development debugging and preview. In other words, the terminal may store the chart component, the data model, and the global screening as JSON configuration files, that is, the above-mentioned report configuration file, and it should be noted that the report configuration file may further include style information of the chart component, layout information of the chart component, and the like.
And step 302, generating an access address corresponding to the report configuration file, so that the terminal equipment can call the report configuration file according to the access address.
After the report configuration file is generated, the terminal may further generate an access address (e.g., a URL) corresponding to the report configuration file, so that the terminal device may call the report configuration file according to the access address.
Referring to fig. 4, in an optional embodiment of the present application, the technical process of invoking the report configuration file may include the following steps:
step 401, receiving a call request sent by the terminal device according to the access address.
And step 402, sending the report configuration file to the terminal equipment based on the calling request so that the terminal equipment can render a report page according to the report configuration file.
In an alternative embodiment of the present application, after generating a report, the report may be loaded and displayed, please refer to fig. 5, where the technical process of loading and displaying may include the following steps:
step 501, in the process of loading the report, receiving parameters input by a user in the global screening item.
As described above, in the case that the number of chart components is multiple, the global filter item provides a parameter input function for each chart component, so in step 501, the user may input a parameter for a different chart component in the global filter item, where the input parameter is a parameter of the data model associated with each chart component.
Step 502, invoking a data model to obtain a reference from a data source according to a parameter input by a user by using the data model.
In an alternative embodiment of the present application, for different chart components, the data model associated with the chart component may be invoked to obtain the back reference from the data source according to the parameters corresponding to the chart component input by the user in the global sifting option using the data model.
In step 503, the obtained back reference is displayed in the graph component.
In an optional embodiment of the present application, the terminal may respectively display the obtained back references in the graph components corresponding to the back references.
For example, for a report of the system visit amount in the near half month, the global screening items comprise a date interval and a system channel, when the report is loaded, data of different dates and channels are checked by selecting the date interval and the channel type, the screening items are transmitted into the data, the data model associated with the screening items is called by a line chart to obtain return data, and date and visit amount indexes are displayed.
Referring to fig. 6, an embodiment of the present application further provides a block diagram of a report generating apparatus 600. As shown in fig. 6, the report generating apparatus 600 may include a first receiving module 601, an obtaining module 602, a second receiving module 603, a first setting module 604, a third receiving module 605, a second setting module 606, and a first generating module 607.
The first receiving module 601 is configured to receive a chart component setting instruction.
The obtaining module 602 is configured to obtain a chart component according to the chart component setting instruction.
The second receiving module 603 is configured to receive a data model setting instruction for the chart component.
The first setting module 604 is configured to set an associated data model for the schema component according to the data model setting instruction, where the data model is configured to obtain the back reference from the data source according to the back reference.
The third receiving module 605 is configured to receive a parameter input option setting instruction.
The second setting module 606 is configured to set a global screening item according to the parameter input item setting instruction, where the global screening item is used for a user to input a parameter.
The first generation module 607 is configured to generate a report based on the graph component, the data model, and the global sifting item.
In an optional embodiment of the present application, the chart component setting instruction includes a drag instruction and an adjustment instruction, and the obtaining module 602 is specifically configured to: determining a drag object of the drag instruction in a chart component library, wherein the drag object is a chart component in the chart component library; and dragging the dragged object to a target position according to the dragging instruction, and adjusting the size and/or the position of the dragged object according to the adjusting instruction.
The embodiment of the present application further provides another report generating apparatus, where the report generating apparatus includes, in addition to the modules included in the report generating apparatus 600, optionally, a fourth receiving module, an adjusting module, a mapping module, a second generating module, a fifth receiving module, a sending module, a sixth receiving module, a calling module, and a display module.
The fourth receiving module is used for receiving the style setting instruction aiming at the chart component.
The adjusting module is used for adjusting the style of the chart component according to the style setting instruction.
Correspondingly, the first generating module is specifically configured to: and generating the report based on the chart component after the style adjustment, the data model and the global screening item.
The mapping module is used for mapping a data interface of the data source into the data model, and the data interface is used for maintaining the entry and the return according to an agreed format specification.
The second generation module is used for generating a report configuration file based on the chart component, the data model and the global screening item, and generating an access address corresponding to the report configuration file, so that the terminal equipment can call the report configuration file according to the access address.
The fifth receiving module is configured to receive a call request sent by the terminal device according to the access address.
The sending module is used for sending the report configuration file to the terminal equipment based on the calling request so that the terminal equipment can render a report page according to the report configuration file.
The sixth receiving module is configured to receive the parameters input by the user in the global screening item in the process of loading the report.
The calling module is used for calling the data model so as to obtain the back reference from the data source according to the parameters input by the user by using the data model.
The display module is used for displaying the acquired echo in the chart component.
The report generation device provided by the embodiment of the application can implement the method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
For the specific definition of the report generation apparatus, reference may be made to the above definition of the report generation method, which is not described herein again. All modules in the report generation device can be completely or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment of the present application, a computer device is provided, the internal structure of which may be as shown in fig. 7. The computer device includes a processor and a memory connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The computer program is executed by a processor to implement a report generating method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment of the present application, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
receiving a chart component setting instruction, and acquiring a chart component according to the chart component setting instruction; receiving a data model setting instruction aiming at the chart component, and setting a related data model for the chart component according to the data model setting instruction, wherein the data model is used for acquiring back reference from a data source according to the back reference; receiving a parameter input option setting instruction, and setting a global screening option according to the parameter input option setting instruction, wherein the global screening option is used for a user to input parameters; generating a report based on the graph component, the data model, and the global sifting item.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: receiving a style setting instruction aiming at the chart component, and adjusting the style of the chart component according to the style setting instruction; and generating the report based on the chart component after the style adjustment, the data model and the global screening item.
In an embodiment of the application, the chart component setting instruction includes a drag instruction and an adjustment instruction, and the processor executes the computer program to further implement the following steps: determining a drag object of the drag instruction in a chart component library, wherein the drag object is a chart component in the chart component library; and dragging the dragged object to a target position according to the dragging instruction, and adjusting the size and/or the position of the dragged object according to the adjusting instruction.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and mapping a data interface of the data source to the data model, wherein the data interface is used for maintaining the entry and the return according to an agreed format specification.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and generating a report configuration file based on the chart component, the data model and the global screening item, and generating an access address corresponding to the report configuration file so that the terminal equipment can call the report configuration file according to the access address.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: receiving a calling request sent by the terminal equipment according to the access address; and sending the report configuration file to the terminal equipment based on the calling request so that the terminal equipment can render a report page according to the report configuration file.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: in the process of loading the report, receiving parameters input by a user in the global screening item; calling the data model to acquire the back reference from the data source according to the parameters input by the user by using the data model; the retrieved back reference is displayed in the graph component.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of:
receiving a chart component setting instruction, and acquiring a chart component according to the chart component setting instruction; receiving a data model setting instruction aiming at the chart component, and setting a related data model for the chart component according to the data model setting instruction, wherein the data model is used for acquiring back reference from a data source according to the back reference; receiving a parameter input option setting instruction, and setting a global screening option according to the parameter input option setting instruction, wherein the global screening option is used for a user to input parameters; generating a report based on the graph component, the data model, and the global sifting item.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: receiving a style setting instruction aiming at the chart component, and adjusting the style of the chart component according to the style setting instruction; and generating the report based on the chart component after the style adjustment, the data model and the global screening item.
In one embodiment of the application, the charting component setup instructions include drag instructions and adjustment instructions, and the computer program when executed by the processor further performs the steps of: determining a drag object of the drag instruction in a chart component library, wherein the drag object is a chart component in the chart component library; and dragging the dragged object to a target position according to the dragging instruction, and adjusting the size and/or the position of the dragged object according to the adjusting instruction.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and mapping a data interface of the data source to the data model, wherein the data interface is used for maintaining the entry and the return according to an agreed format specification.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and generating a report configuration file based on the chart component, the data model and the global screening item, and generating an access address corresponding to the report configuration file so that the terminal equipment can call the report configuration file according to the access address.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: receiving a calling request sent by the terminal equipment according to the access address; and sending the report configuration file to the terminal equipment based on the calling request so that the terminal equipment can render a report page according to the report configuration file.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: in the process of loading the report, receiving parameters input by a user in the global screening item; calling the data model to acquire the back reference from the data source according to the parameters input by the user by using the data model; the retrieved back reference is displayed in the graph component.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A report generation method is characterized by comprising the following steps:
receiving a chart component setting instruction, and acquiring a chart component according to the chart component setting instruction;
receiving a data model setting instruction aiming at the chart component, and setting a related data model for the chart component according to the data model setting instruction, wherein the data model is used for acquiring back parameters from a data source according to the back parameters;
receiving a parameter input option setting instruction, and setting a global screening option according to the parameter input option setting instruction, wherein the global screening option is used for a user to input parameters;
and generating a report based on the chart component, the data model and the global screening item.
2. The method of claim 1, further comprising:
receiving a style setting instruction aiming at the chart component, and adjusting the style of the chart component according to the style setting instruction;
generating a report based on the graph component, the data model and the global sifting item, comprising:
and generating the report based on the chart component after the style adjustment, the data model and the global screening item.
3. The method according to claim 1, wherein the chart component setting instructions comprise drag instructions and adjustment instructions, and wherein obtaining a chart component according to the chart component setting instructions comprises:
determining a drag object of the drag instruction in a chart component library, wherein the drag object is a chart component in the chart component library;
and dragging the dragged object to a target position according to the dragging instruction, and adjusting the size and/or the position of the dragged object according to the adjusting instruction.
4. The method of claim 1, wherein prior to setting the associated data model for the chart component according to the data model setting instructions, the method further comprises:
and mapping a data interface of the data source into the data model, wherein the data interface is used for maintaining the entry and the return according to an agreed format specification.
5. The method of claim 1, further comprising:
and generating a report configuration file based on the chart component, the data model and the global screening item, and generating an access address corresponding to the report configuration file so that the terminal equipment can call the report configuration file according to the access address.
6. The method of claim 5, further comprising:
receiving a calling request sent by the terminal equipment according to the access address;
and sending the report configuration file to the terminal equipment based on the calling request so that the terminal equipment can render a report page according to the report configuration file.
7. The method of claim 1, wherein after generating a report based on the graph component, the data model, and the global sifting option, the method further comprises:
in the process of loading the report, receiving parameters input by a user in the global screening item;
calling the data model to acquire a parameter from the data source according to the parameter input by the user by using the data model;
displaying the retrieved back reference in the graph component.
8. A report generation apparatus, characterized in that the apparatus comprises:
the first receiving module is used for receiving a chart component setting instruction;
the acquisition module is used for acquiring the chart component according to the chart component setting instruction;
the second receiving module is used for receiving a data model setting instruction aiming at the chart component;
the first setting module is used for setting a relevant data model for the chart component according to the data model setting instruction, and the data model is used for acquiring the back reference from a data source according to the back reference;
the third receiving module is used for receiving a parameter input option setting instruction;
the second setting module is used for setting a global screening item according to the parameter input item setting instruction, and the global screening item is used for a user to input parameters;
and the first generation module is used for generating a report based on the chart component, the data model and the global screening item.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the computer program, when executed by the processor, implements the report generating method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the report generating method according to any of claims 1 to 7.
CN202111191479.8A 2021-10-13 2021-10-13 Report generation method, device, equipment and storage medium Pending CN114118033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111191479.8A CN114118033A (en) 2021-10-13 2021-10-13 Report generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111191479.8A CN114118033A (en) 2021-10-13 2021-10-13 Report generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114118033A true CN114118033A (en) 2022-03-01

Family

ID=80375802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111191479.8A Pending CN114118033A (en) 2021-10-13 2021-10-13 Report generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114118033A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908659A (en) * 2017-10-17 2018-04-13 深圳前海微众银行股份有限公司 Data sheet collocation method, report platform and computer-readable recording medium
CN109358851A (en) * 2018-07-19 2019-02-19 平安科技(深圳)有限公司 Creation method, device and the computer readable storage medium of chart components
CN109388462A (en) * 2018-09-28 2019-02-26 中国平安财产保险股份有限公司 Report sharing method, device, computer equipment and storage medium
CN109388791A (en) * 2018-09-28 2019-02-26 中国平安财产保险股份有限公司 Chart Dynamic Display method, apparatus, computer equipment and storage medium
CN109491743A (en) * 2018-11-05 2019-03-19 上海鋆创信息技术有限公司 Visual Report Forms generation method, device, electronic equipment and storage medium
CN110807306A (en) * 2019-11-07 2020-02-18 智慧足迹数据科技有限公司 Report template generation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908659A (en) * 2017-10-17 2018-04-13 深圳前海微众银行股份有限公司 Data sheet collocation method, report platform and computer-readable recording medium
CN109358851A (en) * 2018-07-19 2019-02-19 平安科技(深圳)有限公司 Creation method, device and the computer readable storage medium of chart components
CN109388462A (en) * 2018-09-28 2019-02-26 中国平安财产保险股份有限公司 Report sharing method, device, computer equipment and storage medium
CN109388791A (en) * 2018-09-28 2019-02-26 中国平安财产保险股份有限公司 Chart Dynamic Display method, apparatus, computer equipment and storage medium
CN109491743A (en) * 2018-11-05 2019-03-19 上海鋆创信息技术有限公司 Visual Report Forms generation method, device, electronic equipment and storage medium
CN110807306A (en) * 2019-11-07 2020-02-18 智慧足迹数据科技有限公司 Report template generation method and device

Similar Documents

Publication Publication Date Title
CN110377851B (en) Method and device for realizing multi-stage linkage drop-down frame and computer equipment
CN108388515B (en) Test data generation method, device, equipment and computer readable storage medium
CN109815471A (en) Contract text generation method, device, computer equipment and storage medium
CN111061475A (en) Software code generation method and device, computer equipment and storage medium
CN112486828A (en) Test case generation method and device, computer equipment and storage medium
CN113076731A (en) Report file generation method and device, computer equipment and storage medium
CN112596708A (en) Webpage generating method and device, computer equipment and storage medium
CN111045707A (en) Method and device for updating small program, computer equipment and storage medium
CN112613275A (en) Receipt generation method and device, computer equipment and storage medium
CN114118033A (en) Report generation method, device, equipment and storage medium
CN111597151A (en) File generation method and device, computer equipment and storage medium
CN115857929A (en) Resource data processing method and device, computer equipment and storage medium
CN112700522A (en) Method and system for displaying spine animation file in unity
CN109544661B (en) Area map drawing method, apparatus, computer device and storage medium
CN115113862A (en) Method and device for creating derived indexes, electronic equipment and storage medium
CN113127117A (en) Qt development framework-based interface paging display method, device, system and medium
CN107741951B (en) Page data processing method and device and electronic equipment
CN109871214B (en) Program code generation method, program code generation device, computer device, and storage medium
CN111382382B (en) Data display method, device, computer equipment and storage medium
US20070156775A1 (en) Metadata transformation in copy and paste scenarios between heterogeneous applications
CN111666340A (en) Synchronous data proofreading method and device based on big data and computer equipment
CN112257403A (en) PDF report generation method and device
CN116541454B (en) Event configuration method, device, computer equipment and storage medium
KR102462689B1 (en) Apparatus for displaying graph using complex unit time scale and method thereof
CN115630248A (en) Page determination method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination