Form configuration method and device, page generation method and device, equipment and medium

By obtaining form configuration instructions, identifying and combining components to be configured, generating unique numbers, and utilizing artificial intelligence technology to improve form configuration efficiency, the problem of low form configuration efficiency in existing technologies is solved, and efficient and diversified form configuration is achieved.

CN115576552BActive Publication Date: 2026-02-03CHINA PING AN LIFE INSURANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211249474.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-12
Publication Date
2026-02-03
Estimated Expiration
2042-10-12

AI Technical Summary

Technical Problem

In existing technologies, form configuration is inefficient for different business needs, requiring developers to configure it manually, which affects efficiency.

Method used

By obtaining form configuration instructions, identifying the components to be configured, combining the components and extracting key information, generating a unique form number, and using artificial intelligence technology to combine and configure the components.

Benefits of technology

It improves the efficiency and diversity of form configuration, reduces the amount of data, enhances the storability and retrieval efficiency of configuration information, and simplifies the development process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115576552B_ABST
    Figure CN115576552B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a form configuration method and device, a page generation method and device, equipment and a medium, and belongs to the technical field of computers. The form configuration method is applied to a server side, and comprises the following steps: obtaining a form configuration instruction; obtaining at least two to-be-configured components of a to-be-configured form based on the form configuration instruction; wherein each to-be-configured component has a component category, and each to-be-configured component comprises at least two component parameters; performing component combination processing on the at least two to-be-configured components to obtain a target component group; performing key information extraction on the target component group to obtain key data of the target component group; generating an identifier of the target component group based on a current timestamp obtained in advance to obtain a form number of the target component group; and configuring the to-be-configured form according to the key data and the form number to obtain a target form. The embodiment of the application can improve the efficiency of form configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a form configuration method and apparatus, a page generation method and apparatus, a device, and a medium. Background Technology

[0002] Currently, developers often need to configure forms for each business requirement, which affects the efficiency of form configuration. Therefore, how to improve the efficiency of form configuration has become an urgent technical problem to be solved. Summary of the Invention

[0003] The main objective of this application is to provide a form configuration method and apparatus, a page generation method and apparatus, a device, and a medium, with the aim of improving the efficiency of form configuration.

[0004] To achieve the above objectives, a first aspect of this application proposes a form configuration method applied to a server, the method comprising:

[0005] Retrieve form configuration instructions;

[0006] Based on the form configuration instructions, at least two components to be configured for the form to be configured are obtained; wherein each component to be configured has a component category and each component to be configured includes at least two component parameters;

[0007] Perform component combination processing on at least two of the components to be configured to obtain a target component group;

[0008] Key information is extracted from the target component group to obtain key data of the target component group;

[0009] The target component group is identified and generated based on the pre-acquired current timestamp to obtain the form number of the target component group;

[0010] Configure the form to be configured based on the key data and the form number to obtain the target form.

[0011] In some embodiments, the component parameters include candidate report data, and the component combination processing of at least two of the components to be configured to obtain a target component group includes:

[0012] Obtain reference report information;

[0013] A report identifier is generated for each candidate report data based on the reference report information;

[0014] Based on the report identifier and the candidate report data, construct a mapping relationship between every two components to be configured.

[0015] The components to be configured are combined according to the mapping relationship to obtain the target component group.

[0016] In some embodiments, generating an identifier for the target component group based on a pre-acquired current timestamp to obtain a form number for the target component group includes:

[0017] Obtain the target physical address;

[0018] Generate a target random number based on a preset function and the current timestamp;

[0019] Based on the target random number and the target physical address, a form number for the target component group is generated, wherein the form number is unique.

[0020] In some embodiments, obtaining at least two components to be configured in the form based on the form configuration instruction includes:

[0021] The form configuration instructions are parsed to obtain the search fields;

[0022] The preset candidate configuration components are filtered according to the search field to obtain the component to be configured.

[0023] To achieve the above objectives, a second aspect of this application proposes a page generation method applied to a client, the method comprising:

[0024] Obtain the operation instructions for the target object;

[0025] The operation instruction is parsed to obtain target code parameters, wherein the target code parameters include the form number of the target form;

[0026] Send the form number to the server and receive the form configuration information fed back by the server based on the form number;

[0027] The form configuration information is rendered to obtain the target page data;

[0028] A target page is generated based on the target page data, and the target page is used to display to the target object.

[0029] In some embodiments, rendering the form configuration information to obtain target page data includes:

[0030] Render the form configuration information to obtain the target component group corresponding to the form configuration information;

[0031] The target form is generated based on the target component group;

[0032] The target form is visualized to obtain the target page data.

[0033] To achieve the above objectives, a third aspect of this application provides a form configuration apparatus applied on a server side, the apparatus comprising:

