Form page generation method and device, storage medium and computer program product
By monitoring modal switching events and selecting compilation templates that adapt to different interactive modes, the shortcomings of form generation applications on low-code development platforms in multi-terminal interaction technology are solved, and the support of multiple interactive modes and user experience is achieved.
Patent Information
- Application Number
- CN202411200490.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-20
AI Technical Summary
The form generation applications provided by the low-code development platform only design a single interaction method, resulting in poor user experience when used on different devices and poor development of multi-terminal interaction technology.
By listening to modal switching events, selecting compilation templates that are adapted to different interactive modes, and setting the target user interface and form control database under each interactive mode, obtaining user-defined form components and operation instructions, generating and updating form pages, supporting Combination of multiple interactive modes.
Users can select multiple interactive modes on different devices for interaction. Each interactive mode or combination of multiple interactive modes has an appropriate compilation template, which meets the functional characteristics and user interaction needs of different devices, and improves multi-terminal The development of interactive technology.
Smart Images

Figure CN119167893A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of low-code tool technology, and in particular to a form page generation method, device, storage medium and computer program product. Background Art
[0002] Tables are commonly used data visualization tools in work and life. By organizing and displaying data in tables, information can be made clearer and easier to understand. Low-code development platforms are gradually becoming the mainstream way of application development due to their efficiency and convenience. Therefore, they can also meet users' diverse needs for table creation.
[0003] With the popularity and diversification of smart terminal devices, users have an increasing demand to use software on different devices. However, the form generation application provided by the low-code development platform is only designed with a single interaction method, and users cannot get a good user experience when using the form generation application provided by the low-code development platform on different devices. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides a form page generation method, device, storage medium and computer program product, which solve the problem that the form generation application provided by the low-code development platform in the prior art only designs a single interaction mode and has poor development in multi-terminal interaction technology.
[0005] According to an embodiment of the present invention, a first aspect provides a form page generation method, comprising:
[0006] Listen for modal switching events;
[0007] When a modal switching event is monitored, a target compilation template is selected according to a target interaction mode represented by the modal switching event; the target interaction mode includes one or more of a touch interaction mode, a voice interaction mode, and an external device interaction mode, and the target compilation template includes a target user interface set according to the target interaction mode, and a target form control database set according to the target interaction mode;
[0008] In the target interaction mode, obtaining multiple target form components defined by the user based on the target form control database and target operation instructions based on the target form components;
[0009] Compile the target compilation template according to the target operation instruction to obtain an initial page;
[0010] Mounting the initial page, and inserting the plurality of form components into the initial page, and generating a first form page after the mounting is completed;
[0011] If the user modifies the form components after the nth form page is generated, the modified form components in the nth form page are updated, and the n+1th form page is regenerated and obtained, where n=1, 2, 3, ..., N, and N is a positive integer.
[0012] Optionally, listen for modal switching events, including:
[0013] Set up event listeners;
[0014] In the event listener, the device used by the user is taken as an object, and the user input is taken as object data. When the user input meets the preset data change rule, the event listener listens to the mode switching event.
[0015] Optionally, the user interface set according to the target interaction mode includes:
[0016] When the target interaction mode is the touch interaction mode, adjusting the size and position of the form control selection interface and the form control control interface in the user interface;
[0017] When the target interaction mode is a voice interaction mode, the preset information is presented in a text form in the user interface;
[0018] When the target interaction mode is the external device interaction mode, the connection status and input status of the external device are displayed in the user interface.
[0019] Optionally, setting a target form control database according to the target interaction mode includes:
[0020] According to the target interaction mode, define the control specification of each form control in the original form control database and set the properties of the form control by extending the script to obtain the target form control database;
[0021] The attributes of the form control include at least one of control style, control position, and control visibility.
[0022] Optionally, in the target interaction mode, obtaining a plurality of target form components defined by the user based on the target form control database and target operation instructions based on the target form components includes:
[0023] According to the target interaction mode, calling one or more target processors to respond to the user input signal, obtaining the form control to be operated and the configuration instruction based on the form control to be operated in the target form control database;
[0024] Execute the configuration instruction to obtain the target form component;
[0025] The configuration instruction based on the form control to be operated includes one or more of element style configuration, selected control, and switched control;
[0026] The target operation instruction based on the target form component includes one or more of locking the form component, saving the form component, and submitting the form.
[0027] Optionally, monitoring the mode switching event also includes:
[0028] Set up multiple event listeners;
[0029] When monitoring for the first time, an event listener is selected according to the initial mode to monitor the mode switching event;
[0030] After listening to the modal switching event, the event listener with the same target interaction mode is started to continue listening to the modal switching event.
[0031] Optionally, if after starting the event listener same as the target interaction mode to continue to listen to the mode switching event, K mode switching events are listened, and in the target interaction mode, the user's target operation instruction based on the target form component does not include compiling the target compiled template, then each time a mode switching event is listened, the compiled template is reselected, and the form component defined by the user each time is obtained under the reselected compiled template;
[0032] replacing the target compile template with the compile template selected when the Kth mode switching event is monitored;
[0033] The form component defined by the user each time is updated through the form control database corresponding to the compiled template selected during the Kth modal switching event, and the target form component is replaced with the updated form component;
[0034] Among them, in the mode represented by the Kth mode switching event, the target operation instruction of the user based on the target form component includes compiling the target compilation template.
[0035] A second aspect provides a computer device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the various steps of the form page generation method introduced above.
[0036] A third aspect provides a computer-readable storage medium having a computer program stored thereon, which implements the various steps of the form page generation method described above when executed by a processor.
[0037] A fourth aspect provides a computer program product, including a computer program, which implements the various steps of the form page generation method introduced above when executed by a processor.
[0038] The beneficial effects of the embodiments of the present invention are as follows: users can use the form generation application provided by the low-code development platform on different devices and choose a variety of interaction modes for interaction. Each interaction mode or a combination of multiple interaction modes has a corresponding compilation template, which fits the functional characteristics of different devices and meets the user's interaction needs, which is conducive to its development in multi-terminal interaction technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 The figure is a schematic diagram of the implementation flow of the form page generation method according to an embodiment of the present invention.
[0040] Figure 2 The figure is a schematic diagram of the implementation flow of a method for generating a form page according to another embodiment of the present invention.
[0041] Figure 3 It is a schematic diagram of the composition structure of the form page generating device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0043] like Figure 1 As shown, an embodiment of the present invention proposes a form page generation method, which selects an interaction mode by monitoring a mode switching event and provides compiled templates under different interaction modes, while meeting the interaction condition restrictions of each device and the interaction needs of the user. The method includes but is not limited to the following steps:
[0044] S1. Listen for mode switching events.
[0045] In the embodiment of the present invention, the monitoring of the mode switching event is the monitoring of the object data change.
[0046] In a better implementation, an event listener is set to listen to the mode switching event. In the event listener, the device used by the user is taken as the object, and the user input is taken as the object data. When the user input meets the pre-set data change rules, the event listener is triggered, indicating that the mode switching event is listened.
[0047] S2. When a modal switching event is monitored, a target compilation template is selected according to the target interaction mode represented by the modal switching event.
[0048] Among them, the target interaction mode includes one or more of touch interaction mode, voice interaction mode, and external device interaction mode, and the target compilation template includes a target user interface set according to the target interaction mode, and a target form control database set according to the target interaction mode.
[0049] In one embodiment, when the target interaction modalities include multiple types, the user may use multiple devices.
[0050] It should be noted that the target interaction mode represented by the modal switching event is the touch interaction mode, which means that the event listener has listened to the user input for switching to the touch interaction mode. For example, the device used by the user is a mobile terminal, and the data change rule set is a specific key combination: a combination of volume increase and volume decrease. When the user input is to press the volume increase and volume decrease buttons at the same time, it switches to the touch interaction mode and selects the first target compilation template corresponding to it. The target interaction mode represented by the modal switching event is the voice interaction mode, which means that the event listener has listened to the user input for switching to the voice interaction mode. For example, the device used by the user is a mobile terminal, and the data change rule set is the key status of the voice input. When the user input is a key to call out the voice input, it switches to the voice interaction mode and selects the second target compilation template corresponding to it. The target interaction mode represented by the modal switching event is the external device interaction mode, which means that the event listener listens to the user input for switching to the external device interaction mode. For example, the device used by the user is a mobile terminal, and the set data change rule is the button status of the Bluetooth device. When the user input is a button to confirm the use of the Bluetooth device input, it switches to the external device interaction mode and selects the corresponding third target compilation template.
[0051] It should be noted that when the target interaction mode includes multiple types, the user may use multiple devices. In this case, an embodiment of the present invention further provides compilation templates for different devices to be performed simultaneously in different modes. At this time, different devices are monitored through multiple event listeners. For example, the device used by user A is mobile terminal a, and the user input of user A is monitored to be pressing the volume up and volume down simultaneously; the device used by user B is mobile terminal b, and the user input of user B is monitored to be a key to determine the input using the Bluetooth device. Then, the mode is switched to the touch interaction mode and the external device interaction mode, and the corresponding fourth target compilation template is provided to user A and user B.
[0052] It can be understood that the target user interfaces and target form control databases provided by the first target compilation template, the second target compilation template, the third target compilation template, and the fourth compilation template are different.
[0053] In an embodiment of the present invention, the user interface set according to the target interaction mode includes:
[0054] When the target interaction mode is the touch interaction mode, adjusting the size and position of the form control selection interface and the form control control interface in the user interface;
[0055] When the target interaction mode is a voice interaction mode, the preset information is presented in a text form in the user interface;
[0056] When the target interaction mode is the external device interaction mode, the connection status and input status of the external device are displayed in the user interface.
[0057] Among them, the preset information is important information in the form generation process, such as modification, saving, error prompts, etc.
[0058] In an embodiment of the present invention, setting a target form control database according to the target interaction mode includes:
[0059] According to the target interaction mode, define the control specification of each form control in the original form control database and extend the script to complete the setting of the properties of the form control, and obtain the target form control database;
[0060] The attributes of the form control include at least one of control style, control position, and control visibility.
[0061] It should be noted that the control specification of the form control is the standard property of the control. By defining the control specification, you can set various properties including the control type, database table, control field, control title, display title, title hint, placeholder hint, default value, prefix, suffix, front icon, back icon, maximum input, whether it can be cleared, password, read-only, disabled, hidden, etc., and expand horizontally according to different controls. The extended script that defines the form control can set specific trigger events, such as the change event triggered when a change occurs; the blur event triggered when the focus is lost. Exemplarily, some specific trigger events require the definition of the extended script structure of the form control as follows:
[0062] const handleFormData=({getData,getFormData,setFormData,setShowOrHide,setRequired,setDisabled,jsOnlineUtils})=>{
[0063] / / Write code here
[0064] / / getData--Selected data of the current component
[0065] console.log(getData);
[0066] / / getFormData--form data
[0067] console.log(getFormData);
[0068] / / setFormData--Set the data of a component in the form
[0069] setFormData('key','value');
[0070] / / setShowOrHide--Set display or hide
[0071] setShowOrHide('key',true);
[0072] / / setRequired--Set required items
[0073] setRequired('key',true);
[0074] / / setDisabled--Set disabled items
[0075] setDisabled('key',true);
[0076] / / jsOnlineUtils--Online js tool class
[0077] / / Get the logged in user information
[0078] const userInfo=jsOnlineUtils.getUserInfo();
[0079] / / Message prompt
[0080] jsOnlineUtils.toast('message','info',3000);
[0081] }
[0082] S3. In the target interaction mode, a plurality of target form components defined by the user based on the target form control database and target operation instructions based on the target form components are obtained.
[0083] The embodiment of the present invention also adds different processors to respond to user operations in different interaction modes. The added processors respectively identify and process input signals from different modes and convert them into operation instructions that the control can understand. In addition, a switching mechanism of the interaction mode is used to achieve seamless switching between different interaction modes.
[0084] In a preferred implementation, the above step S3 includes:
[0085] According to the target interaction mode, calling one or more target processors to respond to the user input signal, obtaining the form control to be operated and the configuration instruction based on the form control to be operated in the target form control database;
[0086] Execute the configuration instruction to obtain the target form component;
[0087] The configuration instruction based on the form control to be operated includes one or more of element style configuration, selected control, and switched control;
[0088] The target operation instruction based on the target form component includes one or more of locking the form component, saving the form component, and submitting the form.
[0089] In an embodiment of the present invention, the form controls in the form control database are component-based developed through the Vue front-end framework, including defining clear module interfaces, achieving loose coupling between modules, and configuring multiple form controls to be operated in the above steps, wherein the element style configuration includes configuration of the control grid (24 grids), title width, control width (percentage), control Class, and multi-end display (web end, app end).
[0090] S4. Compile the target compilation template according to the target operation instruction to obtain an initial page.
[0091] The above step S1 selects an interaction mode adapted to different devices by monitoring a mode switching event. The above step S2 provides different compilation templates under different interaction modes, and further provides a user interface and a form control database adapted to the interaction mode. The above step S3 identifies user input under different interaction modes, obtains multiple target form components defined by the user, and a target operation instruction based on the target form component. In the above step S4, when the target operation instruction includes submitting a form, the target user interface used, the definition and insertion position of each target form component, and the target form control database are determined in the target compilation template, wherein the target form database determines the properties of each form control in the target form component. At this time, the target compilation template is compiled to obtain the initial page.
[0092] Through the above steps S1 to S4, users can use the form generation application provided by the low-code development platform on different devices and choose multiple interaction modes for interaction. Each interaction mode or a combination of multiple interaction modes has a corresponding compilation template to fit the functional characteristics of different devices and meet the user's interaction needs.
[0093] It should be noted that after obtaining the initial page, the modification of the form component in the following steps S5 and S6 uses the same interaction mode as the above steps S1 to S4.
[0094] S5, mounting the initial page, and inserting the plurality of form components into the initial page, and generating a first form page after the mounting is completed;
[0095] S6. If the user modifies the form component after the nth form page is generated, the modified form component in the nth form page is updated, and the n+1th form page is regenerated and obtained, where n=1, 2, 3, ..., N, and N is a positive integer.
[0096] In the above step S6, when multiple users modify the same data at the same time, the embodiment of the present invention also processes and modifies it through the data version control mechanism to ensure the integrity and consistency of the data. Exemplarily, the data version of the nth form page is set to n, and the data version of the n+1th form page is set to n+1. When the data is modified, the data version will be incremented accordingly. If the system detects a data conflict caused by two concurrent modifications, it determines which modification is the latest based on the version number, retains the modification, and notifies other users about the data conflict.
[0097] The above embodiment provides a form page generation method for the case where a modal switching event is only triggered once in a life cycle. On the other hand, an embodiment of the present invention also provides a form page generation method, which processes the case where a modal switching event is triggered multiple times in a life cycle by setting multiple event listeners and a continuous monitoring mechanism.
[0098] like Figure 2 As shown, based on Figure 1 In the form page generation method shown in the embodiment of the present invention, the implementation of step S1 includes:
[0099] S11. Set multiple event listeners;
[0100] S12, when monitoring for the first time, selecting an event listener according to the initial mode to monitor the mode switching event;
[0101] S13. After the modal switching event is monitored, an event listener identical to the target interaction mode is started to continue monitoring the modal switching event.
[0102] If, after starting the event listener that is the same as the target interaction mode to continue listening to the mode switching event, K mode switching events are listened to, and in the target interaction mode, the user's target operation instruction based on the target form component does not include compiling the target compiled template, then each time a mode switching event is listened to, the compiled template is reselected, and the form component defined by the user each time is obtained under the reselected compiled template;
[0103] replacing the target compile template with the compile template selected when the Kth mode switching event is monitored;
[0104] The form component defined by the user each time is updated through the form control database corresponding to the compiled template selected during the Kth modal switching event, and the target form component is replaced with the updated form component;
[0105] Among them, in the mode represented by the Kth mode switching event, the target operation instruction of the user based on the target form component includes compiling the target compilation template.
[0106] It should be noted that a life cycle is from setting an event listener to removing an event listener. The initial mode is set according to the user's current device or according to the user's historical usage data, and the embodiment of the present invention does not limit it. Through the above steps, the user can switch devices multiple times or switch interaction modes multiple times based on one device. The embodiment of the present invention uses the compilation template selected by the last interaction mode to update the form components defined by the user each time, and then compiles it, which is efficient and reliable.
[0107] like Figure 3 As shown, the embodiment of the present invention further provides a form page generating device 30, comprising:
[0108] An event monitoring module 31 is used to monitor mode switching events;
[0109] The mode switching module 32 is used to select a target compilation template according to the target interaction mode represented by the mode switching event when monitoring the mode switching event; the target interaction mode includes one or more of the touch interaction mode, the voice interaction mode, and the external device interaction mode, and the target compilation template includes a target user interface set according to the target interaction mode, and a target form control database set according to the target interaction mode;
[0110] The form definition module 33 is used to obtain multiple target form components defined by the user based on the target form control database and target operation instructions based on the target form components in the target interaction mode;
[0111] A compiling module 34, used to compile the target compiling template according to the target operation instruction to obtain an initial page;
[0112] The mounting module 35 is used to mount the initial page and insert multiple form components into the initial page. After the mounting is completed, a first form page is generated;
[0113] The updating module 36 is used to update the modified form components in the nth form page if the user modifies the form components after the nth form page is generated, and regenerate and obtain the n+1th form page, where n=1, 2, 3, ..., N, and N is a positive integer.
[0114] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0115] Listen for modal switching events;
[0116] When a modal switching event is monitored, a target compilation template is selected according to a target interaction mode represented by the modal switching event; the target interaction mode includes one or more of a touch interaction mode, a voice interaction mode, and an external device interaction mode, and the target compilation template includes a target user interface set according to the target interaction mode, and a target form control database set according to the target interaction mode;
[0117] In the target interaction mode, obtaining multiple target form components defined by the user based on the target form control database and target operation instructions based on the target form components;
[0118] Compile the target compilation template according to the target operation instruction to obtain an initial page;
[0119] Mounting the initial page, and inserting the plurality of form components into the initial page, and generating a first form page after the mounting is completed;
[0120] If the user modifies the form components after the nth form page is generated, the modified form components in the nth form page are updated, and the n+1th form page is regenerated and obtained, where n=1, 2, 3, ..., N, and N is a positive integer.
[0121] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0122] Listen for modal switching events;
[0123] When a modal switching event is monitored, a target compilation template is selected according to a target interaction mode represented by the modal switching event; the target interaction mode includes one or more of a touch interaction mode, a voice interaction mode, and an external device interaction mode, and the target compilation template includes a target user interface set according to the target interaction mode, and a target form control database set according to the target interaction mode;
[0124] In the target interaction mode, obtaining multiple target form components defined by the user based on the target form control database and target operation instructions based on the target form components;
[0125] Compile the target compilation template according to the target operation instruction to obtain an initial page;
[0126] Mounting the initial page, and inserting the plurality of form components into the initial page, and generating a first form page after the mounting is completed;
[0127] If the user modifies the form components after the nth form page is generated, the modified form components in the nth form page are updated, and the n+1th form page is regenerated and obtained, where n=1, 2, 3, ..., N, and N is a positive integer.
[0128] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0129] Listen for modal switching events;
[0130] When a modal switching event is monitored, a target compilation template is selected according to a target interaction mode represented by the modal switching event; the target interaction mode includes one or more of a touch interaction mode, a voice interaction mode, and an external device interaction mode, and the target compilation template includes a target user interface set according to the target interaction mode, and a target form control database set according to the target interaction mode;
[0131] In the target interaction mode, obtaining multiple target form components defined by the user based on the target form control database and target operation instructions based on the target form components;
[0132] Compile the target compilation template according to the target operation instruction to obtain an initial page;
[0133] Mounting the initial page, and inserting the plurality of form components into the initial page, and generating a first form page after the mounting is completed;
[0134] If the user modifies the form components after the nth form page is generated, the modified form components in the nth form page are updated, and the n+1th form page is regenerated and obtained, where n=1, 2, 3, ..., N, and N is a positive integer.
[0135] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0136] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0137] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. A form page generation method, characterized in that: include: Listen for modal switching events; When a modal switching event is detected, the target compilation template is selected according to the target interaction mode represented by the modal switching event; The target interaction mode includes one or more of a touch interaction mode, a voice interaction mode, and an external device interaction mode, and the target compilation template includes a target user interface set according to the target interaction mode, and a target form control database set according to the target interaction mode; In the target interaction mode, obtaining multiple target form components defined by the user based on the target form control database and target operation instructions based on the target form components; Compile the target compilation template according to the target operation instruction to obtain an initial page; Mounting the initial page, and inserting the plurality of form components into the initial page, and generating a first form page after the mounting is completed; If the user modifies the form components after the nth form page is generated, the modified form components in the nth form page are updated, and the n+1th form page is regenerated and obtained, where n=1, 2, 3, ..., N, and N is a positive integer.
2. The form page generation method according to claim 1, characterized in that: Listen for modal switching events, including: Set up event listeners; In the event listener, the device used by the user is taken as an object, and the user input is taken as object data. When the user input meets the preset data change rule, the event listener listens to the mode switching event.
3. The form page generation method according to claim 1, characterized in that: The user interface set according to the target interaction mode includes: When the target interaction mode is the touch interaction mode, adjusting the size and position of the form control selection interface and the form control control interface in the user interface; When the target interaction mode is a voice interaction mode, the preset information is presented in a text form in the user interface; When the target interaction mode is the external device interaction mode, the connection status and input status of the external device are displayed in the user interface.
4. The form page generation method according to claim 1, characterized in that: Setting a target form control database according to the target interaction mode includes: According to the target interaction mode, define the control specification of each form control in the original form control database and set the properties of the form control by extending the script to obtain the target form control database; The attributes of the form control include at least one of control style, control position, and control visibility.
5. The form page generation method according to any one of claims 1 to 4, characterized in that: In the target interaction mode, obtaining multiple target form components defined by the user based on the target form control database and target operation instructions based on the target form components includes: According to the target interaction mode, calling one or more target processors to respond to the user input signal, obtaining the form control to be operated and the configuration instruction based on the form control to be operated in the target form control database; Execute the configuration instruction to obtain the target form component; The configuration instruction based on the form control to be operated includes one or more of element style configuration, selected control, and switched control; The target operation instruction based on the target form component includes one or more of locking the form component, saving the form component, and submitting the form.
6. The form page generation method according to claim 1, characterized in that: Listening for modal switching events also includes: Set up multiple event listeners; When monitoring for the first time, an event listener is selected according to the initial mode to monitor the mode switching event; After listening to the modal switching event, the event listener with the same target interaction mode is started to continue listening to the modal switching event.
7. The form page generation method according to claim 6, characterized in that: If after starting the event listener that is the same as the target interaction mode to continue listening to the mode switching event, K mode switching events are listened to, and in the target interaction mode, the user's target operation instruction based on the target form component does not include compiling the target compiled template, then each time a mode switching event is listened to, a compiled template is reselected, and the form component defined by the user each time is obtained under the reselected compiled template; replacing the target compile template with the compile template selected when the Kth mode switching event is monitored; The form component defined by the user each time is updated through the form control database corresponding to the compiled template selected during the Kth modal switching event, and the target form component is replaced with the updated form component; Among them, in the mode represented by the Kth mode switching event, the target operation instruction of the user based on the target form component includes compiling the target compilation template.
8. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the form page generation method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the form page generation method according to any one of claims 1 to 7 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the form page generation method according to any one of claims 1 to 7 are implemented.
