CN117972256A - Linkage form generation method and device, electronic equipment and medium - Google Patents

Linkage form generation method and device, electronic equipment and medium Download PDF

Info

Publication number
CN117972256A
CN117972256A CN202410090097.3A CN202410090097A CN117972256A CN 117972256 A CN117972256 A CN 117972256A CN 202410090097 A CN202410090097 A CN 202410090097A CN 117972256 A CN117972256 A CN 117972256A
Authority
CN
China
Prior art keywords
target
processed
processing function
information
linkage
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
CN202410090097.3A
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202410090097.3A priority Critical patent/CN117972256A/en
Publication of CN117972256A publication Critical patent/CN117972256A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a linkage form generation method, a device, electronic equipment and a medium, which relate to the technical field of Internet and are used for acquiring form information to be processed, wherein the form information to be processed comprises a plurality of fields and configuration files, and the configuration files comprise one or more linkage rules; based on one or more linkage rules, generating a corresponding dependency code list and a callback processing function, wherein the dependency code list comprises a plurality of fields with dependency relations, and the callback processing function is used for adjusting the fields in the form information to be processed; configuring a form to be processed based on the dependency code list and the callback processing function to obtain a target form; the target form is used for generating a target webpage. The embodiment of the application is used in the linkage form generation process.

Description

