Dynamic report webpage and file generation method

文档序号:1889450 发布日期:2021-11-26 浏览:25次 中文

阅读说明:本技术 一种动态报告网页及文件生成方法 (Dynamic report webpage and file generation method ) 是由 李光鹏 宋海涛 李蒙 于 2021-08-11 设计创作,主要内容包括:本发明涉及大数据领域,具体提供了一种动态报告网页及文件生成方法,其特征在于,将报告的格式和内容描述部分固定,数据部分和结论部分通过数据查询和系统处理进行填充,并发布到网络系统中,所述报告支持内容填充,还可以根据需要按一定周期自动生成并发布到系统中。与现有技术相比,本发明从数据采集到报告内容生成再到网页和文件生成最后发布到网络系统中,实现了全过程自动化,节约了人工成本,提高了效率,具有良好的推广价值。(The invention relates to the field of big data, and particularly provides a dynamic report webpage and a file generation method. Compared with the prior art, the method has the advantages that the automation of the whole process is realized, the labor cost is saved, the efficiency is improved, and the method has good popularization value.)

1. A dynamic report webpage and file generation method is characterized in that a format and content description part of a report is fixed, a data part and a conclusion part are filled through data query and system processing and are issued to a network system, the report supports content filling, and can be automatically generated and issued to the system according to a certain period.

2. The method for generating a dynamic report web page and document according to claim 1, comprising the following steps:

s1, customizing a report template;

s2, establishing a theme database;

s3, analyzing the data to form a conclusion;

s4, the system fills the inquired data and the analysis result into the word file template;

and S5, downloading the report file in the corresponding format.

3. The method for generating the dynamic report webpage and the dynamic report file as claimed in claim 2, wherein in step S1, the report format and the content description are written into the template, the online view page is implemented by JSP + VUE, and the word and pdf format files are implemented by freemaker.

4. The method for generating dynamic report web page and file as claimed in claim 3, wherein in step S2, the data required by the report is cleaned and extracted into the database by using big data governance tool, and updated periodically according to the data change period.

5. The method for generating the dynamic report web page and document of claim 4, wherein in step S3, when the set report generation time is reached, the system queries the corresponding data in the topic database, and analyzes the data to form the conclusion.

6. The method as claimed in claim 5, wherein in step S4, the system fills the queried data and the analysis result into a word file template, so as to generate a word format file and store the word format file on the server, and then converts the word format file into a pdf format file and stores the pdf format file on the server.

7. The method as claimed in claim 6, wherein the data and analysis results are stored in the database together with the word, pdf file download link, report name, report type, and report basic information of generation time according to the format required by the online viewing page template.

8. The method for generating dynamic report web page and document as claimed in claim 7, wherein in step S5, the user logs in the system and can see the latest updated report in the system push content or query the corresponding report through the system query function.

9. The method as claimed in claim 8, wherein the report content can be viewed online by clicking a report link or an online viewing button, and the report file with the corresponding format can be downloaded by clicking a word format download or pdf format download button.

Technical Field

The invention relates to the field of big data, and particularly provides a dynamic report webpage and a file generation method.

Background

Most of reports issued on the internet at present are finished reports, and the contents are issued to a website after data arrangement, report writing, checking and manuscript checking and finalizing are carried out manually, so that most of work needs manpower participation, the labor cost is high, and the efficiency is low.

Disclosure of Invention

Aiming at the defects of the prior art, the invention provides a dynamic report webpage with strong practicability and a file generation method.

The technical scheme adopted by the invention for solving the technical problems is as follows:

a dynamic report webpage and file generation method fixes the format and content description part of a report, fills the data part and the conclusion part through data query and system processing, and sends the data part and the conclusion part to a network system, and the report supports content filling, and can be automatically generated and sent to the system according to a certain period.

Further, the method comprises the following specific steps:

s1, customizing a report template;

s2, establishing a theme database;

s3, analyzing the data to form a conclusion;

s4, the system fills the inquired data and the analysis result into the word file template;

and S5, downloading the report file in the corresponding format.

Further, in step S1, the report format and the content description are written into the template, the online view page is implemented by JSP + VUE, and the word and pdf format files are implemented by freemaker.

Further, in step S2, the data required for reporting is cleaned and extracted into the database using the big data abatement tool, and is updated periodically according to the data change period.

Further, in step S3, when the set report generation time is reached, the system queries the corresponding data in the topic database, and analyzes the data to form a conclusion.

Further, in step S4, the system fills the queried data and the analysis result into a word file template, so as to generate a word format file and store the word format file on the server, and then converts the word format file into a pdf format file and also stores the pdf format file on the server.

Preferably, the data and the analysis result are stored in a database together with basic report information of word, pdf file download link, report name, report type and generation time according to a format required by an online viewing page template.

Further, in step S5, the user logs in the system, and can see the latest updated report in the system push content, or query the corresponding report through the system query function.

Furthermore, the report content can be viewed online by clicking the report link or the online viewing button, and the report file in the corresponding format can be downloaded by clicking the word format download or pdf format download button.

Compared with the prior art, the dynamic report webpage and file generation method have the following outstanding beneficial effects:

the invention realizes the automation of the whole process, saves the labor cost and improves the efficiency from the data acquisition to the report content generation to the webpage and file generation and finally to the network system.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

FIG. 1 is a schematic diagram of a report push page in a dynamic report web page and file generation method;

FIG. 2 is a schematic diagram of a report query page in a dynamic report web page and document generation method.

Detailed Description

The present invention will be described in further detail with reference to specific embodiments in order to better understand the technical solutions of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

A preferred embodiment is given below:

as shown in fig. 1 and 2, in the dynamic report webpage and file generation method in this embodiment, a set of online viewing templates and word document templates of a report are customized according to actual needs, a format and content description part of the report is fixed, and a data part and a conclusion part are filled through data query and system processing and are issued to a network system. The report also supports the population of pictures, Echarts charts, GIS maps, etc. In addition, reports can be automatically generated and published to the system according to needs and a certain period.

The method comprises the following specific steps:

s1, customizing a report template:

customizing a report template, writing the report format and the content description into the template, realizing online viewing of a page by JSP + VUE, and realizing word and pdf format files by Freemarker.

S2, establishing a theme database:

and establishing a theme database, cleaning and processing the data required by the report by using a big data management tool, extracting the data into the database, and updating the data at regular time according to the data change period.

S3, analyzing the data to form a conclusion:

and when the set report generation time is reached, the system queries corresponding data in the subject database, analyzes the data and forms a conclusion.

S4, the system fills the inquired data and the analysis result into the word file template:

the system fills the inquired data and the analysis result into a word file template, thereby generating a word format file and storing the word format file on the server, and then converts the word format file into a pdf format file and also stores the pdf format file on the server.

And storing the data and the analysis result into a database together with basic report information such as word, pdf file download link, report name, report type, generation time and the like according to a format required by an online viewing page template.

S5, downloading the report file with the corresponding format:

the user logs in the system, and can see the latest updated report in the push content of the system, or can inquire the corresponding report through the system inquiry function.

The report content can be viewed online by clicking the report link or the online viewing button; and clicking a word format download or pdf format download button to download the report file in the corresponding format.

The above embodiments are only specific examples of the present invention, and the scope of the present invention includes but is not limited to the above embodiments, and any suitable changes or substitutions that are consistent with the claims of a dynamic report page and file generation method of the present invention and are made by those skilled in the art should fall within the scope of the present invention.

Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用户信息搜索方法、装置、设备及计算机可读存储介质

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!