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

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

Info

Publication number
CN107544952B
CN107544952B CN201710751472.4A CN201710751472A CN107544952B CN 107544952 B CN107544952 B CN 107544952B CN 201710751472 A CN201710751472 A CN 201710751472A CN 107544952 B CN107544952 B CN 107544952B
Authority
CN
China
Prior art keywords
report
offline node
data
report data
display page
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
CN201710751472.4A
Other languages
Chinese (zh)
Other versions
CN107544952A (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201710751472.4A priority Critical patent/CN107544952B/en
Publication of CN107544952A publication Critical patent/CN107544952A/en
Application granted granted Critical
Publication of CN107544952B publication Critical patent/CN107544952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention relates to a report generation method, a report generation device, a storage medium and computer equipment. And acquiring a plurality of report data, and then creating an offline node. And attaching the report data to the offline node in batch, attaching the offline node to a DOM structure of a report display page, and finally generating a report containing the report data on the report display page. In the process of updating the acquired report data to the report display page, a temporary offline node is created first, the report data are uniformly attached to the offline node in batches, and the content in the offline node is not synchronized to the DOM structure of the report display page, so that frequent operation in the DOM structure of the report display page is not required. And then, the offline node is added to the DOM structure of the report display page at one time, and a report containing a plurality of report data is generated. The frequent operation of the DOM structure of the report display page is greatly reduced in the report generation process, the running load is reduced, and the running efficiency is improved.

Description

Report generation method and device, storage medium and computer equipment
Technical Field
The invention relates to the technical field of office software, in particular to a report generation method, a report generation device, a storage medium and computer equipment.
Background
A report generally refers to a carrier for dynamically displaying data in a form, a chart, or the like, and can be formulated as: "report" is a diverse format + dynamic data ". The report bears a lot of information expressed by the report data, and the information can be intuitively acquired through the report. In the using process of the report, the data of the report needs to be continuously added or modified to update the whole report. In the conventional method, when new data in the report needs to be added or updated, frequent operations are performed on the report. These frequent operations can seriously affect the performance of the report, load the report, and reduce the running speed of the report.
Disclosure of Invention
In view of the above, it is necessary to provide a report generation method, apparatus, storage medium and computer device for solving the above technical problems.
A report generation method, the method comprising:
acquiring a plurality of report data;
creating an offline node;
attaching the plurality of report data to the offline node in batches;
adding the offline node to a DOM structure of a report display page;
and generating a report containing the report data on a report display page.
In one embodiment, after the obtaining of the plurality of report data, the method includes:
splicing the report data into a character string;
the attaching the plurality of report data to the offline node in batches comprises:
and attaching the character string to the offline node in a manner of acquiring element content through INNERHTML.
In one embodiment, the creating an offline node includes:
temporary DIV nodes are created.
In one embodiment, the attaching the offline node to the DOM structure of the report display page includes:
and returning and adding child nodes of the offline nodes to a DOM structure of a report display page, wherein the child nodes contain the report data.
In one embodiment, the method further comprises:
when detecting that the total width of the frozen columns of the generated report reaches a first set threshold, switching the display mode of the report from a vertical screen to a horizontal screen;
and when detecting that the total width of the frozen columns of the report reaches a second set threshold value in the display mode of the horizontal screen, adjusting the width and the sequence of the frozen columns to enable the total width of the frozen columns of the report to be smaller than the second set threshold value.
A report generation apparatus, the apparatus comprising:
the report data acquisition module is used for acquiring a plurality of report data;
the off-line node creating module is used for creating off-line nodes;
the report data batch adding module is used for adding the plurality of report data to the offline node in batches;
the offline node adding module is used for adding the offline node to a DOM structure of a report display page;
and the report generation module is used for generating a report containing the plurality of report data on a report display page.
In one embodiment, the apparatus further comprises:
the report data splicing module is used for splicing the report data into a character string;
the report data batch adding module is also used for adding the character strings to the offline node in a manner of acquiring element contents through INNERHTML.
In one embodiment, the offline node creation module is further configured to create temporary DIV nodes.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a plurality of report data;
creating an offline node;
attaching the plurality of report data to the offline node in batches;
adding the offline node to a DOM structure of a report display page;
and generating a report containing the report data on a report display page.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a plurality of report data;
creating an offline node;
attaching the plurality of report data to the offline node in batches;
adding the offline node to a DOM structure of a report display page;
and generating a report containing the report data on a report display page.
According to the report generation method, the report generation device, the storage medium and the computer equipment, firstly, a plurality of report data are obtained, and then the offline node is established. And attaching the report data to the offline node in batch, attaching the offline node to a DOM structure of a report display page, and finally generating a report containing the report data on the report display page. In the process of updating the acquired report data to the report display page, a temporary offline node can be created first, and the report data are uniformly attached to the offline node in batches. And then, the offline node is added to the DOM structure of the report display page at one time, so that a report containing a plurality of report data is generated on the report display page. Therefore, a node is not required to be created in the DOM structure of the report display page without acquiring report data like the traditional method, so that the DOM structure of the report display page is frequently operated, the performance is seriously influenced, the load is increased, and the running speed is reduced. By adopting the method, the frequent operation of the DOM structure of the report display page is greatly reduced in the report generation process, the operation load is reduced, and the operation efficiency is improved.
Drawings
FIG. 1 is a diagram of the internal structure of a server in one embodiment;
FIG. 2 is a flowchart of a report generation method in one embodiment;
FIG. 3 is a flowchart of a report generation method in another embodiment;
FIG. 4 is a flowchart of a report generation method in yet another embodiment;
FIG. 5 is a flowchart of a report generation method in another embodiment;
FIG. 6 is a diagram illustrating an exemplary embodiment of a report generator;
FIG. 7 is a diagram illustrating an exemplary embodiment of a report generator;
FIG. 8 is a diagram illustrating an exemplary embodiment of a report generator;
fig. 9 is a schematic structural diagram of the report generation apparatus in one embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather should be construed as broadly as the present invention is capable of modification in various respects, all without departing from the spirit and scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. 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.
In one embodiment, as shown in fig. 1, there is further provided a server including a processor, a non-volatile storage medium, an internal memory, and a network interface, which are connected through a system bus, where the non-volatile storage medium stores an operating system and a report generating apparatus, and the report generating apparatus is configured to execute a report generating method. The processor is used for improving the calculation and control capacity and supporting the operation of the whole server. The internal memory is used to provide an environment for the operation of the report generating device in the non-volatile storage medium, and the internal memory can store computer readable instructions which can make the processor execute a report generating method when being executed by the processor. The network interface is used for performing network communication with the terminal, receiving or sending data, such as a report generation request sent by the terminal, sending a generated report to the terminal, and the like.
In an embodiment, as shown in fig. 2, a report generating method is provided, which is described by taking the example that the method is applied to the server in fig. 1, and includes:
step 202, a plurality of report data are obtained.
A report generally refers to a carrier for dynamically displaying data in a form, chart, or the like. Such as some financial data, sales data, statistical data, etc. During the use of the report, the data is constantly updated or new data is added. When updating or adding new data, specifically, the data may be manually input, or the data that needs to be updated or added to the report display page may be acquired after the data is called.
Step 204, an offline node is created.
After the data needing to be updated or added to the report display page is acquired, a temporary offline node, namely a DOM node, is created. The content in the offline node is not synchronized to the DOM structure of the report display page in real time. The DOM (Document Object Model) can reconstruct an entire HTML (HyperText Markup Language) Document, add, remove, change, or rearrange items on a page by operating the DOM by JavaScript. Assuming that a document is treated as a single object, the DOM is a standard for how to manipulate and control this object using HTML or XML (Extensible Markup Language). To change something on a page, JavaScript needs to get access to all elements in the HTML document. This entry, along with the methods and properties of adding, moving, changing, or removing HTML elements, is obtained through the DOM. The DOM is divided into different parts (core, XML and HTML): the Core DOM (Core DOM) defines a standard set of objects for any structured document; the XML DOM defines a set of standard objects for XML documents; the HTML DOM defines a standard set of objects for HTML documents.
And step 206, attaching a plurality of report data to the offline node in batches.
And acquiring the data needing to be updated or added to the report display page, and creating a temporary offline node, namely a DOM node. And combining the plurality of report data into a whole, and then uniformly attaching the whole to an offline node in batches, namely a temporary DOM node. The node can be created in the DOM structure of the report display page without acquiring report data like the traditional method.
At step 208, the offline node is attached to the DOM structure of the report display page.
After a plurality of report data are attached to the offline node in batches, the first child node of the offline node is returned and attached to the DOM structure of the report display page. The first child node of the offline node contains the main content of the report, specifically, a plurality of newly added report data.
Step 210, generating a report containing a plurality of report data on a report display page.
After the first child node of the offline node returns and is attached to the DOM structure of the report display page, the DOM structure of the report display page is updated. And generating a new report by JavaScript operation of the updated DOM node in the DOM structure. The new report displays the acquired plurality of report data.
In this embodiment, first, a plurality of report data are obtained, and then an offline node is created. And attaching the report data to the offline node in batch, attaching the offline node to a DOM structure of a report display page, and finally generating a report containing the report data on the report display page. In the process of updating the acquired report data to the report display page, a temporary offline node can be created first, and the report data are uniformly attached to the offline node in batches. And then, the offline node is added to the DOM structure of the report display page at one time, so that a report containing a plurality of report data is generated on the report display page. Therefore, a node is not required to be created in the DOM structure of the report display page without acquiring report data like the traditional method, so that the DOM structure of the report display page is frequently operated, the performance is seriously influenced, the load is increased, and the running speed is reduced. By adopting the method, the frequent operation of the DOM structure of the report display page is greatly reduced in the report generation process, the operation load is reduced, and the operation efficiency is improved.
In one embodiment, as shown in fig. 3, after obtaining the plurality of report data, the method includes:
step 203, a plurality of report data are spliced into a character string.
After the plurality of report data are acquired, the plurality of report data are added to the created offline node in batches for convenience. Since the data structure of the report is generally composed of row × column, the data elements corresponding to each report data are spliced into a character string with head and tail "< div >" "(div >") through two FOR loop statements. Specifically, for example:
[<div>
report data …
Report data
</div>]
The string content in parentheses is then added to the offline node via INNERHTML (get element content (containing text, tag elements)). Specifically, when the data amount in the character string with the head and the tail being "< div >" </div > "reaches a certain threshold, the character string is attached to the offline node, or the character string may be attached to the offline node within a certain period of time. Of course, other reasonable conditions may be set for limitation, so as to attach the character string to the offline node.
In the embodiment, a plurality of report data are spliced into a character string with head and tail of "< div >" </div > "through two FOR loop statements and corresponding data elements of each report data. And then, attaching the character string to the offline node, and attaching the offline node to a DOM structure of the report display page. Therefore, the problems that the performance is seriously influenced, the load is increased and the running speed is reduced due to the fact that a node is required to be created in the DOM structure of the report display page by acquiring report data in the same way as the traditional method, and the DOM structure of the report display page is frequently operated.
In one embodiment, creating an offline node comprises: temporary DIV nodes are created.
An offline node, DOM node, is created, and specifically, for example, a temporary DIV node is created, and the DIV node is also offline. Of course, it is not limited to DIV nodes, and other nodes may be created. The data acquired to be updated or added to the report display page can be attached to the node.
DIV is a positioning technology in a cascading style sheet, which is called Division in full. Which may sometimes be referred to as a layer. The DIV is also called integer division in programming, i.e., an integer number of quotient-only. DIV elements are elements used to provide structure and context for the content of large blocks (block-level) within an HTML (an application under the standard generalized markup language) document. The DIV functions to wrap the content within the DIV, thereby achieving a wide variety of enhancements. For example, frames are set for DIV, so that the content area has frame styles, and the fonts in the DIV have various colors corresponding to the fonts in the DIV by setting font colors for the DIV; a background color or a background picture is set to the DIV so that contents within the DIV have beautiful CSS (Cascading Style Sheets) backgrounds.
In this embodiment, the temporary DIV node is created, so that the data acquired to be updated or added to the report display page is added to the node, and cannot be updated to the DOM structure of the report display page in real time. Therefore, frequent operation on the DOM structure of the report display page is not needed, and the problems that the performance is seriously affected, the load is increased and the running speed is reduced due to frequent operation on the DOM structure of the report display page are solved.
In one embodiment, appending the offline node to the DOM structure of the report display page includes: and returning and attaching the child nodes of the offline nodes to the DOM structure of the report display page, wherein the child nodes contain a plurality of report data.
After a plurality of report data are attached to the offline node in batches, the first child node of the offline node is returned and attached to the DOM structure of the report display page. The first child node of the offline node contains the main content of the report, specifically, a plurality of newly added report data. Specifically, the DOM structure of an HTML page is as follows:
Figure BDA0001391249270000081
and inserting the temporary node containing the report content into < div id ═ content' > so that the whole report content is presented in a report page, namely a new report is generated.
In the embodiment, the first child node of the offline node containing the report content is returned and added to the DOM structure of the report display page. Therefore, the DOM structure is updated, the content of the whole report is presented in the report page subsequently, and a new report is generated.
In one embodiment, as shown in fig. 4, after the offline node is attached to the DOM structure of the report display page, the method further comprises:
step 209, delete the offline node.
In the present embodiment, since this offline node is temporarily established for attaching a plurality of report data under the temporary node in the form of character strings, when the condition is satisfied, the temporary node is attached to the DOM structure of the report display page. After the temporary node is attached to the DOM structure of the report display page, the existence of the temporary node is not meaningful, so that the offline node is deleted, the cache can be cleared, and the operation efficiency is improved.
In one embodiment, as shown in fig. 5, a report generating method is provided, which further includes:
step 502, when detecting that the total width of the frozen column of the generated report reaches a first set threshold, switching the display mode of the report from a vertical screen to a horizontal screen.
The generated report also has the function of freezing the column. Specifically, the user sets the total width of the frozen column to reach a first set threshold, for example, three-quarters of the width of the screen of the mobile terminal, but other widths are also possible. When detecting that the total width of the frozen columns of the generated report reaches a first set threshold value, the mobile terminal intelligently switches from the vertical screen to the horizontal screen, meanwhile, the page monitors the RESIZE event of the page, and the report displayed on the vertical screen is synchronized into the report displayed on the horizontal screen when the horizontal screen and the vertical screen of the mobile terminal are switched. A resume event refers to an event that is triggered when the window display size is changed. Therefore, when the total width of the frozen columns reaches a first set threshold value, the vertical screen is switched to the horizontal screen, so that a user can have more sufficient space when browsing report data, and browsing efficiency is improved.
Step 504, when detecting that the total width of the frozen columns of the report reaches a second set threshold value in the display mode of the horizontal screen, adjusting the width and the sequence of the frozen columns to enable the total width of the frozen columns of the report to be smaller than the second set threshold value.
When in the mode of horizontal screen display, the total width of the frozen columns of the report is detected to reach a second set threshold value, and configuration items are also provided for adjusting the width and the sequence of the frozen columns. Specifically, the second set threshold may be the same as the first set threshold, or certainly may be different from the first set threshold. When the total width of the frozen columns of the detection report reaches the second set threshold, the user can set the width and the sequence of the frozen columns through configuration items, for example, the frozen columns can be set to automatically shift, that is, the width of the frozen columns is reduced, and of course, the shift amount can also be set, such as how much the frozen columns are reduced each time, for example, 0.2 cm. The ordering of the frozen columns may also be adjusted such that the total width of the frozen columns of the report is less than a second set threshold. For example, a user may freeze the three fields a, EF, but the three fields BCD between a and E, resulting in too many frozen columns so that the frozen column width takes up a lot of screen space, at which time the user can adjust the ordering of the fields (e.g., to AEFBCD) by configuring the entries so that only the first 3 columns need to be frozen to achieve the effect of exactly freezing a column. The area occupied by the frozen columns in the screen is greatly reduced.
In one embodiment, as shown in fig. 6, there is further provided a report generating apparatus 600, including: the report data acquisition module 610, the offline node creation module 620, the report data batch adding module 630, the offline node attachment module 640, and the report generation module 650.
The report data obtaining module 610 is configured to obtain a plurality of report data.
And an offline node creation module 620, configured to create an offline node.
And a report data batch adding module 630, configured to add a plurality of report data batches to the offline node.
And an offline node attaching module 640, configured to attach the offline node to the DOM structure of the report display page.
The report generating module 650 is configured to generate a report including a plurality of report data on a report display page.
In one embodiment, as shown in fig. 7, there is further provided a report generating apparatus 600, further comprising: the report data splicing module 660 is configured to splice a plurality of report data into a character string.
The report data batch adding module 630 is also used for adding the character strings to the offline node in a manner of obtaining element contents through INNERHTML.
In one embodiment, offline node creation module 620 is also used to create temporary DIV nodes.
In one embodiment, the offline node attaching module 640 is further configured to return and attach a child node of the offline node to the DOM structure of the report display page, where the child node includes a plurality of report data.
In one embodiment, as shown in fig. 8, there is further provided a report generating apparatus 600, further comprising: and a deleting module 670 configured to delete the offline node.
In one embodiment, as shown in fig. 9, there is further provided a report generating apparatus 600, further including:
and the horizontal and vertical screen switching module 680 is configured to switch the display mode of the report from the vertical screen to the horizontal screen when detecting that the total width of the frozen column of the generated report reaches a first set threshold.
And a frozen column adjusting module 690, configured to adjust the width and sequence of the frozen columns when detecting that the total width of the frozen columns of the report reaches a second set threshold in the display mode of the horizontal screen, so that the total width of the frozen columns of the report is smaller than the second set threshold.
In one embodiment, there is also provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of: acquiring a plurality of report data; creating an offline node; attaching a plurality of report data to an offline node in batches; attaching the offline node to a DOM structure of a report display page; and generating a report containing a plurality of report data on the report display page.
In one embodiment, the program further implements the following steps when executed by the processor: splicing a plurality of report data into a character string, and attaching the plurality of report data to an offline node in batches, wherein the method comprises the following steps:
the string is attached to the offline node by way of INNERHTML to obtain the content of the element.
In one embodiment, the program further implements the following steps when executed by the processor: temporary DIV nodes are created.
In one embodiment, the program further implements the following steps when executed by the processor: and returning and attaching the child nodes of the offline nodes to the DOM structure of the report display page, wherein the child nodes contain a plurality of report data.
In one embodiment, the program further implements the following steps when executed by the processor: when detecting that the total width of the frozen columns of the generated report reaches a first set threshold, switching the display mode of the report from a vertical screen to a horizontal screen; and when detecting that the total width of the frozen columns of the report reaches a second set threshold value in the display mode of the horizontal screen, adjusting the width and the sequence of the frozen columns to enable the total width of the frozen columns of the report to be smaller than the second set threshold value.
In one embodiment, there is also provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring a plurality of report data; creating an offline node; attaching a plurality of report data to an offline node in batches; attaching the offline node to a DOM structure of a report display page; and generating a report containing a plurality of report data on the report display page.
In one embodiment, the processor further implements the following steps when executing the computer program: splicing a plurality of report data into a character string, and attaching the plurality of report data to an offline node in batches, wherein the method comprises the following steps:
the string is attached to the offline node by way of INNERHTML to obtain the content of the element.
In one embodiment, the processor further implements the following steps when executing the computer program: temporary DIV nodes are created.
In one embodiment, the processor further implements the following steps when executing the computer program: and returning and attaching the child nodes of the offline nodes to the DOM structure of the report display page, wherein the child nodes contain a plurality of report data.
In one embodiment, the processor further implements the following steps when executing the computer program: when detecting that the total width of the frozen columns of the generated report reaches a first set threshold, switching the display mode of the report from a vertical screen to a horizontal screen; and when detecting that the total width of the frozen columns of the report reaches a second set threshold value in the display mode of the horizontal screen, adjusting the width and the sequence of the frozen columns to enable the total width of the frozen columns of the report to be smaller than the second set threshold value.
It will be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above may be implemented by hardware related to instructions of a computer program, and the program may be stored in a non-volatile computer readable storage medium, and in the embodiments of the present invention, the program may be stored in a storage medium of a computer system and executed by at least one processor in the computer system, so as to implement the processes including the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
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 invention, 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 inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A report generation method, the method comprising:
acquiring a plurality of report data;
creating an offline node;
attaching the plurality of report data to the offline node in batches; wherein attaching the plurality of report data in batches to the offline node comprises: combining the plurality of report data into a whole, and uniformly attaching the whole to the offline node in batches;
adding the offline node to a DOM structure of a report display page;
generating a report containing the plurality of report data on a report display page;
and deleting the offline node.
2. The method of claim 1, after said obtaining a plurality of reporting data, comprising:
splicing the report data into a character string;
the attaching the plurality of report data to the offline node in batches comprises:
and attaching the character string to the offline node in a manner of acquiring element content through INNERHTML.
3. The method of claim 1, wherein the creating an offline node comprises:
temporary DIV nodes are created.
4. The method of claim 1, wherein appending the offline node to a DOM structure of a report display page comprises:
and returning and adding child nodes of the offline nodes to a DOM structure of a report display page, wherein the child nodes contain the report data.
5. A report generation method is characterized in that the method also comprises the following steps:
when detecting that the total width of the frozen columns of the generated report reaches a first set threshold, switching the display mode of the report from a vertical screen to a horizontal screen; the report is a report which is generated on a report display page and contains a plurality of report data by acquiring the report data, creating an offline node, attaching the report data to the offline node in batches, attaching the offline node to a DOM (document object model) structure of the report display page, and generating the report containing the report data on the report display page; wherein attaching the plurality of report data in batches to the offline node comprises: combining the plurality of report data into a whole, and uniformly attaching the whole to the offline node in batches;
when the total width of the frozen columns of the report is detected to reach a second set threshold value in the display mode of the transverse screen, the width of the frozen columns is adjusted according to a preset offset, and the sequence of the frozen columns is adjusted according to the positions of the frozen columns, so that the total width of the frozen columns of the report is smaller than the second set threshold value.
6. A report generation apparatus, characterized in that the apparatus comprises:
the report data acquisition module is used for acquiring a plurality of report data;
the off-line node creating module is used for creating off-line nodes;
the report data batch adding module is used for adding the plurality of report data to the offline node in batches; wherein attaching the plurality of report data in batches to the offline node comprises: combining the plurality of report data into a whole, and uniformly attaching the whole to the offline node in batches;
the offline node adding module is used for adding the offline node to a DOM structure of a report display page;
the report generation module is used for generating a report containing the plurality of report data on a report display page;
and the deleting module is used for deleting the offline node.
7. The apparatus of claim 6, further comprising:
the report data splicing module is used for splicing the report data into a character string;
the report data batch adding module is also used for adding the character strings to the offline node in a manner of acquiring element contents through INNERHTML.
8. The apparatus of claim 6, wherein the offline node creation module is further configured to create temporary DIV nodes.
9. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing the report generating method according to any one of claims 1 to 5.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the report generating method according to any of claims 1 to 5 when executing the computer program.
CN201710751472.4A 2017-08-28 2017-08-28 Report generation method and device, storage medium and computer equipment Active CN107544952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710751472.4A CN107544952B (en) 2017-08-28 2017-08-28 Report generation method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710751472.4A CN107544952B (en) 2017-08-28 2017-08-28 Report generation method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN107544952A CN107544952A (en) 2018-01-05
CN107544952B true CN107544952B (en) 2022-01-07