Linkage form generation method and device, electronic equipment and medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for generating a linkage form.
Background
With the rapid development of internet technology, forms are used as a common user interaction mode, and internet developers construct forms so as to realize various functions of inputting data, searching information, submitting order information and the like by users. Because of the complexity and diversity of the forms, the traditional form development mode needs to manually write a large amount of codes, faces the problem of repeated writing, consumes time and energy of developers, and is easy to write errors.
Disclosure of Invention
The application provides a linkage form generation method, a linkage form generation device, electronic equipment and a medium, which can effectively improve the efficiency and quality of a developer in opening a form.
In order to achieve the above purpose, the application adopts the following technical scheme:
In a first aspect, the present application provides a linkage form generating method, including:
Acquiring form information to be processed, wherein the form information to be processed comprises a plurality of fields and a configuration file, and the configuration file comprises one or more linkage rules; generating a dependency code list corresponding to the linkage rule and a callback processing function based on one or more linkage rules, wherein the dependency code list comprises a plurality of fields with dependency relations, and the callback processing function is used for adjusting the fields in the form information to be processed; configuring a form to be processed based on the dependency code list and the callback processing function to obtain a target form; the target form is used for generating a target webpage.
According to the technical scheme, the method and the device can dynamically generate the form according to the linkage rule to obtain the target webpage, and specifically: acquiring form information to be processed, wherein the form information to be processed comprises a plurality of fields and a configuration file, and the configuration file comprises one or more linkage rules; generating a dependency code list corresponding to the linkage rule and a callback processing function based on one or more linkage rules, wherein the dependency code list comprises a plurality of fields with dependency relations, and the callback processing function is used for adjusting the fields in the form information to be processed; configuring a form to be processed based on the dependency code list and the callback processing function to obtain a target form; the target form is used for generating a target webpage. According to the method and the system, the form can be dynamically generated according to the linkage rule to obtain the target webpage without repeatedly writing codes to generate the form, so that the efficiency and quality of the form opening of the developer can be effectively improved.
Optionally, after generating the dependency code list and the callback processing function corresponding to the linkage rule based on one or more linkage rules, the method includes:
Monitoring form information to be processed; and executing the callback processing function when the field in the form information to be processed changes.
Optionally, executing the callback processing function when the field in the form information to be processed changes, including:
According to the monitored dependency term value, matching with a value in a preset rule; and if the dependent item value is inconsistent with the value in the preset rule, executing the callback processing function.
Optionally, the method further comprises:
and rendering the components of the template webpage based on the target form to obtain the target webpage.
Optionally, the method further comprises:
packaging the form information to obtain a component; binding the component with the fields in the target form.
Optionally, the method further comprises:
the component is updated in response to modifying the field in the target form.
Optionally, the form information includes a verification rule, and rendering the web page based on the target form to obtain a target webpage, including:
According to the verification rule, verifying the target form; and if the target form passes the verification, rendering the template web page based on the target form to obtain a target webpage.
In a second aspect, the present application provides a linked form generation apparatus comprising:
The system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring form information to be processed, the form information to be processed comprises a plurality of fields and configuration files, and the configuration files comprise one or more linkage rules;
The generation module is used for generating a dependency code list corresponding to the linkage rule and a callback processing function based on one or more linkage rules, wherein the dependency code list comprises a plurality of fields with dependency relations, and the callback processing function is used for adjusting the fields in the form information to be processed;
the processing module is used for configuring the form to be processed based on the dependency code list and the callback processing function to obtain a target form; the target form is used for generating a target webpage.
Optionally, after the generating module, the device further includes a monitoring module, where the monitoring module is specifically configured to:
Monitoring form information to be processed; and executing the callback processing function when the field in the form information to be processed changes.
Optionally, the monitoring module is further configured to:
According to the monitored dependency term value, matching with a value in a preset rule; and if the dependent item value is inconsistent with the value in the preset rule, executing the callback processing function.
Optionally, after the processing module, the apparatus further includes a rendering module, where the rendering module is specifically configured to:
and rendering the components of the template webpage based on the target form to obtain the target webpage.
Optionally, the rendering module is further configured to:
packaging the form information to obtain a component; binding the component with the fields in the target form.
Optionally, the rendering module is further configured to:
the component is updated in response to modifying the field in the target form.
Optionally, the processing module is specifically configured to:
According to the verification rule, verifying the target form; and if the target form passes the verification, rendering the components of the template webpage based on the target form to obtain the target webpage.
In a third aspect, the present application provides an electronic device, the apparatus comprising: a processor and a memory communicatively coupled to the processor. Wherein the memory is provided with instructions executable by the processor to enable the processor to implement any one of the alternative linked list generation methods of the first aspect described above.
In a fourth aspect, the present application provides a computer readable medium having instructions stored therein which, when executed by an electronic device, enable the terminal to perform any one of the linked list generation methods of the first aspect.
Drawings
FIG. 1 is a network architecture diagram of a linkage form generation method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for generating a linkage form according to an embodiment of the present application;
FIG. 3 is a form generation flowchart of a linkage form generation method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a linkage form generating device according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present application, where the block diagram is a linkage table generation method.
Detailed Description
The following describes in detail a method, an apparatus, an electronic device, and a medium for generating a linkage form according to embodiments of the present application with reference to the accompanying drawings.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms "first" and "second" and the like in the description and in the drawings are used for distinguishing between different objects or between different processes of the same object and not for describing a particular order of objects.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or electronic device that comprises a list of steps or elements is not limited to the list of steps or elements but may, alternatively, include other steps or elements not listed or inherent to such process, method, article, or electronic device.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
The words involved in the embodiments of the present application will be explained as follows:
JavaScript: is a scripting language (JavaScript, JS), which is a lightweight, interpreted, or just-in-time compiled programming language with functional preference.
The reaction frame: is an internet development framework (act framework) for building JavaScript libraries for user interfaces.
DOM: is a document object model (Document Object Model, DOM) that can access and modify the content and structure of a document in a platform and language independent manner, and can be used in any programming language.
Component (Component): is a reusable UI + logic code block for describing a portion of a user interface, may contain multiple codes, may be reused, and may be combined and nested as needed to construct a complex user interface.
Form: is a form and is responsible for the data acquisition function in the web page. Consists of a form label, a form field, and a form button.
With the rapid development of internet technology, forms are used as a common user interaction mode, and internet developers construct forms so as to realize various functions of inputting data, searching information, submitting order information and the like by users. Because of the complexity and diversity of the forms, the traditional form development mode needs to manually write a large amount of codes, faces the problem of repeated writing, consumes time and energy of developers, and is easy to write errors. Therefore, the efficiency and quality of form development is very important for the developer.
At present, a traditional form development mode needs a developer to write a large amount of codes manually, the developer writes a computer language for each form element, when linkage relation exists between forms, the traditional form development mode also needs the developer to receive and write a large amount of codes to process various linkage rules, and the traditional form development mode lacks flexibility and customizability, only can provide some fixed form components, and cannot meet the requirement of complex forms.
Therefore, how to improve the efficiency and quality of form development is a highly desirable problem.
In order to solve the technical problems, the embodiment of the application provides a linkage form generation method, a device, electronic equipment and a medium. Under the method, a front-end server acquires form information to be processed; generating a dependency code list and a callback processing function corresponding to the linkage rule based on one or more linkage rules; and configuring the template webpage based on the dependency code list and the callback processing function to obtain the target webpage. The form information to be processed comprises a plurality of fields and a configuration file, wherein the configuration file comprises one or more linkage rules; the dependency code list comprises a plurality of fields with dependency relations, and the callback processing function is used for adjusting the fields in the form information to be processed. According to the application, the dynamic generation of the form is realized by linking the form data, so that the efficiency and quality of form development are effectively improved, and a developer can develop the form efficiently, flexibly and customizable.
Fig. 1 is a network architecture diagram of a linkage form generating method according to an embodiment of the present application, where, as shown in fig. 1, the network architecture diagram includes a user terminal 101 and a front end server 102.
The user terminal 101 may be at least one of an electronic device such as a smart phone, a handheld portable electronic device, and a computer. In one embodiment, the user terminal 101 has a communication function, can access a wired network or a wireless network, and can receive information issued by a server. The user terminal 101 may refer broadly to one of a plurality of terminals, and embodiments of the present application are illustrated only with respect to the user terminal 101. Those skilled in the art will recognize that the number of terminals may be greater or lesser, and embodiments of the present application are not limited in this regard. In the embodiment of the present application, the user terminal 101 may be a developer or a specific client.
The front-end server 102 may be an independent physical server, or may be a server cluster formed by a plurality of physical servers, or may be at least one cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution networks, and big data or artificial intelligence platforms, which is not limited in this embodiment of the present application. Of course, the front-end server 102 can also include other functionality to provide more fully diversified services.
In the embodiment of the present application, the front-end server 102 acquires form information to be processed; based on one or more linkage rules, generating a corresponding dependency code list and a callback processing function; and configuring the template webpage based on the dependency code list and the callback processing function to obtain the target webpage.
Fig. 2 is a flow chart of a linkage form generating method according to an embodiment of the present application, as shown in fig. 2, where the method specifically includes:
S201, obtaining form information to be processed.
The form information to be processed comprises a plurality of fields and a configuration file, wherein the configuration file comprises one or more linkage rules.
In the embodiment of the application, the form information can comprise codes, names, types, default values, selectable lists, whether to display, whether to edit, whether to fill in, regular check information and linkage rules of the form.
Specifically, the front-end server responds to the operation of the form information to be processed filled in by the developer, and obtains the form information to be processed.
S202, generating a dependency code list and a callback processing function corresponding to the linkage rule based on one or more linkage rules.
The dependency coding list comprises a plurality of fields with dependency relations, the callback processing function is used for adjusting the fields and/or the form values in the form information to be processed, the linkage rules comprise display rules and association rules, the display rules are used for displaying or hiding the form information, and the association rules are used for modifying the form values in the form information.
Specifically, after the front-end server acquires the form information to be processed through S201, the form information is traversed, form data in the form information, such as a form item title, a form identifier, a form item initial value and a linkage rule, is read, and after the front-end server reads the linkage rule in the form information, the front-end server generates a dependency code list and a callback processing function corresponding to the linkage rule according to the read linkage rule.
In an alternative embodiment, after generating a dependency code list and a callback processing function corresponding to a linkage rule based on one or more linkage rules, the front-end server monitors information of the form to be processed, executes the callback processing function when fields in the information of the form to be processed change, matches the monitored dependency item value with a value in a preset rule, and executes the callback processing function if the monitored dependency item value is inconsistent with the value in the preset rule.
The front-end server generates a display dependency code list and a display callback processing function corresponding to the display rule based on the display rule, monitors whether the information value in the form data is displayed or not, matches with the value in the display rule, judges whether the information value in the form data is inconsistent with the value in the display rule, executes the generated display callback processing function, returns to the position of whether the information in the form data is displayed or not, and changes the display in the form data into non-display.
S203, configuring the to-be-processed form based on the dependency code list and the callback processing function to obtain a target form.
The target form is used for generating a target webpage.
In an alternative embodiment, the front-end server renders the components of the template web page based on the target form to obtain the target web page.
Specifically, the front-end server generates a dependency list and a callback processing function through S202, modifies the target form according to the dependency list and the callback processing function, renders the components of the template webpage based on the target form, and displays the processed form information and the components on the webpage to obtain the target webpage.
The front-end server modifies the form according to the dependency list and the callback processing function after generating the dependency list and the callback processing function, configures the template webpage, renders components of the template webpage through a third party resource library in the compact frame, and displays form information such as an account number, a password and the like on the webpage to obtain a target webpage.
Through the technical scheme, the front-end server improves the efficiency of form rendering and simplifies the operation of form generation through the third-party resource library in the Internet frame.
In an alternative embodiment, the front-end server encapsulates the form information to obtain a component, and binds the component with fields in the form; the component is updated in response to modifying the field in the target form.
For example, assuming that the password information is bound to the input box component corresponding to the form item, the front-end server receives the password information filled in by the user, and the password information is linked to the input box component corresponding to the form item, and the obtained password information is input in the password input box in the target webpage.
Through the technical scheme, the front-end server can timely transmit the data to the forms when the components are changed, linkage among the forms is realized, and view information of the target webpage can be updated in real time when the form information data are changed.
In an alternative embodiment, the front-end server verifies the target form according to the verification rule, and if the target form passes the verification, the components of the template webpage are rendered based on the target form to obtain the target webpage.
The front-end server generates prompt information and a verification method corresponding to the form information according to the verification rule, the front-end server binds the prompt information and the verification method which generate the corresponding form information with unified verification callback events of the form, if the unfilled necessary filling item is found when the form information is verified, prompt information which is unfilled by the necessary filling item form information is generated, after filling of all the form information is completed, the form prompt information marks that the form verification passes, the front-end server obtains a target form, and the components of the template webpage are rendered based on the target form, so that the target webpage is obtained.
Through the technical scheme, the front-end server can dynamically generate the form according to the linkage rule, so that the efficiency and quality of a developer in form development are effectively improved.
Fig. 3 is a form generation flowchart of a linkage form generation method according to an embodiment of the present application, where, as shown in fig. 3, the method specifically includes:
S301, creating a form object.
S302, traversing the form data.
Specifically, the front-end server receives information of a form object created by a developer, traverses form data, generates a form instance if the form data is traversed, obtains a target webpage, and sequentially executes form generation operation if the form data is not traversed.
S303, registering the corresponding menu item according to the coding information.
Wherein the code is used to annotate the registered unique identification of the form item.
S304, executing the corresponding callback processing function according to the display rule.
Specifically, the front-end server generates a corresponding display rule dependent item and a callback processing function according to a display rule, generates a monitoring operation of corresponding form data according to the display rule dependent item, monitors the form data, executes the generated corresponding callback processing function when the form data change, returns whether a display value in form data information according to the callback processing function, and if the display value in the form data information is inconsistent with the display rule dependent item value, covers whether the display value in original form data information with the display rule dependent item value.
By the technical scheme, the dynamic display or hiding of the form item associated with the key value in the form item when the key value is changed can be realized.
S305, executing the corresponding callback processing function according to the association rule.
Specifically, the front-end server generates a corresponding association rule dependency item and a callback processing function according to an association rule, generates a monitoring operation of corresponding form data according to the association rule dependency item, monitors the form data, executes the generated corresponding callback processing function when the form data change, returns a drop-down box and/or check box information in form data information according to the callback processing function, and covers the drop-down box and/or check box information in original form data information by using the association rule dependency item if the drop-down box and/or check box information in the form data information is inconsistent with the association rule dependency item value.
In an embodiment, it is assumed that a birthday time drop-down frame in form data information depends on identity card information in an association rule, a front-end server generates an association rule dependent item and a callback function according to the association rule, the birthday time depends on the identity card information, after a user fills in the identity card information, the birthday time is generated into the form information, if the birthday time generated according to the association rule is modified, the drop-down frame information of the birthday time in the form data information is updated according to the callback processing function, and the drop-down frame information in original form data is covered.
By the technical scheme, dynamic change of values can be selected by the information such as the drop-down boxes and/or check boxes in the form items associated with the key values when the key values in the form items are changed.
S306, binding the components and the form data.
Specifically, the front-end server generates a title of a corresponding form item and a component corresponding to the form item according to the name, the type, the default value and the optional list information in the form information, and the front-end server controls the disabled state of the component according to whether the information can be edited in the form information and binds the generated component with registered data in the form information.
Wherein the names are form item titles, the types include various common form components, such as: input boxes, drop-down boxes and the like, default values are form initialization values, and selectable lists are selectable lists of components such as drop-down boxes, check boxes and the like.
The front-end server generates an account number, a password title and an input box component according to the account number, the password name and the input box type in the form information, controls the forbidden state of the input box component according to the editable state of the editable information in the form information, and binds the input box component with the registration data information of the account number and the password in the form information.
S307, binding the unified verification callback event of the verification method and the form.
Specifically, the front-end server generates prompt information and a verification method corresponding to the form item according to whether filling and regular verification rules are necessary in the form information, and binds the prompt information and the verification method corresponding to the form item to a unified verification callback event of the form.
S308, the corresponding form item generation is completed.
Specifically, after the front-end server completes the generation of the corresponding form after the operation steps, after the generation of the corresponding form is completed, the front-end server continues to traverse the form data, and if the traverse of the form data is completed, the next step operation is performed.
S309, generating a form instance.
Specifically, after the front-end server completes the generation of the corresponding form item through S308, the front-end server generates the form instance after traversing the form data.
Fig. 4 is a schematic structural diagram of a linkage form generating device according to an embodiment of the present application, where, as shown in fig. 4, the linkage form generating device includes:
The acquiring module 401 is configured to acquire form information to be processed, where the form information to be processed includes a plurality of fields and a configuration file, and the configuration file includes one or more linkage rules;
A generating module 402, configured to generate, based on one or more linkage rules, a dependency code list corresponding to the linkage rules, where the dependency code list includes a plurality of fields having a dependency relationship, and a callback processing function, where the callback processing function is configured to adjust the fields in the form information to be processed;
The processing module 403 is configured to configure a form to be processed based on the dependency code list and the callback processing function to obtain a target form; the target form is used for generating a target webpage.
Optionally, the linkage form generating device further includes a monitoring module 404, where the monitoring module 404 is specifically configured to:
Monitoring form information to be processed; and executing the callback processing function when the field in the form information to be processed changes.
Optionally, the listening module 404 is further configured to:
According to the monitored dependency term value, matching with a value in a preset rule; and if the dependent item value is inconsistent with the value in the preset rule, executing the callback processing function.
Optionally, the apparatus further includes a rendering module 405, where the rendering module 405 is specifically configured to:
and rendering the components of the template webpage based on the target form to obtain the target webpage.
Optionally, the rendering module 405 is further configured to:
Packaging the form information to obtain a component; binding the component with the fields in the form.
Optionally, the rendering module 405 is further configured to:
in response to modifying a field in the form, the component is updated.
Optionally, the processing module 403 is specifically configured to:
According to the verification rule, verifying the target form; and if the target form passes the verification, rendering the components of the template webpage based on the target form to obtain the target webpage.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present application, where the block diagram is a linkage table generation method. Electronic device 500 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable electronic devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 5, the electronic device 500 includes a computing unit 501 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access Memory (Random Access Memory, RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device can also be stored. The computing unit 501, ROM 502, and RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in electronic device 500 are connected to I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, etc.; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508 such as a magnetic disk, an optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the electronic device to exchange information/data with other electronic devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 501 include, but are not limited to, a central Processing unit, a graphics Processing unit (Graphics Processing Unit, GPU), various dedicated artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DIGITAL SIGNAL Processing, DSP), and any suitable processor, controller, microcontroller, etc. The calculation unit 501 performs the respective methods and processes described above, for example, the linked list generation method. For example, in one embodiment, the linked list generation method may be implemented as a computer software program tangibly embodied on a computer-readable storage medium, such as storage unit 508. In an embodiment, part or all of the computer program may be loaded and/or installed onto the electronic device via the ROM 502 and/or the communication unit 509. When the computer program is loaded into RAM 503 and executed by computing unit 501, one or more steps of the linked list generation method described above may be performed.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
The embodiment of the application provides a computer program containing instructions, which when run on a computer, enable the computer to execute the linkage form generating method in the method embodiment.
The embodiment of the application also provides a computer readable medium, wherein the computer readable medium stores instructions, and when the instructions run on a computer, the computer is caused to execute the linkage form generation method in the method flow shown in the method embodiment.
Wherein the computer readable medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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, an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), a register, a hard disk, 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, or any other form of computer readable medium known in the art. In embodiments of the present application, a computer readable 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.
In embodiments of the present application, a computer readable 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.
Embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the linked list generation methods of the embodiments of the present application.
Since the linkage form generating device, the computer readable storage medium and the computer program product in the embodiments of the present application can be applied to the above-mentioned method, the technical effects obtained by the method can also refer to the above-mentioned method embodiments, and the embodiments of the present application are not described herein again.
In several embodiments provided by the present application, it should be understood that the systems, electronic devices, and methods involved may be implemented in other ways. For example, the above-described embodiments of the electronic device are merely illustrative, e.g., the division of the units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The present application is not limited to the above embodiments, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (12)

