CN112329413A - Template building method, file generation method, template system, device and computer equipment - Google Patents

Template building method, file generation method, template system, device and computer equipment Download PDF

Info

Publication number
CN112329413A
CN112329413A CN201910711721.6A CN201910711721A CN112329413A CN 112329413 A CN112329413 A CN 112329413A CN 201910711721 A CN201910711721 A CN 201910711721A CN 112329413 A CN112329413 A CN 112329413A
Authority
CN
China
Prior art keywords
template
service
component
file
data
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
CN201910711721.6A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910711721.6A priority Critical patent/CN112329413A/en
Publication of CN112329413A publication Critical patent/CN112329413A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the application provides a template building method, a file generation method, a template system, a device and computer equipment. In the embodiment of the application, a first template based on a rich text layout is generated by utilizing a template editor with a rich text editing function. At least one template component is generated based on the business data type involved in the target business. Adding at least one template component into the first template, and adjusting the typesetting format of the at least one template component according to typesetting operation triggered according to business layout requirements to obtain a second template. And the second template is used for rendering and generating the service file with the preset file format. The embodiment of the application can greatly improve the service processing efficiency and the service level of the target service.

Description

Template building method, file generation method, template system, device and computer equipment
Technical Field
The embodiment of the application relates to the technical field of networks, in particular to a template building method, a file generation method, a template system, a device and computer equipment.
Background
With the rapid development of internet technology, more and more enterprises adopt a network information management and business operation mode to perform information business processing in order to reduce enterprise cost and improve office efficiency. For example, electronic contracts are adopted in trade transactions and are electronically signed; printing and delivering an electronic form or a PDF file; mail to and from customers or colleagues, etc.
In order to standardize user operations in the information-based service processing process to obtain service files meeting the service layout requirements, templates are usually required to support the information-based service processing process. By formulating a template which meets the industry specification, such as a contract template, a form template or a mail template, the template specifies the typesetting format of the service data in the service file, such as data type, data position, line height, line spacing, font and the like, the service file meeting the service requirement is generated by the user operation based on the template specification.
In the prior art, each related service file needs to be manually edited and typeset according to a specified service template, so that the service processing efficiency of an enterprise is greatly reduced, and the reduction of the service level caused by typesetting errors caused by manual editing and typesetting is difficult to avoid.
Disclosure of Invention
The embodiment of the application provides a template building method, a file generating method, a template system, a device and a computer device, and the second template matched with the service requirement is generated, so that the service file in the preset file format is generated based on the rendering of the second template, and the service processing efficiency and the service level of the target service are greatly improved.
In a first aspect, an embodiment of the present application provides a template building method, including:
generating a first template based on a rich text layout by utilizing a template editor with a rich text editing function;
generating at least one template component based on the service data type related to the target service;
adding the at least one template component into the first template, and adjusting the typesetting format of the at least one template component according to typesetting operation triggered according to business layout requirements to obtain a second template;
and the second template is used for rendering and generating the service file with the preset file format.
In a second aspect, an embodiment of the present application provides a file generating method, including:
acquiring a second template corresponding to the target service; the second template is obtained by adjusting the typesetting format of at least one template element in the first template based on rich text layout according to the typesetting operation triggered according to the business layout requirement; the first template is generated by utilizing a template editor with a rich text editing function; the at least one template component is generated based on the service data type related to the target service;
acquiring service data of at least one template component in the second template respectively corresponding to the service event according to the current service event of the target service;
and rendering the service data to the second template to obtain a service file.
In a third aspect, an embodiment of the present application provides a template system, including a template editor having a rich text editing function and a data dictionary;
the data dictionary is used for generating at least one template component based on the service data type related to the target service;
the template editor is used for generating a first template based on a rich text layout; adding the at least one template component into the first template, and adjusting the typesetting format of the at least one template component according to typesetting operation triggered according to business layout requirements to obtain a second template; and the second template is used for rendering and generating the service file with the preset file format.
In a fourth aspect, an embodiment of the present application provides a template building apparatus, including:
the first template generating module is used for generating a first template based on rich text layout by utilizing a template editor with a rich text editing function;
the template component generation template is used for generating at least one template component based on the service data type related to the target service;
a component addition module for adding the at least one template component to the first template;
the second template generating module is used for adjusting the typesetting format of the at least one template component according to the typesetting operation triggered according to the business layout requirement to obtain a second template; and the second template is used for rendering and generating the service file with the preset file format.
In a fifth aspect, an embodiment of the present application provides a file generating apparatus, including:
the second template acquisition module is used for acquiring a second template corresponding to the target service; the second template is obtained by adjusting the typesetting format of at least one template element in the first template based on rich text layout according to the typesetting operation triggered according to the business layout requirement; the first template is generated by utilizing a template editor with a rich text editing function; the at least one template component is generated based on the service data type related to the target service;
a service data acquisition module, configured to acquire, according to a current service event of the target service, service data of at least one template component in the second template corresponding to the service event;
and the service file generation module is used for rendering the service data to the second template to obtain a service file.
In a sixth aspect, embodiments of the present application provide a computer device, including a processing component and a storage component; the storage component is used for storing one or more computer instructions, wherein the one or more computer instructions are used for the processing component to call and execute;
the processing component is to:
generating a first template based on a rich text layout by utilizing a template editor with a rich text editing function;
generating at least one template component based on the service data type related to the target service;
adding the at least one template component into the first template, and adjusting the typesetting format of the at least one template component according to typesetting operation triggered according to business layout requirements to obtain a second template;
and the second template is used for rendering and generating the service file with the preset file format.
In a seventh aspect, an embodiment of the present application provides a computer device, including a processing component and a storage component; the storage component is used for storing one or more computer instructions, wherein the one or more computer instructions are used for the processing component to call and execute;
the processing component is to:
acquiring a second template corresponding to the target service; the second template is obtained by adjusting the typesetting format of at least one template element in the first template based on rich text layout according to the typesetting operation triggered according to the business layout requirement; the first template is generated by utilizing a template editor with a rich text editing function; the at least one template component is generated based on the service data type related to the target service;
acquiring service data of at least one template component in the second template respectively corresponding to the service event according to the current service event of the target service;
and rendering the service data to the second template to obtain a service file.
Compared with the prior art, the application can obtain the following technical effects:
the embodiment of the application provides a template building method and a file generation method, a template system, a template device and computer equipment. The template based on rich text layout can realize rich format setting, so that the editing and typesetting of at least one template component supporting different service data types can be realized, the typesetting format of the at least one template component is adjusted according to the typesetting operation triggered according to the service layout requirement by adding the at least one template component into the first template, and the second template matched with the target service is obtained. The second template can be used for realizing rendering and generating the service file with the preset file format. Because the service file is generated based on the second template rendering which is typeset according to the service layout requirement, the service file which meets the service specification and meets the service requirement can be simply, conveniently and quickly generated, thereby greatly improving the service processing efficiency.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 shows a schematic flow diagram of an embodiment of a template building method according to the present application;
fig. 2 shows a schematic flow diagram of another embodiment of a template building method according to the present application;
FIG. 3 shows a schematic diagram of a template building approach provided in accordance with the present application;
FIG. 4 shows a schematic diagram of another template construction method provided according to the present application;
FIG. 5 is a schematic flow chart diagram illustrating one embodiment of a file generation method according to the present application;
FIG. 6 illustrates a schematic structural diagram of one embodiment of a template system provided in accordance with the present application;
FIG. 7 illustrates a schematic structural diagram of another embodiment of a template system provided in accordance with the present application;
figure 8 shows a schematic structural diagram of an embodiment of a template building apparatus according to the present application;
figure 9 shows a schematic structural view of a further embodiment of a template building apparatus according to the present application;
FIG. 10 is a schematic diagram illustrating an embodiment of a file generation apparatus according to the present application;
FIG. 11 illustrates a schematic block diagram of one embodiment of a computer device, in accordance with the present application;
fig. 12 is a schematic structural diagram of a computer device according to another embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In some of the flows described in the specification and claims of this application and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, the number of operations, e.g., 101, 102, etc., merely being used to distinguish between various operations, and the number itself does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
In order to improve the editing and typesetting efficiency of the business files, the inventor provides the technical scheme of the application through a series of researches. In the embodiment of the application, the template editor with rich text editing function is used for generating a first template based on the rich text layout and generating at least one template component based on the business data type related to the target business. The template based on rich text layout can realize rich format setting, so that the editing and typesetting of at least one template component supporting different service data types can be realized, the typesetting format of the at least one template component is adjusted according to the typesetting operation triggered according to the service layout requirement by adding the at least one template component into the first template, and the second template matched with the target service is obtained. The second template can be used for realizing rendering and generating the service file with the preset file format. Because the service file is generated based on the second template rendering which is typeset according to the service layout requirement, the service file which meets the service specification and meets the service requirement can be simply, conveniently and quickly generated, thereby greatly improving the service processing efficiency.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flow chart of an embodiment of a template building method provided in the embodiment of the present application. The method may comprise the steps of:
101: a first template based on a rich text layout is generated using a template editor having rich text editing capabilities.
The template editor is used for editing and generating a visual template, and can define the format of the template to typeset the template. In order to make the template editor have universality and be applicable to template typesetting requirements of different service types, the template editor with rich text editing function can be obtained by embedding the rich text editor into the template editor.
The rich text editor is a WYSIWYG text editor, can support the setting of rich text formats, is simple and easy to use, and can be widely applied. The rich text editor has good compatibility, can be embedded into a browser or an application program, and provides a powerful rich text editing function for a user.
In practical applications, the first template may be a blank template generated by a template editor, or a generic template generated based on different service types, which is not specifically limited herein.
102: at least one template component is generated based on the business data type involved in the target business.
Alternatively, the target service may be a service file related to information management, for example, an electronic contract, an electronic form, an electronic mail, and the like, which are not specifically limited herein.
In practical application, the template component is a placeholder in the template, and the format placeholder in the template has the meaning of format placeholder, that is, the data type which can be input by the editable area in the template is determined.
Placeholder types can include a common value type, a table type, a single check type, and the like. For example, text data is defined as a common value type, table data is defined as a table type, and single check data (e.g., male/female) is defined as a single check type.
In practical application, at least one template component matched with the business data type can be generated through a data dictionary and a form field, and a title box, a body text box (comprising a single-line text component and a multi-line text component), a time selection box, an electronic signature, an automatic number, a chart box and the like can be generated by taking a contract template as an example.
103: adding the at least one template component to the first template.
In practical application, the generated at least one template component may be displayed in a template editing interface, the left list of the template editing interface is the generated at least one template component, the right list is a template editing area of the rich text editor, and other template editing tools may be set in the interface. The user may add the at least one template component to the first template in the template editing area by dragging or by selecting. The at least one template component determines respective default positions in the template in order of addition. And actually typesetting and editing the template components in the template in order to meet the business specification.
104: and adjusting the typesetting format of the at least one template component according to the typesetting operation triggered according to the business layout requirements to obtain a second template.
And the second template is used for rendering and generating the service file with the preset file format.
The user can define the typesetting format of each template component according to the actual service layout requirement, such as font, line height, line spacing, single check format, table format and the like, and obtains a second template matched with the target service by adjusting the layout and the typesetting format of the template components in the first template. In practical application, the second template may be a second business template which is displayed in a form of a web page and is obtained by visualization, and the second business template is stored in a storage component of the system.
Therefore, when the user uses the second template, the layout of the template components in the second template can be seen, so as to judge whether the template is the second template matched with the current business. If the difference exists between the typesetting of the second template and the business requirement, the second template can be edited and adjusted again through the template editor. And the user renders the service data corresponding to each template component into the second template based on the second template matched with the target service, and obtains a service file in a preset file format.
In the embodiment of the application, the template based on the rich text layout is generated by the template editor supporting rich text editing, so that the template typesetting requirement under the scene with higher text typesetting requirement (such as contract text, electronic forms and the like) can be met, and the first template supports the addition of at least one template component matched with the type of the service data related to the target service into the first template. And simultaneously, typesetting at least one template component in the first template based on the business layout requirement to obtain a second template meeting the business layout requirement. The obtained second template accords with the service specification of the target service, and can be used for rendering and generating the service files in the preset file format, so that a user can obtain the service files matched with the target service by typesetting each service file, the processing efficiency of the target service can be greatly improved, and the problem of typesetting errors caused by manual typesetting of the service files can be further avoided.
Fig. 2 is a schematic flow chart of an embodiment of a template building method provided by the embodiment of the present application. The method may comprise the steps of:
201: generating the first template based on the rich text layout using a rich text editor packaged in a template editor.
In practical application, the template editor with the rich text editing function is obtained through pre-construction and can be realized by packaging the rich text editor into the template editor. As an alternative embodiment, the generating the first template based on the rich text layout by using the rich text editor packaged in the template editor may include:
constructing a template editor for packaging the rich text editor;
generating the first template using the template editor.
202: and determining the type of the service data related to the target service.
Different target services relate to different service data types, for example, some target services only contain text data, and some target services relate to data types in the form of tables, pictures, single check and the like.
203: and generating at least one template component matched with the service data type by using a data dictionary.
A data dictionary refers to the definition and description of data items, data structures, data flows, data stores, processing logic, etc. of data. In the embodiment of the application, the data dictionary is a placeholder in a template, and can be inserted into the template, and the value of the data dictionary can be replaced by specific service data in the template rendering process, so that a service file of a target service is rendered. The generating at least one template component matching the business data type using the data dictionary may include:
determining data components respectively matched with the service data types in the data dictionary; wherein the data component may comprise a combination of one or more of a value component, a table component, and a single check component;
and according to the field definition operation of the user aiming at the data assembly, defining the data field corresponding to each data assembly, and generating at least one template assembly corresponding to the target service.
Optionally, the data dictionary may include, but is not limited to, a date selection component, a chart component, an auto-code component, an electronic signature component, etc., in addition to a value component, a table component, and a single check component. When at least one template component is generated by using the data dictionary, a user is required to select a data component matched with the service data type in the data dictionary, determine the dictionary type of the data component, define the data field of the data component to obtain the template component, and can define the component type, the field, the name, the coding type, the sub-option and the like of the data component, wherein the specific limitation is not required, and the setting can be carried out according to the actual requirement.
204: adding the at least one template component to the first template.
205: and adjusting the typesetting format of the at least one template component according to the typesetting operation triggered according to the business layout requirements to obtain a second template.
As an optional implementation manner, the adding the at least one template component to the first template, and adjusting the typesetting format of the at least one template component according to the typesetting operation triggered according to the business layout requirement, to obtain the second template may include:
adding the at least one template component into the first template according to an adding operation for the at least one template component;
determining typesetting operation triggered by business layout requirements respectively corresponding to at least one template component in the first template;
and adjusting the typesetting format of the at least one template component based on the typesetting operation to obtain a second template matched with the business layout requirement.
In practical application, the adding operation may be performed by a user sequentially dragging the at least one template component into the first template according to an actual service requirement or selecting the at least one template component through operations such as clicking and the like, and adding the at least one template component into the first template, where the same template component may be added many times.
In order to obtain a business template meeting the industry specification, it is necessary to further type the template components in the first template, and adjust the layout of the template components in the first template, for example, the center setting of the title frame, the font setting, etc., the line height and paragraph setting of the text frame of the text, the number setting of rows and columns, the line height, the line width, etc. of the table, which is not specifically limited herein. And the second template matched with the business layout requirement is obtained, the template component in the second template can be replaced by the business data based on the second template, and the business file of the target business is generated by rendering.
In the embodiment of the application, in order to enable the template editor to meet the typesetting requirements in more service scenes, a data dictionary supporting various data formats is introduced. The data dictionary can provide rich data types to meet the service data types of different target services, and the template component generated based on the data dictionary can support the setting of various typesetting formats. Meanwhile, the template editor based on rich text packaging is more flexible and convenient to use, is suitable for the lower typesetting requirement of a service scene, is also suitable for the service scene with higher typesetting requirement, and has universality.
Therefore, the template editor based on rich text packaging can be combined with the template component generated based on the data dictionary to build a second template which meets the typesetting requirements under various service scenes and has universality.
Optionally, in some embodiments, the generating at least one template component based on the service data type related to the target service may include:
at least one first template component is generated based on the type of business data to which the first target sub-business relates.
In practical application, a target service may include a plurality of target sub-services, for example, different departments have different attendance modes, some departments need to be on duty and on duty, some departments need to be on business and off duty, some departments do not need to be on business and on duty, and different types of attendance modes need to be set according to different needs of the departments. Thus, the attendance services may include three types of attendance sub-services.
As an optional implementation manner, the adding the at least one template component to the first template, and adjusting the typesetting format of the at least one template component according to the typesetting operation triggered according to the business layout requirement, to obtain the second template may include:
adding the at least one first template component into the first template, and adjusting the typesetting format of the at least one first template component according to typesetting operation triggered according to the layout requirement of the first sub-service to obtain a first sub-service template corresponding to the first target sub-service;
acquiring a second sub-service template corresponding to a second target sub-service and a third sub-service template corresponding to a third target sub-service;
and merging the first sub-service template, the second sub-service template and the third sub-service template according to the service processing logic of a plurality of target sub-services to obtain the second template.
It can be understood that the first sub-service template, the second sub-service template, and the third sub-service template may be built by a user side worker in steps, or may be built by workers at different user sides in cooperation, and are not limited herein.
In practical application, the building manner of the second sub-service template and the third sub-service template is similar to that of the first sub-service template, and is not described herein again.
Optionally, taking the attendance service as an example, when the attendance template is constructed, different departments correspond to different attendance sub-services, so that the workers in different departments can respectively create corresponding attendance sub-templates according to their respective attendance sub-service requirements.
Optionally, for example, the method for building an attendance service template of the XX company is adopted, wherein a financial department in the XX company corresponds to the first class of attendance sub-services, a business department corresponds to the second class of attendance sub-services, and a technical department corresponds to the third class of attendance sub-services. At this time, to generate an attendance template of the XX company, a first sub-business template can be generated by a staff of a financial department according to a first attendance requirement, a second sub-business template can be generated by a staff of a business department according to a second attendance requirement, a third sub-business template can be generated by a staff of a technical department according to a third attendance requirement, the three sub-business templates can be gathered to an attendance management department of the XX company due to no business processing logic among the attendance sub-businesses, and the attendance sub-business templates of the three departments are merged into the attendance template of the XX company by a staff of the attendance management department of the XX company.
In practical application, a certain business logic exists between different target sub-businesses, as shown in fig. 3, the performance assessment business can be divided into an attendance sub-business, a work performance sub-business and a performance assessment sub-business, wherein the performance assessment sub-business needs to be summarized and assessed according to the attendance sub-business and the work performance sub-business, so that when a template is built, the business processing logics are combined, for example, a calculation logic, a time logic, a cause and effect logic and the like, and the setting can be performed according to actual needs without specific limitations.
As another alternative, the building process of the second template may be completed by different workers in the same first template. Since a plurality of target sub-services of the target service may be connected to different workers, different workers are required to cooperate to complete the establishment of a complete service template. Different workers can predetermine the construction sequence among the plurality of target sub-services, so that a first template created by the first worker is generated, at least one first template component corresponding to the first target sub-service is generated, the first template component is added into the first template, and the typesetting format of the at least one first template component is adjusted based on the service layout requirement of the first target sub-service to obtain a service initial template. And storing the service initial template, triggering to generate a prompt mail, a prompt message and the like, and informing the staff of the next construction sequence to continue to construct the next target sub-service module for the service initial template until all the staff in the construction sequence finish constructing the respective target sub-service module, so as to obtain a second template corresponding to the target service.
In practical application, the second template of the target service can be built in a flexible and efficient multi-person cooperative building mode, and the method is more suitable for application scenes of large-scale services containing multi-subclass services.
In order to improve the building efficiency of templates of the same service type, optionally, in some embodiments, after the adjusting the typesetting format of the at least one template component based on the typesetting operation and obtaining a second template matching the service layout requirement, the method may further include:
determining layout logic between the at least one template component in a second template corresponding to the target service based on the adding operation and the typesetting operation aiming at the at least one template component;
and generating layout prompt information based on the layout logic, so that a user can conveniently build a second template corresponding to the target service based on the layout prompt information.
In practical application, the template building platform may build a record according to the history of the target service template, for example, the record includes an adding operation, a typesetting operation and the like for at least one template component, which is not specifically limited herein, and learn layout logic between each template component in the second template corresponding to the target service, for example, a template component pulling sequence and association logic, a typesetting format adjusting sequence and logic, and the like. And generating layout prompt information according to the learned layout logic.
For example, according to a template component commonly used when the type of target service is built, a default template component of the type of target service may be generated in advance in a component frame of a template editor, and a display order of each template component in the component frame may be adjusted based on a pull order of each component.
Optionally, a logic block diagram for constructing the second template may be generated according to the learned layout logic, and after the user creates the first template, the logic block diagram is displayed on the display interface to guide other users to efficiently and conveniently create the second template of the target service.
Optionally, as shown in fig. 4, a schematic diagram of template construction is shown, and in the template construction process, the template editor may further obtain layout logic according to operation steps of the user and by combining with learning, pre-determine the next operation of the user, and prompt the user through a prompt message. For example, after the user pulls the template component A, the user is prompted to pull the template component B next by highlighting the template component B or any prompting mode such as animation pointing to the template component B and voice prompting due to the fact that the pulling sequence between the template component A and the template component B is learned in advance, and therefore the user is assisted to quickly and efficiently finish the construction of the second template.
In practical application, the embodiment of the present application, including but not limited to the above prompting manner, reduces the complexity of template building and can further improve the template building efficiency of a user, which is not specifically limited herein.
Fig. 5 is a flowchart illustrating an embodiment of a file generation method according to an embodiment of the present application. The method may comprise the steps of:
501: and acquiring a second template corresponding to the target service.
The second template is obtained by adjusting the typesetting format of at least one template element in the first template based on rich text layout according to the typesetting operation triggered according to the business layout requirement; the first template is generated by utilizing a template editor with a rich text editing function; the at least one template component is generated based on the business data type to which the target business relates.
502: and acquiring service data of at least one template component in the second template corresponding to the service event according to the current service event of the target service.
As an implementation manner, the obtaining, according to the current service event of the target service, service data of at least one template component in the second template respectively corresponding to the service event may include:
determining a current business event of the target business;
and acquiring service data of at least one template component in the second template respectively corresponding to the service event based on the service file generation operation corresponding to the service event.
In practical application, the upstream service system platform may obtain the service data of the target service, for example, when a contracting document event occurs, the upstream contracting document platform may obtain the service data of the current contracting text, or, of course, the upstream contracting document platform may obtain the service data of the local storage, which is not specifically limited herein.
503: and rendering the service data to the second template to obtain a service file.
Optionally, in some embodiments, the rendering the service data into the second template, and obtaining a service file may include:
adding the service data to the second template according to the data formats respectively corresponding to the at least one template component;
and rendering the second template according to a preset file format to obtain the service file.
Because the template components in the second template all define the format of the data, when the business data is rendered into the template, the template component corresponding to the business data and the data format of the template component corresponding to the business data are firstly determined, and the business data is added into the second template according to the data format of the template component. For example, the second template defines that the title components are bold, third-size characters, the height is 28mm, and the title of the service data is "XXX contract", the "XXX contract" is rendered into the second template according to the defined data format, manual typesetting is not needed, and the typesetting efficiency is greatly improved.
As an optional implementation, the template component is generated by using a data dictionary; the adding the service data to the second template according to the data formats respectively corresponding to the at least one template component may include:
calling a template rendering engine supporting multiple file rendering formats;
and replacing the corresponding template components in the second template with the service data in the data format of the corresponding template components by utilizing the template rendering engine.
In practical application, the template rendering process needs the support of a rendering engine, and the service data is replaced by the corresponding template components in the data format of the corresponding template components by calling the template rendering engine. Meanwhile, the template rendering engine can support the rendering of various file formats because the template rendering engine can support the embedding of dependencies for rendering different file formats, such as a folding-sacher two-party package for rendering a PDF file, a docx4j two-party package for rendering a Word file, and the like.
Optionally, as an implementable embodiment, the template rendering engine may support at least a file rendering format of a PDF file, an HTML file, a Word file, and the like.
As an optional implementation manner, the rendering the second template according to the preset file format to obtain the service file may include:
determining a preset file format corresponding to the target service based on file format selection operation;
and rendering the second template according to the preset file format by using the template rendering engine to obtain the service file.
In practical application, a selection space of a rendered file format supported by the template rendering engine is output in a display interface for a user to select, and the user selects a file format rendered by a second template based on a file format of a required service file. And rendering the second template added with the service data into a PDF file, an HTML file or a Word file and the like. And because the template rendering engine may support embedding dependencies for rendering different file formats, the template rendering engine in the embodiment of the present application includes, but is not limited to, rendering in the file formats.
In practical application, after the rendering the service data to the second template and obtaining the service file, the method may further include:
and carrying out related service processing based on the service file.
In practical application, service files obtained by rendering need to be subjected to related service processing, for example, if an electronic signature platform needs to perform electronic signature on contract files obtained by rendering, the contract files need to be sent to an upstream electronic signature system for electronic signature processing; or the electronic form file obtained by rendering needs to be subjected to file printing, the electronic form file is transmitted to an accessed printing device, and the electronic form file is printed, and the like, which is not particularly limited herein.
It is understood that, in order to make the template system have more abundant functions, template tools with abundant functions, such as a watermarking tool, a drawing tool, a formatting tool, etc., may be provided, which are not specifically limited herein, and may be set according to actual requirements.
In the embodiment of the application, the service data corresponding to at least one template component in the second template is rendered into the second template, and the service data is substituted for the corresponding template component to obtain the template instance of the target service, and the template instance is only the running template data in practical application, so that in order to obtain the service file matched with the target service, the second template needs to be rendered into a preset file format.
Because the template rendering engine can support various file rendering formats, the generation of the service files under various service scenes can be provided in the embodiment of the application, so that the service processing requirements of various industries are met.
Fig. 6 is a schematic structural diagram of an embodiment of a template system according to an embodiment of the present application. The system may include a template editor 601 with rich text editing functionality and a data dictionary 602;
the data dictionary 602 is configured to generate at least one template component based on the service data type involved in the target service.
The template editor 601 is configured to generate a first template based on a rich text layout; adding the at least one template component into the first template, and adjusting the typesetting format of the at least one template component according to typesetting operation triggered according to business layout requirements to obtain a second template; and the second template is used for rendering and generating the service file with the preset file format.
In practical application, the template editor 601 and the data dictionary 602 in the template system are developed at the page level of the system, so that a visual template editing environment is provided for a user. Meanwhile, at least one template component generated based on the data dictionary 602 and a second template generated based on the template editor can be stored in the data layer, so that a user can directly obtain the generated second template in use or can edit and typeset the second template again when the service layout requirement changes.
The data dictionary 602 is configured to generate at least one template component based on a service data type related to a target service, where the template component is specifically configured to determine data components in the data dictionary 602 that are respectively matched with the service data type; and according to the field definition operation of the user aiming at the data assembly, defining the data field corresponding to each data assembly, and generating at least one template assembly corresponding to the target service. Wherein the data component comprises a combination of one or more of a value component, a table component, and a single check component.
The foregoing detailed description is provided for the specific implementation method of the embodiments of the present application, and is not repeated herein.
The template system provided in the embodiment of the application provides a visual template editing environment, can support the template editing requirements under more service scenes, can meet the requirements of simpler template layout under bill service scenes, can meet the requirements of more complex template layout under service scenes such as contract documents, electronic forms and the like, is simple and convenient to operate, and is quick, so that the template building efficiency of users is greatly improved.
Fig. 7 is a schematic structural diagram of an embodiment of a template system according to an embodiment of the present application. The system may include a template rendering engine 603 supporting a plurality of file rendering formats, in addition to the template editor 601 and the data dictionary 602 in the embodiment of fig. 6; the multiple file rendering formats at least comprise a PDF file rendering format, an HTML file rendering format and a Word file rendering format.
The template rendering engine 603 is configured to obtain, according to the current service event of the target service, service data of at least one template component in the second template corresponding to the service event; and rendering the service data to the second template to obtain a service file.
In practical application, the template system further provides a data interface with a template upstream system, and the template upstream system may be, for example, any business system such as an electronic signature system and a mail system, which is not limited herein. The template rendering engine can obtain the service data corresponding to the current service event of the target service based on the template upstream system accessed by the data interface by calling the data interface.
Because the template rendering process needs the support of the template rendering engine 603, the template rendering engine 603 developed in the core layer of the template system needs to be invoked to render the service data to the second template during template rendering, so as to obtain a service file. In the process of rendering the second template, namely, the template instance generated after the template component in the second template is replaced by the specific service data is stored in the data layer of the template system, so that the subsequent service processing can be completed based on the template instance.
And providing a selection control containing a plurality of file rendering formats in a template rendering interface according to the file rendering formats supported by the template rendering engine, wherein a user can generate a template rendering instruction based on any file rendering format by triggering the selection control, so that the template rendering engine performs rendering operation on a second template based on the template rendering instruction to obtain a service file matched with the target service.
The foregoing detailed description is provided for the specific implementation method of the embodiments of the present application, and is not repeated herein.
In the embodiment of the application, in order to further realize a universal template rendering format and meet the service processing requirement of the target service, the upstream template system accessed through the data interface obtains the service data of the target service, and the template rendering of the second template is completed through the template rendering engine supporting multiple rendering formats, so that a more universal template rendering service can be provided in the template system. The embodiment of the application provides a universal template system which is visually edited and can support various rendering formats, and the generation of service files of more service scenes can be met, so that the service processing efficiency and the service level of an enterprise are greatly improved.
Fig. 8 is a schematic structural diagram of an embodiment of a template building apparatus provided in the embodiment of the present application. The apparatus may include:
a first template generating module 801, configured to generate a first template based on a rich text layout by using a template editor having a rich text editing function.
The template component generates a template 802 for generating at least one template component based on the type of business data involved in the target business.
A component adding module 803, configured to add at least one template component to the first template.
A second template generating module 804, configured to adjust the typesetting format of the at least one template component according to the typesetting operation triggered according to the service layout requirement, so as to obtain a second template; and the second template is used for rendering and generating the service file with the preset file format.
The foregoing detailed description is provided for the specific implementation method of the embodiments of the present application, and is not repeated herein.
In the embodiment of the application, the template based on the rich text layout is generated by the template editor supporting rich text editing, so that the template typesetting requirement under the scene with higher text typesetting requirement (such as contract text, electronic forms and the like) can be met, and the first template supports the addition of at least one template component matched with the type of the service data related to the target service into the first template. And simultaneously, typesetting at least one template component in the first template based on the business layout requirement to obtain a second template meeting the business layout requirement. The obtained second template accords with the service specification of the target service, and can be used for rendering and generating the service files in the preset file format, so that a user can obtain the service files matched with the target service by typesetting each service file, the processing efficiency of the target service can be greatly improved, and the problem of typesetting errors caused by manual typesetting of the service files can be further avoided.
Fig. 9 is a schematic structural diagram of an embodiment of a template building apparatus provided in the embodiment of the present application. The apparatus may include:
a first template generating module 901, configured to generate the first template based on the rich text layout by using a rich text editor packaged in a template editor.
In practical application, the template editor with the rich text editing function is obtained through pre-construction and can be realized by packaging the rich text editor into the template editor. As an optional implementation manner, the first template generating module 901 may specifically be configured to:
constructing a template editor for packaging the rich text editor;
generating the first template using the template editor.
The template component generates a template 902 for generating at least one template component based on the business data type involved in the target business.
The template component generating the template 902 may include:
a first determining unit 911 is configured to determine a service data type related to the target service.
A component adding unit 912, configured to generate at least one template component matching the service data type using the data dictionary.
The component adding unit 912 may specifically be configured to:
determining data components respectively matched with the service data types in the data dictionary; wherein the data component may comprise a combination of one or more of a value component, a table component, and a single check component;
and according to the field definition operation of the user aiming at the data assembly, defining the data field corresponding to each data assembly, and generating at least one template assembly corresponding to the target service.
Optionally, the data dictionary may include, but is not limited to, a date selection component, a chart component, an auto-code component, an electronic signature component, etc., in addition to a value component, a table component, and a single check component.
A component adding module 903 for adding the at least one template component to the first template.
A second template generating module 904, configured to adjust the typesetting format of the at least one template component according to the typesetting operation triggered according to the service layout requirement, so as to obtain a second template; and the second template is used for rendering and generating the service file with the preset file format.
As an optional implementation manner, the adding the at least one template component to the first template, and adjusting the typesetting format of the at least one template component according to the typesetting operation triggered according to the business layout requirement, to obtain the second template may include:
adding the at least one template component into the first template according to an adding operation for the at least one template component;
determining typesetting operation triggered by business layout requirements respectively corresponding to at least one template component in the first template;
and adjusting the typesetting format of the at least one template component based on the typesetting operation to obtain a second template matched with the business layout requirement.
Optionally, in some embodiments, the template component generation template 902 may specifically be used to:
at least one first template component is generated based on the type of business data to which the first target sub-business relates.
As an optional implementation manner, the adding the at least one template component to the first template, and adjusting the typesetting format of the at least one template component according to the typesetting operation triggered according to the business layout requirement, to obtain the second template may include:
adding the at least one first template component into the first template, and adjusting the typesetting format of the at least one first template component according to typesetting operation triggered according to the layout requirement of the first sub-service to obtain a first sub-service template corresponding to the first target sub-service;
acquiring a second sub-service template corresponding to a second target sub-service and a third sub-service template corresponding to a third target sub-service;
and merging the first sub-service template, the second sub-service template and the third sub-service template according to the service processing logic of a plurality of target sub-services to obtain the second template.
In order to improve the building efficiency of the same service type template, optionally, in some embodiments, after the second template generating module 904, the method may further include:
a layout logic determination module, configured to determine, based on the addition operation and the typesetting operation for the at least one template component, a layout logic between the at least one template component in a second template corresponding to the target service;
and the information generating module is not particularly used for generating layout prompt information based on the layout logic, so that a user can conveniently build a second template corresponding to the target service based on the layout prompt information.
The foregoing detailed description is provided for the specific implementation method of the embodiments of the present application, and is not repeated herein.
In the embodiment of the application, in order to enable the template editor to meet the typesetting requirements in more service scenes, a data dictionary supporting various data formats is introduced. The data dictionary can provide rich data types to meet the service data types of different target services, and the template component generated based on the data dictionary can support the setting of various typesetting formats. Meanwhile, the template editor based on rich text packaging is more flexible and convenient to use, is suitable for the lower typesetting requirement of a service scene, is also suitable for the service scene with higher typesetting requirement, and has universality.
Therefore, the template editor based on rich text packaging can be combined with the template component generated based on the data dictionary to build a second template which meets the typesetting requirements under various service scenes and has universality.
Fig. 10 is a schematic structural diagram of an embodiment of a file generation apparatus according to an embodiment of the present application. The apparatus may include:
a second template obtaining module 1001, configured to obtain a second template corresponding to the target service.
The second template is obtained by adjusting the typesetting format of at least one template element in the first template based on rich text layout according to the typesetting operation triggered according to the business layout requirement; the first template is generated by utilizing a template editor with a rich text editing function; the at least one template component is generated based on the business data type to which the target business relates.
A service data obtaining module 1002, configured to obtain, according to the current service event of the target service, service data of at least one template component in the second template corresponding to the service event respectively.
As an implementation manner, the service data obtaining module 1002 may be specifically configured to:
determining a current business event of the target business;
and acquiring service data of at least one template component in the second template respectively corresponding to the service event based on the service file generation operation corresponding to the service event.
A service file generating module 1003, configured to render the service data to the second template, so as to obtain a service file.
Optionally, in some embodiments, the service file generating module 1003 may specifically be configured to:
adding the service data to the second template according to the data formats respectively corresponding to the at least one template component;
and rendering the second template according to a preset file format to obtain the service file.
As an optional implementation, the template component is generated by using a data dictionary; the adding the service data to the second template according to the data formats respectively corresponding to the at least one template component may specifically be configured to:
calling a template rendering engine supporting multiple file rendering formats;
and replacing the corresponding template components in the second template with the service data in the data format of the corresponding template components by utilizing the template rendering engine.
Optionally, as an implementable embodiment, the template rendering engine may support at least a file rendering format of a PDF file, an HTML file, a Word file, and the like.
As an optional implementation manner, the rendering the second template according to the preset file format to obtain the service file may specifically be used to:
determining a preset file format corresponding to the target service based on file format selection operation;
and rendering the second template according to the preset file format by using the template rendering engine to obtain the service file.
In practical application, after the service file generating module 1003, the method may further include:
and the service processing module is used for carrying out related service processing based on the service file.
The foregoing detailed description is provided for the specific implementation method of the embodiments of the present application, and is not repeated herein.
In the embodiment of the application, the service data corresponding to at least one template component in the second template is rendered into the second template, and the service data is substituted for the corresponding template component to obtain the template instance of the target service, and the template instance is only the running template data in practical application, so that in order to obtain the service file matched with the target service, the second template needs to be rendered into a preset file format.
Because the template rendering engine can support various file rendering formats, the generation of the service files under various service scenes can be provided in the embodiment of the application, so that the service processing requirements of various industries are met.
Fig. 11 is a schematic structural diagram of an embodiment of a computer device according to an embodiment of the present disclosure, where the computer device may include a processing component 1101 and a storage component 1102.
The storage component 1102 is configured to store one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component 1101.
The processing component 1101 may be configured to:
generating a first template based on a rich text layout by utilizing a template editor with a rich text editing function; generating at least one template component based on the service data type related to the target service; adding the at least one template component into the first template, and adjusting the typesetting format of the at least one template component according to typesetting operation triggered according to business layout requirements to obtain a second template;
and the second template is used for rendering and generating the service file with the preset file format.
The processing component 1101 may include one or more processors to execute computer instructions to perform all or part of the steps of the method described above. Of course, the processing elements may also be implemented as one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components configured to perform the above-described methods.
The storage component 1102 is configured to store various types of data to support operations in the server. The memory components may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Of course, the computer device may of course also comprise other components, such as input/output interfaces, communication components, etc.
The input/output interface provides an interface between the processing components and peripheral interface modules, which may be output devices, input devices, etc.
The communication component is configured to facilitate wired or wireless communication between the server and other devices, such as with a terminal.
The embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a computer, the template building method in the embodiment shown in fig. 1 and 2 can be implemented.
Fig. 12 is a schematic structural diagram of an embodiment of a computer device according to an embodiment of the present disclosure, where the computer device may include a processing component 1201 and a storage component 1202.
The storage component 1202 is for storing one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component 1201.
The processing component 1201 may be configured to:
acquiring a second template corresponding to the target service; the second template is obtained by adjusting the typesetting format of at least one template element in the first template based on rich text layout according to the typesetting operation triggered according to the business layout requirement; the first template is generated by utilizing a template editor with a rich text editing function; the at least one template component is generated based on the service data type related to the target service;
acquiring service data of at least one template component in the second template respectively corresponding to the service event according to the current service event of the target service;
and rendering the service data to the second template to obtain a service file.
The processing component 1201 may include one or more processors to execute computer instructions to perform all or part of the steps of the methods described above. Of course, the processing elements may also be implemented as one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components configured to perform the above-described methods.
The storage component 1202 is configured to store various types of data to support operations in the server. The memory components may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Of course, the computer device may of course also comprise other components, such as input/output interfaces, communication components, etc.
The input/output interface provides an interface between the processing components and peripheral interface modules, which may be output devices, input devices, etc.
The communication component is configured to facilitate wired or wireless communication between the server and other devices, such as with a terminal.
An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the file generation method in the embodiment shown in fig. 5 may be implemented.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (23)

