CN115952773A - Form generation method and device - Google Patents

Form generation method and device Download PDF

Info

Publication number
CN115952773A
CN115952773A CN202211675857.4A CN202211675857A CN115952773A CN 115952773 A CN115952773 A CN 115952773A CN 202211675857 A CN202211675857 A CN 202211675857A CN 115952773 A CN115952773 A CN 115952773A
Authority
CN
China
Prior art keywords
data
target
processed
initial
forms
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
CN202211675857.4A
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.)
Qichacha Technology Co ltd
Original Assignee
Qichacha Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qichacha Technology Co ltd filed Critical Qichacha Technology Co ltd
Priority to CN202211675857.4A priority Critical patent/CN115952773A/en
Publication of CN115952773A publication Critical patent/CN115952773A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Stored Programmes (AREA)

Abstract

The application relates to a form generation method, a form generation device, a computer device, a storage medium and a computer program product. The form generation method comprises the following steps: receiving a form generation instruction; the form generation instruction carries data to be processed and a target form type label; matching corresponding initial forms from preset forms according to the target form type labels; the target data are extracted from the data to be processed and filled into the data lines corresponding to the initial form to generate the target form, the key data can be extracted quickly through the setting, the final form which can be displayed through a human-computer interaction interface can be generated, the data processing speed is higher, and the efficiency is higher.

Description

