CN111428464A - Report file generation method and device, computer equipment and storage medium - Google Patents
Report file generation method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN111428464A CN111428464A CN202010229014.6A CN202010229014A CN111428464A CN 111428464 A CN111428464 A CN 111428464A CN 202010229014 A CN202010229014 A CN 202010229014A CN 111428464 A CN111428464 A CN 111428464A
- Authority
- CN
- China
- Prior art keywords
- report
- data
- component
- subdata
- 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.)
- Pending
Links
Images
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 report file generation method, apparatus, computer device, and storage medium. The method comprises the following steps: acquiring original report data; identifying and marking the data type of each report subdata in the original report data; receiving a selection instruction of the 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 report subdata in original report data, and the selection instruction carries a component identifier of the selected component; determining report subdata corresponding to the selected component based on the incidence relation between the preset data type and the component identifier, and displaying the report subdata through the component; and acquiring attribute information of the components in the display interface, and generating a report file according to the attribute information and the report subdata displayed in the components. By adopting the method, the report file can be generated intelligently.
Description
Technical Field
The present application relates to the field of artificial intelligence technologies, and in particular, to a method and an apparatus for generating a report file, a computer device, and a storage medium.
Background
Each type of report is important written evidence for business and technical management and supervision of an enterprise. The business of enterprises varies, and the types and types of reports vary greatly.
The existing report is generated mainly by using a history report or by using a common template, for example, new content is added on the basis of the history report, or a pre-made common template is used to change the content according to different service contents, and then a report file is output.
However, when dealing with relatively complicated project data, it is necessary to manually process the project data to generate the report file, and thus the generation of the report file is not intelligent enough.
Disclosure of Invention
In view of the above, it is necessary to provide a report file generation method, an apparatus, a computer device, and a storage medium capable of intelligently generating a report file in response to the above technical problems.
A method of report file generation, the method comprising:
acquiring original report data;
identifying and marking the data type of each report subdata in the original report data;
receiving a selection instruction of the 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 report subdata in 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 subdata corresponding to the selected component based on the incidence relation between the preset data type and the component identifier, and displaying the report subdata through the component;
and acquiring attribute information of the components in the display interface, and generating a report file according to the attribute information and the report subdata displayed in the components.
In one embodiment, the method further includes:
receiving an editing instruction of report subdata in the component through a display interface, and editing data format and/or data content of the report subdata based on the editing instruction;
generating a report file according to the component information and the report subdata displayed in the component, wherein the report file comprises:
and generating a report file based on the edited report subdata and the attribute information of the components.
In one embodiment, generating a report file according to the component information and the report sub-data shown in the component includes:
receiving an interactive instruction aiming at the report subdata displayed in the assembly, and adjusting the display scale and/or the display area of the report subdata displayed in the assembly according to the interactive instruction;
intercepting the report subdata after the display proportion and/or the display area are adjusted in the component to generate image data;
and generating a report file according to the image data and the acquired attribute information of the assembly.
In one embodiment, determining report subdata corresponding to the selected component based on an association relationship between a preset data type and a component identifier, and displaying the report subdata through the component includes:
determining a data acquisition interface corresponding to the data type based on the association relationship;
and acquiring report subdata corresponding to the data type through a data acquisition interface, and displaying the report subdata through the component.
In one embodiment, identifying and labeling the data type of each report subdata in the original report data comprises:
identifying the data type of the original report data, and judging whether the original report data is data containing various different data types based on the identification result;
when the original report data contains data of various different data types, splitting the original report data according to the difference of the data types to obtain a plurality of report subdata;
and respectively marking the data types of the report subdata.
A report file generation apparatus, the apparatus comprising:
the original report data acquisition module is used for acquiring original report data;
the identification and marking module is used for identifying and marking the data type of each report subdata in the original report data;
the selecting instruction receiving module is used for receiving a selecting instruction of the component through the display interface and displaying the selected component on the display interface according to the selecting instruction, the component is used for displaying the report subdata in the original report data, and the selecting instruction carries the component identifier of the selected component;
the report subdata determining module is used for determining report subdata corresponding to the selected component based on the association relation between the preset data type and the component identifier, and displaying the report subdata through the component;
and the report file generation module is used for acquiring the attribute information of the components in the display interface and generating a report file according to the attribute information and the report subdata displayed in the components.
In one embodiment, the apparatus further includes:
the editing instruction receiving module is used for receiving an editing instruction of the report subdata in the component through the display interface and editing the data format and/or the data content of the report subdata based on the editing instruction;
and the report file generation module is used for generating a report file based on the edited report subdata and the attribute information of the components.
In one embodiment, the report file generation module comprises:
the interactive instruction receiving submodule is used for receiving an interactive instruction aiming at the report subdata displayed in the assembly and adjusting the display scale and/or the display area of the report subdata displayed in the assembly according to the interactive instruction;
the intercepting submodule is used for intercepting the report subdata after the display proportion and/or the display area in the component are adjusted to generate image data;
and the report file generation submodule is used for generating a report file according to the image data and the acquired attribute information of the assembly.
A computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above.
According to the report file generation method, the report file generation device, the computer equipment and the storage medium, the data type of the obtained original report data is identified and marked, 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 subdata in the original report data, and the selection instruction carries the component identification of the selected component. And further determining report subdata corresponding to the selected component based on the incidence relation between the data type and the component identifier, displaying the report subdata through the component, and generating a report file according to the acquired attribute information of the component and the report subdata displayed by the component. Therefore, the original report data used for generating the report file does not need to be identified manually and data content is not added, and the generation of the report file is more intelligent.
Drawings
FIG. 1 is a diagram illustrating an exemplary implementation of a report file generation method;
FIG. 2 is a flow diagram illustrating a method for generating a report file in one embodiment;
FIG. 3 is a diagram illustrating display content of a display interface in one embodiment;
FIG. 4 is a block diagram of a report file generation apparatus in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The report file generation method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be used to generate raw report data for a report file and send it to the server 104 over a network. After the server 104 obtains the original report data, the server 104 may identify and label the data type of each report sub-data in the obtained original report data, and then the server 104 may receive a selection instruction for a component through the display interface, and display the selected component in the display interface. Further, the server 104 may determine report sub-data corresponding to the selected component based on an association relationship between a 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 attribute information of the component in the display interface and the report sub-data displayed in the component, and generate a report file. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a report file generation method is provided, which is described by taking the application of the method to the server in fig. 1 as an example, and includes the following steps:
step S202, original report data is acquired.
The raw report data refers to raw data used for generating a report file, and may include data of a plurality of different data types, such as text data, picture data, chart data, or map data.
In this embodiment, the raw report data acquired by the server may be data directly input by the user on the terminal, or data stored in a database of the server, or may also be data acquired from an Enterprise Resource Planning (ERP) system of a third party through a relevant docking interface.
Specifically, the step of the server obtaining the corresponding data from the third-party ERP system through the relevant docking interface may be sending a data request to the third-party ERP system through the relevant docking interface, where the data request carries a data identifier of the requested data. And after receiving the request, the third-party ERP system authenticates the data request, and sends the relevant docking interface of the request to the server after the authentication is passed. The server acquires corresponding data through the relevant docking interface.
Step S204, identifying and marking the data type of each report subdata in the original report data.
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, at least one data type.
In this embodiment, after the server obtains the original report data, the server may perform identification determination, such as image identification, text identification, and the like, on the report sub-data in the original report data, and mark the identified report sub-data with the corresponding data type.
Step S206, receiving a selection instruction for 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 subdata 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 subdata and editing the displayed report subdata, and may include text components, image components, chart components, map components, and the like.
Specifically, the components correspond to different data types one to one, and 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, an image component is used for displaying image data, and the like.
The component identifier refers to a unique identifier corresponding to the component, and the component identifiers correspond to the components one to 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 which can display data and perform man-machine interaction.
The selection instruction is an instruction generated when the component is selected, and the selection instruction carries the 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 the component selection sub-interface 301 may display components corresponding to different data types, and the report editing display sub-interface 302 may display the selected components.
Specifically, the server may display the selected component in the report editing display sub-interface 302 based on the selection instruction for the component in the component selection sub-interface.
And S208, determining report subdata corresponding to the selected component based on the association relationship between the preset data type and the component identifier, and displaying the report subdata through the component.
The association relation refers to the relation between the association component identification and the data type, which is preset by a user.
Specifically, the server may determine, according to a component identifier carried in the selection instruction for the component, a data type corresponding to the existence of 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 according to the association relationship may be multiple, 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 a selection instruction of the key information received by the display interface, and display the report sub-data through the component.
Step S210, obtaining the attribute information of the components in the display interface, and generating a report file according to the attribute information and the report subdata 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 PowerPoint (PPT) file, a TXT file, a WORD file, or 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 according to the report generation format.
According to the report file generation method, data types of the obtained original report data are identified and marked, then a 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 subdata in the original report data, and the selection instruction carries the component identifier of the selected component. And further determining report subdata corresponding to the selected component based on the incidence relation between the data type and the component identifier, displaying the report subdata through the component, and generating a report file according to the acquired attribute information of the component and the report subdata displayed by the component. Therefore, the original report data used for generating the report file does not need to be identified manually and data content is not added, and the generation of the report file is more intelligent.
In one embodiment, the method may further include: and receiving an editing instruction of the report subdata in the component through the display interface, and editing the data format and/or the data content of the report subdata based on the editing instruction.
The editing instruction is an instruction for editing report sub-data displayed in the component, and may include editing of data attributes, such as editing and replacing of font size, font style, and color, and may also include changing of data content, such as replacing of wrongly written or mispronounced characters, changing of punctuation marks, segmenting text content, adding of picture data Point lines, editing of graph data display content, and adjusting of Point of Interest (POI) displayable on map data.
Specifically, the server may perform editing change of the data format and/or the data content 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 edit instruction for the attribute information of the component, for example, with 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 the shape to a long strip, a diamond, a circle, or an irregular shape.
In this embodiment, generating a report file according to the component information and the report sub-data shown in the component may include: and generating a report file based on the edited report subdata and the attribute information of the components.
Specifically, the server generates a corresponding report file according to the attribute information of the edited component and the report subdata displayed in the edited component.
In the embodiment, the data format and/or the data content of the report sub-data displayed in the component are edited through the received editing instruction, and the report file is generated 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 complete, and the accuracy of the generated report and the quality of the generated report are improved.
In one embodiment, generating a report file according to the component information and the report sub-data shown in the component may include: receiving an interactive instruction aiming at the report subdata displayed in the assembly, and adjusting the display scale and/or the display area of the report subdata displayed in the assembly according to the interactive instruction; intercepting the report subdata after the display proportion and/or the display area are adjusted in the component to generate image data; and generating a report file according to the image data and the acquired attribute information of the assembly.
As described above, 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 type of data displayed in the component is corresponding chart data or corresponding map data. The server may perform an interactive operation on the graph data or the map data displayed in the component according to the received interactive instruction on the report sub-data displayed in the component, for example, referring to fig. 3, the server may enlarge or reduce the displayed map, adjust the map or the icon displayed in the component to an appropriate display scale, or adjust the display area, and the like, to display only the content of a specified map area, or filter the displayed POI, and display only a part of the POI, and the like.
Further, the server intercepts the report sub-data in the component after the display scale and/or the display area are adjusted, 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.
Alternatively, with continued reference to fig. 3, for the map data, the server may further extract information such as names, attribute classifications, energy levels, and the like of the POIs from the map data, and display the information, for example, the attribute classifications are school, business, hospital, leisure, and the like, and the energy levels are general, important, and third.
The server may also highlight the corresponding POI in the assembly based on the received selection of the name, attribute classification, energy level, etc. of the displayed POI.
Optionally, in the same display interface, multiple components may be presented simultaneously, that is, multiple report subdata may be presented through multiple components. The data types of the displayed report subdata can be the same or different, and all the components in the display interface are displayed in a hierarchical overlapping mode. The server can display and display the decoded top layer or the top layer of the selected component according to the selection instruction of the component displayed in the display interface. Or after selecting the corresponding component, the server may adjust the level of the selected component according to the instructions such as "move one layer up", "move one layer down", "place on the top layer", "place on the 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 after the display scale and/or the display area in the component is adjusted, and the report file is generated according to the image data and the acquired attribute information of the component.
In one embodiment, determining report sub-data corresponding to the selected component based on an association relationship between a preset data type and a component identifier, and displaying the report sub-data by the component may include: determining a data acquisition interface corresponding to the data type based on the association relationship; and acquiring report subdata corresponding to the data type through a data acquisition interface, and displaying the report subdata through the component.
The data acquisition interface is an interface for correspondingly acquiring report subdata with different data types. The data acquisition interfaces are different for report sub-data of different data types, for example, for text data, the report sub-data is acquired through the text data acquisition interface, and for map data, the report sub-data is acquired through the map data acquisition interface.
In the above embodiment, the corresponding report sub-data is acquired through the data acquisition interface corresponding to the data type, so that the possibility of an error in acquiring the report sub-data can be reduced, and the accuracy of the generated report file can be improved.
In one embodiment, identifying and labeling the data type of each report sub-data in the original report data may include: identifying the data type of the original report data, and judging whether the original report data is data containing various different data types based on the identification result; when the original report data contains data of various different data types, splitting the original report data according to the difference of the data types to obtain a plurality of report subdata; and respectively marking the data types of the report subdata.
As mentioned above, the original report data includes at least report subdata of one data type. After the server acquires the original report data, the server can identify the data type of the original report data to determine whether the original report data contains report subdata of various different data types.
Specifically, when the server identifies that the obtained original report data includes report sub-data of a plurality of different data types, for example, when the obtained original report data includes text data, map data, and chart data, the original report data may be split into a plurality of report sub-data according to the different data types, and the corresponding data types are respectively labeled on the report sub-data.
In the embodiment, the data types of the original report data are identified, determined, split and labeled, so that the original report data finally exists in the form of report subdata with a single data type, corresponding display and editing adjustment can be conveniently performed subsequently through different types of components, the possibility of subsequent errors can be reduced, and the generation efficiency of the report file is improved.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a report file generating apparatus including: an original report data acquisition module 100, an identification 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:
a raw report data obtaining module 100, configured to obtain raw report data.
And the identifying and labeling module 200 is used for identifying and labeling the data type of each report subdata in the original report data.
The selection instruction receiving module 300 is configured to receive a selection instruction for a component through a display interface, and display the selected component on the display interface according to the selection instruction, where the component is used to display report sub-data in original report data, and the selection instruction carries a 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 the component identifier, and display the report sub-data through the component.
The report file generating module 500 is configured to obtain attribute information of the 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 subdata in the component through the display interface and editing the data format and/or the data content of the report subdata based on the editing instruction.
The report file generating module 500 is configured to generate 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 500 may include:
and the interactive instruction receiving submodule is used for receiving an interactive instruction aiming at the report subdata displayed in the assembly and adjusting the display scale and/or the display area of the report subdata displayed in the assembly according to the interactive instruction.
And the intercepting submodule is used for intercepting the report subdata after the display proportion and/or the display area in the component are adjusted to generate image data.
And the report file generation submodule is used for generating a report file according to the image data and the acquired attribute information of the assembly.
In one embodiment, the report sub data determination module 400 may include:
and the interface determining submodule is used for determining a data acquisition interface corresponding to the data type based on the association relation.
And the report subdata acquisition submodule is used for acquiring report subdata corresponding to the data type through the data acquisition interface and displaying the report subdata through the component.
In one embodiment, the identification and tagging module 200 can comprise:
and the identification submodule is used for identifying the data type of the original report data and judging whether the original report data contains data of various different data types or not based on the identification result.
And the splitting submodule is used for splitting the original report data according to the difference of each data type to obtain a plurality of report subdata when the original report data contains data of a plurality of different data types.
And the data type labeling submodule is used for labeling the data types of the report subdata respectively.
For the specific limitations of the report file generation apparatus, reference may be made to the above limitations of the report file generation method, which are not described herein again. The modules in the report file generation device can be wholly 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, 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 comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data such as original report data, report subdata, 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 generation method.
Those skilled in the art will appreciate that the architecture shown in fig. 5 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, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: acquiring original report data; identifying and marking the data type of each report subdata in the original report data; receiving a selection instruction of the 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 report subdata in original report data, and the selection instruction carries a component identifier of the selected component; determining report subdata corresponding to the selected component based on the incidence relation between the preset data type and the component identifier, and displaying the report subdata through the component; and acquiring attribute information of the components in the display interface, and generating a report file according to the attribute information and the report subdata displayed in the components.
In one embodiment, the processor, when executing the computer program, may further implement the following steps: and receiving an editing instruction of the report subdata in the component through the display interface, and editing the data format and/or the data content of the report subdata based on the editing instruction. When the processor executes the computer program, generating a report file according to the component information and the report sub-data shown in the component may include: and generating a report file based on the edited report subdata and the attribute information of the components.
In one embodiment, the generating of the report file according to the component information and the report sub-data shown in the component when the processor executes the computer program may include: receiving an interactive instruction aiming at the report subdata displayed in the assembly, and adjusting the display scale and/or the display area of the report subdata displayed in the assembly according to the interactive instruction; intercepting the report subdata after the display proportion and/or the display area are adjusted in the component to generate image data; and generating a report file according to the image data and the acquired attribute information of the assembly.
In one embodiment, when the processor executes the computer program, determining report sub-data corresponding to the selected component based on an association relationship between a preset data type and a component identifier, and displaying the report sub-data by the component may include: determining a data acquisition interface corresponding to the data type based on the association relationship; and acquiring report subdata corresponding to the data type through a data acquisition interface, and displaying the report subdata through the component.
In one embodiment, the identifying and labeling the data type of each report subdata in the original report data when the computer program is executed by the processor may include: identifying the data type of the original report data, and judging whether the original report data is data containing various different data types based on the identification result; when the original report data contains data of various different data types, splitting the original report data according to the difference of the data types to obtain a plurality of report subdata; and respectively marking the data types of the report subdata.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring original report data; identifying and marking the data type of each report subdata in the original report data; receiving a selection instruction of the 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 report subdata in original report data, and the selection instruction carries a component identifier of the selected component; determining report subdata corresponding to the selected component based on the incidence relation between the preset data type and the component identifier, and displaying the report subdata through the component; and acquiring attribute information of the components in the display interface, and generating a report file according to the attribute information and the report subdata displayed in the components.
In one embodiment, the computer program when executed by the processor may further implement the steps of: and receiving an editing instruction of the report subdata in the component through the display interface, and editing the data format and/or the data content of the report subdata based on the editing instruction. When executed by the processor, the computer program generates a report file according to the component information and the report sub-data shown in the component, and may include: and generating a report file based on the edited report subdata and the attribute information of the components.
In one embodiment, the computer program, when executed by the processor, implements generating a report file according to the component information and the report subdata shown in the component, and may include: receiving an interactive instruction aiming at the report subdata displayed in the assembly, and adjusting the display scale and/or the display area of the report subdata displayed in the assembly according to the interactive instruction; intercepting the report subdata after the display proportion and/or the display area are adjusted in the component to generate image data; and generating a report file according to the image data and the acquired attribute information of the assembly.
In one embodiment, when executed by the processor, the computer program implements determining report sub-data corresponding to the selected component based on an association relationship between a preset data type and a component identifier, and displaying the report sub-data by the component, which may include: determining a data acquisition interface corresponding to the data type based on the association relationship; and acquiring report subdata corresponding to the data type through a data acquisition interface, and displaying the report subdata through the component.
In one embodiment, the computer program, when executed by the processor, implements identifying and labeling data types of report sub-data in the original report data, and may include: identifying the data type of the original report data, and judging whether the original report data is data containing various different data types based on the identification result; when the original report data contains data of various different data types, splitting the original report data according to the difference of the data types to obtain a plurality of report subdata; and respectively marking the data types of the report subdata.
It will be understood by those of ordinary skill in the art that all or a portion of the processes of the methods of the embodiments described above may be implemented by a computer program that may be stored on a non-volatile computer-readable storage medium, which when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as 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 scope of the invention. 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 method of report file generation, the method comprising:
acquiring original report data;
identifying and marking the data type of each report subdata in the original report data;
receiving a selection instruction of 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 report subdata in the original report data, and the selection instruction carries a component identifier of the selected component;
determining report subdata corresponding to the selected component based on the incidence relation between the preset data type and the component identifier, and displaying the report subdata through the component;
and acquiring attribute information of the components in the display interface, and generating a report file according to the attribute information and the report subdata displayed in the components.
2. The method of claim 1, further comprising:
receiving an editing instruction for report subdata in the component through the display interface, and editing the data format and/or the data content of the report subdata based on the editing instruction;
generating a report file according to the component information and the report subdata shown in the component, wherein the generating of the report file comprises the following steps:
and generating a report file based on the edited report subdata and the attribute information of the assembly.
3. The method of claim 1, wherein generating a report file according to the component information and the report sub-data shown in the component comprises:
receiving an interactive instruction aiming at the report subdata displayed in the component, and adjusting the display scale and/or the display area of the report subdata displayed in the component according to the interactive instruction;
intercepting the report subdata after the display proportion and/or the display area in the component are adjusted to generate image data;
and generating a report file according to the image data and the acquired attribute information of the assembly.
4. The method of claim 1, wherein the determining report sub-data corresponding to the selected component based on the association between the preset data type and the component identifier and displaying the report sub-data through the component comprise:
determining a data acquisition interface corresponding to the data type based on the incidence relation;
and acquiring report subdata corresponding to the data type through the data acquisition interface, and displaying the report subdata through the component.
5. The method of claim 1, wherein the identifying and labeling the data type of each report child data in the original report data comprises:
identifying the data type of the original report data, and judging whether the original report data is data containing various different data types based on the 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 each data type to obtain a plurality of report subdata;
and respectively marking the data type of each report subdata.
6. An apparatus for generating a report file, the apparatus comprising:
the original report data acquisition module is used for acquiring original report data;
the identification and marking module is used for identifying and marking the data type of each report subdata in the original report data;
the selection instruction receiving module is used for receiving a selection instruction of 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 report subdata in the original report data, and the selection instruction carries a component identifier of the selected component;
the report subdata determining module is used for determining report subdata corresponding to the selected component based on the incidence relation between the preset data type and the component identifier, and displaying the report subdata through the component;
and the report file generation module is used for acquiring the attribute information of the components in the display interface and generating a report file according to the attribute information and the report subdata displayed in the components.
7. The apparatus of claim 6, further comprising:
the editing instruction receiving module is used for receiving an editing instruction of report subdata in the component through the display interface and editing the data format and/or the data content of the report subdata based on the editing instruction;
and the report file generation module is used for generating a report file based on the edited report subdata and the attribute information of the assembly.
8. The apparatus of claim 6, wherein the report file generating module comprises:
the interactive instruction receiving submodule is used for receiving an interactive instruction aiming at the report subdata displayed in the component and adjusting the display proportion and/or the display area of the report subdata displayed in the component according to the interactive instruction;
the intercepting submodule is used for intercepting the report subdata after the display proportion and/or the display area in the assembly are adjusted to generate image data;
and the report file generation submodule is used for generating a report file according to the image data and the acquired attribute information of the assembly.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010229014.6A CN111428464A (en) | 2020-03-27 | 2020-03-27 | Report file generation method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010229014.6A CN111428464A (en) | 2020-03-27 | 2020-03-27 | Report file generation method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111428464A true CN111428464A (en) | 2020-07-17 |
Family
ID=71555502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010229014.6A Pending CN111428464A (en) | 2020-03-27 | 2020-03-27 | Report file generation method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111428464A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858596A (en) * | 2020-07-22 | 2020-10-30 | 广东电网有限责任公司 | Data acquisition method and device, computer equipment and storage medium |
CN111985188A (en) * | 2020-07-22 | 2020-11-24 | 用友网络科技股份有限公司 | Data conversion method, device, terminal and storage medium |
CN114968455A (en) * | 2022-04-29 | 2022-08-30 | 北京百度网讯科技有限公司 | Report generation method and device of application interface and electronic equipment |
-
2020
- 2020-03-27 CN CN202010229014.6A patent/CN111428464A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858596A (en) * | 2020-07-22 | 2020-10-30 | 广东电网有限责任公司 | Data acquisition method and device, computer equipment and storage medium |
CN111985188A (en) * | 2020-07-22 | 2020-11-24 | 用友网络科技股份有限公司 | Data conversion method, device, terminal and storage medium |
CN114968455A (en) * | 2022-04-29 | 2022-08-30 | 北京百度网讯科技有限公司 | Report generation method and device of application interface and electronic equipment |
CN114968455B (en) * | 2022-04-29 | 2024-02-27 | 北京百度网讯科技有限公司 | Report generation method and device of application interface and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109801347B (en) | Method, device, equipment and medium for generating editable image template | |
US20230412664A1 (en) | Systems and methods for augmenting electronic content | |
US10466971B2 (en) | Generation of an application from data | |
US11132114B2 (en) | Method and apparatus for generating customized visualization component | |
WO2018188199A1 (en) | Method and device for identifying characters of claim settlement bill, server and storage medium | |
CN108399072B (en) | Application page updating method and device | |
CN111428464A (en) | Report file generation method and device, computer equipment and storage medium | |
EP3971798A1 (en) | Data processing method and apparatus, and computer readable storage medium | |
CN111666740A (en) | Flow chart generation method and device, computer equipment and storage medium | |
CN110347984B (en) | Policy page changing method and device, computer equipment and storage medium | |
US20150278248A1 (en) | Personal Information Management Service System | |
US20210117174A1 (en) | Providing context-based application suggestions | |
US20140280352A1 (en) | Processing semi-structured data | |
CN110990651B (en) | Address data processing method and device, electronic equipment and computer readable medium | |
CN114237890A (en) | Application collaborative display method and device, server, terminal and program product | |
US20170300821A1 (en) | Processing Electronic Data In Computer Networks With Rules Management | |
CN110619061A (en) | Video classification method and device, electronic equipment and readable medium | |
CN113129155A (en) | Multi-type personnel information processing method, equipment and storage medium | |
CN111145143B (en) | Problem image determining method and device, electronic equipment and storage medium | |
WO2019071907A1 (en) | Method for identifying help information based on operation page, and application server | |
CN115484560B (en) | Intelligent short message processing method and device, electronic equipment and storage medium | |
CN108196921B (en) | Document development method and device, computer equipment and storage medium | |
CN115858049A (en) | RPA flow componentization arrangement method, device, equipment and medium | |
CN115471582A (en) | Map generation method and device, computer equipment and storage medium | |
WO2022105120A1 (en) | Text detection method and apparatus from image, computer device 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 |