CN116776848A - Page generation method, page generation device, computing equipment and storage medium - Google Patents

Page generation method, page generation device, computing equipment and storage medium Download PDF

Info

Publication number
CN116776848A
CN116776848A CN202310620981.9A CN202310620981A CN116776848A CN 116776848 A CN116776848 A CN 116776848A CN 202310620981 A CN202310620981 A CN 202310620981A CN 116776848 A CN116776848 A CN 116776848A
Authority
CN
China
Prior art keywords
page
query
template
page template
computing device
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
Application number
CN202310620981.9A
Other languages
Chinese (zh)
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.)
Tianjin Chezhijia Software Co ltd
Original Assignee
Tianjin Chezhijia Software 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 Tianjin Chezhijia Software Co ltd filed Critical Tianjin Chezhijia Software Co ltd
Priority to CN202310620981.9A priority Critical patent/CN116776848A/en
Publication of CN116776848A publication Critical patent/CN116776848A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a page generation method, a page generation device, computing equipment and a storage medium, and relates to the technical field of computers and Internet. A method performed in a computing device to generate a presentation file, the presentation file containing one or more pages, each page corresponding to a page template, the page templates containing one or more page elements, the method comprising: acquiring each page element in a page template; for each page element, acquiring query result data corresponding to the page element according to a query sequence, a query condition and a query interface corresponding to the page element which are preset; generating a resource data file according to query result data corresponding to all page elements in the page template; and filling the page template according to the resource data file to generate a corresponding page. According to the technical scheme of the invention, the program processing logic is more stable and reliable, the decoupling performance is strong, the problem is easy to check, and the code logic is simple and easy to maintain.

Description