[0034] The configuration instruction acquisition module is used to acquire form configuration instructions;

[0035] The component acquisition module is used to acquire at least two components to be configured in the form to be configured based on the form configuration instructions; wherein each component to be configured has a component category and each component to be configured includes at least two component parameters;

[0036] The component combination module is used to perform component combination processing on at least two of the components to be configured to obtain a target component group;

[0037] The information extraction module is used to extract key information from the target component group to obtain key data of the target component group.

[0038] The identifier generation module is used to generate an identifier for the target component group based on a pre-acquired current timestamp, thereby obtaining the form number of the target component group;

[0039] The form configuration module is used to configure the form to be configured based on the key data and the form number to obtain the target form.

[0040] To achieve the above objectives, a fourth aspect of this application provides a page generation apparatus applied to a client, the apparatus comprising:

[0041] The operation instruction acquisition module is used to acquire operation instructions for the target object;

[0042] The content parsing module is used to parse the operation instructions to obtain target code parameters, wherein the target code parameters include the form number of the target form;

[0043] The information processing module is used to send the form number to the server and receive the form configuration information fed back by the server based on the form number.

[0044] The rendering module is used to render the form configuration information to obtain the target page data;

[0045] The page generation module is used to generate a target page based on the target page data, and the target page is used to display to the target object.

[0046] To achieve the above objectives, a fifth aspect of the present application provides an electronic device, the electronic device including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method described in the first aspect or the method described in the second aspect.

[0047] To achieve the above objectives, a sixth aspect of the present application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect or the method described in the second aspect.

[0048] The form configuration method, page generation method, form configuration device, page generation device, electronic device, and computer-readable storage medium proposed in this application obtain form configuration instructions and, based on these instructions, acquire at least two components to be configured in the form to be configured. Each component to be configured has a component category and includes at least two component parameters. This method effectively identifies the components corresponding to the form to be configured from a large number of configuration components. Furthermore, by combining the at least two components to be configured to obtain target component groups, it is possible to easily and randomly combine the components to be configured to form multiple target component groups, improving the diversity of configuration and enabling the subsequently generated target forms to meet the needs of different business scenarios. By extracting key information from the target component groups to obtain key data, it is possible to easily extract key configuration information from the target component groups, reducing the data volume and improving the storability and retrieval efficiency of the configuration information. Furthermore, by generating an identifier for the target component groups based on a pre-acquired current timestamp, a form number for each target component group is obtained. This method generates a form number for each target component group, allowing the corresponding target component group to be searched using the form number. Finally, the form to be configured is configured directly based on the key data and form number to obtain the target form, which can significantly improve the efficiency of form configuration. Attached Figure Description

[0049] Figure 1 This is a flowchart of the form configuration method provided in the embodiments of this application;

[0050] Figure 2 yes Figure 1 The flowchart of step S102 in the document;

[0051] Figure 3 yes Figure 1 The flowchart of step S103 in the process;

[0052] Figure 4 yes Figure 1 The flowchart of step S105 in the process;

[0053] Figure 5 This is a flowchart of the page generation method provided in the embodiments of this application;

[0054] Figure 6 yes Figure 5 The flowchart of step S504 in the process;

[0055] Figure 7 This is a schematic diagram of the structure of the form configuration device provided in the embodiments of this application;

[0056] Figure 8 This is a schematic diagram of the structure of the page generation apparatus provided in the embodiments of this application;

[0057] Figure 9 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0058] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0059] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0061] First, let's analyze some of the terms used in this application:

[0062] Artificial intelligence (AI) is a new branch of computer science that studies, develops, and applies theories, methods, technologies, and systems to simulate, extend, and expand human intelligence. It aims to understand the essence of intelligence and produce intelligent machines that can react in a way similar to human intelligence. Research in this field includes robotics, speech recognition, image recognition, natural language processing, and expert systems. AI can simulate the information processes of human consciousness and thought. Furthermore, AI utilizes digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceiving the environment, acquiring knowledge, and using that knowledge to achieve optimal results.

[0063] Natural Language Processing (NLP): NLP uses computers to process, understand, and utilize human language (such as Chinese and English). NLP is a branch of artificial intelligence and an interdisciplinary field of computer science and linguistics, often referred to as computational linguistics. NLP includes syntactic analysis, semantic analysis, and discourse understanding. It is commonly used in machine translation, handwritten and printed character recognition, speech recognition and text-to-speech conversion, intent recognition, information extraction and filtering, text classification and clustering, sentiment analysis, and opinion mining. It involves data mining, machine learning, knowledge acquisition, knowledge engineering, artificial intelligence research, and linguistic research related to language computation.