Form generation method and device
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a form generation method, an apparatus, a computer device, a storage medium, and a computer program product.
Background
With the arrival of the big data era, more and more enterprises carry out digital transformation, corresponding enterprise management systems are developed, electronic forms in the enterprise management systems are widely applied to enterprise business operation, and with the development of business, the contents and forms of the electronic forms become more and more complex, which directly leads to more and more form codes and more presented forms in the systems.
In traditional electronic form software development, forms with fixed formats are developed according to business requirements in a targeted manner, so that various problems that form data is not easy to process and the like can occur in the later stage of a system.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a form generation method, apparatus, computer device, storage medium, and computer program product capable of rapidly processing different types of form data in view of the above technical problems.
In a first aspect, the present application provides a form generation method, including:
receiving a form generation instruction; the form generation instruction carries data to be processed and a target form type label;
matching corresponding initial forms from preset forms according to the target form type labels;
and extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial form to generate a target form.
In one embodiment, the initial form comprises at least one layer of sub-forms which are arranged in a hierarchical manner in sequence;
the form generation instruction also carries a target sub-form type label;
the matching of the corresponding initial form from the preset multiple types of forms according to the target form type label comprises the following steps:
matching corresponding initial sub-forms from the multi-layer sub-forms contained in the initial form according to the target sub-form type labels;
the extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial form to generate a target form includes:
and extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial sub-forms to generate the target forms.
In one embodiment, the initial form contains at least one data line;
the extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial form to generate a target form includes:
extracting target data corresponding to various data lines from the data to be processed;
and filling the extracted various target data into corresponding data lines to generate the target form.
In one embodiment, the data to be processed carries at least one data tag; the data labels correspond to the types of the data lines one by one;
the extracting of the target data corresponding to various data lines from the data to be processed includes:
matching data rows corresponding to various data labels according to various data labels carried in the data to be processed;
and aiming at each data label and the corresponding data line, taking the data to be processed carrying the current data label as the target data corresponding to the current data line.
In one embodiment, the method further comprises:
and when the data line corresponding to the data label does not exist in the initial form, generating a new data line according to the data label and storing the new data line into the initial form.
In one embodiment, before the matching, according to the target form type tag, a corresponding initial form from a plurality of types of forms that are set in advance, the method further includes:
receiving a creation instruction; the creating instruction comprises form elements, form layout and form components;
and configuring the form according to the form element, the form layout and the form component to obtain the form.
In a second aspect, the present application further provides a form generating apparatus, including:
the receiving module is used for receiving a form generation instruction; the form generation instruction carries data to be processed and a target form type label;
the matching module is used for matching corresponding initial forms from preset forms according to the target form type labels;
and the generating module is used for extracting target data from the data to be processed and filling the target data into the data line corresponding to the initial form to generate a target form.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the form generation method of any embodiment when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the form generation method of any of the above embodiments.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprises a computer program, and when executed by a processor, the computer program product implements the form generation method of any of the above embodiments.
According to the form generation method, the form generation device, the computer equipment, the storage medium and the computer program product, different types of forms are stored in a template mode in advance, when data to be processed are received, corresponding forms are directly matched according to target form type labels carried by the data to be processed, corresponding data are obtained from the data to be processed and filled according to data lines corresponding to the matched forms, through the setting, key data can be extracted quickly, a final form which can be displayed through a human-computer interaction interface is generated, the data processing speed is higher, and the efficiency is higher.
Drawings
FIG. 1 is a diagram of an application environment of a form generation method in one embodiment;
FIG. 2 is a schematic flow chart diagram illustrating a method for form generation in one embodiment;
FIG. 3 is a flowchart illustrating a method for generating a form according to one embodiment;
FIG. 4 is a block diagram showing the construction of a form generation apparatus according to one embodiment;
FIG. 5 is a block diagram showing the structure of a generation module in the form generation apparatus according to one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The form generation method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network.
For example, the form generation method is applied to the terminal 102, the terminal 102 receives a form generation instruction sent by a user from a human-computer interaction interface, and the form generation instruction carries data to be processed and a target form type label; then, the terminal 102 matches corresponding initial forms from preset forms of multiple types according to the target form type labels; and extracting target data from the data to be processed and filling the target data into a data line corresponding to the initial form to generate a target form, wherein the terminal 102 can store the target form into a data storage system in the server 104, the terminal 102 can be but is not limited to various personal computers, notebook computers, smart phones, tablet computers and internet of things equipment, and the internet of things equipment can be smart speakers, smart televisions, smart air conditioners, smart vehicle-mounted equipment and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers. The terminal 102 and the server 104 may be connected directly or indirectly through wired or wireless communication, such as through a network connection.
For another example, the form generation method is applied to the server 104, the terminal 102 receives a form generation instruction sent by a user from the human-computer interaction interface, and then sends the form generation instruction to the server 104, wherein the form generation instruction carries the data to be processed and the target form type tag; then, the server 104 matches corresponding initial forms from preset forms of multiple types according to the target form type labels; the server 104 extracts target data from the data to be processed and fills the target data into the data lines corresponding to the initial form to generate a target form, and stores the target form into the data storage system. It will be appreciated that the data storage system may be a stand-alone storage device, or the data storage system may be located on a server, or the data storage system may be located on another terminal.
In one embodiment, a form generation method is provided, and this embodiment is exemplified by applying the form generation method to a processor, and it is to be understood that the processor may be located on a terminal or a server. As shown in fig. 2, the form generation method includes:
step 202, receiving a form generation instruction; the form generation instruction carries the data to be processed and the target form type tag.
Specifically, the form generation instruction may be received by the terminal through a human-computer interface, or may be automatically generated when the processor receives new data. The form generation instruction refers to a data processing request initiated by a user to pre-process data into a form.
The data to be processed may be data information that needs to be filled in the terminal by the user to obtain some services, for example, when the user wants to perform user registration through the terminal, data such as a user name, a birth date, an age, a location address, a mobile phone number, and a head portrait need to be input in the terminal. The data to be processed may also be the running data of the corresponding software or hardware, which is automatically acquired by the processor according to a preset acquisition frequency.
The target form type tag refers to an identification of a kind of form, and the target form type tag may be composed of at least one of letters, characters, or numbers. The target form type tag is used to uniquely identify the form type.
In this embodiment, the server receives a form generation instruction sent by the terminal.
And 204, matching corresponding initial forms from preset forms of multiple types according to the type labels of the target forms.
The processor of this embodiment prestores a one-to-one mapping relationship between multiple form type labels and multiple forms, and the processor matches a corresponding form as an initial form according to a target form type label.
Different types of forms may have different data content or different forms of data presented.
The initial form refers to a common data interaction form page in the field of front ends, and front end page data can be visually displayed. The processor can respectively fill the data to be processed into corresponding positions in the initial form so as to display the data in a unified data display mode.
In this embodiment, the server determines, according to the target form type tag carried by the form generation instruction, a form corresponding to the target form type tag as an initial form.
And step 206, extracting target data from the data to be processed and filling the target data into a data line corresponding to the initial form to generate a target form.
The target data refers to data filled in the position of the data to be filled in the initial form in the data to be processed. For example, when the data to be processed is the operation data of the hardware and the initial form is used for displaying the abnormal operation data of the hardware, the target data is the abnormal operation data included in the operation data of the hardware.
The target form refers to a form filled with target data in the original form.
In this embodiment, the processor extracts corresponding data from the data to be processed according to the data lines of the initial form, and fills the corresponding data lines respectively to obtain a form with the filled data as a target form.
According to the form generation method, the processor can perform template storage on different types of forms in advance, when the data to be processed are received, the corresponding forms are directly matched according to the type labels of the target forms carried by the data to be processed, corresponding data are obtained from the data to be processed and filled according to the data rows corresponding to the matched forms, through the setting, the form generation method can support all components of the UI component library, key data can be extracted quickly, the final forms which can be displayed through a human-computer interaction interface are generated, the data processing speed is higher, and the efficiency is higher.
In some optional embodiments, the initial form comprises at least one layer of sub-forms arranged in a hierarchical manner; the form generation instruction also carries a target sub-form type label; step 204 comprises: matching corresponding initial sub-forms from the multi-layer sub-forms contained in the initial form according to the target sub-form type labels; step 206, comprising: and extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial sub-forms to generate the target forms.
In this embodiment, the processor may match a sub-form at the lowest layer from at least one layer of sub-forms sequentially set in a hierarchical manner according to the target sub-form type tag, and then obtain corresponding data from the data to be processed according to a data line corresponding to the target sub-form to fill in, so as to generate the target form.
As shown in FIG. 3, in some alternative embodiments, the initial form contains at least one data line; step 206 comprises: step 2062, extracting target data corresponding to various data rows from the data to be processed; and 2064, filling the extracted various target data into corresponding data lines to generate a target form.
The data lines refer to different types of data, and may include, for example, source address data lines of the data to be processed, software/hardware name data lines that generate the data to be processed, and the like.
In this embodiment, the processor extracts data filled in various data lines from the data to be processed according to the data lines corresponding to the initial form, and obtains a filled form as a target form.
In some optional embodiments, the data to be processed carries at least one data tag; the data labels correspond to the types of the data lines one by one; extracting target data corresponding to various data lines from the data to be processed, wherein the target data comprises the following steps: matching data rows corresponding to various data labels according to various data labels carried in the data to be processed; and aiming at each data label and the corresponding data line, taking the data to be processed carrying the current data label as the target data corresponding to the current data line.
As an example, the to-be-processed data included in the form generation instruction carries a data tag, where the data tag may be automatically generated during acquisition by a processor, or may be marked by a worker through a human-computer interaction interface. The data tag refers to an identification of a data type, and the data tag may be composed of at least one of letters, characters or numbers. The data tag is used to uniquely identify the type of data.
In this embodiment, the processor matches the corresponding data from the data tags included in the data to be processed according to the data line corresponding to the initial form, and fills the matched data into the current data line, thereby completing data filling.
In some optional embodiments, the form generation method further includes: and when the data line corresponding to the data label does not exist in the initial form, generating a new data line according to the data label and storing the new data line into the initial form.
When the data line corresponding to the data tag does not exist in the initial form, the data to be processed can be considered to include data that cannot be displayed in the initial form, and at this time, the processor generates a new data line according to the data tag in which the corresponding data line does not exist, so as to fill in the data corresponding to the data tag.
In some optional embodiments, before step 204, further comprising: receiving a creation instruction; creating an instruction containing form elements, form layout and form components; and carrying out form configuration according to the form elements, the form layout and the form components to obtain the form.
The create instruction refers to an instruction to generate an initial form. The initial form includes the corresponding form elements, form layout, and form components.
As an example, the processor circularly renders components of the initial form according to information, such as form elements, form layouts, form components, and the like, included in the creation instruction, where the form elements include, for example, related configuration data, such as component names and component attributes, and the processor converts the related configuration data of each component into a virtual DOM, then writes the DOM into a page, and finally performs page rendering.
As an example, the processor performs event binding and property binding according to the relevant configuration data of each component, and can support the linkage function of the upper and lower components to obtain the above form.
According to the form generation method, the processor can store forms of different hierarchical types in a template mode in advance, when the data to be processed are received, the initial sub-forms of the lowest layer can be matched according to data labels contained in the data to be processed, corresponding data can be directly matched from the data to be processed to be filled according to data lines corresponding to the initial sub-forms, and new data lines can be automatically generated when the data contained in the data to be processed cannot be displayed through the initial forms.
It should be understood that, although the steps in the flowcharts related to the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a form generation apparatus for implementing the above-mentioned form generation method. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, so the specific limitations in one or more embodiments of the form generation apparatus provided below may refer to the limitations on the form generation method in the foregoing, and details are not described here.
In one embodiment, as shown in FIG. 4, there is provided a form generation apparatus 400 comprising: a receiving module 402, a matching module 404, and a generating module 406, wherein: the receiving module 402 is configured to receive a form generation instruction; the form generation instruction carries data to be processed and a target form type label; the matching module 404 is configured to match a corresponding initial form from multiple types of forms that are preset according to the target form type tag; the generating module 406 is configured to extract target data from the data to be processed and fill the target data into a data line corresponding to the initial form, so as to generate a target form.
In some optional embodiments, the initial form comprises at least one layer of sub-forms arranged in a hierarchical manner; the form generation instruction also carries a target sub-form type label; the matching module 404 is further configured to: matching corresponding initial sub-forms from the multi-layer sub-forms contained in the initial form according to the target sub-form type labels; the generation module 406 is further configured to: and extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial sub-forms to generate the target forms.
As shown in FIG. 5, in some alternative embodiments, the initial form contains at least one data line; the generating module 406 includes: the extraction unit 4062 extracts target data corresponding to various data lines from the data to be processed; the generating unit 4064 fills the extracted various target data into the corresponding data lines to generate a target form.
In some optional embodiments, the data to be processed carries at least one data tag; the data labels correspond to the types of the data lines one by one; the extraction unit 4062 is further configured to: matching data rows corresponding to various data labels according to various data labels carried in the data to be processed; and regarding each data label and the corresponding data line, taking the data to be processed carrying the current data label as the target data corresponding to the current data line.
In some optional embodiments, the form generation apparatus 400 is further configured to: and when the data line corresponding to the data label does not exist in the initial form, generating a new data line according to the data label and storing the new data line into the initial form.
In some optional embodiments, the form generation apparatus 400 is further configured to: receiving a creation instruction; the creating instruction comprises form elements, form layout and form components; and carrying out form configuration according to the form elements, the form layout and the form components to obtain the form.
The various modules in the form generation apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer apparatus includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input device. The processor, the memory and the input/output interface are connected by a system bus, and the communication interface, the display unit and the input device are connected by the input/output interface to the system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The input/output interface of the computer device is used for exchanging information between the processor and an external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program when executed by a processor implements a form generation method. The display unit of the computer device is used for forming a visual picture and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a form generation instruction; the form generation instruction carries data to be processed and a target form type label; matching corresponding initial forms from preset forms of multiple types according to the type labels of the target forms; and extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial form to generate a target form.
In some optional embodiments, the initial form comprises at least one layer of sub-forms arranged in a hierarchical manner; the form generation instruction also carries a target sub-form type label; the computer program when executed by the processor further implements the steps of: matching corresponding initial sub-forms from the multi-layer sub-forms contained in the initial form according to the target sub-form type labels; and extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial sub-forms to generate the target forms.
In some alternative embodiments, the initial form contains at least one data line; the computer program when executed by the processor further implements the steps of: extracting target data corresponding to various data lines from the data to be processed; and filling the extracted various target data into corresponding data lines to generate a target form.
In some optional embodiments, the data to be processed carries at least one data tag; the data labels correspond to the types of the data lines one by one; the computer program when executed by the processor further realizes the steps of: matching data rows corresponding to various data labels according to various data labels carried in the data to be processed; and aiming at each data label and the corresponding data line, taking the data to be processed carrying the current data label as the target data corresponding to the current data line.
In some alternative embodiments, the computer program when executed by the processor further performs the steps of: and when the data line corresponding to the data label does not exist in the initial form, generating a new data line according to the data label and storing the new data line into the initial form.
In some alternative embodiments, the computer program when executed by the processor further performs the steps of: receiving a creation instruction; creating an instruction containing form elements, form layout and form components; and carrying out form configuration according to the form elements, the form layout and the form components to obtain the form.
In one embodiment, a computer program product is provided, comprising a computer program which when executed by a processor performs the steps of: receiving a form generation instruction; the form generation instruction carries data to be processed and a target form type label; matching corresponding initial forms from preset forms of multiple types according to the type labels of the target forms; and extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial form to generate a target form.
In some optional embodiments, the initial form comprises at least one layer of sub-forms arranged in a hierarchical manner; the form generation instruction also carries a target sub-form type label; the computer program when executed by the processor further realizes the steps of: matching corresponding initial sub-forms from the multi-layer sub-forms contained in the initial form according to the target sub-form type labels; and extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial sub-forms to generate the target forms.
In some alternative embodiments, the initial form contains at least one data line; the computer program when executed by the processor further implements the steps of: extracting target data corresponding to various data lines from the data to be processed; and filling the extracted various target data into corresponding data lines to generate a target form.
In some optional embodiments, the data to be processed carries at least one data tag; the data labels correspond to the types of the data lines one by one; the computer program when executed by the processor further realizes the steps of: matching data rows corresponding to various data labels according to various data labels carried in the data to be processed; and regarding each data label and the corresponding data line, taking the data to be processed carrying the current data label as the target data corresponding to the current data line.
In some alternative embodiments, the computer program when executed by the processor further performs the steps of: and when the data line corresponding to the data label does not exist in the initial form, generating a new data line according to the data label and storing the new data line into the initial form.
In some alternative embodiments, the computer program when executed by the processor further performs the steps of: receiving a creation instruction; creating an instruction containing form elements, form layout and form components; and carrying out form configuration according to the form elements, the form layout and the form components to obtain the form.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), magnetic Random Access Memory (MRAM), ferroelectric Random Access Memory (FRAM), phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A form generation method, comprising:
receiving a form generation instruction; the form generation instruction carries data to be processed and a target form type label;
matching corresponding initial forms from preset forms of multiple types according to the target form type labels;
and extracting target data from the data to be processed and filling the target data into the data line corresponding to the initial form to generate a target form.
2. The method of claim 1, wherein the initial form comprises at least one layer of sub-forms arranged in a hierarchy;
the form generation instruction also carries a target sub-form type label;
the matching of the corresponding initial form from the preset multiple types of forms according to the target form type label comprises the following steps:
matching corresponding initial sub-forms from the multi-layer sub-forms contained in the initial form according to the target sub-form type label;
extracting target data from the data to be processed and filling the target data into a data line corresponding to the initial form to generate a target form, wherein the method comprises the following steps:
and extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial sub-forms to generate the target forms.
3. The method of claim 1, wherein the initial form contains at least one data line;
the extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial form to generate a target form includes:
extracting target data corresponding to various data lines from the data to be processed;
and filling the extracted various target data into corresponding data lines to generate the target form.
4. The method according to claim 3, wherein the data to be processed carries at least one data tag; the data labels correspond to the types of the data lines one by one;
the extracting of the target data corresponding to various data lines from the data to be processed includes:
matching data rows corresponding to various data labels according to various data labels carried in the data to be processed;
and aiming at each data label and the corresponding data line, taking the data to be processed carrying the current data label as the target data corresponding to the current data line.
5. The method of claim 4, further comprising:
and when the data line corresponding to the data label does not exist in the initial form, generating a new data line according to the data label and storing the new data line into the initial form.
6. The method according to claim 3, wherein before matching the corresponding initial form from the preset multiple types of forms according to the target form type tag, further comprising:
receiving a creation instruction; the creating instruction comprises form elements, form layout and form components;
and configuring the form according to the form element, the form layout and the form component to obtain the form.
7. A form generation apparatus, comprising:
the receiving module is used for receiving a form generation instruction; the form generation instruction carries data to be processed and a target form type label;
the matching module is used for matching corresponding initial forms from preset forms according to the target form type labels;
and the generating module is used for extracting target data from the data to be processed and filling the target data into the data lines corresponding to the initial form to generate a target form.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the form generation method of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the form generation method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the form generation method of any one of claims 1 to 6.
CN202211675857.4A 2022-12-26 2022-12-26 Form generation method and device Pending CN115952773A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211675857.4A CN115952773A (en) 2022-12-26 2022-12-26 Form generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211675857.4A CN115952773A (en) 2022-12-26 2022-12-26 Form generation method and device