Page generation method, page generation device, computing equipment and storage medium
Technical Field
The present invention relates to the field of computers and internet technologies, and in particular, to a page generating method, a device, a computing device, and a storage medium.
Background
Business personnel of each industry often need to present industry data and summarized PPT reports to customers. For the situations of similar PPT patterns and numerous data sources, how to use application programs to realize customization and automatic filling of PPT templates is an unavoidable solution. Aiming at the requirements of customization and automatic filling of the PPT template provided by a business party, a scheme which can ensure stable large data volume inquiry and is applicable to various business scenes is designed, and the scheme is needed to be solved.
Currently, data filling of a PPT template is mainly finished by means of an Apache POI, and in the process of filling data into the PPT template, data are filled for each PPT template usually in a mode of synchronization, program processing logic and service high fusion. Since the processing logic of each PPT is generally different, as the number of PPT pages increases, the corresponding processing logic in the program will increase, the complexity of the code will increase, and the maintainability will decrease.
For this reason, a page generation method is needed to solve the problems in the above technical solutions.
Disclosure of Invention
To this end, the present invention provides a page generating method and page generating apparatus to solve or at least alleviate the above-mentioned problems.
According to one aspect of the present invention, there is provided a page generation method for execution in a computing device to generate a presentation file, the presentation file containing one or more pages, each page corresponding to a page template containing one or more page elements therein, the method comprising: acquiring each page element in a page template; for each page element, acquiring query result data corresponding to the page element according to a query sequence, a query condition and a query interface corresponding to the page element which are preset; generating a resource data file according to query result data corresponding to all page elements in the page template; and filling the page template according to the resource data file to generate a corresponding page.
Optionally, in the page generating method according to the present invention, further includes: generating a subtask according to each page element in the page template; and asynchronously executing each subtask so as to acquire query result data corresponding to the page element according to the query sequence, the query condition and the query interface corresponding to the page element.
Optionally, in the page generating method according to the present invention, each of the subtasks is executed asynchronously, including: splitting the subtask into a plurality of query steps according to the query sequence corresponding to the page elements, wherein each query step corresponds to a query condition and a query interface; each query step of the subtask is sequentially executed so as to acquire an execution result of the query step according to the query condition and the query interface corresponding to the query step; and obtaining query result data corresponding to the subtasks according to the execution results of the plurality of query steps.
Optionally, in the page generation method according to the present invention, the computing device is communicatively connected to a client; filling the page template according to the resource data file to generate a corresponding page, including: and sending the resource data file to a client so that the client fills the page template according to the resource data file to generate a corresponding page.
Optionally, in the page generating method according to the present invention, a page template selected at the client is received.
Optionally, in the page generating method according to the present invention, further includes: and receiving a query sequence, a query condition and a query interface configured by the client for each page element in the page template, and generating a configuration file corresponding to the page template.
Optionally, in the page generating method according to the present invention, the page element includes one or more of a chart, a table, and a text box.
According to one aspect of the present invention, there is provided a page generating apparatus residing in a computing device for generating a presentation file, the presentation file comprising one or more pages, each page corresponding to a page template, the page templates comprising one or more page elements, the apparatus comprising: the acquisition module is suitable for acquiring each page element in the page template; the query module is suitable for acquiring query result data corresponding to each page element according to a query sequence, a query condition and a query interface corresponding to the page element which are preset; the generation module is suitable for generating a resource data file according to query result data corresponding to all page elements in the page template; and the filling module is suitable for filling the page template according to the resource data file so as to generate a corresponding page.
According to one aspect of the invention, there is provided a computing device comprising: at least one processor; a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the page generation method as described above.
According to one aspect of the present invention, there is provided a readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform a page generation method as described above.
According to the technical scheme, the page generation method can generate the pages in the presentation file based on the corresponding page templates. Specifically, by acquiring each page element in the page template, for each page element, query result data corresponding to the page element may be acquired according to a query sequence, a query condition and a query interface corresponding to the page element that are configured in advance. The resource data file may then be generated from the query result data corresponding to all of the page elements in the page template. Finally, the page template may be populated from the resource data file to generate a corresponding page. Thus, according to the technical scheme of the invention, the configuration and the data query are respectively carried out on each page element in the page template, so that the program processing logic for acquiring the filling data required by the page template and generating the page is more stable and reliable, the decoupling performance is strong, the problem is easy to check, and the code logic is simple and easy to maintain. Moreover, according to the page generation method of the invention, the query interface corresponding to various service scenes is configured, so that the page generation method can be suitable for various service scenes.
In addition, each page element in the page template is split into the subtasks, each subtask is executed asynchronously, and the subtasks are split into a plurality of inquiry steps, so that program processing logic can be further split, decoupling performance and controllability of a program are enhanced, and the method and the device are beneficial to improving the running efficiency and performance of the program.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 shows a schematic diagram of a computing device 100 according to one embodiment of the invention;
FIG. 2 shows a flow diagram of a page generation method 200 according to one embodiment of the invention;
fig. 3 shows a schematic diagram of a page generating apparatus 300 according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 shows a schematic diagram of a computing device 100 according to one embodiment of the invention. As shown in FIG. 1, in a basic configuration, computing device 100 includes at least one processing unit 102 and a system memory 104. According to one aspect, the processing unit 102 may be implemented as a processor, depending on the configuration and type of computing device. The system memory 104 includes, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read only memory), flash memory, or any combination of such memories. According to one aspect, an operating system 105 is included in system memory 104.
According to one aspect, operating system 105 is suitable, for example, for controlling the operation of computing device 100. Further, examples are practiced in connection with a graphics library, other operating systems, or any other application program and are not limited to any particular application or system. This basic configuration is illustrated in fig. 1 by those components within the dashed line. According to one aspect, computing device 100 has additional features or functionality. For example, according to one aspect, computing device 100 includes additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in fig. 1 by removable storage device 109 and non-removable storage device 110.
As set forth hereinabove, according to one aspect, the program module 103 is stored in the system memory 104. According to one aspect, program modules 103 may include one or more applications, the invention is not limited in the type of application, for example, the application may include: email and contacts applications, word processing applications, spreadsheet applications, database applications, slide show applications, drawing or computer-aided application, web browser applications, etc.
According to one aspect, the program module 103 may comprise a page generating apparatus 300, the page generating apparatus 300 comprising a plurality of program instructions adapted to perform the page generating method 200 of the present invention.
According to one aspect, the examples may be practiced in a circuit comprising discrete electronic components, a packaged or integrated electronic chip containing logic gates, a circuit utilizing a microprocessor, or on a single chip containing electronic components or a microprocessor. For example, examples may be practiced via a system on a chip (SOC) in which each or many of the components shown in fig. 1 may be integrated on a single integrated circuit. According to one aspect, such SOC devices may include one or more processing units, graphics units, communication units, system virtualization units, and various application functions, all of which are integrated (or "burned") onto a chip substrate as a single integrated circuit. When operating via an SOC, the functionality described herein may be operated via dedicated logic integrated with other components of computing device 100 on a single integrated circuit (chip). Embodiments of the invention may also be practiced using other techniques capable of performing logical operations (e.g., AND, OR, AND NOT), including but NOT limited to mechanical, optical, fluidic, AND quantum techniques. In addition, embodiments of the invention may be practiced within a general purpose computer or in any other circuit or system.
According to one aspect, the computing device 100 may also have one or more input devices 112, such as a keyboard, mouse, pen, voice input device, touch input device, and the like. Output device(s) 114 such as a display, speakers, printer, etc. may also be included. The foregoing devices are examples and other devices may also be used. Computing device 100 may include one or more communication connections 116 that allow communication with other computing devices 118. Examples of suitable communication connections 116 include, but are not limited to: RF transmitter, receiver and/or transceiver circuitry; universal Serial Bus (USB), parallel and/or serial ports.
The term computer readable media as used herein includes computer storage media. Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information (e.g., computer readable instructions, data structures, or program modules 103). System memory 104, removable storage 109, and non-removable storage 110 are all examples of computer storage media (i.e., memory storage). Computer storage media may include Random Access Memory (RAM), read Only Memory (ROM), electrically erasable read only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other article of manufacture that can be used to store information and that can be accessed by computing device 100. According to one aspect, any such computer storage media may be part of computing device 100. Computer storage media does not include a carrier wave or other propagated data signal.
According to one aspect, communication media is embodied by computer readable instructions, data structures, program modules 103, or other data in a modulated data signal (e.g., carrier wave or other transport mechanism) and includes any information delivery media. According to one aspect, the term "modulated data signal" describes a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio Frequency (RF), infrared, and other wireless media.
In an embodiment according to the invention, the computing device 100 is configured to perform the page generation method 200 according to the invention. The computing device 100 includes one or more processors and one or more readable storage media storing program instructions that, when configured to be executed by the one or more processors, cause the computing device to perform the page generation method 200 in embodiments of the invention. The page generation method 200 according to the present invention may be used to generate presentation files (e.g., PPT files).
According to one embodiment of the invention, a page generating apparatus 300 is deployed in a computing device 100, the page generating apparatus 300 being configured to perform the page generating method 200 according to the invention. The page generating apparatus 300 includes a plurality of program instructions for executing the page generating method 200 of the present invention, and these program instructions may instruct a processor to execute the page generating method 200 according to the present invention.
FIG. 2 shows a flow diagram of a page generation method 200 according to one embodiment of the invention. The page generation method 200 is adapted to be performed in a server, which may be implemented as the aforementioned computing device 100. In one embodiment, a server (computing device 100) may be communicatively connected to clients.
It should be noted that the page generating method 200 according to the present invention may be used to generate a presentation file (e.g., PPT file). The presentation file may contain one or more pages, each page may correspond to a page template, and the page templates may contain one or more page elements. In one embodiment, the page elements in the page template may contain one or more of charts, tables, text boxes, for example.
As shown in fig. 2, method 200 includes steps 210-240.
In step 210, each page element in the page template is obtained. Here, the page elements in the page template may contain, for example, charts, tables, text boxes, and the like.
Subsequently, in step 220, for each page element in the page template, query result data corresponding to the page element (i.e., filler data corresponding to the page element) is queried and obtained according to the query sequence, the query condition, and the query interface (data source interface) corresponding to the page element that are configured in advance. Specifically, query result data corresponding to each page element can be sequentially queried and obtained according to a query sequence corresponding to a preconfigured page element, wherein when query is performed to obtain the query result data corresponding to each page element, a query interface corresponding to the page element can be called based on a query condition corresponding to the page element to obtain returned result data of the query interface as query result data.
Next, in step 230, a resource data file is generated from the query result data corresponding to all page elements in the page template. Here, the resource data file corresponds to a page template and is used for populating the page template to generate a page, and specifically, the resource data file contains all data required to be populated by the page template.
Finally, in step 240, a page corresponding to the page template is generated from the resource data file and the page template. Here, the page template may be specifically populated according to the resource data file to generate a corresponding page.
It will be appreciated that for each page template in the presentation file, the page corresponding to each page template may be generated by performing the method 200 of the present invention. And generating a demonstration file according to the pages corresponding to all the page templates.
According to one embodiment of the invention, a primary task may be generated from a page template. And respectively generating a subtask according to each page element in the page template.
By asynchronously executing the subtasks corresponding to each page element in the page template, the query result data corresponding to the page elements can be obtained according to the query sequence, the query conditions and the query interfaces corresponding to the page elements (the query interfaces corresponding to the page elements are called according to the query conditions corresponding to the page elements according to the query sequence corresponding to each page element). In particular, multiple subtasks may be performed asynchronously by multiple threads. It should be noted that decoupling of the query data flow may be achieved by splitting each page element in the page template into subtasks, and executing each subtask asynchronously through multithreading.
After all the subtasks corresponding to the page elements in the page template are executed, the main tasks corresponding to the page template are triggered to be executed so as to integrate query result data corresponding to all the subtasks (page elements), and a resource data file is generated according to the query result data corresponding to all the subtasks (page elements).
Further, in one embodiment, when executing the subtask, the subtask may be split into a plurality of query steps according to the query sequence corresponding to the page element, where each query step corresponds to a query condition and a query interface.
After the subtask is split into a plurality of inquiry steps, by sequentially executing each inquiry step of the subtask, the execution result of each inquiry step can be obtained according to the inquiry conditions and the inquiry interfaces corresponding to each inquiry step. According to the execution results of the plurality of query steps contained in the subtasks, query result data corresponding to the subtasks (page elements) can be obtained.
Therefore, the subtask is further split into a plurality of query steps, the decoupling performance is higher, the problem in each query step only needs to be checked, and each query step supports retry, so that the problem checking is more convenient, and the program running efficiency and performance are improved.
According to one embodiment of the invention, a server (computing device 100) is communicatively connected to a client. When the corresponding page is generated according to the resource data file and the page template, the resource data file can be specifically sent to the client, and the client can fill the page template according to the resource data file so as to generate the page corresponding to the page template.
According to one embodiment of the invention, before each page element in the page template is acquired, a page template selected by a user at a client may be received, and a query condition of each page element in the page template input by the user at the client may also be received. Each page element in the page template may then be retrieved and steps 220-240 described above may be continued to be performed to generate a page corresponding to the page template.
According to one embodiment of the invention, the query order, query conditions, query interface configured by each page element in the page template may also be configured by the client before step 210 is performed. Specifically, the server (computing device 100) may receive the query order, query conditions, query interface (data source interface) configured at the client for each page element in the page template, and then may generate a configuration file corresponding to the page template according to the query order, query conditions, query interface configured for each page element in the page template. Thus, in step 220, for each page element, information such as a query sequence, a query condition, a query interface, and the like corresponding to the page element may be obtained from the configuration file.
According to the page generation method of the present invention, pages in a presentation file can be generated based on corresponding page templates. Specifically, by acquiring each page element in the page template, for each page element, query result data corresponding to the page element may be acquired according to a query sequence, a query condition and a query interface corresponding to the page element that are configured in advance. The resource data file may then be generated from the query result data corresponding to all of the page elements in the page template. Finally, the page template may be populated from the resource data file to generate a corresponding page. Thus, according to the technical scheme of the invention, the configuration and the data query are respectively carried out on each page element in the page template, so that the program processing logic for acquiring the filling data required by the page template and generating the page is more stable and reliable, the decoupling performance is strong, the problem is easy to check, and the code logic is simple and easy to maintain. Moreover, according to the page generation method of the invention, the query interface corresponding to various service scenes is configured, so that the page generation method can be suitable for various service scenes.
In addition, each page element in the page template is split into the subtasks, each subtask is executed asynchronously, and the subtasks are split into a plurality of inquiry steps, so that program processing logic can be further split, decoupling performance and controllability of a program are enhanced, and the method and the device are beneficial to improving the running efficiency and performance of the program.
Fig. 3 shows a schematic diagram of a page generating apparatus 300 according to an embodiment of the invention. The page generating apparatus 300 resides in the computing device 100 (which may be a server in particular). The page generating apparatus 300 may be configured to perform the page generating method 200 of the present invention in order to generate a presentation file.
It should be noted that the presentation file may include one or more pages, each page may correspond to a page template, and the page template may include one or more page elements. In one embodiment, the page elements in the page template may contain one or more of charts, tables, text boxes, for example.
As shown in fig. 3, the page generating apparatus 300 includes an acquisition module 310, a query module 320, a generation module 330, and a population module 340 that are sequentially communicatively connected.
Wherein the acquisition module 310 may acquire each page element in the page template. The query module 320 may obtain, for each page element, query result data corresponding to the page element according to a query sequence, a query condition, and a query interface corresponding to the page element that are configured in advance. The generating module 330 may generate a resource data file according to query result data corresponding to all page elements in the page template. The populating module 340 may populate a page template from the resource data file to generate a corresponding page.
It should be noted that, for the specific execution logic of the obtaining module 310, the querying module 320, the generating module 330 and the populating module 340, reference may be made to the descriptions of the steps in the foregoing method 200, and the descriptions are not repeated here.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U-drives, floppy diskettes, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the mobile terminal will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the page generation method of the present invention in accordance with instructions in said program code stored in the memory.
By way of example, and not limitation, readable media comprise readable storage media and communication media. The readable storage medium stores information such as computer readable instructions, data structures, program modules, or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with examples of the invention. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-order units or sub-components.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter.