[0064] Information Extraction (NER) is a text processing technique that extracts factual information such as entities, relationships, and events from natural language text and outputs it as structured data. Information extraction is a technique for extracting specific information from text data. Text data is composed of specific units, such as sentences, paragraphs, and chapters. Text information is composed of smaller, specific units, such as characters, words, phrases, sentences, paragraphs, or combinations of these units. Extracting noun phrases, names of people, and place names from text data is an example of text information extraction. Of course, text information extraction techniques can extract information of various types.

[0065] Configurable: It highly encapsulates a large number of mature and practical application components and modules, and includes powerful workflow management systems, electronic form management systems, information portal systems, unified user management systems, message management systems, knowledge management systems and other mature application systems and development tools.

[0066] User Interface: The functional components that users see and interact with, such as the address bar, back button, and forward button.

[0067] Page rendering: refers to the basic operations of a page rendering engine. Simply put, it is the process of starting from a webpage's URL and outputting a visual result based on the various resources of the webpage corresponding to the URL.

[0068] Rendering engine: Responsible for parsing the content requested by the user (such as HTML or XML; the rendering engine will parse the HTML or XML, as well as the relevant CSS, and then return the parsed content).

[0069] UI backend: Responsible for drawing browser components such as tooltips, and its underlying implementation uses the operating system's user interface.

[0070] Currently, developers often need to configure forms for each business requirement, which affects the efficiency of form configuration. Therefore, how to improve the efficiency of form configuration has become an urgent technical problem to be solved.

[0071] Based on this, embodiments of this application provide a form configuration method, a page generation method, a form configuration device, a page generation device, an electronic device, and a storage medium, aiming to improve the efficiency of form configuration.

[0072] The form configuration method, form configuration device, electronic device, and storage medium provided in this application are specifically described through the following embodiments. First, the form configuration method in this application embodiment is described.

[0073] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0074] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0075] The form configuration method provided in this application relates to the field of artificial intelligence technology. The form configuration method provided in this application can be applied to a terminal, a server, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, etc.; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing 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, CDN, and big data and artificial intelligence platforms; the software can be an application implementing the form configuration method, but is not limited to the above forms.

[0076] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0077] Figure 1 This is an optional flowchart of the form configuration method provided in the embodiments of this application, applied to the server side. Figure 1 The method may include, but is not limited to, steps S101 to S106.

[0078] Step S101: Obtain form configuration instructions;

[0079] Step S102: Based on the form configuration instructions, obtain at least two components to be configured for the form to be configured; wherein each component to be configured has a component category and each component to be configured includes at least two component parameters;

[0080] Step S103: Perform component combination processing on at least two components to be configured to obtain the target component group;

[0081] Step S104: Extract key information from the target component group to obtain key data of the target component group;

[0082] Step S105: Generate an identifier for the target component group based on the pre-acquired current timestamp to obtain the form number of the target component group;

[0083] Step S106: Configure the form to be configured based on the key data and form number to obtain the target form.

[0084] Steps S101 to S106 of this embodiment involve obtaining form configuration instructions and, based on these instructions, acquiring at least two components to be configured for the form to be configured. Each component to be configured has a component category and includes at least two component parameters. This method effectively identifies the component to be configured corresponding to the form from a large number of configuration components. Furthermore, the at least two components to be configured are combined to obtain target component groups. This allows for convenient random combination of components to be configured, forming multiple target component groups, increasing configuration diversity, and enabling the subsequently generated target forms to meet the needs of different business scenarios. Key information is extracted from the target component groups to obtain key data. This facilitates the extraction of key configuration information from the target component groups, reducing data volume and improving the storability and retrieval efficiency of the target component group's configuration information. Furthermore, the target component groups are identified based on a pre-acquired current timestamp to obtain a form number. This method generates a form number for each target component group, allowing the corresponding target component group to be searched using the form number. Finally, the form to be configured is configured directly based on the key data and form number to obtain the target form, which can significantly improve the efficiency of form configuration.

[0085] In step S101 of some embodiments, the form configuration instruction can be obtained directly from the server. The form configuration instruction can be issued by relevant configuration personnel on the operating platform, or it can be obtained through other script programs, etc. The form configuration instruction is used to instruct the server to perform form configuration according to preset candidate configuration components.

[0086] Please see Figure 2 In some embodiments, step S102 may include, but is not limited to, steps S201 to S202:

[0087] Step S201: Parse the form configuration instructions to obtain the search fields;

[0088] Step S202: Filter the preset candidate configuration components according to the search field to obtain the components to be configured.

[0089] In step S201 of some embodiments, the form configuration command can be parsed using a commonly used command parsing tool or function to obtain the search fields contained in the form configuration command. These search fields include key attribute content of different candidate configuration components, such as input boxes, general selectors, date selectors, data dimension selectors, report selectors, architecture hierarchy selectors, default values, and custom extension components. The search fields include data dimensions, dates, inputs, reports / tables, hierarchy, etc.

