Template file generation method and device, equipment, medium and product

By selecting and configuring target metrics on the indicator library display interface, generating directory trees and generating template files, the problem of poor flexibility and reusability caused by fixing template file content is solved, and flexible template configuration and efficient human utilization are achieved .

CN118940738APending Publication Date: 2024-11-12CHINA MERCHANTS BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410967225.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The content of existing template files is fixed, with poor flexibility and reusability, which leads to frequent updates in report disclosure and verification scenarios, which consumes high labor costs.

Method used

By responding to the user's selection operations on the indicator library display interface, the target metrics are determined, and the directory tree is generated based on the configured target metrics, and the template file is finally generated based on the directory tree, allowing the user to configure the template file independently.

Benefits of technology

It improves the flexibility and reusability of template configuration, reduces labor costs, and realizes flexible template file generation and reuse.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940738A_ABST
    Figure CN118940738A_ABST
Patent Text Reader

Abstract

The invention discloses a template file generation method and device, equipment, a medium and a product, and relates to the technical field of template configuration.The disclosed template file generation method comprises the steps that in response to selection operation of a user on an index library display interface, a target index is determined from indexes displayed on the index library display interface; for each target index, displaying a configuration interface of the target index, and configuring elements of the target index in response to a configuration operation of the user to obtain a configured target index; generating a directory tree based on all the configured target indexes; and generating a template file based on the directory tree. According to the technical scheme, the user can configure the required template file by himself / herself, and the flexibility and reusability of template configuration are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of template configuration, and in particular to a template file generation method, device, equipment, medium and product. Background Art

[0002] In the custody business, there are many scenarios where reports are issued for disclosure and bilateral verification, and there are logical repetitions between reports. If a complete report is rewritten every time a new report is requested, the labor cost will be high. Therefore, it is particularly important to use template files.

[0003] In the related art, the template file contains the basic format, style and content, and the document can be generated by just filling in the specific information. However, the content of this kind of template file is relatively fixed. If the template content changes, the template file needs to be updated frequently, which has poor flexibility and reusability. Summary of the invention

[0004] The main purpose of this application is to provide a template file generation method, device, equipment, medium and product, aiming to solve the technical problem of poor flexibility and reusability of template files.

[0005] To achieve the above purpose, the present application proposes a template file generation method, comprising:

[0006] In response to a selection operation by a user on an indicator library display interface, determining a target indicator from indicators displayed on the indicator library display interface;

[0007] For each of the target indicators, a configuration interface of the target indicator is displayed, and in response to the configuration operation of the user, elements of the target indicator are configured to obtain a configured target indicator;

[0008] Based on all the configured target indicators, a directory tree is generated;

[0009] Based on the directory tree, a template file is generated.

[0010] In one embodiment, the step of generating a directory tree based on all the configured target indicators includes:

[0011] Based on the type of the configured target indicator, grouping all the configured target indicators to obtain at least one indicator group;

[0012] Each of the above indicator groups is a document chapter;

[0013] Based on all the file chapters, the directory tree is generated.

[0014] In one embodiment, the step of generating a directory tree based on all the configured target indicators includes:

[0015] Displaying an initial directory tree; the initial directory tree includes at least one initial file section;

[0016] In response to the user's input operation, configuring the chapter information of the initial file chapter to obtain the target chapter;

[0017] For each of the target chapters, in response to the user's indicator selection operation, an indicator associated with the target chapter is determined from all the configured target indicators to generate the directory tree.

[0018] In one embodiment, in response to the configuration operation of the user, the step of configuring the elements of the target indicator to obtain the configured target indicator includes:

[0019] In response to the configuration operation of the user, an element associated with the target indicator is determined from all the initial elements to obtain the configured target indicator.

[0020] In one embodiment, the steps before determining the target indicator from the indicators displayed on the indicator library display interface in response to the user's selection operation on the indicator library display interface include:

[0021] Get historical indicator information;

[0022] Based on the historical indicator information, generating the indicator library display interface;

[0023] In response to the user's input operation, the indicator type of each piece of historical indicator information is marked.

[0024] In one embodiment, the step of generating a template file based on the directory tree further includes:

[0025] Receive raw data files;

[0026] After generating a template report file based on the original data file, parsing the original data file and the template report file, and extracting the values ​​of each of the elements in the original data file and the template report file;

[0027] Obtain comparison results of all the values ​​of the original data file and the template report file.

[0028] In addition, to achieve the above purpose, the present application also proposes a template file generating device, the template file generating device comprising:

[0029] An indicator determination module, configured to determine a target indicator from the indicators displayed on the indicator display interface in response to a selection operation by a user on the indicator display interface;

[0030] An indicator configuration module, for displaying a configuration interface of each target indicator, and configuring elements of the target indicator in response to a configuration operation of the user to obtain a configured target indicator;

[0031] A directory tree generation module, used for generating a directory tree based on all the configured target indicators;

[0032] The file generation module is used to generate a template file based on the directory tree.

[0033] In addition, to achieve the above objectives, the present application also proposes a template file generation device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the template file generation method as described above.

[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the template file generation method as described above are implemented.

[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the template file generation method as described above are implemented.

[0036] One or more technical solutions proposed in this application have at least the following technical effects:

[0037] Compared with the related art in which the content of template files is fixed, this application splits the content of template files into indicators, and the elements within the indicators can be configured separately. The indicators are combined to form a directory tree, and finally a template file is generated according to the directory tree, so that users can independently configure the required template files, effectively improving the flexibility and reusability of template configuration. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1 This is a flow chart of the first embodiment of the method for generating a template file of the present application;

[0041] Figure 2 A schematic diagram of the configuration of an indicator of a product basic situation table in an embodiment of the present application;

[0042] Figure 3 A schematic diagram of a directory tree automatically generated in an embodiment of the present application;

[0043] Figure 4 This is a flow chart of Example 2 of the template file generation method of this application;

[0044] Figure 5 This is a schematic diagram of the module structure of the template file generating device according to an embodiment of the present application;

[0045] Figure 6 A schematic diagram of the device structure of the hardware operating environment involved in the template file generation method in the embodiment of the present application.

[0046] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0047] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0048] The main solutions of the embodiments of this application are:

[0049] In response to the user's selection operation on the indicator library display interface, a target indicator is determined from the indicators displayed on the indicator library display interface; for each of the target indicators, a configuration interface of the target indicator is displayed, and in response to the user's configuration operation, the elements of the target indicator are configured to obtain the configured target indicator; based on all the configured target indicators, a directory tree is generated; based on the directory tree, a template file is generated.

[0050] In the related art, template configuration technology is usually rendered with the help of document files such as word and excel. If there is a content change, the template file needs to be updated frequently. Due to the fixed nature of the template file, it is impossible to split it by chapter for combination and reuse. There is a lack of a universal template configuration solution from the smallest dimensional element (such as a grid, a paragraph) to chapters, and from chapters to templates.

[0051] To this end, the present application provides a solution that allows users to independently configure the required template files, effectively improving the flexibility and reusability of template configuration.

[0052] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a template file generating device, etc. The following takes the template file generating device as an example to illustrate this embodiment and the following embodiments.

[0053] Based on this, the present application embodiment provides a template file generation method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the template file generation method of the present application.

[0054] In this embodiment, the template file generation method includes steps S10 to S40:

[0055] Step S10, in response to a selection operation of a user on an indicator library display interface, determining a target indicator from indicators displayed on the indicator library display interface.

[0056] It should be noted that an indicator refers to a table or a paragraph in a template file. An indicator is composed of elements. It can be understood that an element refers to a cell, a column or a row of cells in a table in a template file, or a word or a combination of words in a paragraph.

[0057] The indicator library refers to a database used to store indicators. It is understandable that when indicators are stored in a database, when configuring a new template, historically developed and stored indicators can be selected for configuration combination.

[0058] In addition, it should be noted that the indicator library display page can display various indicators in the database for users to choose from, and users can select the required indicators and check to confirm to configure the template. It can be understood that since the indicators are stored in a database, when configuring a new template, historical development and stored indicators can be selected for configuration combination, which effectively improves the reusability of template configuration.