Claims (10)

1. A page generation method executed in a computing device to generate a presentation file, the presentation file containing one or more pages, each page corresponding to a page template containing one or more page elements, the method comprising:
acquiring each page element in a page template;
for each page element, acquiring query result data corresponding to the page element according to a query sequence, a query condition and a query interface corresponding to the page element which are preset;
generating a resource data file according to query result data corresponding to all page elements in the page template;
and filling the page template according to the resource data file to generate a corresponding page.
2. The method of claim 1, further comprising:
generating a subtask according to each page element in the page template;
and asynchronously executing each subtask so as to acquire query result data corresponding to the page element according to the query sequence, the query condition and the query interface corresponding to the page element.
3. The method of claim 2, wherein asynchronously executing each of the subtasks comprises:
splitting the subtask into a plurality of query steps according to the query sequence corresponding to the page elements, wherein each query step corresponds to a query condition and a query interface;
each query step of the subtask is sequentially executed so as to acquire an execution result of the query step according to the query condition and the query interface corresponding to the query step;
and obtaining query result data corresponding to the subtasks according to the execution results of the plurality of query steps.
4. The method of any of claims 1-3, wherein the computing device is communicatively connected to a client; filling the page template according to the resource data file to generate a corresponding page, including:
and sending the resource data file to a client so that the client fills the page template according to the resource data file to generate a corresponding page.
5. The method of any of claims 1-4, wherein prior to retrieving each page element in the page template, further comprising:
a page template selected at a client is received.
6. The method of any one of claims 1-5, further comprising:
and receiving a query sequence, a query condition and a query interface configured by the client for each page element in the page template, and generating a configuration file corresponding to the page template.
7. The method of any of claims 1-6, wherein the page element comprises one or more of a chart, a table, a text box.
8. A page generation apparatus residing in a computing device for generating a presentation file, the presentation file containing one or more pages, each page corresponding to a page template, the page templates containing one or more page elements therein, the apparatus comprising:
the acquisition module is suitable for acquiring each page element in the page template;
the query module is suitable for acquiring query result data corresponding to each page element according to a query sequence, a query condition and a query interface corresponding to the page element which are preset;
the generation module is suitable for generating a resource data file according to query result data corresponding to all page elements in the page template;
and the filling module is suitable for filling the page template according to the resource data file so as to generate a corresponding page.
9. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-7.
10. A readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-7.
CN202310620981.9A 2023-05-29 2023-05-29 Page generation method, page generation device, computing equipment and storage medium Pending CN116776848A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310620981.9A CN116776848A (en) 2023-05-29 2023-05-29 Page generation method, page generation device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310620981.9A CN116776848A (en) 2023-05-29 2023-05-29 Page generation method, page generation device, computing equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116776848A true CN116776848A (en) 2023-09-19

