CN117371416A - Project document generation method, device, equipment and storage medium - Google Patents

Project document generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN117371416A
CN117371416A CN202311310283.5A CN202311310283A CN117371416A CN 117371416 A CN117371416 A CN 117371416A CN 202311310283 A CN202311310283 A CN 202311310283A CN 117371416 A CN117371416 A CN 117371416A
Authority
CN
China
Prior art keywords
document
project
template
target
project document
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
CN202311310283.5A
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.)
China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Original Assignee
China Southern Power Grid Digital Platform Technology Guangdong 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 China Southern Power Grid Digital Platform Technology Guangdong Co ltd filed Critical China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Priority to CN202311310283.5A priority Critical patent/CN117371416A/en
Publication of CN117371416A publication Critical patent/CN117371416A/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

Abstract

The invention discloses a project document generation method, a device, equipment and a storage medium. The method comprises the following steps: acquiring a target project document template corresponding to a current project stage of a target project from a project document template library in response to a project document template acquisition operation, wherein the project document template library at least comprises one project document template, and configuring a document data link corresponding to each document component in the project document template according to the target project document template in response to a document data link configuration operation; and responding to the project document generation operation, rendering the target project document template based on the document data link, and obtaining the standard project document corresponding to the target project, so as to reduce the complexity of project document generation and meet the generation needs of various complex project documents.

Description

