Competition form generation and management method
Through the front-end and back-end separation architecture and dynamic rendering of form item components, it solves the problems of the traditional competition form design system being cumbersome and poor user experience, achieving flexible competition form generation and management, and improving competition management efficiency and data security.
Patent Information
- Application Number
- CN202410897415.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional competition form design system has a cumbersome design process and poor user experience. It cannot support multiple team formation modes for competition registration, making it impossible to guarantee flexible team formation for the competition.
Adopting a front-end and back-end separation architecture, through dynamic rendering of form item components and interaction protocol configuration, a competition form that meets the needs is generated, and data is backed up to ensure safe storage and sharing.
It improves the efficiency and accuracy of competition management, enhances the maintainability and modularity of applications, ensures the security of backup files, and prevents the interruption of competition activities caused by file loss.
Smart Images

Figure CN118860366A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of competition form management, and in particular to a competition form generation and management method. Background Art
[0002] With the diversification and complexity of competition activities, the demand for forms is also growing. Traditional form design systems often have problems such as cumbersome design process, poor user experience, and inability to meet personalized needs. These problems limit the further development of form design systems and affect the user's operating experience. When generating and managing competition forms, the form component is moved to the form editing page by dragging, instead of directly configuring the form elements. There is also no custom form design to support various team formation modes for competition registration, which makes it impossible to guarantee flexible team formation for the competition. Summary of the invention
[0003] In order to overcome the problem of moving the form component to the form editing page by dragging it when managing the competition form generation, instead of directly configuring the form elements, the custom form is not designed to support various team formation modes for competition registration, which results in the inability to ensure flexible team formation for the competition.
[0004] The technical solution of the present invention is: a competition form generation and management method, comprising the following steps:
[0005] S11: dynamically render different types of form item components according to the configuration information of a competition form, and configure different types of form items according to different requirements;
[0006] S12: configuring the internal files of the form according to different interaction protocols and saving the metadata;
[0007] S13: dynamically generate a competition form based on the interactively completed form data;
[0008] S14: Push and share the competition form as needed;
[0009] S15: Back up your data regularly, ensure that the backup files are stored securely, and keep copies of your competition forms and data for future reference.
[0010] Preferably, by configuring the competition form information, different form item components can be dynamically rendered, by configuring different interaction protocols, metadata can be saved, competition forms can be dynamically generated through integrated form data, and by pushing and sharing competition forms, the efficiency and accuracy of competition management can be improved. By backing up data, the security of backup files can be effectively guaranteed to prevent interruption of competition activities due to file loss.
[0011] Preferably, a component library is predefined in the vue front-end framework, form items are generated according to the configuration, and dynamic components are used in the form components. In Vue, dynamic components dynamically render different components by binding component names. Vue provides elements to implement the functions of dynamic components. Different types of form item components can be dynamically rendered according to the competition form configuration information.
[0012] Preferably, by pre-defining the component library in the Vue front-end framework, different types of form items can be configured according to different needs, without having to write a separate component for each form item. This allows developers to define the structure of the form through configuration information without having to write a separate component for each form item.
[0013] Preferably, the competition form interaction protocol usually includes three parts: form configuration protocol, form description protocol and candidate configuration protocol. The form configuration protocol is used to describe the structure of the form and the specific configuration of each form item, including the component name, the data on which the form item depends, the description text, the form item name, and the verification rules and group name. The form description protocol is used to describe the metadata of the entire form, such as the form's access verification, business text description, and metadata that assists the backend in data storage. For form items with predefined options, a candidate configuration protocol needs to be defined, including display text, unique ID, whether it is a default option, and metadata that assists the backend in data storage.
[0014] Preferably, when dynamically generating a competition form, the following steps are included:
[0015] S21: First, based on the request, the backend generates the configuration fields of the form, including the type, attributes, validation rules, etc. of each form item;
[0016] S22: After generating the form configuration fields, return these configurations to the front end through the API interface;
[0017] S23: After the front end receives the configuration fields, it obtains the fields by sending an HTTP request to the backend API and passes them to the entry component of the form to start the rendering process.
[0018] Preferably, when dynamically generating a competition form, the following steps are also included:
[0019] S31: The form entry component uses Vuex to store the data and configuration information of the form items, and monitors the changes of the form item data in Vuex, including processing the logic of controlling the display or hiding of the form items;
[0020] S32: After receiving the configuration distributed from the parent component, the child form item will set the dependencies that need to be monitored;
[0021] S33: When the user submits a form, the front end will traverse all form items and verify the legitimacy of each item. Only when all form items pass the verification will the form data be allowed to be sent to the back end for processing.
[0022] Preferably, a front-end and back-end separation architecture is adopted. Front-end developers can flexibly generate various complex forms according to the configuration provided by the back-end, which greatly enhances the maintainability and modularity of the application. Back-end developers can choose more suitable data processing technologies. The front-end and back-end separation architecture allows each to choose the most appropriate technologies and tools to optimize the development process and performance.
[0023] Preferably, when using the validation tool to validate the input of the competition form, the following steps are included:
[0024] S41: providing instant feedback through the error information list on the web page, and implementing preliminary verification of input data by defining a series of verification rules;
[0025] S42: When the user inputs data, the system will immediately verify it according to the verification rules and verification model, and give corresponding verification results and prompt information.
[0026] Preferably, when verifying the competition form, the following steps are included:
[0027] S51: In terms of configuration, validation rules are defined in a configuration file. These rules guide the system on how to perform validation;
[0028] S52: When using the form validation tool, the system will perform validation according to these predefined validation rules to meet different validation requirements and improve the efficiency of form creation.
[0029] Preferably, when checking the required items of the form, the following methods are included:
[0030] A11: Data type verification: Check whether the data type entered by the user meets the expected standards, such as numbers, text, emails, dates, etc. Regular expressions are used to verify specific data formats.
[0031] A12: Length restriction: set maximum and / or minimum length restrictions for certain fields;
[0032] A13: Uniqueness verification, checking whether the data entered by the user, such as email address, user name, etc., is unique in the system;
[0033] A14: Format validation: For fields with specific formats, such as email, phone number, address, etc., use regular expressions or other validation methods to ensure that the input conforms to the expected format;
[0034] A15: Custom validation rules: add custom validation rules according to the specific needs of the competition;
[0035] A16: Error message validation, when validation fails, provide users with clear error messages indicating which field has a problem and how to correct it.
[0036] Preferably, when pushing and sharing the competition form, the following methods are included:
[0037] A21: Email the contest form as an attachment to the relevant personnel;
[0038] A22: File sharing platform, use cloud storage platform or online collaboration tool to upload the contest form to a shared folder for specific people to access the form;
[0039] A23: Online survey tool, use the online survey platform to create a competition form and share the form link with relevant personnel.
[0040] Preferably, the following methods are included when saving and safely backing up the competition form data information:
[0041] A31: Database storage, save the contest form data information in a secure database. By using the database, you can easily add, delete, modify, check and back up the data;
[0042] A32: Cloud storage, save the contest form data information in a cloud storage server, which provides high availability and persistence, as well as security and easy backup;
[0043] A33: File storage, save the contest form data information in the server or local file system, by creating a dedicated folder on the server and saving the form data in the form of files, and regularly backing up these files to other storage media, such as an external hard drive or backup server;
[0044] A34: Data encryption provides encryption for form data information to protect it during storage and transmission. It uses a secure socket layer to encrypt the data transmission channel and an encryption algorithm to encrypt the stored data.
[0045] A35: Access control and permission management ensure that only authorized personnel can access and operate competition form data information, and protect competition form data through the implementation of strict access control policies, strong password policies, and multi-factor authentication and other security mechanisms.
[0046] Beneficial effects of the present invention:
[0047] 1. Compared with the traditional competition form generation and management method, the form component is moved to the form editing page by dragging, instead of directly configuring the form elements, and there is no customized form design to support various team formation modes for competition registration. This competition form generation and management method allows users to generate forms that meet the requirements according to the specific requirements of the competition, adopts a front-end and back-end separation architecture, and provides an efficient competition form generation and management tool for competition organizers;
[0048] 2. By configuring the competition form information, different form item components can be dynamically rendered. By configuring different interaction protocols, metadata can be saved. Competition forms can be dynamically generated through integrated form data. By pushing and sharing competition forms, the efficiency and accuracy of competition management can be improved. By backing up data, the security of backup files can be effectively guaranteed to prevent file loss from causing interruption of competition activities.
[0049] 3. With a front-end and back-end separated architecture, front-end developers can flexibly generate various complex forms based on the configuration provided by the back-end, which greatly enhances the maintainability and modularity of the application. Back-end developers can choose more suitable data processing technologies. The front-end and back-end separated architecture allows each to choose the most appropriate technologies and tools to optimize the development process and performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 What is shown is a schematic diagram of the overall workflow of a competition form generation and management method of the present invention;
[0051] Figure 2 What is shown is a schematic diagram of the first process of dynamically generating a competition form by a competition form generation and management method of the present invention;
[0052] Figure 3 Shown is a second process diagram of dynamically generating a competition form by a competition form generation and management method of the present invention; DETAILED DESCRIPTION
[0053] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0054] See also Figure 1-3 The present invention provides an embodiment: a competition form generation and management method, comprising the following steps:
[0055] S11: dynamically render different types of form item components according to the configuration information of a competition form, and configure different types of form items according to different requirements;
[0056] S12: configuring the internal files of the form according to different interaction protocols and saving the metadata;
[0057] S13: dynamically generate a competition form based on the interactively completed form data;
[0058] S14: Push and share the competition form as needed;
[0059] S15: Back up your data regularly, ensure that the backup files are stored securely, and keep copies of your competition forms and data for future reference.
[0060] Preferably, by configuring the competition form information, different form item components can be dynamically rendered, by configuring different interaction protocols, metadata can be saved, competition forms can be dynamically generated through integrated form data, and by pushing and sharing competition forms, the efficiency and accuracy of competition management can be improved. By backing up data, the security of backup files can be effectively guaranteed to prevent interruption of competition activities due to file loss.
[0061] Preferably, a component library is predefined in the vue front-end framework, form items are generated according to the configuration, and dynamic components are used in the form components. In Vue, dynamic components dynamically render different components by binding component names. Vue provides elements to implement the functions of dynamic components. Different types of form item components can be dynamically rendered according to the competition form configuration information.
[0062] Preferably, by pre-defining the component library in the Vue front-end framework, different types of form items can be configured according to different needs, without having to write a separate component for each form item. This allows developers to define the structure of the form through configuration information without having to write a separate component for each form item.
[0063] Preferably, the competition form interaction protocol usually includes three parts: form configuration protocol, form description protocol and candidate configuration protocol. The form configuration protocol is used to describe the structure of the form and the specific configuration of each form item, including the component name, the data on which the form item depends, the description text, the form item name, and the verification rules and group name. The form description protocol is used to describe the metadata of the entire form, such as the form's access verification, business text description, and metadata that assists the backend in data storage. For form items with predefined options, a candidate configuration protocol needs to be defined, including display text, unique ID, whether it is a default option, and metadata that assists the backend in data storage.
[0064] Preferably, when dynamically generating a competition form, the following steps are included:
[0065] S21: First, based on the request, the backend generates the configuration fields of the form, including the type, attributes, validation rules, etc. of each form item;
[0066] S22: After generating the form configuration fields, return these configurations to the front end through the API interface;
[0067] S23: After the front end receives the configuration fields, it obtains the fields by sending an HTTP request to the backend API and passes them to the entry component of the form to start the rendering process.
[0068] Preferably, when dynamically generating a competition form, the following steps are also included:
[0069] S31: The form entry component uses Vuex to store the data and configuration information of the form items, and monitors the changes of the form item data in Vuex, including processing the logic of controlling the display or hiding of the form items;
[0070] S32: After receiving the configuration distributed from the parent component, the child form item will set the dependencies that need to be monitored;
[0071] S33: When the user submits a form, the front end will traverse all form items and verify the legitimacy of each item. Only when all form items pass the verification will the form data be allowed to be sent to the back end for processing.
[0072] Preferably, a front-end and back-end separation architecture is adopted. Front-end developers can flexibly generate various complex forms according to the configuration provided by the back-end, which greatly enhances the maintainability and modularity of the application. Back-end developers can choose more suitable data processing technologies. The front-end and back-end separation architecture allows each to choose the most appropriate technologies and tools to optimize the development process and performance.
[0073] Preferably, when using the validation tool to validate the input of the competition form, the following steps are included:
[0074] S41: providing instant feedback through the error information list on the web page, and implementing preliminary verification of input data by defining a series of verification rules;
[0075] S42: When the user inputs data, the system will immediately verify it according to the verification rules and verification model, and give corresponding verification results and prompt information.
[0076] Preferably, when verifying the competition form, the following steps are included:
[0077] S51: In terms of configuration, validation rules are defined in a configuration file. These rules guide the system on how to perform validation;
[0078] S52: When using the form validation tool, the system will perform validation according to these predefined validation rules to meet different validation requirements and improve the efficiency of form creation.
[0079] Preferably, when checking the required items of the form, the following methods are included:
[0080] A11: Data type verification: Check whether the data type entered by the user meets the expected standards, such as numbers, text, emails, dates, etc. Regular expressions are used to verify specific data formats.
[0081] A12: Length restriction: set maximum and / or minimum length restrictions for certain fields;
[0082] A13: Uniqueness verification, checking whether the data entered by the user, such as email address, user name, etc., is unique in the system;
[0083] A14: Format validation: For fields with specific formats, such as email, phone number, address, etc., use regular expressions or other validation methods to ensure that the input conforms to the expected format;
[0084] A15: Custom validation rules: add custom validation rules according to the specific needs of the competition;
[0085] A16: Error message validation, when validation fails, provide users with clear error messages indicating which field has a problem and how to correct it.
[0086] Preferably, when pushing and sharing the competition form, the following methods are included:
[0087] A21: Email the contest form as an attachment to the relevant personnel;
[0088] A22: File sharing platform, use cloud storage platform or online collaboration tool to upload the contest form to a shared folder for specific people to access the form;
[0089] A23: Online survey tool, use the online survey platform to create a competition form and share the form link with relevant personnel.
[0090] Preferably, the following methods are included when saving and safely backing up the competition form data information:
[0091] A31: Database storage, save the contest form data information in a secure database. By using the database, you can easily add, delete, modify, check and back up the data;
[0092] A32: Cloud storage, save the contest form data information in a cloud storage server, which provides high availability and persistence, as well as security and easy backup;
[0093] A33: File storage, save the contest form data information in the server or local file system, by creating a dedicated folder on the server and saving the form data in the form of files, and regularly backing up these files to other storage media, such as an external hard drive or backup server;
[0094] A34: Data encryption provides encryption for form data information to protect it during storage and transmission. It uses a secure socket layer to encrypt the data transmission channel and an encryption algorithm to encrypt the stored data.
[0095] A35: Access control and permission management ensure that only authorized personnel can access and operate competition form data information, and protect competition form data through the implementation of strict access control policies, strong password policies, and multi-factor authentication and other security mechanisms.
[0096] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of those skilled in the art without departing from the spirit of the present invention.
Claims
1. A method for generating and managing a competition form; characterized in that: The following steps are included: S11: dynamically render different types of form item components according to the configuration information of a competition form, and configure different types of form items according to different requirements; S12: configuring the internal files of the form according to different interaction protocols and saving the metadata; S13: dynamically generate a competition form based on the interactively completed form data; S14: Push and share the competition form as needed; S15: Back up your data regularly, ensure that the backup files are stored securely, and keep copies of your competition forms and data for future reference.
2. A method for generating and managing a competition form according to claim 1, characterized in that: The component library is pre-defined in the vue front-end framework, form items are generated according to the configuration, and dynamic components are used in the form components. In Vue, dynamic components dynamically render different components through bound component names. Vue provides elements to implement the functions of dynamic components. Different types of form item components can be dynamically rendered according to the competition form configuration information.
3. A method for generating and managing a competition form according to claim 2, characterized in that: The competition form interaction protocol usually consists of three parts: form configuration protocol, form description protocol and candidate configuration protocol. The form configuration protocol is used to describe the structure of the form and the specific configuration of each form item, including the component name, the data that the form item depends on, the description text, the form item name, and the verification rules and group name. The form description protocol is used to describe the metadata of the entire form, such as the form's access verification, business text description, and metadata that assists the backend in saving data. For form items with predefined options, a candidate configuration protocol needs to be defined, including display text, unique ID, whether it is a default option, and metadata that assists the backend in saving data.
4. A method for generating and managing a competition form according to claim 3, characterized in that: When dynamically generating a competition form, the following steps are included: S21: First, based on the request, the backend generates the configuration fields of the form, including the type, attributes, validation rules, etc. of each form item; S22: After generating the form configuration fields, return these configurations to the front end through the API interface; S23: After the front end receives the configuration fields, it obtains the fields by sending an HTTP request to the backend API and passes them to the entry component of the form to start the rendering process.
5. A method for generating and managing a competition form according to claim 4, characterized in that: When dynamically generating a competition form, the following steps are also included: S31: The form entry component uses Vuex to store the data and configuration information of the form items, and monitors the changes of the form item data in Vuex, including processing the logic of controlling the display or hiding of the form items; S32: After receiving the configuration distributed from the parent component, the child form item will set the dependencies that need to be monitored; S33: When the user submits a form, the front end will traverse all form items and verify the legitimacy of each item. Only when all form items pass the verification will the form data be allowed to be sent to the back end for processing.
6. A method for generating and managing a competition form according to claim 5, characterized in that: When using the validation tool to validate the contest form input, the following steps are included: S41: providing instant feedback through the error information list on the web page, and implementing preliminary verification of input data by defining a series of verification rules; S42: When the user inputs data, the system will immediately verify it according to the verification rules and verification model, and give corresponding verification results and prompt information.
7. A method for generating and managing a competition form according to claim 6, characterized in that: When validating the competition form, the following steps are included: S51: In terms of configuration, validation rules are defined in a configuration file. These rules guide the system on how to perform validation; S52: When using the form validation tool, the system will perform validation according to these predefined validation rules to meet different validation requirements and improve the efficiency of form creation.
8. A method for generating and managing a competition form according to claim 7, characterized in that: When checking for required form items, include the following methods: A11: Data type verification: Check whether the data type entered by the user meets the expected standards, such as numbers, text, emails, dates, etc. Regular expressions are used to verify specific data formats. A12: Length restriction: set maximum and / or minimum length restrictions for certain fields; A13: Uniqueness verification, checking whether the data entered by the user, such as email address, user name, etc., is unique in the system; A14: Format validation: For fields with specific formats, such as email, phone number, address, etc., use regular expressions or other validation methods to ensure that the input conforms to the expected format; A15: Custom validation rules: add custom validation rules according to the specific needs of the competition; A16: Error message validation, when validation fails, provide users with clear error messages indicating which field has a problem and how to correct it.
9. A method for generating and managing a competition form according to claim 8, characterized in that: When sharing a contest form, the following methods are included: A21: Email the contest form as an attachment to the relevant personnel; A22: File sharing platform, use cloud storage platform or online collaboration tool to upload the contest form to a shared folder for specific people to access the form; A23: Online survey tool, use the online survey platform to create a competition form and share the form link with relevant personnel.
10. A method for generating and managing a competition form according to claim 9, characterized in that: The following methods are included for saving and safely backing up the contest form data: A31: Database storage, save the contest form data information in a secure database. By using the database, you can easily add, delete, modify, check and back up the data; A32: Cloud storage, save the contest form data information in a cloud storage server, which provides high availability and persistence, as well as security and easy backup; A33: File storage, save the contest form data information in the server or local file system, by creating a dedicated folder on the server and saving the form data in the form of files, and regularly backing up these files to other storage media, such as an external hard drive or backup server; A34: Data encryption provides encryption for form data information to protect it during storage and transmission. It uses a secure socket layer to encrypt the data transmission channel and uses an encryption algorithm to encrypt the stored data. A35: Access control and permission management ensure that only authorized personnel can access and operate competition form data information, and protect competition form data through the implementation of strict access control policies, strong password policies, and multi-factor authentication and other security mechanisms.