[0059] In a feasible implementation manner, before step S10, steps S101 to S103 are also included:

[0060] Step S101, obtaining historical indicator information.

[0061] It should be noted that historical indicator information is the indicator that has been developed and stored in the database before.

[0062] In addition, it should be noted that the development of indicators refers to processing and combining one or more acquired elements into an indicator. For example, if an indicator is a table, then the corresponding element is a grid, and the table requires the combination of multiple grids.

[0063] Step S102: Generate an indicator library display interface based on historical indicator information.

[0064] It should be noted that the indicator library display page displays various historical indicators in the database for users to select the required target indicators for configuration.

[0065] Step S103: in response to the user's input operation, marking the indicator type of each historical indicator information.

[0066] It should be noted that the user can manually classify each historical indicator information, and through input operations, mark the indicator type of the historical indicator information according to the classification result, thereby completing the classification of indicators in the database. After the historical indicator information is classified, the user can enter the category information to search for the historical indicator information.

[0067] In this implementation, by marking the indicator type of each historical indicator information, the user can enter the category information to search for the indicator, which effectively improves the efficiency of the user in configuring the template.

[0068] Step S20 , for each target indicator, displaying a configuration interface of the target indicator, and in response to a configuration operation of the user, configuring elements of the target indicator to obtain a configured target indicator.

[0069] It should be noted that the target indicator determined by the user in the indicator library may not meet the user's actual needs. Therefore, the configuration interface of the target indicator provides the user with the function of configuring the indicator to meet the needs of the user template file.

[0070] It can be understood that, in step S20, the indicator configuration function enables the user to configure indicators that meet the requirements in the historical indicators of the indicator library to complete the template configuration, which effectively improves the flexibility of the template configuration.

[0071] In a feasible implementation, step S20 includes step A11:

[0072] Step A11, in response to the user's configuration operation, determining the element associated with the target indicator from all the initial elements to obtain the configured target indicator.

[0073] It should be noted that the main operation object of the target indicator configuration interface is the element. The initial element is the element originally contained in the target indicator in the indicator library display interface.

[0074] Specifically, the user deletes or adds indicator elements through configuration operations to obtain the target indicator. Figure 2The indicator that users need to use is the product basic situation table. The product basic situation table in the indicator library contains elements such as product name, product abbreviation, product code and product registration number, and users only need it to contain product name and product code. Therefore, in the configuration interface, users can delete the two lines of product abbreviation and product registration number to get the required product basic situation table.

[0075] Step S30, generating a directory tree based on all configured target indicators.

[0076] It should be noted that the directory tree contains directory information in the template file, and the directory information is related to the selected target indicator, which defines the position of each indicator in the template file. For example, if the selected target indicator is the basic information table of product information, then the chapter where the indicator is located can be the product information introduction.

[0077] In a feasible implementation manner, step S30 includes steps M11 to M13:

[0078] Step M11: grouping all the configured target indicators based on the type to which the configured target indicators belong, to obtain at least one indicator group.

[0079] It should be noted that the indicator group is composed of target indicators of the same indicator type, wherein the indicator type to which the target indicator belongs is preset.

[0080] Step M12: taking each of the indicator groups as a document chapter.

[0081] It should be noted that when generating a template file, chapters are indispensable, and indicator groups consisting of indicators of the same indicator type can be used as file chapters.

[0082] Step M13, generating the directory tree based on all the file chapters.

[0083] It should be noted that the directory tree contains the directory information in the template file. As mentioned above, the directory information is related to the selected target indicator. The article chapters in this step are composed of indicators of the same indicator type. Therefore, the system can automatically generate a directory tree based on the file chapters to generate a template file. For example, refer to Figure 3 The system automatically identified the indicator type to which the table belonged and generated a directory tree including 0- fees paid to related parties during the reporting period, 1- investment account information, and 2- investment account information, etc.

[0084] In another feasible embodiment, step S30 may further include N11 to N13:

[0085] Step N11, displaying an initial directory tree; the initial directory tree includes at least one initial file section;