1. A template building method is characterized by comprising the following steps:
generating a first template based on a rich text layout by utilizing a template editor with a rich text editing function;
generating at least one template component based on the service data type related to the target service;
adding the at least one template component into the first template, and adjusting the typesetting format of the at least one template component according to typesetting operation triggered according to business layout requirements to obtain a second template;
and the second template is used for rendering and generating the service file with the preset file format.
2. The method of claim 1, wherein generating at least one template component based on the traffic data type involved in the target traffic comprises:
determining the type of service data related to the target service;
and generating at least one template component matched with the service data type by using a data dictionary.
3. The method of claim 2, wherein the generating at least one template component matching the data type using a data dictionary comprises:
determining data components respectively matched with the service data types in the data dictionary; wherein the data component comprises a combination of one or more of a value component, a table component, and a single check component;
and according to the field definition operation of the user aiming at the data assembly, defining the data field corresponding to each data assembly, and generating at least one template assembly corresponding to the target service.
4. The method of claim 1, wherein generating the first template based on the rich text layout using a template editor with rich text editing functionality comprises:
generating the first template based on the rich text layout using a rich text editor packaged in a template editor.
5. The method of claim 4, wherein generating the first rich-text layout-based template using a rich-text editor wrapped in a template editor comprises:
constructing a template editor for packaging the rich text editor;
generating the first template using the template editor.
6. The method according to claim 1, wherein the adding the at least one template component to the first template and adjusting the typesetting format of the at least one template component according to the typesetting operation triggered according to the business layout requirements to obtain a second template comprises:
adding the at least one template component into the first template according to an adding operation for the at least one template component;
determining typesetting operation triggered by business layout requirements respectively corresponding to at least one template component in the first template;
and adjusting the typesetting format of the at least one template component based on the typesetting operation to obtain a second template matched with the business layout requirement.
7. The method of claim 1, wherein generating at least one template component based on the traffic data type involved in the target traffic comprises:
at least one first template component is generated based on the type of business data to which the first target sub-business relates.
8. The method according to claim 7, wherein the adding the at least one template component to the first template and adjusting the typesetting format of the at least one template component according to the typesetting operation triggered according to the business layout requirements to obtain a second template comprises:
adding the at least one first template component into the first template, and adjusting the typesetting format of the at least one first template component according to typesetting operation triggered according to the layout requirement of the first sub-service to obtain a first sub-service template corresponding to the first target sub-service;
acquiring a second sub-service template corresponding to a second target sub-service and a third sub-service template corresponding to a third target sub-service;
and merging the first sub-service template, the second sub-service template and the third sub-service template according to the service processing logic of a plurality of target sub-services to obtain the second template.
9. The method of claim 6, wherein after adjusting the typesetting format of the at least one template component based on the typesetting operation to obtain a second template matching the business layout requirements, further comprising:
determining layout logic between the at least one template component in a second template corresponding to the target service based on the adding operation and the typesetting operation aiming at the at least one template component;
and generating layout prompt information based on the layout logic, so that a user can conveniently build a second template corresponding to the target service based on the layout prompt information.
10. A file generation method, comprising:
acquiring a second template corresponding to the target service; the second template is obtained by adjusting the typesetting format of at least one template element in the first template based on rich text layout according to the typesetting operation triggered according to the business layout requirement; the first template is generated by utilizing a template editor with a rich text editing function; the at least one template component is generated based on the service data type related to the target service;
acquiring service data of at least one template component in the second template respectively corresponding to the service event according to the current service event of the target service;
and rendering the service data to the second template to obtain a service file.
11. The method according to claim 10, wherein the obtaining, according to the current service event of the target service, service data of at least one template component in the second template corresponding to the service event respectively comprises:
determining a current business event of the target business;
and acquiring service data of at least one template component in the second template respectively corresponding to the service event based on the service file generation operation corresponding to the service event.
12. The method of claim 10, wherein the rendering the service data into the second template, and obtaining a service file comprises:
adding the service data to the second template according to the data formats respectively corresponding to the at least one template component;
and rendering the second template according to a preset file format to obtain the service file.
13. The method of claim 12, wherein the template component is generated using a data dictionary; the adding the service data to the second template according to the data formats respectively corresponding to the at least one template component includes:
calling a template rendering engine supporting multiple file rendering formats;
and replacing the corresponding template components in the second template with the service data in the data format of the corresponding template components by utilizing the template rendering engine.
14. The method of claim 13, wherein the rendering the second template according to the preset file format to obtain the service file comprises:
determining a preset file format corresponding to the target service based on file format selection operation;
and rendering the second template according to the preset file format by using the template rendering engine to obtain the service file.
15. The method of claim 14, wherein the template rendering engine supports at least file rendering formats for PDF files, HTML files, and Word files.
16. The method of claim 10, wherein rendering the service data into the second template further comprises, after obtaining a service file:
and carrying out related service processing based on the service file.
17. A template system is characterized by comprising a template editor with rich text editing function and a data dictionary;
the data dictionary is used for generating at least one template component based on the service data type related to the target service;
the template editor is used for generating a first template based on a rich text layout; adding the at least one template component into the first template, and adjusting the typesetting format of the at least one template component according to typesetting operation triggered according to business layout requirements to obtain a second template; and the second template is used for rendering and generating the service file with the preset file format.
18. The template system of claim 17, further comprising a template rendering engine that supports multiple file rendering formats; the file rendering format at least comprises a PDF file rendering format, an HTML file rendering format and a Word file rendering format;
the template rendering engine is used for acquiring service data of at least one template component in the second template corresponding to the service event according to the current service event of the target service; and rendering the service data to the second template to obtain a service file.
19. The template system according to claim 17, wherein the template editor with rich text editing capabilities comprises a template editor that wraps a rich text editor.
20. A formwork building device, comprising:
the first template generating module is used for generating a first template based on rich text layout by utilizing a template editor with a rich text editing function;
the template component generation template is used for generating at least one template component based on the service data type related to the target service;
a component addition module for adding the at least one template component to the first template;
the second template generating module is used for adjusting the typesetting format of the at least one template component according to the typesetting operation triggered according to the business layout requirement to obtain a second template; and the second template is used for rendering and generating the service file with the preset file format.
21. A file generation apparatus, comprising:
the second template acquisition module is used for acquiring a second template corresponding to the target service; the second template is obtained by adjusting the typesetting format of at least one template element in the first template based on rich text layout according to the typesetting operation triggered according to the business layout requirement; the first template is generated by utilizing a template editor with a rich text editing function; the at least one template component is generated based on the service data type related to the target service;
a service data acquisition module, configured to acquire, according to a current service event of the target service, service data of at least one template component in the second template corresponding to the service event;
and the service file generation module is used for rendering the service data to the second template to obtain a service file.
22. A computer device comprising a processing component and a storage component; the storage component is used for storing one or more computer instructions, wherein the one or more computer instructions are used for the processing component to call and execute;
the processing component is to:
generating a first template based on a rich text layout by utilizing a template editor with a rich text editing function;
generating at least one template component based on the service data type related to the target service;
adding the at least one template component into the first template, and adjusting the typesetting format of the at least one template component according to typesetting operation triggered according to business layout requirements to obtain a second template;
and the second template is used for rendering and generating the service file with the preset file format.
23. A computer device comprising a processing component and a storage component; the storage component is used for storing one or more computer instructions, wherein the one or more computer instructions are used for the processing component to call and execute;
the processing component is to:
acquiring a second template corresponding to the target service; the second template is obtained by adjusting at least one template element typesetting format in the first template based on rich text layout according to typesetting operation triggered according to business layout requirements; the first template is generated by utilizing a template editor with a rich text editing function; the at least one template component is generated based on the service data type related to the target service;
acquiring service data of at least one template component in the second template respectively corresponding to the service event according to the current service event of the target service;
and rendering the service data to the second template to obtain a service file.
CN201910711721.6A 2019-08-02 2019-08-02 Template building method, file generation method, template system, device and computer equipment Pending CN112329413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910711721.6A CN112329413A (en) 2019-08-02 2019-08-02 Template building method, file generation method, template system, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910711721.6A CN112329413A (en) 2019-08-02 2019-08-02 Template building method, file generation method, template system, device and computer equipment