Family

ID=60957817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710751472.4A Active CN107544952B (en) 2017-08-28 2017-08-28 Report generation method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN107544952B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885814A (en) * 2019-03-04 2019-06-14 上海携程商务有限公司 Tables of data Grafmaster, method, equipment and storage medium
CN111309671B (en) * 2019-12-04 2023-01-31 珠海派诺科技股份有限公司 Method and device for exporting PDF (Portable document Format) from web report and storage medium
CN111309798B (en) 2020-02-11 2023-05-12 北京字节跳动网络技术有限公司 Processing method, device, equipment and storage medium of table
CN112199056B (en) * 2020-10-20 2024-08-20 金蝶软件(中国)有限公司 Data printing method, device and computer storage medium
CN114077457A (en) * 2021-10-09 2022-02-22 上海易校信息科技有限公司 Method for loading reports one by one in batches
CN114327223B (en) * 2021-12-28 2024-08-02 中电云计算技术有限公司 Form display method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309849B (en) * 2013-03-28 2015-11-11 大连理工大学 A kind of docx document creation based on OpenXML and amending method
CN104461412B (en) * 2014-12-30 2017-08-25 广州视源电子科技股份有限公司 Method and system for printing specified area of web page
CN105094622B (en) * 2015-09-08 2018-05-22 上海上讯信息技术股份有限公司 Adjust the method and apparatus of form col width
CN105302787A (en) * 2015-11-10 2016-02-03 浪潮软件股份有限公司 Method and device for table data editing