1. A linkage form generation method, the method comprising:
Acquiring form information to be processed, wherein the form information to be processed comprises a plurality of fields and a configuration file, and the configuration file comprises one or more linkage rules;
Generating a dependency code list corresponding to the linkage rule and a callback processing function based on the one or more linkage rules, wherein the dependency code list comprises a plurality of fields with dependency relations, and the callback processing function is used for adjusting the fields in the form information to be processed;
configuring a form to be processed based on the dependency code list and the callback processing function to obtain a target form; the target form is used for generating a target webpage.
2. The method of claim 1, wherein after generating the dependency code list and the callback processing function corresponding to the linkage rule based on the one or more linkage rules, the method comprises:
monitoring the form information to be processed;
and executing the callback processing function when the field in the form information to be processed changes.
3. The method according to claim 1 or 2, wherein said executing the callback processing function when a field in the pending form information changes comprises:
Comparing the monitored dependent item value with a value in a preset rule;
and if the dependent item value is inconsistent with the value in the preset rule, executing the callback processing function.
4. The method according to claim 1, wherein the method further comprises:
and rendering the components of the template webpage based on the target form to obtain the target webpage.
5. The method according to claim 4, wherein the method further comprises:
Packaging the form information to obtain the component;
Binding the component with a field in the target form.
6. The method of claim 5, wherein the method further comprises:
the component is updated in response to modifying a field in the target form.
7. The method according to any one of claims 4-6, wherein the form information includes a verification rule, and the rendering the component of the template webpage based on the target form to obtain the target webpage includes:
according to the verification rule, verifying the target form;
and if the target form passes the verification, rendering the components of the template webpage based on the target form to obtain the target webpage.
8. A linked list generation 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 form information to be processed, the form information to be processed comprises a plurality of fields and configuration files, and the configuration files comprise one or a plurality of linkage rules;
The generation module is used for generating a dependency code list corresponding to the linkage rule and a callback processing function based on the one or more linkage rules, wherein the dependency code list comprises a plurality of fields with dependency relations, and the callback processing function is used for adjusting the fields in the form information to be processed;
the processing module is used for configuring the form to be processed based on the dependency code list and the callback processing function to obtain a target form; the target form is used for generating a target webpage.
9. The apparatus of claim 8, wherein after the generating module, the apparatus further comprises a monitoring module, the monitoring module is specifically configured to:
monitoring the form information to be processed;
and executing the callback processing function when the field in the form information to be processed changes.
10. The apparatus of claim 8 or 9, wherein the listening module is further configured to:
according to the monitored dependency term value, matching with the value in the definition rule;
And if the dependent item value is inconsistent with the value in the definition rule, executing the callback processing function.
11. An electronic device, the electronic device comprising:
A processor;
A memory communicatively coupled to the processor;
Wherein the memory is executable by the processor with instructions executable by the processor to enable the processor to implement the linked form generation method of any one of claims 1-7.
12. A computer readable medium having instructions stored thereon, which when executed by an electronic device, cause the electronic device to perform the linked form generation method of any of claims 1-7.
CN202410090097.3A 2024-01-22 2024-01-22 Linkage form generation method and device, electronic equipment and medium Pending CN117972256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410090097.3A CN117972256A (en) 2024-01-22 2024-01-22 Linkage form generation method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410090097.3A CN117972256A (en) 2024-01-22 2024-01-22 Linkage form generation method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN117972256A true CN117972256A (en) 2024-05-03