[0090] In step S202 of some embodiments, candidate configuration components are filtered according to the search field of the current form configuration instruction. The consistency between the search field and the attribute content or component name of each candidate configuration component is compared. If the attribute content or component name of a candidate configuration component contains the search field, then the candidate configuration component is selected as a component to be configured. For example, when the search field is date or dimension, the components to be configured obtained after component filtering are a date selector and a data dimension selector. Each component to be configured has a component category and includes at least two component parameters. For example, the component category of the date selector is date or time, and the component parameters of the date selector include year, month, day, week, quarter, etc. The component category of the data dimension selector is time dimension, marketing channel dimension, regional expansion dimension, etc., and the component parameters of the data dimension selector include first-level organization, second-level organization, third-level organization, etc.

[0091] It should be noted that the candidate configuration components include input boxes, general selectors, date selectors, data dimension selectors, report selectors, architecture hierarchy selectors, default values, and custom extension components, etc.

[0092] Input boxes are provided for operators (such as users or staff) to type in.

[0093] A universal selector refers to a traditional selector that includes a variety of preset options, such as yes or no. These options can be configured by configuring the universal selector.

[0094] The date picker supports single selection, including selection of year, month, day, week, and quarter. It also supports range selection, including time range, date range (day, month), etc. In other words, the component parameters of the date picker include year, month, day, quarter, time range, date range, etc.

[0095] The data dimension selector includes data dimensions corresponding to the enterprise's hierarchical levels. Marketing channel dimensions include war zones, secondary organizations, tertiary organizations, sales areas, sales departments, sales teams, etc. Regional expansion dimensions include war zones, secondary organizations, tertiary organizations, sales districts, sales offices, etc.

[0096] The report selector includes various reports, which are pre-generated report information. After the server generates reports through development, it can generate a unique identifier for each report. These report identifiers can be used as options for the report selector. In other words, the report selector is a special general selector used to store report identifiers.

[0097] The architecture hierarchy components are divided into two parts: the marketing channel hierarchy includes war zones, secondary institutions, tertiary institutions, sales areas, sales departments, sales groups, and agents; and the regional expansion channel hierarchy includes war zones, secondary institutions, tertiary institutions, sales departments, sales offices, sales sections, sales areas, and agents.

[0098] Default values ​​refer to parameters that do not require user selection or operation; they are preset parameters for candidate components.

[0099] A custom extension component is a special component that allows for customization of a specific configuration component within a target component group of a visual configuration by supplementing the code, enabling code adjustments.

[0100] Through the above steps S201 to S202, the preset candidate configuration components can be easily filtered according to actual needs. The filtered components can be used for form configuration, which reflects the diversity of form configuration, enables personalized form configuration, improves the reusability of candidate configuration components, and allows candidate configuration components to be used in different business scenarios, thus improving the applicability of form configuration.

[0101] Please see Figure 3 In some embodiments, the component parameters include candidate report data, and step S103 may include, but is not limited to, steps S301 to S304:

[0102] Step S301: Obtain reference report information;

[0103] Step S302: Generate a report identifier for each candidate report data based on the reference report information;

[0104] Step S303: Based on the report identifier and candidate report data, construct the mapping relationship between every two components to be configured;

[0105] Step S304: Combine the components to be configured according to the mapping relationship to obtain the target component group.

[0106] In step S301 of some embodiments, report development can be performed through pre-set development code in the server to obtain reference report information. The reference report information includes different types of reports. For example, in the insurance field, the reference report information includes report types such as insurance type list and insurance amount list.

[0107] In step S302 of some embodiments, when generating reference report information on the server side, a string is added to each reference report information. This string is the identification information of the reference report information. Therefore, based on the reference report information and its corresponding identification information, the report identifier of each candidate report data in the report selector can be easily determined.

[0108] In step S303 of some embodiments, the report content in the candidate report data is extracted, and the key fields of the report content are extracted to obtain the report key fields. Based on the report identifier and the report key fields, the components to be configured that contain the same or similar report key fields are selected and associated to obtain the mapping relationship between each pair of components to be configured.

[0109] In step S304 of some embodiments, the components to be configured that have a mapping relationship can be grouped into one group to realize the combination of the components to be configured, thereby obtaining multiple target component groups.

[0110] Steps S301 to S304 above can be used to conveniently and randomly combine the components to be configured to form multiple target component groups, thereby increasing the diversity of configuration and enabling the target forms generated subsequently to meet the needs of different business scenarios.