Family

ID=87987048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310620981.9A Pending CN116776848A (en) 2023-05-29 2023-05-29 Page generation method, page generation device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116776848A (en)

Similar Documents

Publication Publication Date Title
CN108519967B (en) Chart visualization method and device, terminal and storage medium
CN111339041B (en) File analysis and storage method and device and file generation method and device
US10540383B2 (en) Automatic ontology generation
US9904694B2 (en) NoSQL relational database (RDB) data movement
CN109558525B (en) Test data set generation method, device, equipment and storage medium
CN106557486A (en) A kind of storage method and device of data
KR102471587B1 (en) Documents conversion apparatus, and control method thereof
CN110673839B (en) Distributed tool configuration construction generation method and system
CN111125064B (en) Method and device for generating database schema definition statement
CN114201718A (en) Dynamically configurable form instance generation method and device
US20220284371A1 (en) Method, device and medium for a business function page
CN110888794B (en) Interface testing method and device
CN113672204A (en) Interface document generation method, system, electronic equipment and storage medium
CN115150392B (en) Remote file copying method, system, computing equipment and storage medium
CN114282129A (en) Information system page generation method, system, electronic equipment and storage medium
CN113835692A (en) Dictionary data processing method and device, electronic equipment and computer storage medium
US9037597B2 (en) Verifying file versions in a networked computing environment
CN115756445A (en) Component generation method and device, electronic equipment and computer storage medium
US11250002B2 (en) Result set output criteria
CN117008936A (en) Page updating method and device, computing equipment and storage medium
CN117075894A (en) List display method and device, computing equipment and readable storage medium
CN116776848A (en) Page generation method, page generation device, computing equipment and storage medium
US20170199729A1 (en) Application developing method and system
CN111737784B (en) Board card type selection configuration method and equipment based on digital three-dimensional ZXMP S385 subframe
CN110515653B (en) Document generation method and device, electronic equipment and computer readable 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