Data report generation method, device, medium and electronic equipment

文档序号:1567748 发布日期:2020-01-24 浏览:6次 中文

阅读说明:本技术 数据报表生成方法、装置、介质及电子设备 (Data report generation method, device, medium and electronic equipment ) 是由 尹业球 于 2019-08-30 设计创作,主要内容包括:本发明实施例提供了一种数据报表生成方法、装置、介质及电子设备,涉及数据处理技术领域,该方法包括:获取报表生成指令;确定报表生成指令所对应的目标报表模板;获取与目标报表模板所包含的报表数据标识相对应的数据来源;从数据来源中提取与报表数据标识相对应的报表数据;生成目标报表模板对应的页面流程图,该页面流程图包括与目标报表模板所包含的各报表数据标识相对应的数据提取节点和/或数据处理节点;根据报表数据提取情况和/或对提取到的报表数据的处理进度,控制与报表数据标识对应的页面流程图的节点改变显示状态。本发明实施例的技术方案使数据报表生成过程中出现故障时,提高故障的查询效率,减少用户的负担。(The embodiment of the invention provides a data report generation method, a device, a medium and electronic equipment, and relates to the technical field of data processing, wherein the method comprises the following steps: acquiring a report generation instruction; determining a target report template corresponding to the report generation instruction; acquiring a data source corresponding to a report data identifier contained in the target report template; extracting report data corresponding to the report data identification from the data source; generating a page flow chart corresponding to the target report template, wherein the page flow chart comprises data extraction nodes and/or data processing nodes corresponding to report data identifications contained in the target report template; and controlling the nodes of the page flow chart corresponding to the report data identification to change the display state according to the report data extraction condition and/or the processing progress of the extracted report data. According to the technical scheme of the embodiment of the invention, when a fault occurs in the data report generating process, the fault query efficiency is improved, and the burden of a user is reduced.)

1. A method for generating a data report, comprising:

acquiring a report generation instruction;

determining a target report template corresponding to the report generation instruction;

acquiring a data source corresponding to the report data identifier contained in the target report template;

extracting report data corresponding to the report data identification from the data source;

generating a page flow chart corresponding to the target report template, wherein the page flow chart comprises a data extraction node and/or a data processing node, and the data extraction node and/or the data processing node correspond to the report data identifier contained in the target report template;

and controlling the node corresponding to the report data identifier to change the display state according to the extraction condition of the report data and/or the processing progress of the extracted report data.

2. The data report generation method of claim 1, wherein the generating the page flow diagram corresponding to the target report template comprises:

determining data sources required to generate report contents and/or processing modes aiming at the report data extracted from the data sources according to the target report template;

determining the data extraction node according to the determined data source and/or determining the data processing node according to the processing mode;

and generating the page flow chart according to the data extraction node and/or the data processing node.

3. The data report generation method according to claim 1, wherein the controlling the node corresponding to the report identifier to change the display state according to the report data extraction condition and/or the extracted report data processing progress comprises:

and detecting whether the extraction of the report data is successful or not, or detecting whether the processing process of the report data extracted from each data source is completed or not, and if so, controlling the nodes corresponding to the report data identification to change the display state.

4. The data report generation method of claim 3, further comprising, before the detecting whether the report data extraction is successful:

comparing the report data in the data source with the data of a third-party data source, and if the report data in the data source is the same as the data of the third-party data source, extracting the report data in the data source; otherwise, the extraction is not performed.

5. The data report generating method according to claim 1, wherein after controlling the node corresponding to the report data identifier to change the display state according to the report data extraction condition and/or the extracted report data processing progress, the method further comprises:

detecting a moving track of a mouse or a touch point;

when the mouse or the touch point moves to the area where the corresponding node is located, a floating window is generated, and detailed information of data extraction or data processing is displayed on the floating window.

6. The data report generating method according to claim 1, wherein before controlling the node corresponding to the report identifier to change the display state according to the report data extraction condition and/or the extracted report data processing progress, the method further comprises:

detecting whether the report data extraction is successful;

if not, popping up a dialog box for asking the user to confirm whether to abandon the extraction of the report data or not;

and when detecting that the user triggers a confirmation request in the dialog box, giving up the extraction of the report data into the report template, and continuing to extract the next report data.

7. The data report generation method of claim 1, further comprising, before the generating the page flow diagram corresponding to the target report template:

and detecting whether the extraction of the report data is successful or not, or detecting whether the processing process aiming at the report data extracted from each data source is completed or not, and if not, generating a page flow chart corresponding to the target report template.

8. A datagram generation apparatus, comprising:

the first acquisition unit is used for acquiring a report generation instruction;

the determining unit is used for determining a target report template corresponding to the report generating instruction;

the second acquisition unit is used for acquiring a data source corresponding to the report data identifier contained in the target report template;

the extraction unit is used for extracting the report data corresponding to the report data identification from the data source;

the generating unit is used for generating a page flow chart corresponding to the target report template, the page flow chart comprises a data extraction node and/or a data processing node, and the data extraction node and/or the data processing node correspond to the report data identifier contained in the target report template;

and the display unit is used for controlling the node corresponding to the report data identifier to change the display state according to the data extraction condition and/or the processing progress of the extracted data.

9. A computer-readable medium, on which a computer program is stored, which program, when executed by a processor, implements a data table generation method according to any one of claims 1 to 7.

10. An electronic device, comprising:

one or more processors;

storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a data table generation method as claimed in any one of claims 1 to 7.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:对图片中的文本内容进行排版的方法、装置、介质和设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!