[0111] In step S104 of some embodiments, key information of the target component group can be extracted through a pre-set code program to obtain key data of the target component group. The key information extraction process can be understood as logically extracting the selection logic of the target component group to obtain its key data. This key data stores the configuration information of each configuration component in the target component group. For example, it includes each option information and its corresponding value for the general selector, the report options for the report selector, the date configuration (year, month, day, etc.) for the date selector, and the data processing after selecting the date, such as YYYY-DD-MM (2022-06-30) or YYYY-DD (2022-06), etc. This method allows for convenient extraction of key configuration information from the target component group, extracting the highly repetitive and cumbersome logic of configuration components in traditional form development and displaying it as key data configuration. This effectively reduces the amount of data, making the form configuration process more intelligent and convenient, and improving the storability and retrieval efficiency of the target component group's configuration information.

[0112] Please see Figure 4 In some embodiments, step S105 may include, but is not limited to, steps S401 to S403:

[0113] Step S401: Obtain the target physical address;

[0114] Step S402: Generate a target random number based on a preset function and the current timestamp;

[0115] Step S403: Based on the target random number and the target physical address, generate a form number for the target component group, wherein the form number is unique.

[0116] In step S401 of some embodiments, the target physical address can be the server's current local MAC address. The target physical address can be obtained through various methods, such as entering an address lookup command.

[0117] In step S402 of some embodiments, the current time is obtained through a timer or other timing tool, and then a timestamp conversion tool is used to convert the current time into a current timestamp. This current timestamp is a character sequence, and the default function is the rand() function. The rand() function is used to generate a target random number from the current timestamp. This random number is an integer between 0 and 30000. Without any additional settings, a target random number can be generated each time the current timestamp is obtained, and the generated target random number is different.

[0118] In step S403 of some embodiments, a logical operation is performed on the target random number and the target physical address to obtain the form number of the target component group. This logical operation can be a division or multiplication operation between the target physical address and the target random number, etc. Introducing the server's local MAC address during the form number generation process ensures the uniqueness of the form number. The form number identifies the JSON file configured for the current target component group, giving each JSON file a unique number, and ensuring that each independent target form corresponds to a JSON file configured for the target component group.

[0119] Through the above steps S401 to S403, the unique form number corresponding to each target component group can be obtained relatively easily, so that a usable target component group can be quickly generated based on a form number. The target component group is a combination of form search conditions, which can improve the reusability of the target component group.

[0120] In step S106 of some embodiments, key data and form numbers can be integrated and processed to generate form configuration information, and then the form to be configured can be configured according to the generated form configuration information to obtain the target form.

[0121] Furthermore, in some embodiments, the server can also cache the template data of the target form through Redis, thereby accelerating the access speed of form data. For example, using a front-end and back-end separation deployment approach, the web client uses Vue technology and is deployed on the target cloud service platform. The cached template data is generated and loaded through Redis after the project startup initialization is complete. The template data is stored in the target database, and the template data in Redis is updated synchronously when the template corresponding to the target form is manipulated. The cached template data includes form configuration information, personalized button configuration information, and custom parameters, etc.

[0122] It should be noted that the aforementioned front-end and back-end separation deployment is one deployment method within the front-end and back-end separation development model. This refers to the separation of front-end code deployment and server-side code deployment. After the front-end code is written, it is compiled and packaged into browser-accessible files such as HTML, JavaScript, and CSS. The server-side in this embodiment operates similarly. After writing the code corresponding to the form configuration information of the target form, the code data is compiled, processed, and deployed to the server, thereby running the server and enabling it to easily process requests sent by the target client.

[0123] The form configuration method of this application embodiment obtains a form configuration instruction and, based on the form configuration instruction, obtains at least two components to be configured in the form to be configured. Each component to be configured has a component category and includes at least two component parameters. This method can effectively identify the component to be configured corresponding to the form from a large number of configuration components. Furthermore, the method performs component combination processing on the at least two components to be configured to obtain target component groups. This allows for convenient random combination of components to be configured to form multiple target component groups, improving the diversity of configuration and enabling the subsequently generated target forms to meet the needs of different business scenarios. Key information is extracted from the target component groups to obtain key data. This facilitates the extraction of key configuration information from the target component groups, reducing the data volume and improving the storability and retrieval efficiency of the configuration information. Furthermore, the method generates an identifier for the target component groups based on a pre-obtained current timestamp, obtaining a form number for each target component group. This method generates a form number for each target component group, allowing the corresponding target component group to be searched using the form number. Finally, the form to be configured is configured directly based on the key data and form number to obtain the target form, which can significantly improve the efficiency of form configuration.

[0124] With the form configuration method of this application embodiment, developers do not need special coding in most development and application processes during software development. They only need to select the corresponding components or modules for configuration according to project requirements, which greatly improves the efficiency of software development, reduces the difficulty of software development and application, and allows applications to be deployed immediately, significantly shortening the debugging period of application development.