Project document generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a project document.
Background
With the development of computer technology, online intelligent and automatic business also rapidly develops, and high requirements are put on rapid generation of project files, which cannot be limited to manual generation.
In the traditional design mode, with the advancement of the iteration period of the project, the continuous design model needs to be modified, and the cost for maintaining the consistency of the design model and the document is higher and higher. When the user modifies the key fields of the required electronic document and adds the content, the designer needs to re-transcribe the designed content into the document according to the format requirement of the document, which is a repetitive labor for the completed design result, and the portability, functionality and usability of the traditional document template are poor, so that the actual situation requirement cannot be met.
Disclosure of Invention
The invention provides a project document generation method, a device, equipment and a storage medium, which are used for reducing the complexity of project document generation and meeting the generation needs of various complex project documents.
According to one aspect of the invention, a project document generation method is provided and is applied to a project document generation platform. The method comprises the following steps:
responding to a project document template obtaining operation, obtaining a target project document template corresponding to a current project stage of a target project from a project document template library, wherein the project document template library at least comprises one project document template;
responding to document data link configuration operation, and configuring a document data link corresponding to each document component in the project document template according to the target project document template;
and responding to a project document generating operation, and rendering the target project document template based on the document data link to obtain a standard project document corresponding to the target project.
According to another aspect of the present invention, there is provided a project document generating apparatus. The device comprises:
a project document template acquisition module, configured to acquire a target project document template corresponding to a current project stage of a target project from a project document template library in response to a project document template acquisition operation, where the project document template library includes at least one project document template;
the document data link configuration module is used for responding to document data link configuration operation and configuring document data links corresponding to all document components in the project document template according to the target project document template;
and the standard project document generation module is used for responding to project document generation operation, rendering the target project document template based on the document data link and obtaining the standard project document corresponding to the target project.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the project document generating method of any one of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the project document generating method according to any one of the embodiments of the present invention when executed.
According to the technical scheme, the target project document template corresponding to the current project stage of the target project is acquired from the project document template library by responding to the project document template acquisition operation. And responding to the document data link configuration operation, and configuring the document data links corresponding to the document components in the project document template according to the target project document template. And responding to the project document generation operation, rendering the target project document template based on the document data link, thereby obtaining the standard project document corresponding to the target project, providing a simplified template configuration mode of 'what you see is what you get', simplifying the complexity problem of writing the project document template, reducing the complexity of generating the project document by separating data from style rendering, and meeting the generation needs of various complex project documents.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for generating a project document according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a method for generating a project document according to a second embodiment of the present invention;
FIG. 3 is a block diagram of a project document generating apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a project document generating method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for generating a project document according to an embodiment of the present invention, where the method may be implemented by a project document generating apparatus, which may be implemented in hardware and/or software, and the project document generating apparatus may be configured in an electronic device. As shown in fig. 1, the method includes:
s101, responding to a project document template obtaining operation, obtaining a target project document template corresponding to a current project stage of a target project from a project document template library.
Wherein the project document template library comprises at least one project document template. The project document templates can be written and obtained in advance according to the requirements of users and stored in a project document template library. The project document template defines the document styles required for the project document, the required content structure, and the necessary textual description. It should be noted that, according to the progress requirement of the project, the project document templates corresponding to different project phases may be different. The target project may refer to an engineering project for which a project document is to be generated. The target project document template may refer to a project document template to which the target project corresponds at the current stage.
Specifically, in response to a user triggering a project document template retrieval operation in a project document generation platform, the project document template retrieval operation may include project phase information for a target project. According to the project document template obtaining operation, the project document generating platform determines a project document template corresponding to the current project stage of the target project from a project document template library, extracts the project document template and determines the project document template as the target project document template.
Illustratively, the definition process of the project document template includes: and aiming at each project stage of the target project, determining a document template frame and a document component type corresponding to the project document to be generated according to the requirement of the project document to be generated corresponding to the project stage. And responding to a template frame definition operation, and configuring a template frame corresponding to the to-be-defined project document template based on the document template frame in a template management interface of the project document generation platform. Responding to a document template definition operation, acquiring a document tag corresponding to the document component type from a document tag library according to the document component type, and filling the document tag into a template frame corresponding to the to-be-defined project document template to acquire a project document template corresponding to each project stage of the target project.
The document template frame at least comprises a project document style, a document content structure and necessary text description, and the document component type at least comprises a common text, a dynamic table and a project picture. The document tag may be a tag for indicating a rendering mode of a document component object type, for example, the types of paragraphs and tables are different, so that when the tag is filled and rendered, different rendering modes are required according to different component object types. The document tag can also be designed and obtained in advance according to the type of the component required by the document and stored in a document tag library.
Specifically, the project document template definition generation process corresponding to each project stage is the same. For each project stage, determining a document template frame and a document component type of the project document to be generated according to requirements of a user for the project document to be generated. Responding to a template frame definition operation triggered by a user, and performing template frame configuration on a to-be-defined project document template, namely an original project document template, according to the to-be-defined project document template in a template management interface of a project document generation platform. On the other hand, in response to the definition operation of the user on the document template, the project document generating platform acquires the document label corresponding to the document component type from the document label library, and fills the document label to the position of each component object in the template frame of the project document template to be defined, namely, replaces the component object by the document label, thereby further acquiring the project document template corresponding to each project stage of the target project.
Illustratively, the method further comprises: and responding to the document template importing operation, receiving a template importing path selected in a template management interface of the project document generating platform, and importing a predefined project document template into the project document template library based on the template importing path.
It should be noted that, the project document template may be defined in other devices in advance, and when the project document template needs to be used, the user may trigger a document template import key in the project document generation platform. The project document generation platform responds to the document template importing operation, receives a template importing path selected by a user in a template management interface of the project document generation platform, and imports a predefined project document template into the project document template library.
S102, responding to document data link configuration operation, and configuring document data links corresponding to all document components in the project document template according to the target project document template.
Wherein the data contained in the project document spans multiple design systems in the system. For example, the project document needs to contain multiple aspects of project information, architecture planning of the system, application architecture, data architecture, technical architecture, development architecture, deployment design, and the like, and each aspect needs to provide data support by a corresponding professional design system. Therefore, data providers of each design system are required to provide data required for the project document according to the requirements of the document tag format so that the project document causes the document content to be rendered using the data.
Specifically, in response to a user-triggered document data link configuration operation, determining a data provider according to a data requirement of a document tag in the target project document template, and creating a document data link between the data provider and the document tag in the target project document template, namely creating a document data link between the data provider and each document component in the target project document template.
S103, responding to project document generation operation, and rendering the target project document template based on the document data link to obtain a standard project document corresponding to the target project.
It should be noted that, rendering in the present invention refers to filling data into the target project document template based on the document data link. A standard project document may refer to a project document required for the current project stage.
Specifically, the project document generation platform responds to project document generation operation triggered by a user, acquires corresponding data from the background through a document data link, integrates the acquired data into a data format meeting the requirements of a document template according to the requirements of a target project document, and allows a template engine to render the template according to the data so as to acquire a standard project document corresponding to the target project. The whole document generation process is an asynchronous task, any operation of the front end is not blocked, and a user can view the generated completed document through the document generation history record and download and view the document as required.
According to the technical scheme, the target project document template corresponding to the current project stage of the target project is acquired from the project document template library by responding to the project document template acquisition operation. And responding to the document data link configuration operation, and configuring the document data links corresponding to the document components in the project document template according to the target project document template. And responding to the project document generation operation, rendering the target project document template based on the document data link, thereby obtaining the standard project document corresponding to the target project, providing a simplified template configuration mode of 'what you see is what you get', simplifying the complexity problem of writing the project document template, reducing the complexity of generating the project document by separating data from style rendering, and meeting the generation needs of various complex project documents.
On the basis of the above embodiments, the method further includes: responding to project document generation operation, rendering the target project document template based on the document data link, and obtaining a document generation log corresponding to the standard project document; and determining the reason of the document generation error based on the document generation log.
Specifically, while the standard project document is generated, a document generation log corresponding to the standard project document can be obtained, and the document generation log records the detailed process of the whole document generation so as to check when an error is generated.
Example two
FIG. 2 is a flowchart of a method for generating a project document according to a second embodiment of the present invention, where, on the basis of the foregoing embodiments, document data links corresponding to each document component in the project document template are configured to be refined. As shown in fig. 2, the method includes:
s201, responding to a project document template obtaining operation, obtaining a target project document template corresponding to the current project stage of a target project from a project document template library.
S202, responding to document data link configuration operation, configuring at least one document data link for each document component according to component data requirements of the document component, and configuring link execution rules for the document data link.
The link execution rule at least comprises a default sequence execution rule and a conditional execution rule.
Specifically, in the present invention, one or more document data links may be configured for each document component. And configuring execution rules for a plurality of document data links for each document component. The execution rule may be classified into a default sequential execution rule and a conditional execution rule. In the case where the condition execution rule is not set, the data acquisition order is executed in accordance with the default order execution rule.
S203, responding to project document generation operation, and rendering the target project document template based on the document data link to obtain a standard project document corresponding to the target project.
Illustratively, the rendering the target project document template based on the document data link to obtain a standard project document corresponding to the target project includes: determining a link execution order of the document data links based on the link execution rules for each document tag in the target project document template; and acquiring document data according to the document data link in turn based on the link execution sequence, and replacing the document tag with the document data to acquire a standard project document corresponding to the target project.
Specifically, for each document label, according to the type of the project document, according to the document data link, finding the corresponding data provider among the data providers, sorting according to the link execution sequence, sequentially and circularly executing the data providers to obtain the document data required by the project document, gradually rendering the document template, replacing the document label with the document data, and further obtaining the standard project document corresponding to the target project. For example, in a standard project document generation process, if a tag error occurs, the generation or use of blank content filling may be discontinued.
Illustratively, after replacing the document tag according to the document data, further comprising: and determining an unsubstituted document label in the target project document template, and deleting the unsubstituted document label.
Specifically, after all the data providers have finished executing, that is, after the document data replace the document tag, the unsubstituted document tag in the target project document template is determined, the residual document tag in the document template is cleaned, and a default processing method of the document tag, such as marking an error or filling with blank content, is executed.
According to the technical scheme, at least one document data link is configured for the document assembly according to the assembly data requirement of the document assembly, link execution rules are configured for the document data link, and sequencing is carried out according to the execution sequence; the data provider is sequentially and circularly executed to acquire service data, the document template is gradually rendered, and the data acquisition and integration conversion are carried out in a mode of a background data provider, so that the document generation needs of various complex format requirements are met.
Example III
Fig. 3 is a schematic structural diagram of a project document generating apparatus according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes:
a project document template acquisition module 301, configured to acquire a target project document template corresponding to a current project stage of a target project from a project document template library in response to a project document template acquisition operation, where the project document template library includes at least one project document template;
a document data link configuration module 302, configured to respond to a document data link configuration operation, and configure a document data link corresponding to each document component in the project document template according to the target project document template;
and the standard project document generation module 303 is used for responding to the project document generation operation, rendering the target project document template based on the document data link, and obtaining the standard project document corresponding to the target project.
According to the technical scheme, the target project document template corresponding to the current project stage of the target project is acquired from the project document template library by responding to the project document template acquisition operation. And responding to the document data link configuration operation, and configuring the document data links corresponding to the document components in the project document template according to the target project document template. And responding to the project document generation operation, rendering the target project document template based on the document data link, thereby obtaining the standard project document corresponding to the target project, providing a simplified template configuration mode of 'what you see is what you get', simplifying the complexity problem of writing the project document template, reducing the complexity of generating the project document by separating data from style rendering, and meeting the generation needs of various complex project documents.
Optionally, the apparatus further comprises a document template definition module for:
for each project stage of the target project, determining a document template frame and a document component type corresponding to the project document to be generated according to the requirement of the project document to be generated corresponding to the project stage, wherein the document template frame at least comprises a project document style, a document content structure and necessary text description, and the document component type at least comprises a common text, a dynamic table and a project picture;
responding to a template frame definition operation, and configuring a template frame corresponding to a to-be-defined project document template based on the document template frame in a template management interface of the project document generation platform;
responding to a document template definition operation, acquiring a document tag corresponding to the document component type from a document tag library according to the document component type, and filling the document tag into a template frame corresponding to the to-be-defined project document template to acquire a project document template corresponding to each project stage of the target project.
Optionally, the device further comprises a document template importing module, configured to:
and responding to the document template importing operation, receiving a template importing path selected in a template management interface of the project document generating platform, and importing a predefined project document template into the project document template library based on the template importing path.
Optionally, the document data link configuration module 302 is specifically configured to:
and configuring at least one document data link for each document component according to the component data requirement of the document component, and configuring link execution rules for the document data link, wherein the link execution rules at least comprise default sequence execution rules and conditional execution rules.
Optionally, the standard project document generating module 303 is specifically configured to:
determining a link execution order of the document data links based on the link execution rules for each document tag in the target project document template;
and acquiring document data according to the document data link in turn based on the link execution sequence, and replacing the document tag with the document data to acquire a standard project document corresponding to the target project.
Optionally, the device further includes a document tag processing module, configured to:
and determining an unsubstituted document label in the target project document template, and deleting the unsubstituted document label.
Optionally, the device further comprises a documentLog generationA module for:
responding to project document generation operation, rendering the target project document template based on the document data link, and obtaining a document generation log corresponding to the standard project document;
and determining the reason of the document generation error based on the document generation log.
The project document generating device provided by the embodiment of the invention can execute the project document generating method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as method project document generation.
In some embodiments, the method project document generation may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method project document generation described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the method project document generation in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A project document generation method, characterized by being applied to a project document generation platform, comprising:
responding to a project document template obtaining operation, obtaining a target project document template corresponding to a current project stage of a target project from a project document template library, wherein the project document template library at least comprises one project document template;
responding to document data link configuration operation, and configuring a document data link corresponding to each document component in the project document template according to the target project document template;
and responding to a project document generating operation, and rendering the target project document template based on the document data link to obtain a standard project document corresponding to the target project.
2. The method of claim 1, wherein the defining of the project document template comprises:
for each project stage of the target project, determining a document template frame and a document component type corresponding to the project document to be generated according to the requirement of the project document to be generated corresponding to the project stage, wherein the document template frame at least comprises a project document style, a document content structure and necessary text description, and the document component type at least comprises a common text, a dynamic table and a project picture;
responding to a template frame definition operation, and configuring a template frame corresponding to a to-be-defined project document template based on the document template frame in a template management interface of the project document generation platform;
responding to a document template definition operation, acquiring a document tag corresponding to the document component type from a document tag library according to the document component type, and filling the document tag into a template frame corresponding to the to-be-defined project document template to acquire a project document template corresponding to each project stage of the target project.
3. The method according to claim 2, wherein the method further comprises:
and responding to the document template importing operation, receiving a template importing path selected in a template management interface of the project document generating platform, and importing a predefined project document template into the project document template library based on the template importing path.
4. The method of claim 1, wherein configuring the document data link corresponding to each document component in the project document template according to the target project document template comprises:
and configuring at least one document data link for each document component according to the component data requirement of the document component, and configuring link execution rules for the document data link, wherein the link execution rules at least comprise default sequence execution rules and conditional execution rules.
5. The method of claim 4, wherein rendering the target project document template based on the document data link to obtain a standard project document corresponding to a target project comprises:
determining a link execution order of the document data links based on the link execution rules for each document tag in the target project document template;
and acquiring document data according to the document data link in turn based on the link execution sequence, and replacing the document tag with the document data to acquire a standard project document corresponding to the target project.
6. The method of claim 5, further comprising, after replacing the document tag according to the document data:
and determining an unsubstituted document label in the target project document template, and deleting the unsubstituted document label.
7. The method according to claim 1, wherein the method further comprises:
responding to project document generation operation, rendering the target project document template based on the document data link, and obtaining a document generation log corresponding to the standard project document;
and determining the reason of the document generation error based on the document generation log.
8. A project document generating apparatus, comprising:
a project document template acquisition module, configured to acquire a target project document template corresponding to a current project stage of a target project from a project document template library in response to a project document template acquisition operation, where the project document template library includes at least one project document template;
the document data link configuration module is used for responding to document data link configuration operation and configuring document data links corresponding to all document components in the project document template according to the target project document template;
and the standard project document generation module is used for responding to project document generation operation, rendering the target project document template based on the document data link and obtaining the standard project document corresponding to the target project.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the project document generation method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the project document generation method of any one of claims 1-7 when executed.
CN202311310283.5A 2023-10-10 2023-10-10 Project document generation method, device, equipment and storage medium Pending CN117371416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311310283.5A CN117371416A (en) 2023-10-10 2023-10-10 Project document generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311310283.5A CN117371416A (en) 2023-10-10 2023-10-10 Project document generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117371416A true CN117371416A (en) 2024-01-09

