CN114327423A - Form generation method and device, electronic equipment and storage medium - Google Patents
Form generation method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114327423A CN114327423A CN202111576962.8A CN202111576962A CN114327423A CN 114327423 A CN114327423 A CN 114327423A CN 202111576962 A CN202111576962 A CN 202111576962A CN 114327423 A CN114327423 A CN 114327423A
- Authority
- CN
- China
- Prior art keywords
- component
- code file
- displayed
- attribute
- configuration
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a form generation method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a form configuration table of a form to be displayed, and determining component attributes and component attribute parameters of each component contained in the form configuration table; generating a component attribute configuration code file corresponding to the form to be displayed based on the component attributes and the component attribute parameters of each component; and generating the form to be displayed by calling the component attribute configuration code file and a code file of a predefined component arrangement position relation. The technical scheme of the embodiment of the invention solves the technical problems that the existing form generation method has low development efficiency and poor form flexibility, and realizes the technical effect of generating the form more quickly, effectively and flexibly, thereby improving the form generation efficiency.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a form generation method and device, electronic equipment and a storage medium.
Background
The form is used as a bridge for information exchange between the user and the product, is a core tool for an enterprise to collect user data information, and is a display medium for transmitting product information to the user. Therefore, the method of generating the form is particularly important. The existing form generation method usually requires a developer to manually write the code of the form according to the requirements of a user on the form. However, the existing form generation method has the technical problems of low development efficiency and poor form flexibility, so that the form generation efficiency is reduced.
Disclosure of Invention
The embodiment of the invention provides a form generation method, a form generation device, electronic equipment and a storage medium, so as to improve the flexibility of form generation and the development efficiency of a generated form, and further achieve the technical effect of generating the form more quickly and effectively.
In a first aspect, an embodiment of the present invention provides a form generation method, where the method includes:
acquiring a form configuration table of a form to be displayed, and determining component attributes and component attribute parameters of each component contained in the form configuration table;
generating a component attribute configuration code file corresponding to the form to be displayed based on the component attributes and the component attribute parameters of each component;
and generating the form to be displayed by calling the component attribute configuration code file and a code file of a predefined component arrangement position relation.
In a second aspect, an embodiment of the present invention further provides a form generating apparatus, where the apparatus includes:
the component attribute information determining module is used for acquiring a form configuration table of a form to be displayed and determining component attributes and component attribute parameters of each component contained in the form configuration table;
the code file generating module is used for generating a component attribute configuration code file corresponding to the form to be displayed based on the component attributes and the component attribute parameters of the components;
and the form to be displayed generating module is used for generating the form to be displayed by calling the component attribute configuration code file and the code file of the predefined component arrangement position relationship.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the processor, cause the processor to implement a form generation method as provided by any of the embodiments of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the form generation method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the component attributes and the component attribute parameters of each component contained in the form configuration table are determined by obtaining the form configuration table of the form to be displayed. In the technical scheme of the embodiment of the invention, the form configuration table of the form to be displayed can meet the user-defined setting of the form, thereby improving the flexibility of form generation and further improving the generation efficiency of the form. After the component attributes and the component attribute parameters of each component are determined, a component attribute configuration code file corresponding to the form to be displayed can be generated based on the component attributes and the component attribute parameters of each component. After the component attribute configuration code file is generated, the form to be displayed can be generated by calling the component attribute configuration code file and the code file of the predefined component arrangement position relationship, so that the technical problems that the existing form generation method is low in development efficiency and poor in form flexibility are solved, the technical effect of generating the form more quickly, effectively and flexibly is achieved, and the form generation efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flow chart of a form generation method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a form generated based on a form generation method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a form generating method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a form generating apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a form generation method according to an embodiment of the present invention, where the embodiment is applicable to a case where a form to be presented is generated through a form configuration table, the method may be executed by a form generation apparatus, and the form generation apparatus may be implemented in a software and/or hardware manner, and may be integrated in an electronic device such as a computer or a server.
As shown in fig. 1, the method of the present embodiment includes:
s110, obtaining a form configuration table of the form to be displayed, and determining component attributes and component attribute parameters of each component contained in the form configuration table.
The form to be displayed can be understood as a form to be displayed. The form configuration table may be a configuration table obtained after configuring component attributes and component attribute parameters of each component included in the form to be displayed. Wherein each component included in the form configuration table may include at least one of an input box component, a multiple selection box component, a radio box component, a selector component, and a date selection class component.
Wherein the component property of the component may include at least one property of a maximum length (maxlength), a minimum length (minlength), an expected Value (placeholder), clear support (clear), disabled, show-password, type, Value, check box or radio button (check), size, label, editable.
Specifically, a form configuration table of a form to be displayed is obtained. After the form configuration table is obtained, the form configuration table may be analyzed. The component attributes and component attribute parameters of each component contained in the form configuration table may then be determined.
It should be noted that the form configuration table of the form to be displayed further includes form attributes of the form and parameter values corresponding to the form attributes.
Illustratively, table 1 is a table of form configurations for forms to be presented:
TABLE 1
Optionally, the form configuration table of the form to be displayed is obtained by the following method:
receiving form configuration information input by a user based on a preset form attribute configuration template table; and taking the form attribute configuration template table of the input form configuration information as a form configuration table of the form to be displayed.
The preset form attribute configuration template table may be a template table preset according to actual requirements of users, and may be used to configure form attribute information of a form to be displayed.
Specifically, a form attribute configuration template table is preset. Form configuration information for configuring a template table input based on preset form properties is received. And further determining the input form configuration information in the form attribute configuration template table, and taking the form attribute configuration template table with the input form configuration information as a form configuration table of a form to be displayed.
Optionally, after the form configuration table of the form to be displayed is obtained, the form configuration table of the form to be displayed may be stored in a database for storing the form configuration table.
Optionally, the component attribute parameters of each component contained in the form configuration table are determined by:
and analyzing the form configuration table by calling a pre-constructed form template designer, and determining the component attributes of each component and the component attribute parameters corresponding to the component attributes contained in the form configuration table.
Wherein the form template designer may be built based on the component properties of each component.
Specifically, a form template designer is constructed in advance. After the form configuration table is obtained, the form configuration table can be analyzed by calling a pre-constructed form template designer. And further determining the component attributes of each component contained in the form configuration table and the component attribute parameters corresponding to the component attributes. According to the technical scheme of the embodiment of the invention, the form configuration table can be analyzed more quickly and effectively through the form template designer.
And S120, generating a component attribute configuration code file corresponding to the form to be displayed based on the component attributes and the component attribute parameters of the components.
The component attribute configuration code file may be generated in a code file based on the component attributes and the component attribute parameters of each component.
Specifically, after the component attribute and the component attribute parameter of each component are determined, a component attribute configuration code file corresponding to the form to be displayed can be generated based on the component attribute and the component attribute parameter of each component.
Illustratively, the content contained in the component property configuration code file is:
{ type: "checkbox", filtered: "book", tittle: "book", value: [1, 3], options: [ { label: "journey to the West", value: 1}, { label: "dream of red mansions", value: 2, disable: true }, { label: "three kingdoms' definition", value: 3}, { label: "water transmission", value: 4, disable: true } ] }
The components are selector components, and the component attributes of the selector comprise type, filtered, tittle, value options, label and disable.
And S130, generating a form to be displayed by calling the component attribute configuration code file and the code file of the predefined component arrangement position relationship.
The code file of the predefined component arrangement position relationship may be predefined according to the actual requirements of the user, and may be used to define the arrangement position of each component in the table.
Specifically, a code file of a predefined component arrangement position relationship is provided. After the code file of the component arrangement position relationship and the component attribute configuration code file are obtained, the form to be displayed can be generated by calling the component attribute configuration code file and the code file of the predefined component arrangement position relationship.
For ease of understanding, referring to FIG. 2, the components included in the form configuration table for the form to be presented include an input box component, a selector component, and a date selection class component.
According to the technical scheme of the embodiment of the invention, the component attributes and the component attribute parameters of each component contained in the form configuration table are determined by obtaining the form configuration table of the form to be displayed. In the technical scheme of the embodiment of the invention, the form configuration table of the form to be displayed can meet the user-defined setting of the form, thereby improving the flexibility of form generation and further improving the generation efficiency of the form. After the component attributes and the component attribute parameters of each component are determined, a component attribute configuration code file corresponding to the form to be displayed can be generated based on the component attributes and the component attribute parameters of each component. After the component attribute configuration code file is generated, the form to be displayed can be generated by calling the component attribute configuration code file and the code file of the predefined component arrangement position relationship, so that the technical problems that the existing form generation method is low in development efficiency and poor in form flexibility are solved, the technical effect of generating the form more quickly, effectively and flexibly is achieved, and the form generation efficiency is improved.
Example two
Fig. 3 is a flowchart illustrating a form generating method according to a second embodiment of the present invention, where on the basis of the foregoing embodiment, optionally, the generating a component attribute configuration code file corresponding to the form to be displayed based on the component attribute and the component attribute parameter of each component includes: combining the component attributes and the component attribute parameters of each component into data in a JavaScript object numbered notation format; and generating a component attribute configuration code file corresponding to the form to be displayed based on the composed data in the JavaScript object notation format.
Optionally, the form generation method of this embodiment may further include: and packaging the form configuration table, the component attribute configuration code file and the code file of the component arrangement position relationship to obtain an installation package corresponding to the form to be displayed, and issuing the installation package to a public warehouse.
Optionally, the form generation method of this embodiment may further include: if the component attribute of the component is the event response attribute, determining a response event type corresponding to the event response attribute; and writing the predefined event response codes corresponding to the response event types into the component attribute configuration code file corresponding to the form to be displayed. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 3, the method of the present embodiment may specifically include:
s210, obtaining a form configuration table of the form to be displayed, and determining component attributes and component attribute parameters of each component contained in the form configuration table.
And S220, combining the component attributes and the component attribute parameters of each component into data in a JavaScript object notation format.
Specifically, after the component attribute and the component attribute parameter of each component included in the form configuration table are determined, the component attribute and the component attribute parameter of each component may be combined into data in the JavaScript object notation format. In the technical scheme of the embodiment of the invention, the component attributes and the component attribute parameters of each component are combined into data in a JavaScript object notation format, so that the data are convenient to analyze, do not occupy a broadband in the data transmission process, and support multiple languages.
And S230, generating a component attribute configuration code file corresponding to the form to be displayed based on the formed data in the JavaScript object notation format.
Specifically, after the data in the JavaScript object notation format is obtained, the component attribute configuration code file corresponding to the form to be displayed can be generated based on the composed data in the JavaScript object notation format.
S240, generating a form to be displayed by calling the component attribute configuration code file and the code file of the predefined component arrangement position relationship.
On the basis of the embodiment, if the component attribute of the component is the event response attribute, determining a response event type corresponding to the event response attribute; and writing the predefined event response codes corresponding to the response event types into the component attribute configuration code file corresponding to the form to be displayed.
Wherein the event response attribute may validate the attribute (valid). The response event types may include a submit form event and a reset form event.
Specifically, the component attribute of the component is determined, and if the component attribute of the component is the event response attribute, the response event type corresponding to the event response attribute may be determined. After determining the response event type corresponding to the event response attribute, a predefined event response code corresponding to the response event type may be determined. And writing the predefined event response codes corresponding to the response event types into the component attribute configuration code file corresponding to the form to be displayed.
It should be noted that, in the embodiment of the present invention, the event component id and value are bi-directionally bound in the form of a v-model, so that the processing benefit is that the principle of data loading and data submission can be kept consistent, and thus the consistency of data can be ensured. The bidirectional binding of data can update the interface parameters in real time. In order to improve the reusability of the form, the technical scheme of the embodiment of the invention can also perform packing processing on the form configuration table, the component attribute configuration code file and the code file of the component arrangement position relationship to obtain the installation package corresponding to the form to be displayed, and issue the installation package to a public warehouse.
Wherein the public repository may be a repository for storing installation packages of forms to be exposed.
Specifically, after the form configuration table, the component attribute configuration code file, and the code file of the component arrangement position relationship are obtained, the form configuration table, the component attribute configuration code file, and the code file of the component arrangement position relationship may be packaged. And then the installation package corresponding to the form to be displayed can be obtained. After obtaining the installation package, the installation package may be published to a public repository.
It should be further noted that the installation package corresponding to the form to be displayed in the embodiment of the present invention may further include an xlsx parsing js file, a template vue folder, a basic configuration file, and the like.
Optionally, the form configuration table, the component attribute configuration code file, and the code file of the component arrangement position relationship are packaged in the following manner:
a local folder is created in advance. And storing the form configuration table, the component attribute configuration code file and the code file of the component arrangement position relationship into a pre-created local folder. And after the storage is finished, packaging the files stored in the local folder.
Optionally, the storing and issuing of the installation package to the public warehouse may be logging in the public warehouse, and after the logging is successful, the installation package may be issued in the public warehouse. In particular, a repository account may also be registered prior to logging into the common repository.
The issuing of the installation package in the public warehouse may be based on a user operation to generate an issuing instruction for issuing the installation package corresponding to the form to be displayed, and further may be based on the received issuing instruction to issue the installation package in the public warehouse. Where the issue instruction may be npm publish. The installation package corresponding to the form to be displayed can be an NPM package.
According to the technical scheme of the embodiment of the invention, the data in the JavaScript object notation format is synthesized by the component attributes and the component attribute parameters of each component. And further, a component attribute configuration code file corresponding to the form to be displayed can be generated based on the formed data in the JavaScript object notation format. In the technical scheme of the embodiment of the invention, the component attributes and the component attribute parameters of each component are combined into data in a JavaScript object notation format, so that the data are convenient to analyze, do not occupy a broadband in the data transmission process, and support multiple languages. After the form configuration table, the component attribute configuration code file and the code file of the component arrangement position relationship are obtained, the form configuration table, the component attribute configuration code file and the code file of the component arrangement position relationship can be packaged to obtain an installation package corresponding to the form to be displayed, the installation package is released to a public warehouse, a form template is further provided for other users, and repeated development of codes is avoided. And if the component attribute of the component is the event response attribute, determining a response event type corresponding to the event response attribute. And writing the predefined event response codes corresponding to the response event types into the component attribute configuration code file corresponding to the form to be displayed, so that the event response codes are effectively configured for the form, and the component attribute configuration code file is further improved.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a form generating apparatus according to a third embodiment of the present invention, where the present invention provides a form generating apparatus, including: a component attribute information determination module 310, a code file generation module 320 and a to-be-shown form generation module 330.
The component attribute information determining module 310 is configured to obtain a form configuration table of a form to be displayed, and determine component attributes and component attribute parameters of components included in the form configuration table;
a code file generating module 320, configured to generate a component attribute configuration code file corresponding to the to-be-displayed form based on the component attribute and the component attribute parameter of each component;
and the to-be-displayed form generating module 330 is configured to generate the to-be-displayed form by calling the component attribute configuration code file and a code file of a predefined component arrangement position relationship.
According to the technical scheme of the embodiment of the invention, the form configuration table of the form to be displayed is obtained through the component attribute information determination module, and the component attribute parameter of each component contained in the form configuration table are determined. In the technical scheme of the embodiment of the invention, the form configuration table of the form to be displayed can meet the user-defined setting of the form, thereby improving the flexibility of form generation and further improving the generation efficiency of the form. After the component attributes and the component attribute parameters of each component are determined, a component attribute configuration code file corresponding to the form to be displayed is generated based on the component attributes and the component attribute parameters of each component through a code file generation module. After the component attribute configuration code file is generated, the component attribute configuration code file and the code file of the predefined component arrangement position relation can be called through the to-be-displayed form generation module to generate the to-be-displayed form, so that the technical problems that the existing form generation method is low in development efficiency and poor in form flexibility are solved, the technical effect of generating the form more quickly, effectively and flexibly is achieved, and the form generation efficiency is improved.
Optionally, the component attribute information determining module 310 is configured to analyze the form configuration table by calling a pre-constructed form template designer, and determine component attributes of components included in the form configuration table and component attribute parameters corresponding to the component attributes, where the form template designer is constructed based on the component attributes of each component.
Optionally, the code file generating module 320 is configured to combine the component attributes and the component attribute parameters of each component into data in a JavaScript object notation format; and generating a component attribute configuration code file corresponding to the form to be displayed based on the composed data in the JavaScript object notation format.
Optionally, the apparatus further comprises: and the issuing module is used for packaging the form configuration table, the component attribute configuration code file and the code file of the component arrangement position relationship to obtain an installation package corresponding to the form to be displayed and issuing the installation package to a public warehouse.
Optionally, the apparatus further comprises: an event response code writing module, configured to determine a response event type corresponding to the event response attribute if the component attribute of the component is the event response attribute; and writing the predefined event response codes corresponding to the response event types into the component attribute configuration code file corresponding to the form to be displayed.
Optionally, the component attribute information determining module 310 is configured to receive form configuration information input by a user based on a preset form attribute configuration template table; and taking the form attribute configuration template table of the input form configuration information as the form configuration table of the form to be displayed.
Optionally, after obtaining the form configuration table of the form to be displayed, the apparatus further includes: and the form configuration table storage module is used for storing the form configuration table of the form to be displayed into a database for storing the form configuration table.
The device can execute the form generation method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the form generation method.
It should be noted that, the units and modules included in the form generation apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing any of the embodiments of the present invention. The electronic device 12 shown in fig. 5 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention. The device 12 is typically an electronic device that undertakes the processing of configuration information.
As shown in FIG. 5, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that couples the various components (including the memory 28 and the processing unit 16).
The processing unit 16 executes various functional applications and data processing by executing programs stored in the memory 28, for example, implementing the form generation method provided by the above-described embodiment of the present invention, the method including:
acquiring a form configuration table of a form to be displayed, and determining component attributes and component attribute parameters of each component contained in the form configuration table; generating a component attribute configuration code file corresponding to the form to be displayed based on the component attributes and the component attribute parameters of each component; and generating the form to be displayed by calling the component attribute configuration code file and a code file of a predefined component arrangement position relation.
Of course, those skilled in the art can understand that the processor can also implement the technical solution of the form generation method provided in any embodiment of the present invention.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor, for example, a form generation method provided in the foregoing embodiment of the present invention, where the method includes:
acquiring a form configuration table of a form to be displayed, and determining component attributes and component attribute parameters of each component contained in the form configuration table; generating a component attribute configuration code file corresponding to the form to be displayed based on the component attributes and the component attribute parameters of each component; and generating the form to be displayed by calling the component attribute configuration code file and a code file of a predefined component arrangement position relation.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A form generation method, comprising:
acquiring a form configuration table of a form to be displayed, and determining component attributes and component attribute parameters of each component contained in the form configuration table;
generating a component attribute configuration code file corresponding to the form to be displayed based on the component attributes and the component attribute parameters of each component;
and generating the form to be displayed by calling the component attribute configuration code file and a code file of a predefined component arrangement position relation.
2. The method of claim 1, wherein determining component attributes and component attribute parameters for each component included in the form configuration table comprises:
analyzing the form configuration table by calling a pre-constructed form template designer, and determining the component attributes of each component and the component attribute parameters corresponding to the component attributes contained in the form configuration table, wherein the form template designer is constructed based on the component attributes of each component.
3. The method according to claim 1, wherein the generating a component attribute configuration code file corresponding to the form to be presented based on the component attribute and the component attribute parameter of each component comprises:
combining the component attributes and the component attribute parameters of each component into data in a JavaScript object numbered notation format;
and generating a component attribute configuration code file corresponding to the form to be displayed based on the composed data in the JavaScript object notation format.
4. The method of claim 1, further comprising:
and packaging the form configuration table, the component attribute configuration code file and the code file of the component arrangement position relationship to obtain an installation package corresponding to the form to be displayed, and issuing the installation package to a public warehouse.
5. The method of claim 1, further comprising:
if the component attribute of the component is the event response attribute, determining a response event type corresponding to the event response attribute;
and writing the predefined event response codes corresponding to the response event types into the component attribute configuration code file corresponding to the form to be displayed.
6. The method of claim 1, wherein obtaining the form configuration table of the form to be presented comprises:
receiving form configuration information input by a user based on a preset form attribute configuration template table;
and taking the form attribute configuration template table of the input form configuration information as the form configuration table of the form to be displayed.
7. The method of claim 1, wherein after obtaining the form configuration table for the form to be presented, the method further comprises:
and storing the form configuration table of the form to be displayed into a database for storing the form configuration table.
8. A form generation apparatus, comprising:
the component attribute information determining module is used for acquiring a form configuration table of a form to be displayed and determining component attributes and component attribute parameters of each component contained in the form configuration table;
the code file generating module is used for generating a component attribute configuration code file corresponding to the form to be displayed based on the component attributes and the component attribute parameters of the components;
and the form to be displayed generating module is used for generating the form to be displayed by calling the component attribute configuration code file and the code file of the predefined component arrangement position relationship.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the processor, cause the processor to implement the form generation method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the form generation method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111576962.8A CN114327423A (en) | 2021-12-22 | 2021-12-22 | Form generation method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111576962.8A CN114327423A (en) | 2021-12-22 | 2021-12-22 | Form generation method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114327423A true CN114327423A (en) | 2022-04-12 |
Family
ID=81053926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111576962.8A Pending CN114327423A (en) | 2021-12-22 | 2021-12-22 | Form generation method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114327423A (en) |
-
2021
- 2021-12-22 CN CN202111576962.8A patent/CN114327423A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10705942B1 (en) | Simulated testing of API | |
US9442700B2 (en) | API notebook tool | |
CN111428462A (en) | Communication protocol template construction method and terminal equipment | |
WO2022142896A1 (en) | Generation method and apparatus for visualizable template, device, and storage medium | |
US20110271184A1 (en) | Client application and web page integration | |
CN114424257A (en) | Automatic rendering and extraction of form data using machine learning | |
CN113158101B (en) | Visual page rendering method, device, equipment and storage medium | |
CN110908697A (en) | Resource packaging method, device, server and storage medium | |
CN114077430A (en) | Interface generation method and device, electronic equipment and storage medium | |
CN113031946A (en) | Method and device for rendering page component | |
CN110263316A (en) | A kind of document handling method, device and computer equipment | |
CN110908707A (en) | Resource packaging method, device, server and storage medium | |
CN110688111A (en) | Configuration method, device, server and storage medium of business process | |
CN113836014A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN114048415A (en) | Form generation method and device, electronic equipment and computer readable storage medium | |
CN113419711A (en) | Page guiding method and device, electronic equipment and storage medium | |
CN113238739A (en) | Plug-in development and data acquisition method, device, electronic equipment and medium | |
US9224010B2 (en) | Secure document creation from potentially unsecure source templates | |
CN112799760A (en) | Form rendering method and device | |
CN113760894A (en) | Data calling method and device, electronic equipment and storage medium | |
US11182272B2 (en) | Application state monitoring | |
CN107944564B (en) | Deep learning job processing method, device, equipment and storage medium | |
CN114327423A (en) | Form generation method and device, electronic equipment and storage medium | |
CN114780497A (en) | Batch file processing method, apparatus, computer device, medium, and program product | |
CN113806556A (en) | Method, device, equipment and medium for constructing knowledge graph based on power grid data |
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 |