[0125] Figure 5 This is an optional flowchart of the page generation method provided in the embodiments of this application, applied to the client side. Figure 5 The method may include, but is not limited to, steps S501 to S505.

[0126] Step S501: Obtain the operation instructions for the target object;

[0127] Step S502: Parse the operation instruction to obtain the target code parameter, wherein the target code parameter includes the form number of the target form;

[0128] Step S503: Send the form number to the server and receive the form configuration information fed back by the server based on the form number;

[0129] Step S504: Render the form configuration information to obtain the target page data;

[0130] Step S505: Generate a target page based on the target page data. The target page is used to display to the target object.

[0131] In step S501 of some embodiments, the operation instructions of the target object can be directly obtained through a script program. The target object is a user, staff member, or other relevant personnel. The operation instructions can be issued by the target object through keyboard and mouse input, voice input, or other means. The form configuration instructions are used to call the form configuration information generated on the server side to display the form page.

[0132] In step S502 of some embodiments, the operation instruction can be parsed using a commonly used instruction parsing tool or function to obtain the target code parameter corresponding to the operation instruction. This target code parameter includes the form number of the target form, which can be a number, letter, or string. It should be noted that the form number of the target form is always unique.

[0133] In step S503 of some embodiments, the form number is sent to the server in the form of a signal stream or data stream via wireless or wired communication. The server can query the form configuration information of the corresponding target form based on the form number. This form configuration information is in JSON format. Further, the client receives the form configuration information of the target form queried by the server based on the form number, so as to call the target component group corresponding to the target form through the form configuration information and perform visualization processing on the target component group.

[0134] Please see Figure 6 In some embodiments, step S504 may include, but is not limited to, steps S601 to S603:

[0135] Step S601: Render the form configuration information to obtain the target component group corresponding to the form configuration information;

[0136] Step S602: Generate the target form based on the target component group;

[0137] Step S603: Visualize the target form to obtain the target page data.

[0138] In step S601 of some embodiments, the client renders the form configuration information into a corresponding target component group. At this time, the target object can see multiple configuration components in the target component group on the target page. These configuration components are combined to form the target component group.

[0139] In step S602 of some embodiments, a source code template file for generating the page is invoked according to the operation instruction. The source code template includes at least one of a frame structure file, a layout file, and a logic processing file. The frame structure file includes HTML parameters; the layout file includes CSS parameters; and the logic processing file includes JS parameters. The HTML parameters represent the various structures deployed on the page, such as the shape of the structures; the CSS parameters represent the attributes of the structures, such as size or color; and the CSS parameters represent the logical processing of the various structures on the page, such as the sequential arrangement of tables.

[0140] It should be noted that the files contained in the source code template file are only page templates that can be obtained. The specific dimensions, colors, borders, and other parameter values ​​of the structure in the page need to be determined based on the target component group. In this embodiment, the source code template file required by the page saves the composition parameters of each structure so that a basic planar template of the page can be constructed based on the source code template file, so that the composition parameter values ​​of each structure can be effectively filled.

[0141] Furthermore, the target component group and the source code template file are jointly compiled to obtain form content data, which includes form frame parameters, component selection parameters, layout parameters, etc., thereby generating the target form based on the form content data.

[0142] In step S603 of some embodiments, the form content data in the target form is converted into an image form using computer graphics and common image processing techniques to obtain target page data, enabling the target object to interact with the target page generated based on the target page data.

[0143] By using the above steps S601 to S603, the target component group contained in the target form can be determined relatively easily based on the form configuration information, and the target form can be constructed based on the target component group and the source code template file. In this way, the target page data can be generated based on the target form, which can effectively improve the speed and accuracy of page generation.

[0144] In step S505 of some embodiments, a target page is generated on the client's display interface based on the target page data. The target page contains multiple configuration components of the target form. The target page is then displayed to the target object, allowing the target object to fill in the content of the components on the target page by typing, thereby querying the required data.

[0145] The page generation method of this application embodiment obtains the operation instructions of the target object; parses the operation instructions to obtain target code parameters, wherein the target code parameters include the form number of the target form; sends the form number to the server and receives the form configuration information fed back by the server based on the form number; renders the form configuration information to obtain target page data; generates the target page based on the target page data, and displays the target page to the target object, thereby improving the efficiency of page generation.

[0146] Please see Figure 7 This application also provides a form configuration apparatus that can implement the above-described form configuration method. The apparatus includes:

[0147] Configuration instruction acquisition module 701 is used to acquire form configuration instructions;

[0148] The component acquisition module 702 is used to acquire at least two components to be configured in the form to be configured based on the form configuration instructions; wherein each component to be configured has a component category and each component to be configured includes at least two component parameters;

[0149] The component combination module 703 is used to perform component combination processing on at least two components to be configured to obtain a target component group;

