[go: up one dir, main page]

CN111428464B - Report file generation method, device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN111428464B
CN111428464B CN202010229014.6A CN202010229014A CN111428464B CN 111428464 B CN111428464 B CN 111428464B CN 202010229014 A CN202010229014 A CN 202010229014A CN 111428464 B CN111428464 B CN 111428464B
Authority
CN
China
Prior art keywords
data
report
component
sub
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010229014.6A
Other languages
Chinese (zh)
Other versions
CN111428464A (en
Inventor
徐元伟
余庆
翟荣业
舒艾青
金海亮
王慧玲
许忆诺
张小瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Real Estate Co Ltd
Original Assignee
Ping An Real Estate 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 Ping An Real Estate Co Ltd filed Critical Ping An Real Estate Co Ltd
Priority to CN202010229014.6A priority Critical patent/CN111428464B/en
Publication of CN111428464A publication Critical patent/CN111428464A/en
Application granted granted Critical
Publication of CN111428464B publication Critical patent/CN111428464B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请涉及大数据领域,特别是涉及一种报告文件生成方法、装置、计算机设备和存储介质。所述方法包括:获取原始报告数据;识别并标注原始报告数据中各报告子数据的数据类型;通过显示界面接收对组件的选取指令,并根据选取指令在显示界面展示选取的组件,组件用于展示原始报告数据中的报告子数据,选取指令携带有被选取组件的组件标识;基于预设的数据类型与组件标识之间的关联关系,确定与选取的组件对应的报告子数据,并通过组件展示报告子数据;获取显示界面中组件的属性信息,并根据属性信息以及组件中展示的报告子数据,生成报告文件。采用本方法能够智能化地生成报告文件。

The present application relates to the field of big data, and in particular to a method, device, computer equipment and storage medium for generating a report file. The method comprises: obtaining original report data; identifying and marking the data type of each report sub-data in the original report data; receiving a selection instruction for a component through a display interface, and displaying the selected component on the display interface according to the selection instruction, the component is used to display the report sub-data in the original report data, and the selection instruction carries the component identification of the selected component; based on the association relationship between the preset data type and the component identification, determining the report sub-data corresponding to the selected component, and displaying the report sub-data through the component; obtaining the attribute information of the component in the display interface, and generating a report file according to the attribute information and the report sub-data displayed in the component. The present method can generate a report file intelligently.

Description

Report file generation method, report file generation device, computer equipment and storage medium
Technical Field
The present application relates to the field of artificial intelligence, and in particular, to a report file generating method, apparatus, computer device, and storage medium.
Background
Reports of various types are important written evidence of business and technical management and supervision by enterprises. The kinds and types of reports are also widely different from each other in the business that the enterprise engages in.
The existing report is mainly generated by using a history report or by using a general template, for example, new content is added on the basis of the history report, or the current report is changed according to different business contents by using a pre-manufactured general template, and then a report file is output.
However, when the report file is subjected to more complicated project data, it is necessary to manually process the project data, and thus the report file generation is not intelligent enough.
Disclosure of Invention
In view of the above, it is desirable to provide a report file generation method, apparatus, computer device, and storage medium capable of intelligently generating a report file.
A report file generation method, the method comprising:
acquiring original report data;
Identifying and labeling the data type of each report sub-data in the original report data;
Receiving a selection instruction of the component through a display interface, displaying the selected component on the display interface according to the selection instruction, wherein the component is used for displaying the report sub-data in the original report data, and the selection instruction carries a component identifier of the selected component;
displaying the selected components in a display interface;
Determining report sub-data corresponding to the selected component based on the association relation between the preset data type and the component identifier, and displaying the report sub-data through the component;
and acquiring attribute information of the component in the display interface, and generating a report file according to the attribute information and the report sub-data displayed in the component.
In one embodiment, the method further comprises:
Receiving an editing instruction of reporting sub-data in the component through a display interface, and editing the data format and/or the data content of the reporting sub-data based on the editing instruction;
Generating a report file according to the component information and the report sub-data displayed in the component, wherein the report file comprises:
and generating a report file based on the edited report sub data and the attribute information of the component.
In one embodiment, generating a report file according to the component information and the report sub-data displayed in the component includes:
Receiving an interaction instruction aiming at the report data displayed in the component, and adjusting the display proportion and/or the display area of the report data displayed in the component according to the interaction instruction;
Intercepting report sub-data subjected to display proportion and/or display area adjustment in the component to generate image data;
and generating a report file according to the image data and the acquired attribute information of the component.
In one embodiment, determining the report sub-data corresponding to the selected component based on the association relationship between the preset data type and the component identifier, and displaying the report sub-data through the component includes:
determining a data acquisition interface corresponding to the data type based on the association relation;
and acquiring report sub-data corresponding to the data type through a data acquisition interface, and displaying through the component.
In one embodiment, identifying and annotating the data type of each reporting sub-data in the original reporting data includes:
the method comprises the steps of identifying data types of original report data, and judging whether the original report data contains data of a plurality of different data types or not based on an identification result;
when the original report data contains data of a plurality of different data types, splitting the original report data according to the difference of the data types to obtain a plurality of report sub-data;
The data type of each report sub-data is respectively marked.
A report file generating apparatus, the apparatus comprising:
the original report data acquisition module is used for acquiring original report data;
The identifying and labeling module is used for identifying and labeling the data types of all the report sub-data in the original report data;
The selection instruction receiving module is used for receiving a selection instruction of the component through the display interface, displaying the selected component on the display interface according to the selection instruction, wherein the component is used for displaying the report sub-data in the original report data, and the selection instruction carries the component identifier of the selected component;
The report sub-data determining module is used for determining report sub-data corresponding to the selected component based on the association relation between the preset data type and the component identifier, and displaying the report sub-data through the component;
And the report file generation module is used for acquiring the attribute information of the component in the display interface and generating a report file according to the attribute information and the report sub-data displayed in the component.
In one embodiment, the apparatus further includes:
The editing instruction receiving module is used for receiving an editing instruction of the report sub-data in the component through the display interface, and editing the data format and/or the data content of the report sub-data based on the editing instruction;
The report file generation module is used for generating a report file based on the edited report sub-data and the attribute information of the component.
In one embodiment, the report file generation module includes:
The interactive instruction receiving sub-module is used for receiving an interactive instruction aiming at the report sub-data displayed in the component and adjusting the display proportion and/or the display area of the report sub-data displayed in the component according to the interactive instruction;
the intercepting sub-module is used for intercepting the report sub-data subjected to display proportion and/or display area adjustment in the component and generating image data;
and the report file generation sub-module is used for generating a report file according to the image data and the acquired attribute information of the component.
A computer device comprising a memory storing a computer program and a processor implementing the steps of any one of the methods described above when the processor executes the computer program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the preceding claims.
The report file generation method, the device, the computer equipment and the storage medium are characterized in that the data type of the acquired original report data is identified, the identification is carried out, then a selection instruction of the component is received through a display interface, and the selected component is displayed on the display interface according to the selection instruction, wherein the component is used for displaying the report sub-data in the original report data, and the selection instruction carries the component identification of the selected component. And further determining report sub-data corresponding to the selected component based on the association relation between the data type and the component identifier, displaying the report sub-data through the component, and generating a report file according to the acquired attribute information of the component and the report sub-data displayed by the component. Therefore, the original report data for generating the report file does not need to be manually identified and the data content is added, so that the report file is more intelligently generated.
Drawings
FIG. 1 is an application scenario diagram of a report file generation method in one embodiment;
FIG. 2 is a flow chart of a report file generating method according to one embodiment;
FIG. 3 is a schematic diagram of display content of a display interface in one embodiment;
FIG. 4 is a block diagram showing the construction of a report file generating apparatus in one embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The report file generation method provided by the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be configured to generate raw report data for the report file and send the raw report data to the server 104 via the network. After the server 104 obtains the original report data, the data type of each report sub-data in the obtained original report data can be identified and marked, and then the server 104 can receive a selection instruction for the component through the display interface and display the selected component in the display interface. Further, the server 104 may determine the report sub-data corresponding to the selected component based on the association relationship between the preset data type and the component identifier of the selected component carried by the selection instruction, and display the determined report sub-data through the component, so that the server 104 may obtain the attribute information of the component in the display interface and the report sub-data displayed in the component, and generate the report file. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a report file generating method is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
Step S202, original report data is acquired.
The raw report data refers to raw data for generating report files, and may include data of a plurality of different data types, for example, text data, picture data, chart data, map data, or the like.
In this embodiment, the raw report data obtained by the server may be data directly input by the user on the terminal, or data stored in a server database, or may be data obtained from a third party through a relevant docking interface and obtained from an enterprise resource planning system (ENTERPRISE RESOURCE PLANNING, ERP).
Specifically, the server may obtain, through the relevant docking interface, the corresponding data from the third party ERP system, by sending, through the relevant docking interface, a data request to the third party system, where the data request carries a data identifier of the requested data. The third party ERP system authenticates the data request after receiving the request, and sends the relevant interface of the request to the server after passing the authentication. The server acquires corresponding data through the relevant docking interface.
Step S204, the data type of each report sub-data in the original report data is identified and marked.
As mentioned above, the original report data may include data of a plurality of different data types, such as text data, picture data, chart data, or map data, and the original report data includes at least one report sub-data, that is, includes at least one data type of data.
In this embodiment, after the server obtains the original report data, identification determination may be performed on the report sub-data in the original report data, for example, image identification, text identification, and the like, and the corresponding data type is marked after identification.
Step S206, receiving a selection instruction of the component through the display interface, and displaying the selected component on the display interface according to the selection instruction, wherein the component is used for displaying the report sub-data in the original report data, and the selection instruction carries the component identifier of the selected component.
The components refer to controls for displaying the report sub-data and editing the displayed report sub-data, and can comprise a text component, an image component, a chart component, a map component or the like.
Specifically, the components are in one-to-one correspondence with different data types, and the report sub-data of one data type can be edited and displayed through the corresponding components, for example, a text component is used for displaying text data, and an image component is used for displaying image data and the like.
The component identifier refers to a unique identifier corresponding to a component, and the component identifier corresponds to the component one by one, that is, the component identifier may include a text group price identifier corresponding to a file component, a map component identifier corresponding to a map component, and the like.
The display interface is an interface capable of carrying out data display and human-computer interaction.
The selection instruction is an instruction generated when a component is selected, and the selection instruction carries a component identifier of the selected component.
In this embodiment, referring to fig. 3, the display interface may include a component selection sub-interface 301 and a report editing display sub-interface 302, where components corresponding to different data types may be displayed in the component selection sub-interface 301, and the report editing display sub-interface 302 may display the selected components.
Specifically, the server may display the selected component on the report editing display sub-interface 302 based on a selection instruction for the component in the component selection sub-interface.
Step S208, determining the report sub-data corresponding to the selected component based on the association relationship between the preset data type and the component identifier, and displaying the report sub-data through the component.
The association relation is preset by a user, and the association component identifier and the data type relation.
Specifically, the server may determine, according to the component identifier carried in the component selection instruction, a data type corresponding to the association relationship, determine, according to the data type, report sub-data of the same data type from the obtained original report data, and display the determined report sub-data in the component corresponding to the component identifier displayed on the display interface.
Optionally, the number of the report sub-data obtained from the original report data may be multiple according to the association relationship, the server may generate key information, such as a keyword, corresponding to the multiple report sub-data, and then display the generated key information in the display interface, and determine the report sub-data displayed by the component according to the selection instruction of the key information received by the display interface, and display the report sub-data by the component.
Step S210, obtaining attribute information of the components in the display interface, and generating a report file according to the attribute information and the report sub-data displayed in the components.
The attribute information of the component may include, but is not limited to, size information of the component, position information of the component in the display interface, and the like.
The report file refers to a file for reporting, and the generated report file may be a file with a different format according to a preset storage format, for example, a Presentation Point (PPT) file, a TXT file, a WORD file, and the like.
Specifically, after receiving the report generation instruction, the server generates a corresponding report file according to the position information of each component on the display interface and the original data displayed in each component and the report generation format.
In the report file generation method, the acquired original report data is identified in the data type, the identification is carried out, then the selection instruction of the component is received through the display interface, and the selected component is displayed on the display interface according to the selection instruction, wherein the component is used for displaying the report sub-data in the original report data, and the selection instruction carries the component identification of the selected component. And further determining report sub-data corresponding to the selected component based on the association relation between the data type and the component identifier, displaying the report sub-data through the component, and generating a report file according to the acquired attribute information of the component and the report sub-data displayed by the component. Therefore, the original report data for generating the report file does not need to be manually identified and the data content is added, so that the report file is more intelligently generated.
In one embodiment, the method can further comprise receiving an editing instruction for the report sub-data in the component through the display interface, and editing the data format and/or the data content of the report sub-data based on the editing instruction.
The editing instruction is an instruction for editing the report data displayed in the component, and may include editing data attributes, for example, editing a word size, a font, a color, changing data content, and the like, and may also include changing data content, for example, performing misprinted word replacement, punctuation change, text content segmentation, adding a picture data dot line, editing a chart data display content, adjusting a map data displayable interest point (Point of Interest, POI), and the like.
Specifically, the server may perform editing changes of the data format and/or the data content, etc. on the report sub-data displayed in the component according to the received editing instruction.
Optionally, the server may further change the attribute of the component displayed in the display interface according to the received editing instruction of the attribute information of the component, for example, with continued reference to fig. 3, edit and change the size of the component, change the position of the component in the display interface, and change the shape of the component, for example, change to a rectangular shape, a diamond shape, a circular shape, or an irregular shape.
In this embodiment, generating the report file according to the component information and the report sub-data displayed in the component may include generating the report file based on the edited report sub-data and the attribute information of the component.
Specifically, the server generates a corresponding report file according to the attribute information of the edited component and the report sub-data displayed in the edited component.
In the above embodiment, the received editing instruction edits the data format and/or the data content of the report sub-data displayed in the component, and generates the report file based on the edited report sub-data in the display interface and the attribute information of the component, so that the generated report file is more accurate and perfect, and the accuracy of the generated report and the quality of the generated report are improved.
In one embodiment, generating the report file according to the component information and the report sub-data displayed in the component may include receiving an interaction instruction for the report sub-data displayed in the component, adjusting a display proportion and/or a display area of the report sub-data displayed in the component according to the interaction instruction, intercepting the report sub-data of which the display proportion and/or the display area are adjusted in the component, generating image data, and generating the report file according to the image data and the acquired attribute information of the component.
As previously described, the report sub-data may be text data, picture data, chart data, or map data.
In this embodiment, when the selected component is a chart component or a map component, the data type displayed in the component is corresponding chart data or corresponding map data. The server may perform an interactive operation on the chart data or map data displayed in the component according to the received interactive instruction on the report data displayed in the component, for example, referring to fig. 3, the server may zoom in or zoom out the displayed map, adjust the map or icon displayed in the component to a suitable display scale, or perform adjustment of the display area, etc., display only the content of the designated map area, or screen the displayed POI, display only a part of the POI, etc.
Further, the server intercepts the report data with the display scale and/or the display area adjusted in the component, generates image data, for example, intercepts a map or an icon displayed in the component, and generates the image data.
Further, the server generates a report file according to the intercepted and generated image data and the attribute information such as the position, the size and the like of the component in the display interface.
Optionally, with continued reference to fig. 3, for map data, the server may also extract information such as names, attribute classifications, energy levels, etc. of POIs from the map data, and display the information, for example, attribute classifications such as school, business, hospital, leisure, etc., and energy levels such as general, key, trimethyl, etc.
The server may also highlight the corresponding POI in the component based on the received selection of information such as name, attribute classification, energy level, etc. of the presented POI.
Alternatively, multiple components may be presented simultaneously in the same display interface, i.e., multiple reporter data may be presented through multiple components. The data types of the plurality of displayed report sub-data can be the same or different, and each component in the display interface is displayed in a hierarchical superposition mode. The server may display and display the selected component on top of or uppermost of the decoders according to a selection instruction for the component displayed in the display interface. Or after selecting the corresponding component, the server can adjust the selected component according to the instructions such as "move up one layer", "move down one layer", "put on top layer", "put on bottom layer" and the like received by the display interface.
In the above embodiment, the image data is generated by intercepting the report sub-data with the display proportion and/or the display area adjusted in the component, and the report file is generated according to the image data and the acquired attribute information of the component.
In one embodiment, determining the report sub-data corresponding to the selected component based on the association relationship between the preset data type and the component identifier and displaying the report sub-data through the component may include determining a data acquisition interface corresponding to the data type based on the association relationship, acquiring the report sub-data corresponding to the data type through the data acquisition interface and displaying the report sub-data through the component.
The data acquisition interface refers to an interface for correspondingly acquiring report sub-data of different data types. The data acquisition interface is different for reporting sub-data of different data types, for example, text data, through the text data acquisition interface, and map data, through the map data acquisition interface.
In the above embodiment, the corresponding report data is acquired through the data acquisition interface corresponding to the data type, so that the possibility of error acquisition of the report data can be reduced, and the accuracy of the generated report file can be further improved.
In one embodiment, identifying and labeling the data type of each report sub-data in the original report data can include identifying the data type of the original report data, judging whether the original report data is data containing a plurality of different data types based on the identification result, splitting the original report data according to the difference of each data type to obtain a plurality of report sub-data when the original report data contains the data of the plurality of different data types, and labeling the data types of the report sub-data respectively.
As previously described, the original report data includes at least one data type of report sub-data. After the server acquires the original report data, the server can determine whether the original report data contains report sub-data with a plurality of different data types by identifying the data type of the original report data.
Specifically, when the server identifies that the acquired original report data includes report sub-data with a plurality of different data types, for example, text data, map data and chart data are included at the same time, the original report data can be split into a plurality of report sub-data according to different data types, and the corresponding data types are respectively marked on each report sub-data.
In the above embodiment, the original report data is finally presented in the form of single data type report sub data by performing data type identification and judgment and splitting and labeling on the original report data, so that the corresponding display and editing adjustment are conveniently performed by different types of components, the possibility of subsequent errors can be reduced, and the generation efficiency of report files is improved.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
In one embodiment, as shown in FIG. 4, a report file generating apparatus is provided, which includes an original report data obtaining module 100, an identifying and labeling module 200, a selection instruction receiving module 300, a report sub-data determining module 400, and a report file generating module 500, wherein:
The raw report data acquisition module 100 is configured to acquire raw report data.
The identifying and labeling module 200 is used for identifying and labeling the data type of each report sub-data in the original report data.
The selection instruction receiving module 300 is configured to receive a selection instruction of a component through the display interface, and display the selected component on the display interface according to the selection instruction, where the component is used to display the report sub-data in the original report data, and the selection instruction carries the component identifier of the selected component.
The report sub-data determining module 400 is configured to determine report sub-data corresponding to the selected component based on an association relationship between a preset data type and a component identifier, and display the report sub-data through the component.
The report file generating module 500 is configured to obtain attribute information of a component in the display interface, and generate a report file according to the attribute information and the report sub-data displayed in the component.
In one embodiment, the apparatus may further include:
and the editing instruction receiving module is used for receiving an editing instruction of the report sub-data in the component through the display interface, and editing the data format and/or the data content of the report sub-data based on the editing instruction.
The report file generation module 500 is configured to generate a report file based on the edited report sub-data and attribute information of the component.
In one embodiment, the report file generation module 500 may include:
And the interaction instruction receiving sub-module is used for receiving an interaction instruction aiming at the report sub-data displayed in the component and adjusting the display proportion and/or the display area of the report sub-data displayed in the component according to the interaction instruction.
And the intercepting sub-module is used for intercepting the report sub-data subjected to display proportion and/or display area adjustment in the component and generating image data.
And the report file generation sub-module is used for generating a report file according to the image data and the acquired attribute information of the component.
In one embodiment, the reporter data determination module 400 may include:
the interface determining sub-module is used for determining a data acquisition interface corresponding to the data type based on the association relation.
And the report sub-data acquisition sub-module is used for acquiring report sub-data corresponding to the data type through the data acquisition interface and displaying the report sub-data through the component.
In one embodiment, the identification and annotation module 200 may include:
And the identification sub-module is used for carrying out data type identification on the original report data and judging whether the original report data contains data of a plurality of different data types or not based on the identification result.
And the splitting sub-module is used for splitting the original report data according to the difference of each data type to obtain a plurality of report sub-data when the original report data contains data of a plurality of different data types.
And the data type labeling sub-module is used for labeling the data types of the report sub-data respectively.
The specific limitation regarding the report generating device may be referred to the limitation regarding the report generating method hereinabove, and will not be repeated here. The respective modules in the report file generating apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database 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 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as original report data, report sub-data, generated report files and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a report file generating method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, the processor realizes the following steps when executing the computer program, acquiring original report data, identifying and marking data types of all report sub-data in the original report data, receiving a selection instruction of a component through a display interface, displaying the selected component on the display interface according to the selection instruction, wherein the component is used for displaying the report sub-data in the original report data, the selection instruction carries a component identifier of the selected component, determining the report sub-data corresponding to the selected component based on the association relation between the preset data types and the component identifier, displaying the report sub-data through the component, acquiring attribute information of the component in the display interface, and generating a report file according to the attribute information and the report sub-data displayed in the component.
In one embodiment, the processor, when executing the computer program, may further implement the step of receiving an edit instruction for the report sub-data in the component through the display interface, and editing the data format and/or the data content of the report sub-data based on the edit instruction. The processor, when executing the computer program, generates a report file according to the component information and the report sub-data displayed in the component, and may include generating the report file based on the edited report sub-data and the attribute information of the component.
In one embodiment, the processor, when executing the computer program, generates the report file according to the component information and the report sub-data displayed in the component, and the method can include receiving an interaction instruction for the report sub-data displayed in the component, adjusting the display proportion and/or the display area of the report sub-data displayed in the component according to the interaction instruction, intercepting the report sub-data with the display proportion and/or the display area adjusted in the component, generating the image data, and generating the report file according to the image data and the acquired attribute information of the component.
In one embodiment, the processor determines the report sub-data corresponding to the selected component based on the association relationship between the preset data type and the component identifier when executing the computer program, and displays the report sub-data through the component.
In one embodiment, the processor is configured to identify and label the data type of each report sub-data in the original report data when executing the computer program, and may include identifying the data type of the original report data, determining whether the original report data includes data of a plurality of different data types based on the identification result, splitting the original report data according to the difference of each data type when the original report data includes data of a plurality of different data types, and labeling the data types of each report sub-data.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor performs the steps of obtaining raw report data, identifying and annotating a data type of each report sub-data in the raw report data, receiving a selection instruction for a component through a display interface, and displaying the selected component on the display interface according to the selection instruction, wherein the component is used for displaying the report sub-data in the raw report data, the selection instruction carries a component identifier of the selected component, determining the report sub-data corresponding to the selected component based on an association relationship between a preset data type and the component identifier, displaying the report sub-data through the component, obtaining attribute information of the component in the display interface, and generating a report file according to the attribute information and the report sub-data displayed in the component.
In one embodiment, the computer program when executed by the processor may further implement the step of receiving an edit instruction for the report sub-data in the component via the display interface, editing the report sub-data in a data format and/or data content based on the edit instruction. The computer program, when executed by the processor, enables generating a report file based on the component information and the reporting sub-data presented in the component, which may include generating the report file based on the compiled reporting sub-data and the attribute information of the component.
In one embodiment, the computer program when executed by the processor generates a report file according to the component information and the report sub-data displayed in the component, and the method can include receiving an interaction instruction for the report sub-data displayed in the component, adjusting display proportion and/or display area of the report sub-data displayed in the component according to the interaction instruction, intercepting the report sub-data with the adjusted display proportion and/or display area in the component, generating image data, and generating the report file according to the image data and the acquired attribute information of the component.
In one embodiment, the computer program when executed by the processor determines the reporting sub-data corresponding to the selected component based on the association between the preset data type and the component identifier, and displays the reporting sub-data through the component, which may include determining a data acquisition interface corresponding to the data type based on the association, and acquiring the reporting sub-data corresponding to the data type through the data acquisition interface, and displaying the reporting sub-data through the component.
In one embodiment, the computer program when executed by the processor is used for identifying and labeling the data types of the report sub-data in the original report data, and the method comprises the steps of identifying the data types of the original report data, judging whether the original report data contains data of a plurality of different data types or not based on the identification result, splitting the original report data according to the difference of the data types when the original report data contains the data of the plurality of different data types to obtain a plurality of report sub-data, and labeling the data types of the report sub-data respectively.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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 (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1.一种报告文件生成方法,其特征在于,所述方法包括:1. A method for generating a report file, characterized in that the method comprises: 获取原始报告数据;Get raw report data; 识别并标注所述原始报告数据中各报告子数据的数据类型;Identify and label the data type of each report sub-data in the original report data; 通过显示界面接收对组件的选取指令,并根据所述选取指令在所述显示界面展示选取的组件,所述组件用于展示所述原始报告数据中的报告子数据,所述选取指令携带有被选取组件的组件标识;receiving a selection instruction for a component through a display interface, and displaying a selected component on the display interface according to the selection instruction, wherein the component is used to display the report sub-data in the original report data, and the selection instruction carries a component identifier of the selected component; 基于预设的数据类型与组件标识之间的关联关系,确定与选取的所述组件对应的报告子数据,并通过所述组件展示所述报告子数据;Determine the report sub-data corresponding to the selected component based on the association relationship between the preset data type and the component identifier, and display the report sub-data through the component; 获取所述显示界面中组件的属性信息,并接收针对所述组件中展示的报告子数据的交互指令,并根据所述交互指令对所述组件内展示的所述报告子数据进行显示比例和/或显示区域的调整;截取所述组件中进行显示比例和/或显示区域调整后的报告子数据,生成图像数据;根据所述图像数据以及获取的所述组件的属性信息,生成报告文件。Acquire the attribute information of the component in the display interface, receive interaction instructions for the report sub-data displayed in the component, and adjust the display ratio and/or display area of the report sub-data displayed in the component according to the interaction instructions; intercept the report sub-data after the display ratio and/or display area are adjusted in the component to generate image data; generate a report file according to the image data and the acquired attribute information of the component. 2.根据权利要求1所述的方法,其特征在于,所述基于预设的数据类型与组件标识之间的关联关系,确定与选取的所述组件对应的报告子数据,并通过所述组件展示所述报告子数据,包括:2. The method according to claim 1, characterized in that the determining the report sub-data corresponding to the selected component based on the association relationship between the preset data type and the component identifier, and displaying the report sub-data through the component, comprises: 基于所述关联关系,确定对应数据类型的数据获取接口;Based on the association relationship, determine a data acquisition interface corresponding to the data type; 通过所述数据获取接口获取所述数据类型对应的报告子数据,并通过所述组件展示。The report sub-data corresponding to the data type is acquired through the data acquisition interface and displayed through the component. 3.根据权利要求1所述的方法,其特征在于,所述识别并标注所述原始报告数据中各报告子数据的数据类型,包括:3. The method according to claim 1, wherein the step of identifying and marking the data type of each report sub-data in the original report data comprises: 对所述原始报告数据进行数据类型的识别,并基于识别结果判断所述原始报告数据是否为包含多种不同数据类型的数据;Identifying the data type of the original report data, and determining whether the original report data is data containing multiple different data types based on the identification result; 当所述原始报告数据包含多种不同数据类型的数据时,按照各数据类型的不同,对所述原始报告数据进行拆分,得到多个报告子数据;When the original report data contains data of multiple different data types, the original report data is split according to the difference of each data type to obtain multiple report sub-data; 分别标注各所述报告子数据的数据类型。The data types of the report sub-data are marked respectively. 4.根据权利要求1所述的方法,其特征在于,所述组件的属性信息包括组件的尺寸信息、组件在显示界面中的位置信息。4 . The method according to claim 1 , wherein the attribute information of the component includes size information of the component and position information of the component in the display interface. 5.根据权利要求1所述的方法,其特征在于,所述报告子数据包括文本数据、图片数据、图表数据或者地图数据中的至少一种。5 . The method according to claim 1 , wherein the report sub-data comprises at least one of text data, picture data, chart data or map data. 6.一种报告文件生成装置,其特征在于,所述装置包括:6. A report file generating device, characterized in that the device comprises: 原始报告数据获取模块,用于获取原始报告数据;An original report data acquisition module, used for acquiring original report data; 识别与标注模块,用于识别并标注所述原始报告数据中各报告子数据的数据类型;An identification and labeling module, used for identifying and labeling the data type of each report sub-data in the original report data; 选取指令接收模块,用于通过显示界面接收对组件的选取指令,并根据所述选取指令在所述显示界面展示选取的组件,所述组件用于展示所述原始报告数据中的报告子数据,所述选取指令携带有被选取组件的组件标识;A selection instruction receiving module, used for receiving a selection instruction for a component through a display interface, and displaying a selected component on the display interface according to the selection instruction, wherein the component is used for displaying the report sub-data in the original report data, and the selection instruction carries a component identifier of the selected component; 报告子数据确定模块,用于基于预设的数据类型与组件标识之间的关联关系,确定与选取的所述组件对应的报告子数据,并通过所述组件展示所述报告子数据;A report sub-data determination module, configured to determine the report sub-data corresponding to the selected component based on the association between the preset data type and the component identifier, and to display the report sub-data through the component; 报告文件生成模块,用于获取所述显示界面中组件的属性信息,并接收针对所述组件中展示的报告子数据的交互指令,并根据所述交互指令对所述组件内展示的所述报告子数据进行显示比例和/或显示区域的调整;截取所述组件中进行显示比例和/或显示区域调整后的报告子数据,生成图像数据;根据所述图像数据以及获取的所述组件的属性信息,生成报告文件。A report file generation module is used to obtain attribute information of components in the display interface, receive interactive instructions for report sub-data displayed in the component, and adjust the display ratio and/or display area of the report sub-data displayed in the component according to the interactive instructions; intercept the report sub-data in the component after the display ratio and/or display area are adjusted to generate image data; and generate a report file based on the image data and the acquired attribute information of the component. 7.根据权利要求6所述的装置,其特征在于,所述报告子数据确定模块,包括:7. The device according to claim 6, characterized in that the report sub-data determination module comprises: 接口确定子模块,用于基于关联关系,确定对应数据类型的数据获取接口;The interface determination submodule is used to determine the data acquisition interface of the corresponding data type based on the association relationship; 报告子数据获取子模块,用于通过数据获取接口获取数据类型对应的报告子数据,并通过组件展示。The report sub-data acquisition sub-module is used to obtain the report sub-data corresponding to the data type through the data acquisition interface and display it through the component. 8.根据权利要求6所述的装置,其特征在于,所述识别与标注模块,包括:8. The device according to claim 6, characterized in that the identification and labeling module comprises: 识别子模块,用于对原始报告数据进行数据类型的识别,并基于识别结果判断原始报告数据是否为包含多种不同数据类型的数据;An identification submodule, used to identify the data type of the original report data, and determine whether the original report data is data containing multiple different data types based on the identification result; 拆分子模块,用于当原始报告数据包含多种不同数据类型的数据时,按照各数据类型的不同,对原始报告数据进行拆分,得到多个报告子数据;A splitting submodule is used to split the original report data according to the data types to obtain multiple report sub-data when the original report data contains data of multiple different data types; 数据类型标注子模块,用于分别标注各报告子数据的数据类型。The data type labeling submodule is used to label the data type of each report sub-data. 9.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至5中任一项所述方法的步骤。9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 5 when executing the computer program. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至5中任一项所述的方法的步骤。10. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
CN202010229014.6A 2020-03-27 2020-03-27 Report file generation method, device, computer equipment and storage medium Active CN111428464B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010229014.6A CN111428464B (en) 2020-03-27 2020-03-27 Report file generation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010229014.6A CN111428464B (en) 2020-03-27 2020-03-27 Report file generation method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111428464A CN111428464A (en) 2020-07-17
CN111428464B true CN111428464B (en) 2025-02-14

Family

ID=71555502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010229014.6A Active CN111428464B (en) 2020-03-27 2020-03-27 Report file generation method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111428464B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858596A (en) * 2020-07-22 2020-10-30 广东电网有限责任公司 Data acquisition method, device, computer equipment and storage medium
CN111985188A (en) * 2020-07-22 2020-11-24 用友网络科技股份有限公司 Data conversion method, device, terminal and storage medium
CN114036918A (en) * 2021-11-12 2022-02-11 招商银行股份有限公司 Information analysis method, system, terminal device and storage medium
CN114968455B (en) * 2022-04-29 2024-02-27 北京百度网讯科技有限公司 Report generation method and device of application interface and electronic equipment
CN115438635B (en) * 2022-09-07 2025-11-21 支付宝(杭州)信息技术有限公司 Report generation method, report generation device and computer storage medium
CN115794790A (en) * 2022-11-17 2023-03-14 深圳供电局有限公司 Data display method and device, computer equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052676A (en) * 2017-12-28 2018-05-18 广东金赋科技股份有限公司 The collocation method and device of multi-data source data

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9058307B2 (en) * 2007-01-26 2015-06-16 Microsoft Technology Licensing, Llc Presentation generation using scorecard elements
CN107358023A (en) * 2017-06-06 2017-11-17 沈阳东软医疗系统有限公司 Generate medical report, method, system and the equipment of interaction medical report
CN110032720A (en) * 2018-12-28 2019-07-19 万康源(天津)基因科技有限公司 A kind of visualization report typesetting and automatic generation method and system based on XML
CN109858001A (en) * 2019-01-11 2019-06-07 平安科技(深圳)有限公司 A kind of report form generation method, system, electronic equipment and medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052676A (en) * 2017-12-28 2018-05-18 广东金赋科技股份有限公司 The collocation method and device of multi-data source data

Also Published As

Publication number Publication date
CN111428464A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN111428464B (en) Report file generation method, device, computer equipment and storage medium
US11558445B2 (en) Systems and methods for augmenting electronic content
CN112861496B (en) Report generation and display method, device, computer equipment and readable storage medium
RU2714609C1 (en) Automation of document generation
WO2020186786A1 (en) File processing method and apparatus, computer device and storage medium
CN111027295B (en) Data processing method, device, computer equipment and storage medium
CN109815471A (en) Contract text generation method, device, computer equipment and storage medium
CN110163268B (en) Image processing method and device, server and storage medium
CN107220274B (en) Visual data interface market realization method
CN114611481A (en) Template configuration method, apparatus, computer equipment, and storage medium
CN111708971A (en) Page configuration method, apparatus, computer device and storage medium
CN110347984B (en) Policy page changing method and device, computer equipment and storage medium
CN113254455A (en) Dynamic configuration method and device of database, computer equipment and storage medium
US20170300821A1 (en) Processing Electronic Data In Computer Networks With Rules Management
CN109828809B (en) Information visualization method and device for billboard, computer equipment and storage medium
CN114327435A (en) Technical document generation method and device and computer readable storage medium
US20230148038A1 (en) Method for rendering gis point data, computer device and storage medium
CN116126721A (en) Method and device for converting format of test case document, computer equipment and storage medium
CN120255951A (en) A method and system for generating interface documents based on java application
CN111597151A (en) File generation method, apparatus, computer equipment and storage medium
CN114895875B (en) Zero-code visual information system metadata production application method and system
US20230196004A1 (en) Systems and methods for conversion of documents to reusable content types
CN118133793A (en) Form generation method, form generation device, computer equipment and storage medium
TW202427263A (en) Method, device, computer equipment and storage medium of processing tables in pdf file
CN114840190A (en) Code generation 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
GR01 Patent grant
GR01 Patent grant