[0086] It should be noted that the initial directory tree is a tree structure automatically generated by the system, and each branch of the tree structure is the initial file chapter. Specifically, the initial directory tree can be generated by the system calling the AI ​​model. It is understandable that there is always a gap between this initial directory tree and the directory tree obtained by the user's psychological expectation. Therefore, the order of the initial file chapters can be adjusted, chapters can be added, or chapters can be deleted through user input operations to improve it.

[0087] Step N12, in response to the user's input operation, configure the chapter information of the initial file chapter to obtain the target chapter.

[0088] It should be noted that the user can control the generation of the directory tree by changing the chapter information of the initial file chapters through operations, including but not limited to modifying the chapter title, adding and deleting chapters, adjusting the position of chapters in the directory tree, etc.

[0089] Step N13, for each of the target chapters, in response to the user's indicator selection operation, determining an indicator associated with the target chapter from all the configured target indicators to generate the directory tree.

[0090] It should be noted that the complete directory tree includes the target chapters and the target indicators associated with each target chapter, and the user needs to determine the target indicators associated with the target chapters through operations. For example, when operating on a computer, the user can drag the associated target indicators to the corresponding target chapters through the mouse, so as to complete the determination of the indicators associated with the target chapters.

[0091] It can be understood that in the first implementation of step S30 provided above, compared with the second implementation, the directory tree is automatically generated by the system, so the first implementation has a higher efficiency in determining the directory tree. And since the directory tree is manually set and generated by the user in the second implementation compared with the first implementation, the second implementation has a higher accuracy in determining the directory tree.

[0092] The above are only two feasible implementations of step S30 provided in this embodiment, and this embodiment does not specifically limit the specific implementation of step S30.

[0093] Step S40: Generate a template file based on the directory tree.

[0094] According to the above steps, this embodiment splits the template file into indicators, and the elements within the indicators can be configured separately. The indicators are combined to form a directory tree, and finally the template file is generated according to the directory tree, so that users can independently configure the required template files, which effectively improves the flexibility and reusability of the template configuration.

[0095] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 After step S40, the template file generation method further includes steps S01 to S02:

[0096] Step S01, receiving an original data file.

[0097] It should be noted that the original data file is the original file that needs to be templated and generated into a report file, including but not limited to a data table file, a word document or a data picture, etc. For example, in one example, the original data file provided by the report file of an investment product may be a data table file containing basic information of the investment product, investment return rate and other data information.

[0098] Step S02, after generating a template report file based on the original data file, parsing the original data file and the template report file, and extracting the values ​​of each element in the original data file and the template report file.

[0099] It should be noted that the template report file is generated based on the original data file and rendered with the help of the Free-Marker template engine. After the template report file is generated, the system will automatically parse the original data file and the template report file. Specifically, the original data file and the template report file are first split into chapters using fuzzy matching, and then the valid data range and header information in the indicator are identified. Finally, the elements in the above files are identified and extracted with the help of the header information and regular matching technology.

[0100] Step S03, obtaining comparison results of all values ​​of the original data file and the template report file.

[0101] It should be noted that this step can compare the data between the two parties by parsing and extracting the file elements, and display the data comparison results between the original data file and the template report file.

[0102] According to the above steps, the technical solution can additionally parse and extract file elements to compare the data between the two parties, thereby better promoting the user's dual-screen verification of the report.

[0103] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the template file generation method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0104] This application also provides a template file generation device, please refer to Figure 5 , the template file generating device comprises:

[0105] An indicator determination module, configured to determine a target indicator from the indicators displayed on the indicator display interface in response to a selection operation by a user on the indicator display interface;

[0106] An indicator configuration module, for displaying a configuration interface of each target indicator, and configuring elements of the target indicator in response to a configuration operation of the user to obtain a configured target indicator;

[0107] A directory tree generation module, used for generating a directory tree based on all the configured target indicators;

[0108] The file generation module is used to generate a template file based on the directory tree.

[0109] The template file generation device provided by the present application adopts the template file generation method in the above embodiment, which can solve the technical problem of poor flexibility and reusability of the template file. Compared with the related art, the beneficial effects of the template file generation device provided by the present application are the same as the beneficial effects of the template file generation method provided by the above embodiment, and other technical features in the template file generation device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0110] The present application provides a template file generating device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the template file generating method in the above-mentioned embodiment 1.