[0150] The information extraction module 704 is used to extract key information from the target component group to obtain key data of the target component group.

[0151] The identifier generation module 705 is used to generate an identifier for the target component group based on the pre-acquired current timestamp, and obtain the form number of the target component group;

[0152] The form configuration module 706 is used to configure the form to be configured based on key data and form number to obtain the target form.

[0153] In some embodiments, the component acquisition module 702 includes:

[0154] The content parsing unit is used to parse the content of form configuration instructions to obtain the search fields;

[0155] The component filtering unit is used to filter preset candidate configuration components based on search fields to obtain the components to be configured.

[0156] In some embodiments, the component parameters include candidate report data, and the component combination module 703 includes:

[0157] The information acquisition unit is used to acquire reference report information;

[0158] The identifier generation unit is used to generate a report identifier for each candidate report data based on the reference report information.

[0159] The relationship building unit is used to build a mapping relationship between every two components to be configured, based on the report identifier and candidate report data.

[0160] The combination unit is used to combine the components to be configured according to the mapping relationship to obtain the target component group.

[0161] In some embodiments, the identifier generation module 705 includes:

[0162] Address acquisition unit, used to acquire the target physical address;

[0163] The random number generation unit is used to generate a target random number based on a preset function and the current timestamp;

[0164] The number generation unit is used to generate a form number for the target component group based on the target random number and the target physical address, wherein the form number is unique.

[0165] The specific implementation of this form configuration device is basically the same as the specific implementation of the form configuration method described above, and will not be repeated here.

[0166] Please see Figure 8 This application also provides a page generation apparatus that can implement the above-described page generation method. The apparatus includes:

[0167] The operation instruction acquisition module 801 is used to acquire operation instructions for the target object;

[0168] The content parsing module 802 is used to parse the operation instructions to obtain the target code parameters, wherein the target code parameters include the form number of the target form;

[0169] The information processing module 803 is used to send the form number to the server and receive the form configuration information fed back by the server based on the form number.

[0170] Rendering module 804 is used to render the form configuration information to obtain the target page data;

[0171] The page generation module 805 is used to generate a target page based on the target page data. The target page is used to display to the target object.

[0172] In some embodiments, the rendering module 804 includes:

[0173] The rendering unit is used to render the form configuration information and obtain the target component group corresponding to the form configuration information;

[0174] The form generation unit is used to generate the target form based on the target component group;

[0175] The visualization unit is used to visualize the target form and obtain the target page data.

[0176] The specific implementation of this page generation device is basically the same as the specific implementation of the page generation method described above, and will not be repeated here.

[0177] This application also provides an electronic device, which includes: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for communication between the processor and the memory. When the program is executed by the processor, it implements the aforementioned form configuration method or page generation method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0178] Please see Figure 9 , Figure 9 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes:

[0179] The processor 901 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.

[0180] The memory 902 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 902 and is called and executed by the processor 901 using the form configuration method or page generation method of the embodiments of this application.

[0181] The input / output interface 903 is used to implement information input and output;

[0182] The communication interface 904 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0183] Bus 905 transmits information between various components of the device (e.g., processor 901, memory 902, input / output interface 903, and communication interface 904);

[0184] The processor 901, memory 902, input / output interface 903, and communication interface 904 are connected to each other within the device via bus 905.

[0185] This application also provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the above-described form configuration method or page generation method.

[0186] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0187] The form configuration method, page generation method, form configuration device, electronic device, and computer-readable storage medium provided in this application obtain form configuration instructions and, based on these instructions, acquire at least two components to be configured in the form to be configured. Each component to be configured has a component category and includes at least two component parameters. This method effectively identifies the component to be configured corresponding to the form from a large number of configuration components. Furthermore, by combining the at least two components to be configured to obtain target component groups, it is possible to easily and randomly combine the components to be configured to form multiple target component groups, improving the diversity of configuration and enabling the subsequently generated target forms to meet the needs of different business scenarios. By extracting key information from the target component groups to obtain key data, it is possible to easily extract key configuration information from the target component groups, reducing the data volume and improving the storability and retrieval efficiency of the configuration information. Furthermore, by generating an identifier for the target component groups based on a pre-acquired current timestamp, a form number for the target component groups is obtained. This method generates a form number for each target component group, allowing the corresponding target component group to be searched using the form number. Finally, the form to be configured is configured directly based on the key data and form number to obtain the target form, which can significantly improve the efficiency of form configuration.