Family

ID=90865504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410090097.3A Pending CN117972256A (en) 2024-01-22 2024-01-22 Linkage form generation method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN117972256A (en)

Similar Documents

Publication Publication Date Title
CN110795195B (en) Webpage rendering method and device, electronic equipment and storage medium
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
CN109542445A (en) A kind of method and apparatus that Android plug-in unit melts hair
CN109739478A (en) Front end project automated construction method, device, storage medium and electronic equipment
CN111552627A (en) User interface testing method and device, storage medium and computer equipment
CN106559438A (en) A kind of program method for uploading and device based on objective network platform
CN113536185B (en) Application page loading method, storage medium and related equipment
CN113032708A (en) Code-free Web development system
CN101909082A (en) Model-driven grid portal configuration system and method
CN114996619A (en) Page display method and device, computer equipment and storage medium
CN112416458A (en) Preloading method and device based on ReactNative, computer equipment and storage medium
CN103530338A (en) Frame for carrying out page rendering on calculation equipment and page generation method
CN111736922B (en) Plug-in calling method and device, electronic equipment and storage medium
CN110213105A (en) It is a kind of cross-platform micro- using creation method
CN113010227A (en) Simulation platform implementation method based on model drive
CN113849156B (en) Codeless intelligent development system applied to OpenHarmony operating system and application method thereof
CN108170430A (en) A kind of method and system of showing interface
CN111580804B (en) Method and device for developing software project
CN112926008A (en) Method and device for generating form page, electronic equipment and storage medium
CN117972256A (en) Linkage form generation method and device, electronic equipment and medium
CN110362305A (en) A kind of form component state switching method and device
CN111581578B (en) Interface request processing method and device
US11294644B2 (en) Inversion of control framework for multiple behaviors on top of a process
CN110765610B (en) PDM integration method, PDM integration device, computer equipment and storage medium
CN111240679B (en) Page development method and system

Legal Events

Date Code Title Description
PB01 Publication