Sample custom form generation method and medium
By introducing visual low-code design, front-end and back-end separation architecture, hybrid storage and multi-level security mechanisms into the form generation method, the problems of insufficient flexibility, low development efficiency and data security risks in traditional form generation methods are solved, and efficient, flexible and secure form generation is achieved.
Patent Information
- Application Number
- CN202510348452.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-06-17
AI Technical Summary
Traditional form generation methods have problems such as insufficient flexibility, low development efficiency and data security risks.
A sample custom form generation method based on visual low-code design is adopted, and efficient form generation and security control is achieved through front-end separation architecture, hybrid storage solutions and multi-level security mechanisms.
It improves the flexibility and efficiency of form generation, ensures data security, meets the business needs of rapid iteration, and reduces the risk of data breaches.
Smart Images

Figure CN120162046A_ABST
Abstract
Description
Technical Field:
[0001] The present invention relates to the technical field of computer data processing, and particularly to a method and medium for generating a sample custom form, aiming to improve the flexibility, efficiency, and data security of form generation. Background Art:
[0002] In scenarios such as biological sample management, clinical trial data collection, and questionnaire surveys, as a core tool for data collection, the design efficiency and user experience of forms directly affect the quality of data collection. The traditional form generation methods have the following limitations:
[0003] Lack of flexibility: Adjusting form fields and layouts depends on the intervention of developers, making it difficult to meet the rapidly iterative business requirements.
[0004] Low development efficiency: The form design is tightly coupled with the backend logic, and modifications require the collaboration of multiple roles, extending the development cycle.
[0005] Data security risks: Sensitive data lacks an effective encryption mechanism during transmission and storage, posing a risk of leakage.
[0006] In response to the above problems, the present invention proposes a method for generating a sample custom form based on visual low-code design, which realizes the efficient generation and security control of forms through a front-end and back-end separation architecture, a hybrid storage scheme, and a multi-level security mechanism. Summary of the Invention:
[0007] Visual low-code designer: Provides a library of more than 50 complex controls and a function for configuring field calculation logic, supporting business personnel to complete form design by dragging and dropping without coding.
[0008] Dynamic data processing engine: Implements RESTful APIs based on the Spring Boot framework, supporting dynamic verification, version control, and associated storage of multiple data sources for form data.
[0009] Hybrid storage architecture: Combines the advantages of SSD local storage and cloud storage to ensure the fast response of frequently accessed data and the archival security of historical versions.
[0010] Multi-level security mechanism: Integrates HTTPS transmission encryption, AES-256 storage encryption, RBAC access control, and audit log recording to build an all-round data security protection system. Description of the Drawings:
[0011] To comprehensively reveal the technical logic, system architecture, and innovation value of the embodiments of this application, the following will be elaborated in detail in combination with the schematic diagrams of the embodiments. It should be clearly stated that the implementation forms shown in this article are only examples of typical technical solutions and do not cover all possible technical implementation paths of this application. The core objective of these embodiments is to clearly explain the core technical principles and not to limit the scope of patent protection. Based on the technical idea of this application, those of ordinary skill in the art can deduce and expand other equivalent implementation solutions without creative breakthroughs, and such derivative technical solutions are all within the scope of protection defined by the claims of this application.
[0012] For those with basic professional knowledge in this technical field, the professional terms involved in this article (including technical terms and scientific concepts) all adopt the generally recognized standard definitions in this field. It should be particularly emphasized that the understanding of relevant terms should follow the general understanding at the current stage of technological development. Unless this article specifically gives a clear restrictive definition, excessive theoretical explanations that deviate from the actual application scenarios should be avoided. For terms included in general dictionaries, their meanings should be consistent with the conventional understanding in the current technical context.
[0013] Figure 1 It is a flowchart of a method and medium for generating a sample custom form in an embodiment of the present invention; Specific implementation manner:
[0014] As described above, the front-end designer is one of the core components of the method for generating a sample custom form. It is developed based on the Vue-element-ui framework and supports visual low-code design. The designer provides a rich control library, including more than 50 complex controls, such as conventional controls like tabs, paging layout controls, text, date, dropdown boxes, sub-tables, etc., as well as enhanced controls like serial numbers, attachments, addresses, signatures, etc. These controls can meet various form design requirements and improve the flexibility and efficiency of form design.
[0015] Specifically, in addition to the rich control library, the front-end designer also supports the field value calculation function. Users can implement field value calculations in various ways, such as fixed values, Groovy dynamic scripts, data linkage, Excel-like formulas, etc. For example, users can design a "total price" field in the form and automatically calculate the product of other fields (such as unit price and quantity) through a script, thereby simplifying the form filling process.
[0016] Specifically, in terms of form rules, the front-end designer supports various rules such as required fields, maximum / minimum values, regular expression validation, submission validation, etc. Users can set these rules according to actual needs to ensure the accuracy and integrity of form data. In addition, the designer also supports dynamically changing field permission rules according to field values to achieve more refined permission control.
[0017] Specifically, the business data model function is another major highlight of the front-end designer. Users can visually create physical tables online, set attributes such as field length and type, and import third-party physical tables or interface data through the multi-data source function for querying and maintenance. This function makes form design more flexible and can adapt to various complex business scenarios.
[0018] Specifically, the print template and business template functions are also important components of the front-end designer. The print template supports an Excel-like operation design mode, and users can design print templates according to actual needs to achieve flexible printing of form data. The business template can configure workflows, search conditions, menus, operation buttons, etc. on the basis of the form page to quickly generate functional modules and improve the development efficiency of the business system.
[0019] Specifically, the detailed form function supports the combined display of multiple independent forms, which is convenient for users to view the information of multiple related forms on one page. At the same time, the designer also supports online forms and external URL forms, making the display and use of forms more flexible.
[0020] As mentioned above, the back-end logic engine is another core component of the sample custom form generation method. It is responsible for tasks such as receiving, validating, storing, and version controlling form data. The back-end logic engine is developed using the Spring Boot framework and provides a RESTful API to receive form data in JSON format submitted by the front end.
[0021] As mentioned above, in terms of data reception, the back-end logic engine receives form data submitted by the front end through the API interface. The received data will be verified on the server side, and rules such as required fields and email formats will be verified according to the form definition. If the verification fails, corresponding error prompt messages will be returned to the front end.
[0022] Specifically, after the verification passes, the back-end logic engine will store the data associatively in the database. It supports dynamic data source association. For example, form fields can be associated with MySQL database tables or external APIs. This function makes the storage of form data more flexible and can adapt to various complex business scenarios.
[0023] As mentioned above, in terms of the storage structure, the back-end logic engine designs forms table and form_data table. The forms table is used to store form template information, including form name, field definition JSON, etc. The form_data table is used to store form data submitted by users, and the foreign key is associated with the forms table to ensure data integrity and consistency.
[0024] As described above, version control is one of the important functions of the backend logic engine. Each time a form is modified, a new version number is generated, which facilitates users to roll back to historical versions. At the same time, the backend logic engine also records audit logs, including operation records such as user logins, form modifications, and data exports, which are convenient for tracking and reviewing issues.
[0025] As described above, the storage module is the basic support component of the sample custom form generation method, and it is responsible for tasks such as form data storage, backup, and recovery. The storage module adopts a hybrid scheme of SSD + cloud storage to ensure data security and reliability.
[0026] Specifically, in terms of local storage, the storage module uses SSD for data storage. SSD has the characteristics of fast reading and writing, which can ensure the data reading and writing efficiency in high-frequency access scenarios. Local storage is mainly used to store unpublished form templates and temporary data, etc.
[0027] Specifically, in terms of cloud storage, the storage module uses the MinIO object storage service for data storage. MinIO supports the S3 protocol and can provide API interfaces compatible with Amazon S3. Cloud storage is mainly used for scenarios such as archiving published form versions and data backup. It supports functions such as multi-version control and cross-terminal access, which is convenient for users to access and use form data on different terminals.
[0028] Specifically, in terms of the data synchronization mechanism, the storage module adopts a combination of real-time synchronization and scheduled synchronization. Published form versions will be synchronized to the cloud in real time to ensure the real-time consistency of local and cloud data. At the same time, the storage module will also perform data backup and recovery operations regularly to ensure data security and reliability.
[0029] Specifically, in terms of the backup strategy, the storage module adopts the method of full backup + incremental backup every day. Full backup can ensure data integrity, while incremental backup can reduce backup time and storage space occupancy. Backup data will retain 30 days of historical versions, which is convenient for users to restore data at different time points.
[0030] As described above, the security mechanism is an important guarantee component of the sample custom form generation method, and it is responsible for protecting the security and privacy of form data. The security mechanism covers multiple aspects such as data encryption, access control, and audit log recording.
[0031] Specifically, in terms of data encryption, the security mechanism adopts a combination of transport layer encryption and storage layer encryption. The transport layer uses the HTTPS protocol to encrypt the transmission process of form data to prevent data from being stolen or tampered with during transmission. The storage layer encrypts and stores sensitive fields (such as patient ID, password, etc.) using the AES-256 encryption algorithm to ensure data confidentiality and integrity.
[0032] Specifically, in terms of access control, the security mechanism adopts the Role-Based Access Control (RBAC) model. The system assigns different permissions according to the user's role (such as administrator, editor, viewer, etc.) to ensure that users can only access and operate on form data within their authorized scope. At the same time, the system also uses JWT (JSON Web Token) technology to verify the legitimacy of API requests and prevent damage to the system caused by illegal requests.
[0033] Specifically, in terms of audit log recording, the security mechanism records all user operation logs, including user logins, form modifications, data exports, and other operation records. These logs can be used to track and review issues to ensure the security and compliance of the system. In addition, the system also has an exception alert function that can monitor security events such as abnormal login attempts and data tampering behaviors and notify the administrator in a timely manner for handling.
[0034] Based on the inspiration provided by the typical embodiments of the present invention, through the above detailed technical elaboration, those skilled in the art can fully make various improvements and adjustments on the basis of following the core technical idea of the present invention. The technical protection scope of the present invention is not limited to the specific implementation details described in this specification, but should be determined according to the content clearly defined in the claims to determine its technical protection boundary.
Claims
1. A sample custom form generation method and medium, characterized in that: include: The visual low-code designer provides 50+ complex control libraries and field calculation logic configuration functions, supporting business personnel to complete form design by dragging and dropping without coding; the dynamic data processing engine implements RESTful API based on the Spring Boot framework, supporting dynamic verification, version control and multi-data source associated storage of form data; the hybrid storage architecture combines the advantages of SSD local storage and cloud storage to ensure rapid response to high-frequency access data and secure archiving of historical versions; the multi-level security mechanism integrates HTTPS transmission encryption, AES-256 storage encryption, RBAC access control and audit log records to build a comprehensive data security protection system.
2. The method according to claim 1, wherein the visual low-code designer further comprises: The front-end designer developed based on the Vue-element-ui framework supports control library expansion, field value calculation, dynamic rule configuration and business data model modeling; printing template and business template configuration functions, support Excel-like operation design mode and rapid generation of workflows, menus, and operation buttons.
3. According to the method described in claim 1, the dynamic data processing engine further implements: JSON format data reception and server-side verification mechanism, supporting mandatory items, format rules and data linkage verification; dynamic data source associated storage, supporting MySQL database table and external API data access; version control function, realizing the associated management of templates and data through the forms table and form_data table structure, supporting historical version backtracking and audit log recording.
4. According to the method of claim 1, the hybrid storage architecture further adopts: SSD local storage optimizes the read and write efficiency of high-frequency access data, combined with MinIO object storage service to achieve cloud archiving; real-time synchronization and scheduled backup mechanism, supporting 30 days of historical version retention and cross-terminal data access.
5. According to the method described in claim 1, the multi-level security mechanism further integrates: HTTPS transmission encryption and AES-256 sensitive field storage encryption; RBAC access control model and JWT request legitimacy verification; operation log recording and abnormal alarm function, covering the entire operation chain such as user login, form modification, and data export.
6. According to the method of claim 1, the sample custom form generation functions supported by the method include: Form visual design and multi-version management; dynamic data verification and cross-platform data synchronization; Multi-level security control and abnormal behavior monitoring; Excel-like printing template configuration and rapid generation of business flows.
7. According to the method described in claim 1, its specific implementation plan includes: the front-end designer is deployed on the browser side, supporting complex control dragging and Groovy script calculation; the back-end logic engine adopts the Spring Boot framework to implement the RESTfulAPI data interface; the storage module adopts the SSD+MinIO hybrid architecture to support real-time synchronization and incremental backup; the security mechanism covers the transmission layer, storage layer and access control layer to form a closed-loop protection system.