Also Published As

Publication number Publication date
CN107544952A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN107544952B (en) Report generation method and device, storage medium and computer equipment
WO2015196822A1 (en) Method and device for adapting webpage to screen layout
CN103353886A (en) Method and system for previewing webpage
DE202011108541U1 (en) Systems for generating and displaying a preview image of a content area
JP2008192159A (en) Browser program, method and device for performing table layout
CN110413911B (en) Network picture loading method and device, terminal equipment and storage medium
WO2015078159A1 (en) Webpage display method and device
DE202014010943U1 (en) Switch to and from native web applications
CN105094930A (en) Image positioning system and method
CN112507257B (en) Webpage display method, device, equipment and storage medium
CN114117274B (en) Data rendering method, device, computer equipment and storage medium
CN105824874A (en) Mobile terminal as well as web page rendering method and device thereof
CN110866208B (en) Page response type layout method, device and equipment
CN107562455B (en) A kind of HTML list self-adaptive layout method and device
US10747943B2 (en) Method, device, client apparatus, and electronic device for presenting webpages
CN111783007B (en) Display rendering method and device, electronic equipment and storage medium
CN110609729A (en) CMSPWEB-based page monitoring rolling rendering method
CN105446708B (en) A kind of Shipping Options Page processing method, device and terminal for browser
CN102831212B (en) The composition method of page display and device
US8788965B2 (en) Method and device for displaying data by adjusting the size of controls
CN107025111A (en) The method and system that a kind of browser target pages entire screen switch is shown
CN105589883B (en) Method and device for displaying page elements of webpage
KR20090125045A (en) Method and apparatus for managing system specifications
CN111222302A (en) Webpage rendering control method, control device and computer readable medium
JP5372704B2 (en) Web page display program, Web page display method, Web page display device, and Web page display system

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