Family

ID=89403455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311310283.5A Pending CN117371416A (en) 2023-10-10 2023-10-10 Project document generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117371416A (en)

Similar Documents

Publication Publication Date Title
CN113760276A (en) Method and device for generating page code
JP7309811B2 (en) Data annotation method, apparatus, electronics and storage medium
CN117234582A (en) Project code processing method and device, electronic equipment and storage medium
CN115469849B (en) Service processing system, method, electronic equipment and storage medium
CN116185389A (en) Code generation method and device, electronic equipment and medium
CN113138760B (en) Page generation method and device, electronic equipment and medium
CN116011955A (en) Robot flow automation demand realization method, device, equipment and storage medium
CN115618234A (en) Model training method, device, equipment and storage medium
CN116225312A (en) Mirror image cleaning method and device, electronic equipment and storage medium
CN117371416A (en) Project document generation method, device, equipment and storage medium
CN114816184A (en) Display method, device, equipment and storage medium of operation control
CN113342413B (en) Method, apparatus, device, medium, and article for processing components
CN116431698B (en) Data extraction method, device, equipment and storage medium
CN114741072B (en) Page generation method, device, equipment and storage medium
CN114816578B (en) Program configuration file generation method, device and equipment based on configuration table
CN116383454B (en) Data query method of graph database, electronic equipment and storage medium
CN114445047B (en) Workflow generation method and device, electronic equipment and storage medium
CN116009847A (en) Code generation method, device, electronic equipment and storage medium
CN116578372A (en) Editing method, device, equipment and storage medium for large data screen
CN117931176A (en) Business application generation method, device, platform and medium
CN117234509A (en) Routing management method, device and equipment of front-end page and storage medium
CN115981657A (en) Code generation method and device, electronic equipment and readable medium
CN115525295A (en) Automatic code editing method and device, electronic equipment and storage medium
CN114445047A (en) Workflow generation method and device, electronic equipment and storage medium
CN116701224A (en) Method, device, equipment and storage medium for generating front-end interface test code

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