Publications (1)

Publication Number Publication Date
CN112329413A true CN112329413A (en) 2021-02-05

Family

ID=74319697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910711721.6A Pending CN112329413A (en) 2019-08-02 2019-08-02 Template building method, file generation method, template system, device and computer equipment

Country Status (1)

Country Link
CN (1) CN112329413A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113011151A (en) * 2021-04-20 2021-06-22 平安科技(深圳)有限公司 Method, device and equipment for generating requirement document template and storage medium
CN113536757A (en) * 2021-07-30 2021-10-22 广东粤财金融云科技股份有限公司 Electronic contract generation and signing method, device and system based on parameter template
CN114415986A (en) * 2021-10-11 2022-04-29 浪潮软件股份有限公司 Document template customizing and printing method, device and computer readable medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995698A (en) * 2014-05-05 2014-08-20 重庆斯欧信息技术有限公司 Application form agile development method and system oriented to business
CN106201489A (en) * 2016-06-30 2016-12-07 乐视控股(北京)有限公司 A kind of page editing method and apparatus
CN106648555A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Page generation method and device
CN107506193A (en) * 2017-08-18 2017-12-22 平安科技(深圳)有限公司 A kind of development approach of subsystem page, storage medium and server
CN107798001A (en) * 2016-08-29 2018-03-13 阿里巴巴集团控股有限公司 Web page processing method, device and equipment
CN107977351A (en) * 2017-12-28 2018-05-01 平安科技(深圳)有限公司 Electronic report forms generation method, device, computer equipment and storage medium
CN108829393A (en) * 2018-06-15 2018-11-16 北京奇艺世纪科技有限公司 A kind of skin file generation method, device and equipment for realizing interface layout
CN109542399A (en) * 2018-10-25 2019-03-29 深圳市金证科技股份有限公司 Software development methodology, device, terminal device and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995698A (en) * 2014-05-05 2014-08-20 重庆斯欧信息技术有限公司 Application form agile development method and system oriented to business
CN106648555A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Page generation method and device
CN106201489A (en) * 2016-06-30 2016-12-07 乐视控股(北京)有限公司 A kind of page editing method and apparatus
CN107798001A (en) * 2016-08-29 2018-03-13 阿里巴巴集团控股有限公司 Web page processing method, device and equipment
CN107506193A (en) * 2017-08-18 2017-12-22 平安科技(深圳)有限公司 A kind of development approach of subsystem page, storage medium and server
CN107977351A (en) * 2017-12-28 2018-05-01 平安科技(深圳)有限公司 Electronic report forms generation method, device, computer equipment and storage medium
CN108829393A (en) * 2018-06-15 2018-11-16 北京奇艺世纪科技有限公司 A kind of skin file generation method, device and equipment for realizing interface layout
CN109542399A (en) * 2018-10-25 2019-03-29 深圳市金证科技股份有限公司 Software development methodology, device, terminal device and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113011151A (en) * 2021-04-20 2021-06-22 平安科技(深圳)有限公司 Method, device and equipment for generating requirement document template and storage medium
CN113011151B (en) * 2021-04-20 2022-03-18 平安科技(深圳)有限公司 Method, device and equipment for generating requirement document template and storage medium
CN113536757A (en) * 2021-07-30 2021-10-22 广东粤财金融云科技股份有限公司 Electronic contract generation and signing method, device and system based on parameter template
CN114415986A (en) * 2021-10-11 2022-04-29 浪潮软件股份有限公司 Document template customizing and printing method, device and computer readable medium

