CN113741953A - Form processing method and device, electronic equipment and computer storage medium - Google Patents
Form processing method and device, electronic equipment and computer storage medium Download PDFInfo
- Publication number
- CN113741953A CN113741953A CN202110336560.4A CN202110336560A CN113741953A CN 113741953 A CN113741953 A CN 113741953A CN 202110336560 A CN202110336560 A CN 202110336560A CN 113741953 A CN113741953 A CN 113741953A
- Authority
- CN
- China
- Prior art keywords
- configuration file
- attribute
- item
- rendering
- renderer
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 22
- 238000009877 rendering Methods 0.000 claims abstract description 40
- 238000012545 processing Methods 0.000 claims abstract description 38
- 238000000034 method Methods 0.000 claims abstract description 28
- 230000015654 memory Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 12
- 230000006870 function Effects 0.000 claims description 10
- 238000010200 validation analysis Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 17
- 238000011161 development Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013506 data mapping Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a form processing method, a form processing device, electronic equipment and a computer storage medium, wherein the method comprises the following steps: acquiring a configuration file, wherein the configuration file represents attribute information of a form to be made; inputting the configuration file to a renderer; and rendering the configuration file by using a renderer to obtain a UI of the form to be made.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a form processing method, apparatus, electronic device, and computer storage medium.
Background
In a middle background project, submission of a large amount of information forms, namely, a user fills out the forms, a page collects user information, and then submits the user information to a server, which is particularly common in an Enterprise Resource Planning (ERP) system.
In the related technology, aiming at various forms, templates of the forms need to be manually made and corresponding codes need to be written, so that the forms are submitted; it can be seen that if different forms are to be submitted, repeated writing of templates for the submitted forms is typically required; when the number of form fields is large, a large number of templates are needed, so that the number of code lines is expanded sharply, and inconvenience is brought to code maintenance.
Disclosure of Invention
The embodiment of the invention is expected to provide a technical scheme for processing the form, and can solve the problem of volume expansion of a file caused by the fact that a large number of writing templates are needed for the form in the related technology.
The embodiment of the invention provides a form processing method, which comprises the following steps:
acquiring a configuration file, wherein the configuration file represents attribute information of a form to be made;
inputting the configuration file to a renderer;
and rendering the configuration file by using the renderer to obtain a User Interface (UI) of the form to be manufactured.
In some embodiments, the attribute information of the form to be produced includes: the overall attribute of the form and/or the attribute of the form item in the form;
correspondingly, the rendering the configuration file by using the renderer to obtain the UI of the form to be made includes:
and rendering the form according to the overall attribute of the form and/or the attribute of the form item in the form to obtain the UI of the form to be made.
In some embodiments, the attributes of the form items include custom validation rules.
In some embodiments, the attributes of the form items include custom rendering functions corresponding to the form items.
In some embodiments, the attribute of the form item includes indication information, and the indication information is used for indicating whether to carry a clear button of the input information of the form item.
In some embodiments, the overall attributes of the form include at least one of: the display form of the form, the label width of the form item, and the input box size of the form item.
An embodiment of the present invention further provides a form processing apparatus, where the apparatus includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a configuration file, and the configuration file represents attribute information of a form to be manufactured;
a first processing module for inputting the configuration file to a renderer;
and the second processing module is used for rendering the configuration file by using the renderer to obtain the UI of the form to be made.
In some embodiments, the attribute information of the form to be produced includes: the overall attribute of the form and/or the attribute of the form item in the form;
correspondingly, the second processing module is configured to perform rendering processing on the configuration file by using the renderer to obtain the UI of the form to be made, and includes:
and rendering the form according to the overall attribute of the form and/or the attribute of the form item in the form to obtain the UI of the form to be made.
In some embodiments, the attributes of the form items include custom validation rules.
In some embodiments, the attributes of the form items include custom rendering functions corresponding to the form items.
In some embodiments, the attribute of the form item includes indication information, and the indication information is used for indicating whether to carry a clear button of the input information of the form item.
In some embodiments, the overall attributes of the form include at least one of: the display form of the form, the label width of the form item, and the input box size of the form item.
The embodiment of the invention also provides electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, any form processing method is realized.
An embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements any one of the above-mentioned form processing methods.
In the form processing method, the form processing device, the electronic equipment and the computer storage medium provided by the embodiment of the invention, a configuration file is obtained, and the configuration file represents attribute information of a form to be made; inputting the configuration file to a renderer; and rendering the configuration file by using a renderer to obtain a UI of the form to be made. It can be seen that the embodiment of the present invention can realize rendering of a submitted form without manually operating different templates for each form, but rather, the configuration file representing the attribute information of the form can be input to the renderer, that is, the embodiment of the present invention solves the problem that the form in the related art requires a large number of written templates to cause file volume expansion and is not easy to maintain through a fast form construction method.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart of a form processing method of an embodiment of the present invention;
FIG. 2 is another flow diagram of a form processing method according to an embodiment of the invention;
FIG. 3 is a code diagram of a configuration file according to an embodiment of the present invention;
FIG. 4 is a code diagram of a renderer according to an embodiment of the present invention;
FIG. 5 is a UI diagram of an empty form when no input is performed in the input box according to the embodiment of the present invention;
FIG. 6 is a diagram illustrating a form UI when data is entered in an input box of the form in an embodiment of the invention;
FIG. 7 is a diagram illustrating a form UI when triggering form verification according to an embodiment of the present invention;
FIG. 8 is a schematic UI diagram of a form displayed in a two-column form in the embodiment of the present invention;
FIG. 9 is a schematic diagram of a form processing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present invention and are not intended to limit the present invention. In addition, the following embodiments are provided as partial embodiments for implementing the present invention, not all embodiments for implementing the present invention, and the technical solutions described in the embodiments of the present invention may be implemented in any combination without conflict.
It should be noted that, in the embodiments of the present invention, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the explicitly recited elements but also other elements not explicitly listed or inherent to the method or apparatus. Without further limitation, the use of the phrase "including a. -. said." does not exclude the presence of other elements (e.g., steps in a method or elements in a device, such as portions of circuitry, processors, programs, software, etc.) in the method or device in which the element is included.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., C and/or D, may mean: c exists alone, C and D exist simultaneously, and D exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality.
For example, the form processing method provided in the embodiment of the present invention includes a series of steps, but the form processing method provided in the embodiment of the present invention is not limited to the described steps, and similarly, the form processing apparatus provided in the embodiment of the present invention includes a series of modules, but the form processing apparatus provided in the embodiment of the present invention is not limited to include the explicitly described modules, and may also include modules that are required to be configured to acquire related information or perform processing based on the information.
Embodiments of the invention may be implemented on a terminal and/or a server, where the terminal may be a thin client, a thick client, a hand-held or laptop device, a microprocessor-based system, a set-top box, a programmable consumer electronics, a network personal computer, a small computer system, and so forth. The server may be a small computer system, a mainframe computer system, a distributed cloud computing environment including any of the systems described above, and so forth.
The electronic devices, such as servers, may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
An embodiment of the present invention provides a form processing method, and fig. 1 is a flowchart of the form processing method according to the embodiment of the present invention, and as shown in fig. 1, the flowchart may include:
step 101: and acquiring a configuration file, wherein the configuration file represents the attribute information of the form to be made.
In the embodiment of the invention, the form to be made can comprise one form item and also can comprise a plurality of form items; for example, the form items in the form to be produced may be form items corresponding to name, gender, age, date, etc., and after the form production is completed, each form item may include a label (label) and an input box corresponding to the label, where the label may be the name, gender, age, or date.
In some embodiments, the user may input the configuration file into the electronic device by way of human-computer interaction or the like.
In some embodiments, the attribute information of the form to be produced includes: the overall properties of the form to be made and/or the properties of the form items in the form to be made.
In some embodiments, the overall attribute of the form may reflect common configuration information of the form, and may include at least one of the following: the presentation form of the form, the label width (labelWidth) of the form item, the input box size (size) of the form item.
Illustratively, the form presentation format is used to show how the form is presented, for example, the form presentation format may be one row and one column, one row and two columns, and the like.
Illustratively, the label width of the form may be a default value, e.g., the default value for the label width may be 100 px; illustratively, the label width of the form may also be adaptive to the text width of the form's label.
Illustratively, the size of the input box of the form item can be preset according to the actual situation, for example, the size of the input box of the form item can be medium (medium), small (small) or mini (mini); in some embodiments, the default value for the entry box size of the form entry may be a small size.
It can be understood that by setting the overall properties of the form to be made, it is convenient for the user to control the overall presentation of the form.
In some embodiments, the attribute of the form item in the form to be produced may include a tag name, an attribute of an input box corresponding to the tag name, and a value of the input box corresponding to the tag name. Here, the attributes of the input box may include: the type of the input box or the check rule of the input box, and the like, wherein the type of the input box includes but is not limited to a radio box, a drop-down list, a character input box, and the like, and the check rule of the input box is used for indicating the check mode of the information in the input box.
In some embodiments, the attributes of different form items may be configured separately.
In some embodiments, the value of the input box corresponding to the tag name may be obtained from a data source, and the data source may be the value of the input box obtained through a communication interface, or the value input by the user through a human-computer interaction manner.
In some embodiments, a default value of the input box corresponding to the tag name may be obtained from the data source, for example, the default value of the input box corresponding to the tag name may be a null value or other default value; in some embodiments, the default value of the input box corresponding to the tag name is obtained through the data source, and the value input by the user may also be obtained through the data source, so as to update the value of the input box corresponding to the tag name.
It can be understood that by setting the attributes of the form items in the form to be made, the user is facilitated to control the interface presentation mode of each form item.
Step 102: the configuration file is input to a renderer.
Step 103: and rendering the configuration file by using a renderer to obtain the UI of the form to be made.
Here, the renderer is configured to automatically generate a UI of the form to be produced according to the configuration file; in some embodiments, the form may be rendered according to the overall attribute of the form in the configuration file and/or the attribute of the form item in the form, so as to obtain the UI of the form to be made.
Therefore, the embodiment of the invention can automatically generate the UI of the form to be made by pre-configuring the overall attribute of the form and/or the attribute of the form item in the form and inputting the configuration file into the renderer.
In some embodiments, the form processing method according to the embodiment of the present invention may also be represented by the flowchart shown in fig. 2, and as shown in fig. 2, after the configuration file is input to the renderer, the UI of the form to be made may be generated by the renderer.
In some embodiments, referring to fig. 2, form content may be presented on a UI of a form to be made, and the form content may include a tag of a form item, an input box corresponding to the tag, and the like; in some embodiments, a check area may be presented on a UI of a form to be made, where the check area is used to represent an area on the UI for presenting check information corresponding to a value of an input box; in some embodiments, a button area may be provided on the UI of the form to be made, and the buttons in the button area may be preset according to actual requirements, for example, the buttons in the button area may include a save button or a return button; the buttons of the button area can also be custom set by the user.
Referring to fig. 2, after the UI of the form to be made is obtained, the user may perform an operation through a button on the UI, for example, the user may submit the form by clicking a save button, and the user may return to the previous interface by using a return button.
For example, after the user of the terminal operates the button on the UI, the terminal may generate a user operation request, and by transmitting the user operation request to the server, the server may respond to the user operation request and reply response information to the terminal.
In practical applications, the steps 101 to 103 may be implemented based on a Processor of an electronic Device, where the Processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor.
In the related art, if different forms are to be submitted, repeated writing of templates for submitting the forms is generally required; when the number of form fields is large, a large number of templates are needed; the reasons for this problem are: no targeted analysis of the characteristics of the submitted form is performed; generally, most input box types of submitted forms are fixed, a single text box is very common, and for the case, in the embodiment of the invention, a configuration file representing attribute information of the forms can be input to a renderer without manually different templates for each form, so that the rendering of the submitted forms can be realized.
Furthermore, the embodiment of the invention provides a simplified form submission development mode, the data of the form can be automatically associated through the configuration file, the user only needs to pay attention to the configuration file and does not need to pay attention to the rendering of the UI, the maintenance cost and the development difficulty are reduced, and the development efficiency of front-end personnel is improved.
In some embodiments, the attributes of the form items may include custom validation rules.
Therefore, the input information of the user can be verified according to the user requirement on the basis of the UI of the form to be manufactured by inputting the customized verification rule to the renderer, and the user can control the form input information conveniently.
In some embodiments, the attributes of the form items may include custom rendering functions corresponding to the form items.
The customized rendering function can reflect the rendering requirement of the user, and the customized rendering function corresponding to the form item is used for representing the rendering mode of the form item, so that the renderer can render the form according to the defined rendering function, and the rendering requirement of the user is met.
In some embodiments, the attribute of the form item may include indication information, where the indication information is used to indicate whether to carry a clear button of the input information of the form item.
It can be seen that the indication information may be information determined by a user according to an actual requirement, and the clear button is an optional button, so that based on the indication information, the renderer may determine whether to render the clear button, thereby meeting the actual requirement of the user.
In some embodiments, the overall attributes of the form may be illustrated by Table 1.
TABLE 1
Table 1 may represent common configuration information of the form, and the description of each field in table 1 may be:
formName: the name of the form, by default, is null.
columnNum: and (5) a display form of the form.
labelWidth: the label width of the form entry.
size: entry box size of form item.
formItem: attributes of the form items, described below.
In some embodiments, the attributes of the form items may be illustrated by Table 2.
TABLE 2
The description of the various fields in table 2 may be:
label: the tag name of the form entry is submitted.
And (2) prop: and representing the value of the corresponding form item in the acquired data source, constructing the property bound by the form item through the field in the renderer, and taking the corresponding value as the parameter for sending when sending the user operation request.
valueType: the form which represents the form item should be rendered is an input label by default; other tags can also be customized by rednerFormItem.
And (3) rules: the check rule of the form item can indicate that the input format is supported, for example, basic check formats such as English, number, Chinese, mobile phone number, mailbox and the like can be supported, and the user-defined check rule is also supported.
clean: and whether the form item input box carries an emptying button or not is not carried by default.
render: the rendering of the form item is customized, and in an actual scene, some special styles need to be displayed or some scene processing which is not covered on the data needs to be carried out. For example: some special UI components are exposed in the form entry according to the return value.
render for item: and customizing the UI part of the form item.
In some embodiments, key configuration items of the renderer may be illustrated by table 3.
TABLE 3
Illustratively, the workflow of the renderer may include:
1) collecting the prop field of the formItem item, and forming the collected prop field into a model object.
2) And automatically rendering the corresponding form according to the value of the valueType, automatically monitoring an update (onChange) event of the form, and taking the value assignment after the update of the form and then updating the corresponding prop in the model after the onChange event of the form is executed.
3) A renderForm method is provided inside a renderer, the renderForm method can render corresponding UI components, renderForm is a rendering form item, and two buttons are built in the renderForm method: saving and returning, simultaneously supporting a user to define an operation bar, and rendering a form according to the configuration of the formItem;
the valueEnum option can render values of type input boxes such as radio boxes, drop-down lists and the like according to enumeration values transmitted by a user;
the value Format option formats the value according to the user input;
the rule option can provide a form global check method according to the check rule of the control form item transmitted by the user, and the renderer can conveniently control the form input; the return value of this function is rendered if renderFormItem is encountered.
It can be seen that the embodiment of the invention can automatically perform rendering and field association of the submitted form only by transmitting the configuration file into the renderer, and can automatically perform form construction and data mapping through the configuration file.
In some embodiments, fig. 3 and fig. 4 respectively show code diagrams of a configuration file and a renderer according to an embodiment of the present invention, and based on the code diagrams shown in fig. 3 and fig. 4, after the configuration file is input to the renderer, the rendering result diagrams shown in fig. 5 to fig. 7 may be obtained by processing with the renderer, where fig. 5 shows a UI diagram of an empty form when no input is performed in an input box, and names of the form items in fig. 5 are name, gender, age, date range, and text region, respectively; fig. 6 is a diagram showing a form UI when data is input to the input box of the form, and the tag names of the respective form items in fig. 6 are the same as those in fig. 5. Fig. 7 is a schematic diagram of a form UI when checking the form is triggered, the tag names of the form items in fig. 7 are the same as those in fig. 5, and in fig. 7, the check information corresponding to the name, gender, date range, and text area are: name cannot be null, gender cannot be null, age cannot be null, start date cannot be null, date range cannot be null, and text area cannot be null.
It can be seen that, in the embodiment of the present invention, a complete submission form can be rendered only by writing a simple configuration file, and a user only needs to perform business logic processing under a specific Application Programming Interface (API). Therefore, the unification of the code style is ensured, the maintenance by multiple persons is facilitated, and the development efficiency is greatly improved due to the fact that a large number of template writing is reduced. The render method of the formItem item ensures the user-defined rendering requirement and improves the flexibility of organizing the UI interface.
The display form of the rendering result shown in fig. 5 to fig. 7 is a list of forms, and the same form content may also be displayed in a two-column form display form, for example, fig. 8 is a UI diagram of a form displayed in a two-column form display form.
That is to say, the embodiment of the present invention may render the UI of the form according to the presentation form of the form in the configuration file, which is beneficial to generating the UI of the form according to the user's own needs.
On the basis of the form processing method provided by the foregoing embodiment, an embodiment of the present invention further provides a form processing apparatus.
Fig. 9 is a schematic diagram of a configuration of a form processing apparatus according to an embodiment of the present invention, and as shown in fig. 9, the apparatus may include:
an obtaining module 901, configured to obtain a configuration file, where the configuration file represents attribute information of a form to be made;
a first processing module 902 for inputting the configuration file to a renderer;
a second processing module 903, configured to perform rendering processing on the configuration file by using the renderer, so as to obtain a UI of the to-be-made form.
In some embodiments, the attribute information of the form to be produced includes: the overall attribute of the form and/or the attribute of the form item in the form;
correspondingly, the second processing module 903 is configured to perform rendering processing on the configuration file by using the renderer to obtain the UI of the to-be-made form, and includes:
and rendering the form according to the overall attribute of the form and/or the attribute of the form item in the form to obtain the UI of the form to be made.
In some embodiments, the attributes of the form items include custom validation rules.
In some embodiments, the attributes of the form items include custom rendering functions corresponding to the form items.
In some embodiments, the attribute of the form item includes indication information, and the indication information is used for indicating whether to carry a clear button of the input information of the form item.
In some embodiments, the overall attributes of the form include at least one of: the display form of the form, the label width of the form item, and the input box size of the form item.
The obtaining module 901, the first processing module 902, and the second processing module 903 may be implemented by a processor located in an electronic device, where the processor is at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor.
In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Specifically, the computer program instructions corresponding to a form processing method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, or a usb disk, and when the computer program instructions corresponding to a form processing method in the storage medium are read or executed by an electronic device, any one of the form processing methods in the foregoing embodiments is implemented.
Based on the same technical concept as the foregoing embodiment, referring to fig. 10, it shows an electronic device 1000 provided by an embodiment of the present invention, which may include: a memory 1001, a processor 1002, and a computer program stored on the memory 1001 and executable on the processor 1002; wherein,
a memory 1001 for storing computer programs and data;
a processor 1002 for executing the computer program stored in the memory to implement any one of the form processing methods of the foregoing embodiments.
In practical applications, the memory 1001 may be a volatile memory (RAM); or a non-volatile memory (non-volatile memory) such as a ROM, a flash memory (flash memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 1002.
The processor 1002 may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor.
In some embodiments, the functions of the apparatus provided in the embodiments of the present invention or the modules included in the apparatus may be used to execute the method described in the above method embodiments, and for specific implementation, reference may be made to the description of the above method embodiments, and for brevity, details are not described here again
The foregoing description of the various embodiments is intended to highlight various differences between the embodiments, and the same or similar parts may be referred to each other, which are not repeated herein for brevity
The methods disclosed in the method embodiments provided by the present application can be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in various product embodiments provided by the application can be combined arbitrarily to obtain new product embodiments without conflict.
The features disclosed in the various method or apparatus embodiments provided herein may be combined in any combination to arrive at new method or apparatus embodiments without conflict.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. A method of form processing, the method comprising:
acquiring a configuration file, wherein the configuration file represents attribute information of a form to be made;
inputting the configuration file to a renderer;
and rendering the configuration file by using the renderer to obtain a user interface UI of the form to be made.
2. The method of claim 1, wherein the attribute information of the form to be produced comprises: the overall attribute of the form and/or the attribute of the form item in the form;
correspondingly, the rendering the configuration file by using the renderer to obtain the UI of the form to be made includes:
and rendering the form according to the overall attribute of the form and/or the attribute of the form item in the form to obtain the UI of the form to be made.
3. The method of claim 2, wherein the attributes of the form items include custom validation rules.
4. The method of claim 2, wherein the attributes of the form items include custom rendering functions corresponding to the form items.
5. The method according to claim 2, wherein the attribute of the form item comprises indication information, and the indication information is used for indicating whether a clear button of the input information of the form item is carried.
6. The method of any of claims 2 to 5, wherein the overall attributes of the form include at least one of: the display form of the form, the label width of the form item, and the input box size of the form item.
7. A form processing apparatus, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a configuration file, and the configuration file represents attribute information of a form to be manufactured;
a first processing module for inputting the configuration file to a renderer;
and the second processing module is used for rendering the configuration file by using the renderer to obtain the user interface UI of the form to be made.
8. The apparatus of claim 7, wherein the attribute information of the form to be produced comprises: the overall attribute of the form and/or the attribute of the form item in the form;
correspondingly, the second processing module is configured to perform rendering processing on the configuration file by using the renderer to obtain the UI of the form to be made, and includes:
and rendering the form according to the overall attribute of the form and/or the attribute of the form item in the form to obtain the UI of the form to be made.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the form processing method of any of claims 1 to 6 when executing the program.
10. A computer storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the form processing method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110336560.4A CN113741953A (en) | 2021-03-29 | 2021-03-29 | Form processing method and device, electronic equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110336560.4A CN113741953A (en) | 2021-03-29 | 2021-03-29 | Form processing method and device, electronic equipment and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113741953A true CN113741953A (en) | 2021-12-03 |
Family
ID=78728291
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110336560.4A Pending CN113741953A (en) | 2021-03-29 | 2021-03-29 | Form processing method and device, electronic equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113741953A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115639989A (en) * | 2022-09-05 | 2023-01-24 | 东方合智数据科技(广东)有限责任公司 | Visual form configuration method and related equipment for corrugated paper packaging industry |
-
2021
- 2021-03-29 CN CN202110336560.4A patent/CN113741953A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115639989A (en) * | 2022-09-05 | 2023-01-24 | 东方合智数据科技(广东)有限责任公司 | Visual form configuration method and related equipment for corrugated paper packaging industry |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10466971B2 (en) | Generation of an application from data | |
US9047346B2 (en) | Reporting language filtering and mapping to dimensional concepts | |
CN112800370B (en) | Processing method and device of business document, computer equipment and storage medium | |
US20150293764A1 (en) | Method and system to compose and execute business rules | |
CN110837366A (en) | Form generation method, electronic device and computer readable storage medium | |
CN112558967A (en) | Page automatic generation method and device, electronic equipment and storage medium | |
CN113535165A (en) | Interface generation method and device, electronic equipment and computer readable storage medium | |
CN106663090A (en) | Converting presentation metadata to a browser-renderable format during compilation | |
US20120260237A1 (en) | Portable Business Language and Automated Software Application Development System | |
CN114444478A (en) | Voucher visualization method and device, electronic equipment and storage medium | |
CN113741953A (en) | Form processing method and device, electronic equipment and computer storage medium | |
US9104573B1 (en) | Providing relevant diagnostic information using ontology rules | |
CN111598707B (en) | Page generation method and electronic equipment | |
CN111444368B (en) | Method and device for constructing user portrait, computer equipment and storage medium | |
CN117348919A (en) | Information configuration method, information configuration device, computer equipment and storage medium | |
CN110968311A (en) | Front-end page construction method and device and electronic equipment | |
CN114169306A (en) | Method, device and equipment for generating electronic receipt and readable storage medium | |
CN109857501B (en) | APP page display method and device, storage medium and server | |
JP6552162B2 (en) | Information processing apparatus, information processing method, and program | |
CN113435847A (en) | Information display method and device, electronic equipment and storage medium | |
JP2009205353A (en) | User interface providing method, and device and program therefor | |
CN113704593B (en) | Operation data processing method and related device | |
CN117251159A (en) | Rule page generation method, device, computer equipment and storage medium | |
CN117632309A (en) | Data operation method, device, equipment and medium based on low-code frame | |
CN114741637A (en) | Method, device and equipment for generating form page and readable 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 |