[0188] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0189] It will be understood by those skilled in the art that Figure 1-6 The technical solutions shown do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0190] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0191] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0192] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0193] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0194] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0195] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0196] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0197] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0198] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A form configuration method, characterized in that, Applied to the server side, the method includes: Retrieve form configuration instructions; Based on the form configuration instructions, at least two components to be configured for the form to be configured are obtained; wherein each component to be configured has a component category and each component to be configured includes at least two component parameters; Perform component combination processing on at least two of the components to be configured to obtain a target component group; Key information is extracted from the target component group to obtain key data of the target component group; The target component group is identified and generated based on the pre-acquired current timestamp to obtain the form number of the target component group; Configure the form to be configured based on the key data and the form number to obtain the target form; The component parameters include candidate report data, and the component combination processing of at least two of the components to be configured to obtain the target component group includes: Obtain reference report information; generate a report identifier for each candidate report data based on the reference report information; construct a mapping relationship between each pair of components to be configured based on the report identifier and the candidate report data; combine the components to be configured according to the mapping relationship to obtain the target component group; The step of obtaining at least two components to be configured in the form based on the form configuration instruction includes: The form configuration instruction is parsed to obtain the search field; the preset candidate configuration components are filtered according to the search field to obtain the component to be configured.

2. The form configuration method according to claim 1, characterized in that, The step of generating an identifier for the target component group based on a pre-acquired current timestamp to obtain the form number of the target component group includes: Obtain the target physical address; Generate a target random number based on a preset function and the current timestamp; Based on the target random number and the target physical address, a form number for the target component group is generated, wherein the form number is unique.

3. The form configuration method according to any one of claims 1 to 2, characterized in that, The method further includes: The client receives the form number of the target form, which is obtained by the client acquiring the operation instructions of the target object and parsing the content of the operation instructions. The form configuration information of the corresponding target form is retrieved based on the form number, and the form configuration information is fed back so that the client receives the fed-back form configuration information, renders the form configuration information to obtain target page data, and generates a target page based on the target page data. The target page is used to display to the target object.

4. A page generation method, characterized in that, Applied to a client, the method includes: Obtain the operation instructions for the target object; The operation instruction is parsed to obtain target code parameters, wherein the target code parameters include the form number of the target form, and the target form is obtained by the form configuration method according to any one of claims 1-3; Send the form number to the server and receive the form configuration information fed back by the server based on the form number; The form configuration information is rendered to obtain the target page data; A target page is generated based on the target page data, and the target page is used to display to the target object.

5. The page generation method according to claim 4, characterized in that, The rendering process of the form configuration information to obtain the target page data includes: Render the form configuration information to obtain the target component group corresponding to the form configuration information; The target form is generated based on the target component group; The target form is visualized to obtain the target page data.

6. A form configuration device, characterized in that, The device, applied to the server side, includes: The configuration instruction retrieval module is used to retrieve form configuration instructions; The component acquisition module is used to acquire at least two components to be configured in the form to be configured based on the form configuration instructions; wherein each component to be configured has a component category and each component to be configured includes at least two component parameters; The component combination module is used to perform component combination processing on at least two of the components to be configured to obtain a target component group; The information extraction module is used to extract key information from the target component group to obtain key data of the target component group. The identifier generation module is used to generate an identifier for the target component group based on a pre-acquired current timestamp, thereby obtaining the form number of the target component group; The form configuration module is used to configure the form to be configured based on the key data and the form number to obtain the target form; The component parameters include candidate report data, and the component combination processing of at least two of the components to be configured to obtain the target component group includes: Obtain reference report information; generate a report identifier for each candidate report data based on the reference report information; construct a mapping relationship between each pair of components to be configured based on the report identifier and the candidate report data; combine the components to be configured according to the mapping relationship to obtain the target component group; The step of obtaining at least two components to be configured in the form based on the form configuration instruction includes: The form configuration instruction is parsed to obtain the search field; the preset candidate configuration components are filtered according to the search field to obtain the component to be configured.

7. A page generation apparatus, characterized in that, Applied to a client, the device includes: The operation instruction acquisition module is used to acquire operation instructions for the target object; The content parsing module is used to parse the operation instructions to obtain target code parameters, wherein the target code parameters include the form number of the target form, and the target form is obtained by the form configuration method according to any one of claims 1-3; The information processing module is used to send the form number to the server and receive the form configuration information fed back by the server based on the form number. The rendering module is used to render the form configuration information to obtain the target page data; The page generation module is used to generate a target page based on the target page data, and the target page is used to display to the target object.

8. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement: The form configuration method as described in any one of claims 1 to 3; or, The page generation method as described in any one of claims 4 to 5.

9. A computer-readable storage medium storing a computer program, characterized in that, The computer program is executed by the processor to achieve the following: The form configuration method as described in any one of claims 1 to 3; or, The page generation method as described in any one of claims 4 to 5.

Citation Information

Patent Citations

  • Visual page building method and device and computer equipment

    CN112925520A

  • Form configuration method and device, electronic equipment and storage medium

    CN113238741A