Similar Documents

Publication Publication Date Title
CN112329413A (en) Template building method, file generation method, template system, device and computer equipment
CN105739963B (en) The method and apparatus for generating webpage
CN107092625B (en) Data configuration method, data processing method and device
US8928932B2 (en) System and method for creating multi-formatted documents via an online portal
US9330077B2 (en) Dynamic image generation for customizable user interfaces
CN102135990A (en) Java server page (JSP) template-based intelligent table system capable of being defined freely and generating method
CN110543303A (en) Visual business platform
KR20090039129A (en) Automatic manufacturing method for advertisement design
CN112496553A (en) Method and system for printing card based on printing template
CN110727969B (en) Method, device and equipment for automatically adjusting workflow and storage medium
CN114296660A (en) Label printing method based on Vue framework
CN114416056A (en) Page generation method, system, computer equipment and readable storage medium
CN101436309B (en) Method and apparatus for modifying formula operator
CN111464425B (en) Mail generation method, device, equipment and storage medium
CN111931475A (en) Dynamic subscription book generation method, system, computer equipment and storage medium
CN108984156A (en) A kind of software auto generating method and system for exempting from code development based on template
CN105590241A (en) Self-adaptive electronic bill implementation method and system
CN111145054A (en) Signing method, device and storage medium for electronic contracts of same type
CN113033171A (en) Template creating method, file generating method, device and computer equipment
CN107015959A (en) A kind of method that version is closed to pdf document
CN115935909A (en) File generation method and device and electronic equipment
CA2676464C (en) Generating page-oriented data for printing dynamic documents
CN113822025A (en) Office file automatic generation method, device, equipment and storage medium
CN114398226A (en) Network asset report generation method and device
CN111079399B (en) Image-text data processing method, image-text data processing device, computer equipment and 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