[0111] Reference below Figure 6, which shows a schematic diagram of the structure of a template file generating device suitable for implementing the embodiment of the present application. The template file generating device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The template file generating device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0112] like Figure 6 As shown, the template file generating device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the template file generating device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the template file generation device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a template file generation device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0113] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0114] The template file generation device provided by the present application adopts the template file generation method in the above embodiment, which can solve the technical problem of poor flexibility and reusability of the template file. Compared with the related art, the beneficial effects of the template file generation device provided by the present application are the same as the beneficial effects of the template file generation method provided by the above embodiment, and the other technical features in the template file generation device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0115] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0116] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0117] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the template file generation method in the above-mentioned embodiment.

[0118] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0119] The computer-readable storage medium may be included in the template file generating device; or may exist independently without being assembled into the template file generating device.

[0120] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the template file generating device, the template file generating device enables the user to configure the required template file by himself, which greatly improves the flexibility and reusability of the template configuration.

[0121] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0122] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0123] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0124] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned template file generation method, and can solve the technical problem of poor flexibility and reusability of template files. Compared with the related art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the template file generation method provided by the above-mentioned embodiment, and will not be repeated here.

[0125] The present application also provides a computer program product, including a computer program, which implements the steps of the template file generation method as described above when executed by a processor.

[0126] The computer program product provided by this application can solve the technical problem of poor flexibility and reusability of template files. Compared with the related art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the template file generation method provided by the above embodiment, which will not be repeated here.

[0127] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A template file generation method, characterized in that: The method includes: In response to a selection operation by a user on an indicator library display interface, determining a target indicator from indicators displayed on the indicator library display interface; For each of the target indicators, a configuration interface of the target indicator is displayed, and in response to the configuration operation of the user, elements of the target indicator are configured to obtain a configured target indicator; Based on all the configured target indicators, a directory tree is generated; Based on the directory tree, a template file is generated.

2. The method according to claim 1, characterized in that The step of generating a directory tree based on all the configured target indicators includes: Based on the type of the configured target indicator, grouping all the configured target indicators to obtain at least one indicator group; Each of the above indicator groups is a document chapter; Based on all the file chapters, the directory tree is generated.

3. The method according to claim 1, characterized in that The step of generating a directory tree based on all the configured target indicators includes: Displaying an initial directory tree; the initial directory tree includes at least one initial file section; In response to the user's input operation, configuring the chapter information of the initial file chapter to obtain the target chapter; For each of the target chapters, in response to the user's indicator selection operation, an indicator associated with the target chapter is determined from all the configured target indicators to generate the directory tree.

4. The method according to claim 1, characterized in that The step of configuring the elements of the target indicator in response to the configuration operation of the user to obtain the configured target indicator comprises: In response to the configuration operation of the user, an element associated with the target indicator is determined from all the initial elements to obtain the configured target indicator.

5. The method according to claim 1, characterized in that The steps before determining the target indicator from the indicators displayed on the indicator library display interface in response to the user's selection operation on the indicator library display interface include: Get historical indicator information; Based on the historical indicator information, generating the indicator library display interface; In response to the user's input operation, the indicator type of each piece of historical indicator information is marked.

6. The method according to claim 1, characterized in that The step of generating a template file based on the directory tree further includes: Receive raw data files; After generating a template report file based on the original data file, parsing the original data file and the template report file, and extracting the values ​​of each of the elements in the original data file and the template report file; Obtain comparison results of all the values ​​of the original data file and the template report file.

7. A template file generating device, characterized in that: The device comprises: An indicator determination module, configured to determine a target indicator from the indicators displayed on the indicator display interface in response to a selection operation by a user on the indicator display interface; An indicator configuration module, for displaying a configuration interface of each target indicator, and configuring elements of the target indicator in response to a configuration operation of the user to obtain a configured target indicator; A directory tree generation module, used for generating a directory tree based on all the configured target indicators; The file generation module is used to generate a template file based on the directory tree.

8. A template file generating device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the template file generation method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the template file generation method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the template file generation method according to any one of claims 1 to 6 are implemented.