Publications (1)

Publication Number Publication Date
CN115952773A true CN115952773A (en) 2023-04-11

Family

ID=87296338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211675857.4A Pending CN115952773A (en) 2022-12-26 2022-12-26 Form generation method and device

Country Status (1)

Country Link
CN (1) CN115952773A (en)

Similar Documents

Publication Publication Date Title
WO2017028514A1 (en) Method and device for storing and reading data
CN114611481A (en) Template configuration method and device, computer equipment and storage medium
CN114115844A (en) Page generation method and device, computer equipment and storage medium
CN101763256A (en) Expansion application method, device and business system of business objects
CN110910475A (en) Picture editing method and device, computer equipment and storage medium
CN114238808A (en) Page display method and device, computer equipment and storage medium
CN115543198A (en) Method and device for lake entering of unstructured data, electronic equipment and storage medium
CN111338624A (en) Data processing method and related equipment
CN117473130A (en) Service processing method, device, equipment, medium and program product
CN115952773A (en) Form generation method and device
CN116303657A (en) Group image generation method, group image generation device, computer device, and storage medium
CN115562662A (en) Application page creating method and device, computer equipment and storage medium
CN114327435A (en) Technical document generation method and device and computer readable storage medium
CN114816405A (en) Business view interface display method and device, computer equipment and storage medium
CN115016754A (en) Method and device for synchronously displaying pages among devices, electronic device and medium
CN114676359A (en) Form display method and device, computer equipment and storage medium
CN114186540A (en) Mail content intelligent filling method and device, electronic equipment and storage medium
CN109461074B (en) Transaction route configuration method, device, computer equipment and storage medium
CN117251661B (en) Webpage file generation method, device, computer equipment and storage medium
CN109104501B (en) Data synchronization method, device and system
CN115630248A (en) Page determination method and device, computer equipment and storage medium
CN117331625A (en) Page resource loading method and device, computer equipment and storage medium
CN114201464A (en) Data display method and device, computer equipment and storage medium
CN116400922A (en) Interface guide schematic diagram generation method, device, computer equipment and storage medium
CN117130606A (en) Front-end page configuration method, front-end page configuration 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