Form generation method and device

By receiving front-end query requests, searching for style identifiers and determining display components and indicator data, the problems of low form generation efficiency and poor flexibility in the existing technology are solved, and efficient and flexible form generation is achieved.

CN119356660APending Publication Date: 2025-01-24CHINABANK PAYMENT (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411411888.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

When generating forms, it is difficult for the prior art to flexibly and efficiently respond to the needs of different business scenarios, resulting in long development cycles, high costs and limited flexibility.

Method used

By receiving the query request issued by the front end, it searches for the style identifier corresponding to the indicator option, determines the display components and indicator data based on the style identifier, and uploads it to the front end to generate the target form.

Benefits of technology

It simplifies the form generation process, saves costs, improves the efficiency and flexibility of form generation, and can better meet specific business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356660A_ABST
    Figure CN119356660A_ABST
Patent Text Reader

Abstract

The invention provides a form generation method and device.The method comprises the steps that a query request issued by a front end is received, and a style identifier corresponding to an index option in the query request is searched; when the style identifier is found, determining index data under the index option; according to the style identifier, determining a display component for displaying the index option; and uploading the index data and the display component to a front end, so that the front end generates a target form based on the index data and the display component. According to the embodiment, the form generation process can be simplified, the form generation cost is saved, and the form generation efficiency and the flexibility of the form generation process are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a form generation method and device. Background Art

[0002] The form is the main way of interaction between users and the system, and is the core component for implementing data collection, data query and other steps. In order to meet the needs of a large number of form components or complex form query pages in different business scenarios, how to flexibly and efficiently generate the target form is an important issue.

[0003] Existing technologies usually generate forms by self-writing or using low-code platforms. However, self-writing form pages requires a long development cycle and is difficult to cope with business changes. Although low-code platforms simplify the development process, the implementation cost for complex scenarios with customized components of multiple forms is too high and cannot meet specific business needs, thus affecting the efficiency and flexibility of form generation. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure at least provide a form generation method, device, electronic device and storage medium, which can simplify the form generation process, save form generation costs, and improve form generation efficiency and flexibility of the form generation process.

[0005] In a first aspect, an embodiment of the present disclosure provides a form generation method, the method comprising:

[0006] Receive a query request sent by the front end, and search for a style identifier corresponding to an indicator option in the query request;

[0007] When the style identifier is found, determining a display component for displaying the indicator option and the indicator data under the indicator option according to the style identifier;

[0008] The indicator data and the display component are uploaded to the front end, so that the front end generates a target form based on the indicator data and the display component.

[0009] Optionally, the method further comprises:

[0010] When the style identifier cannot be found, a style identifier corresponding to the indicator option is generated, and indicator data corresponding to the indicator option is acquired from the front end.

[0011] Optionally, determining the indicator data under the indicator option includes:

[0012] Determine whether the query request includes supplementary data corresponding to the indicator option. If so, use the supplementary data as the indicator data under the corresponding indicator option; if not, search for enumeration data corresponding to the style identifier and use the enumeration data as the indicator data under the indicator option.

[0013] Optionally, after the front end generates a target form based on the indicator data and the display style, it further includes:

[0014] Receive a form update request sent by the front end, upload the display components and indicator data corresponding to the indicator options in the form update request to the front end, so that the front end updates the target form; the form update request includes an addition or deletion request for the indicator options.

[0015] Optionally, the display component includes a composite component composed of at least two basic components; the basic component includes at least one of a text box, a drop-down box, a selection box, and a date selection box.

[0016] Optionally, the query request includes rule information indicating a logical relationship between at least two indicator options; the logical relationship includes at least one of and, or.

[0017] Optionally, the query request includes business scenario information associated with the target form;

[0018] Determine the indicator data under the indicator option, including:

[0019] According to the business scenario information and the style identifier, indicator data under the indicator option is determined.

[0020] In a second aspect, an embodiment of the present disclosure provides a form generating device, including:

[0021] A search module, used to receive a query request sent by the front end, and search for a style identifier corresponding to an indicator option in the query request;

[0022] A determination module, configured to determine, when the style identifier is found, a display component for displaying the indicator option and indicator data under the indicator option according to the style identifier;

[0023] A generating module is used to upload the indicator data and the display component to the front end, so that the front end generates a target form based on the indicator data and the display component.

[0024] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps in the above-mentioned first aspect, or any optional implementation of the first aspect are performed.

[0025] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect, or any optional implementation of the first aspect are executed.

[0026] In any one of the above aspects or any implementation of any one of the aspects, by receiving a query request sent by the front end, searching for a style identifier corresponding to the indicator option in the query request; when the style identifier is found, determining a display component for displaying the indicator option and the indicator data under the indicator option according to the style identifier; uploading the indicator data and the display component to the front end so that the front end generates a target form based on the indicator data and the display component. In this way, the work of determining the indicator data and the display component corresponding to the indicator option can be handed over to the server, and the front end only needs to send a query request to generate the target form, thereby improving the efficiency and flexibility of form generation.

[0027] In a further embodiment of the present disclosure, when the style identifier corresponding to the indicator option cannot be found, the indicator data corresponding to the indicator option can be obtained through the front end, and the display component corresponding to the indicator option can be determined according to the obtained indicator data. In this way, there is no need for the front end to submit the display component corresponding to the indicator option first, and the indicator component corresponding to the indicator data is determined, which further improves the flexibility of the form generation process.

[0028] In a further embodiment of the present disclosure, the query request may also include business scenario information. When determining the indicator data corresponding to the indicator option, it can be determined based on the business scenario information and the style identifier. This enables differentiated display in different business scenarios for the same indicator option, further improving the efficiency and flexibility of form generation.

[0029] The effects of the above-mentioned form generating device, electronic device and storage medium refer to the description of the above-mentioned form generating method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0031] Figure 1 A flow chart of a form generation method provided by an embodiment of the present disclosure is shown;

[0032] Figure 2 A schematic diagram of an indicator selection page in the form generation method provided by an embodiment of the present disclosure is shown;

[0033] Figure 3 A schematic diagram showing a logical relationship between indicator options in a form generation method provided by an embodiment of the present disclosure;

[0034] Figure 4 A schematic diagram of a form component after a display component is matched with indicator data in a form generation method provided by an embodiment of the present disclosure is shown;

[0035] Figure 5 A schematic diagram of a form generating device provided by an embodiment of the present disclosure is shown;

[0036] Figure 6 An exemplary system architecture is shown in which embodiments of the present disclosure may be applied;

[0037] Figure 7 A schematic diagram of the structure of a computer system of a terminal device or a server used to implement an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0039] It should be noted that in the technical solution of the present invention, the collection, use, storage, sharing and transfer of user personal information involved are in compliance with the provisions of relevant laws and regulations, and it is necessary to inform the user and obtain the user's consent or authorization. When applicable, the user's personal information is de-identified and / or anonymized and / or encrypted.

[0040] According to research, forms play a vital role in modern applications. Forms are one of the main interaction media between users and systems, and can collect, display and process data. Forms play an indispensable role in various industries and fields. For example, in the e-commerce field, user registration, order submission, payment information, etc. all need to be completed through forms; in the field of scientific research, data recording, data screening and other tasks also require the support of forms. Therefore, how to generate forms flexibly and efficiently is a very important issue.

[0041] There are some technologies in the existing technology that can generate forms. For example, forms that meet user needs can be generated by self-writing pages or through low-code platforms. However, although the self-writing page method is flexible, it has a long development cycle and high costs, and it is difficult to cope with business changes; and although the low-code platform simplifies the development process, the cost of implementing complex scenarios of multi-form customized components is too high, and it is limited by the functions and customization capabilities provided by the platform, and cannot fully meet specific business needs. As a result, the efficiency of existing form generation is low and the flexibility is greatly limited.

[0042] Based on the above research, the embodiment of the present disclosure proposes a form generation method, which receives a query request issued by the front end, searches for a style identifier corresponding to the indicator option in the query request; when the style identifier is found, determines the display component used to display the indicator option and the indicator data under the indicator option according to the style identifier; uploads the indicator data and the display component to the front end, so that the front end generates a target form based on the indicator data and the display component. In this way, the work of determining the indicator data and the display component corresponding to the indicator option can be handed over to the server, and the front end only needs to issue a query request to generate the target form, thereby improving the efficiency and flexibility of form generation. In addition, when the style identifier corresponding to the indicator option cannot be found, the indicator data corresponding to the indicator option can be obtained through the front end, and the display component of the indicator option can be determined according to the obtained indicator data. In this way, there is no need for the front end to submit the display component corresponding to the indicator option first, and the indicator component corresponding to the indicator data is determined, further improving the flexibility of the form generation process. In addition, the query request may also include business scenario information. When determining the indicator data corresponding to the indicator option, it can be determined based on the business scenario information and the style identifier. This enables differentiated display in different business scenarios for the same indicator option, further improving the efficiency and flexibility of form generation.

[0043] The raising of the above problems and the solutions are the results obtained by the inventor after practice and careful research. The discovery process of the above problems and the solutions proposed for the above problems should be the contributions made by the inventor to the present disclosure during the disclosure process.

[0044] The technical solutions in the present disclosure will be clearly and completely described below in conjunction with the drawings in the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0045] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0046] To facilitate understanding of this embodiment, a form generation method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the form generation method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the form generation method can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0047] See also Figure 1 FIG. 1 is a flowchart of a form generation method provided by an embodiment of the present disclosure, wherein the method includes S101 to S103, wherein:

[0048] S101: receiving a query request sent by a front end, and searching for a style identifier corresponding to an indicator option in the query request.

[0049] In this step, the server of the form generation system may receive a query request sent by the front end, the query request including indicator options that need to be displayed in the form, and then the server may determine a style identifier corresponding to the indicator option based on the query request.

[0050] In the embodiment of the present disclosure, the front end and the server are separate, and the query request received by the server is generated and issued by the front end. Figure 2 Select the indicator options that need to be displayed in the target form on the indicator selection page shown. After completing the indicator option selection, the user can trigger Figure 2 Click the "OK" button to indicate that the current indicator option has been selected, and generate a corresponding query request based on the currently selected indicator option, and then send the generated query request to the server.

[0051] In another possible implementation, the front end may also automatically generate a corresponding query request based on the indicator option currently selected by the user. For example, if the user first selects the indicator option "Business source", the front end may generate a corresponding query request based on the indicator option, and then send it to the server to find the corresponding style identifier; when the user selects the indicator option "Customer type", a new query request may be generated based on the new indicator option and sent to the back end. In other words, the front end may not generate a query request corresponding to the complete form after the user selects the indicator option to be displayed, but may generate a query request corresponding to the indicator option each time an indicator option is selected, thereby enabling the user to see the generated effect of the current form in a timely manner. In addition, when the user cancels the selected state of a selected indicator option, the corresponding display component may be directly deleted from the currently displayed target form.

[0052] In the embodiment of the present disclosure, the query request may include rule information indicating the logical relationship between at least two indicator options; the logical relationship includes at least one of and, or. Figure 3 As shown, Figure 3 FIG. 1 is a schematic diagram of the logical relationship between indicator options in an embodiment of the present disclosure. In the specific implementation, since the target functions of different forms are different, the indicator options to be used are also different. Users can Figure 3 Click the "Add rule condition combination" or "Add rule set" control in the Figure 2 The indicator selection page in. The rule conditions here correspond to the various indicator options in the indicator selection page. The "and" relationship of multiple rule conditions constitutes a condition combination. The relationship between condition combinations is an or relationship, and multiple condition combinations constitute a rule set. It should be noted that the "and" relationship and "or" relationship between the above-mentioned different rule conditions or condition combinations are only examples of possible logical relationships in the embodiments of the present disclosure, and do not constitute an improper limitation on the present invention. In practical applications, actual needs may prevail.

[0053] In the disclosed embodiment, the query request may further include business scenario information associated with the target form. The business scenario information here will be described in the indicator data under the indicator option determined in S102, and will not be described in detail here.

[0054] S102: When the style identifier is found, a display component for displaying the indicator option and indicator data under the indicator option are determined according to the style identifier.

[0055] In this step, searching for the style identifier corresponding to the indicator option in the query request may produce two results.

[0056] In a possible implementation, if a style identifier corresponding to an indicator option is found, a display component for displaying the indicator option and indicator data under the indicator option may be determined according to the style identifier.

[0057] In the specific implementation, the server will store the style identifier corresponding to each indicator selection. The style identifier here has a corresponding relationship with the display component used to display the corresponding indicator option and the default indicator data under the indicator option. Therefore, the display component and indicator data corresponding to the indicator option can be determined through the style identifier.

[0058] In the disclosed embodiment, the display component may include a basic component and a composite component, and the composite component is composed of at least two basic components, wherein the basic component may be any component such as a drop-down box, a text box, a selection box, etc. In a specific implementation, the style of the display component may be pre-packaged in the form generation system. After the style identifier corresponding to the indicator option is determined, the corresponding display component can be matched according to the style identifier. Alternatively, the form generation system may also directly use a third-party component library as a display component for displaying indicator options. It should be noted that the display component and the data are completely independent. The front-end personnel only need to match the display component and the indicator data returned by the server to obtain the target form. The specific process of obtaining the target form will be described in S103, which will not be repeated here.

[0059] In the disclosed embodiments, the indicator data refers to the specific data under each indicator option. For example, when the indicator option is "student user", the corresponding display component can be a radio button, and the indicator data can be "yes" and "no"; when the indicator option is "gender", the corresponding display component can be a drop-down box, and the indicator data can be "male", "female" and "other".

[0060] In another possible implementation, if the style identifier corresponding to the indicator option is not found, it indicates that the style identifier corresponding to the indicator option is not stored in the current server. At this time, a style identifier can be added for the indicator option, and then the indicator data corresponding to the style identifier can be obtained from the front end to determine the corresponding display component.

[0061] In a specific implementation, if the indicator options in the query request include "customer type" and "risk level", and the server cannot find the corresponding style identifier for the indicator option "customer type", then a style identifier for "customer type" can be generated. The style identifier here is to uniquely identify the indicator option, and the specific setting rules are not specifically limited in the disclosed embodiment. When the server does not find the style identifier of an indicator option, it can mean that the server does not store the data corresponding to the indicator option (including display components and indicator data). At this time, the indicator data corresponding to the indicator option can be obtained from the front end. Specifically, when the style identifier corresponding to a certain indicator option cannot be found, the back end can initiate a data acquisition request to the front end, so that the front end first obtains the indicator data and then passes it to the back end. The indicator data obtained by the front end here can be input by the user after the prompt message is issued, or it can be obtained by querying other interfaces associated with the front end.

[0062] After obtaining the indicator data related to the indicator option, the display component used to display the indicator option can be determined according to the indicator data. For example, when the indicator data of "customer type" is "contracted user" and "uncontracted user", the display component can be a selection box; when the indicator data of "customer type" is "ordinary customer", "important customer", "enterprise customer" and "long-term cooperative customer", the display component can be a drop-down box. This achieves matching the corresponding display component according to the specific content of the indicator data, and improves the flexibility of the form generation process.

[0063] After generating a style identifier corresponding to the indicator option and determining the indicator data and display style, this correspondence can be stored in the server so that the next time a form containing the indicator option is generated, it can be generated quickly without redetermining the corresponding indicator data and display style, thereby improving the efficiency of form generation.

[0064] In an embodiment of the present disclosure, determining the indicator data under the indicator option includes: judging whether the query request includes supplementary data corresponding to the indicator option, and if so, using the supplementary data as the indicator data under the corresponding indicator option; if not, searching for enumeration data corresponding to the style identifier, and using the enumeration data as the indicator data under the indicator option.

[0065] In specific implementation, when generating the target form, it may be necessary to adaptively adjust the indicator data under some indicator options. These indicator options can find the corresponding style identifiers on the server side, that is, the corresponding indicator data and display styles are stored on the server side. Therefore, when determining the indicator data under the indicator option, it is possible to first determine whether the query request includes supplementary data corresponding to the indicator option. The supplementary data here is the data that needs to be adjusted for the original indicator data under the indicator option; if so, it can be indicated that the data under the indicator option in the form needs to be adjusted; if not, it can be indicated that the enumeration data corresponding to the indicator option (that is, the original indicator data) can be used.

[0066] For example, for the indicator option "gender", the enumeration data stored on the server is usually "male" and "female". If the query request includes supplementary data for the indicator option, such as "male", "female", and "other", the supplementary data can be used as the indicator data; if there is no supplementary data in the query request, the enumeration data can be used as the indicator data for the indicator option. In addition, due to the change of indicator data, the display component used to display the indicator data can also be changed accordingly. For example, in the above example, the indicator data changes from "male" and "female" to "male", "female", and "other". The original selection box can be changed to a drop-down box, thereby enabling the display component to change based on the change of data, thereby enhancing the display effect of the form.

[0067] In an embodiment of the present disclosure, the query request may also include business scenario information associated with the target form, and determining the indicator data under the indicator option includes: determining the indicator data under the indicator option according to the business scenario information and the style identifier.

[0068] In specific implementations, since different forms correspond to different business scenarios, the indicator data under the same indicator option may differ in different business scenarios. For example, for the indicator option "customer type", in the e-commerce scenario, the corresponding indicator data may be "purchased customers" and "non-purchased customers"; in the risk management scenario, the corresponding indicator data may be "high-risk customers" and "low-risk customers". Therefore, before the front end sends the query request, it can add the business scenario information associated with the target form to the query request and send it to the server together. In this way, the server can determine the indicator data of the indicator option under the business scenario based on the style identifier and business scenario information found, thereby improving the flexibility and efficiency of form generation.

[0069] S103: Uploading the indicator data and the display component to the front end, so that the front end generates a target form based on the indicator data and the display component.

[0070] In this step, after the server determines the display components and indicator data corresponding to the indicator options, it can upload them to the front end, which will complete the work of matching the display components with the indicator data and generate the target form.

[0071] For example, the display component returned by the server for the indicator option "risk level" is a drop-down box, and the indicator data are "level 1 risk", "level 2 risk" and "level 3 risk". After receiving the display component and the indicator data, the front end can mount the indicator data on the display component to obtain the following: Figure 4 The form component shown is used to display the indicator item "Risk Indicator".

[0072] In an embodiment of the present disclosure, after the front end generates a target form based on the indicator data and the display style, it also includes: receiving a form update request issued by the front end, uploading the display components and indicator data corresponding to the indicator options in the form update request to the front end, so that the front end updates the target form; the form update request includes a request to add or delete the indicator options.

[0073] In the specific implementation, after generating the target form, if the user needs to adjust the indicator options displayed in the current form, Figure 2 In the indicator selection page shown, check new indicator options or uncheck selected indicator options. The front end can generate a form update request based on the user's operation. For unchecked indicator options, the front end can directly delete them in the target form. For newly checked indicator options, the front end can send a form update request to the server to enable the server to return the corresponding display components and indicator data to update the target form. The specific process is described above and will not be repeated here.

[0074] According to a second aspect of the embodiment of the present disclosure, Figure 5 As shown, a form generating device 500 is provided, comprising:

[0075] The search module 501 is used to receive the query request sent by the front end, and search for the style identifier corresponding to the indicator option in the query request;

[0076] A determination module 502 is used to determine, when the style identifier is found, a display component for displaying the indicator option and indicator data under the indicator option according to the style identifier;

[0077] The generating module 503 is used to upload the indicator data and the display component to the front end, so that the front end generates a target form based on the indicator data and the display component.

[0078] Optionally, the determining module 502 is further configured to:

[0079] When the style identifier cannot be found, a style identifier corresponding to the indicator option is generated, and indicator data corresponding to the indicator option is obtained from the front end to determine a display component corresponding to the indicator option.

[0080] Optionally, the determination module 502 is specifically configured to:

[0081] Determine whether the query request includes supplementary data corresponding to the indicator option. If so, use the supplementary data as the indicator data under the corresponding indicator option; if not, search for enumeration data corresponding to the style identifier and use the enumeration data as the indicator data under the indicator option.

[0082] Optionally, the generating module 503 is further used for:

[0083] Receive a form update request sent by the front end, upload the display components and indicator data corresponding to the indicator options in the form update request to the front end, so that the front end updates the target form; the form update request includes an addition or deletion request for the indicator options.

[0084] Optionally, the display component includes a composite component composed of at least two basic components; the basic component includes at least one of a text box, a drop-down box, a selection box, and a date selection box.

[0085] Optionally, the query request includes rule information indicating a logical relationship between at least two indicator options; the logical relationship includes at least one of and, or.

[0086] Optionally, the query request includes business scenario information associated with the target form;

[0087] The determination module 502 is further configured to:

[0088] According to the business scenario information and the style identifier, indicator data under the indicator option is determined.

[0089] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device for form generation, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided by the first aspect of the embodiment of the present disclosure.

[0090] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present disclosure is implemented.

[0091] Figure 6An exemplary system architecture 600 to which the form generation method or form generation apparatus implemented by the present disclosure can be applied is shown.

[0092] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0093] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 601, 602, 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).

[0094] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0095] The server 605 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 601, 602, and 603. The backend management server may process the received form generation request and feed back the processing result (only an example) to the terminal device.

[0096] It should be noted that the form generation method provided in the embodiment of the present invention is generally executed by the server 605, and accordingly, the form generation device is generally set in the server 605. The form generation method provided in the embodiment of the present invention can also be executed by the terminal devices 601, 602, and 603, and accordingly, the form generation device can be set in the terminal devices 601, 602, and 603.

[0097] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0098] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0099] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0100] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0101] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0102] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0103] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0104] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, a processor includes a search module, a determination module, and a generation module, wherein the names of these modules do not constitute a limitation on the modules themselves in certain circumstances. For example, the search module may also be described as "receiving a query request sent by the front end, and searching for a style identification module corresponding to an indicator option in the query request."

[0105] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device implements the following method:

[0106] Receive a query request sent by the front end, and search for a style identifier corresponding to an indicator option in the query request;

[0107] When the style identifier is found, determining a display component for displaying the indicator option and the indicator data under the indicator option according to the style identifier;

[0108] The indicator data and the display component are uploaded to the front end, so that the front end generates a target form based on the indicator data and the display component.

[0109] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be based on the protection scope of the claims.

Claims

1. A form generation method, characterized in that: include: Receive a query request sent by the front end, and search for a style identifier corresponding to an indicator option in the query request; When the style identifier is found, determining a display component for displaying the indicator option and the indicator data under the indicator option according to the style identifier; The indicator data and the display component are uploaded to the front end, so that the front end generates a target form based on the indicator data and the display component.

2. The method according to claim 1, characterized in that The method further comprises: When the style identifier cannot be found, a style identifier corresponding to the indicator option is generated, and indicator data corresponding to the indicator option is obtained from the front end to determine a display component corresponding to the indicator option.

3. The method according to claim 1, characterized in that Determine the indicator data under the indicator option, including: Determine whether the query request includes supplementary data corresponding to the indicator option. If so, use the supplementary data as the indicator data under the corresponding indicator option; if not, search for enumeration data corresponding to the style identifier and use the enumeration data as the indicator data under the indicator option.

4. The method according to claim 1, characterized in that: After the front end generates the target form based on the indicator data and the display style, it also includes: Receive a form update request sent by the front end, upload the display components and indicator data corresponding to the indicator options in the form update request to the front end, so that the front end updates the target form; the form update request includes an addition or deletion request for the indicator options.

5. The method according to claim 1, characterized in that The display component includes a composite component composed of at least two basic components; the basic component includes at least one of a text box, a drop-down box, a selection box, and a date selection box.

6. The method according to claim 1, characterized in that The query request includes rule information indicating a logical relationship between at least two indicator options; the logical relationship includes at least one of and, or.

7. The method according to claim 1, characterized in that The query request includes business scenario information associated with the target form; Determine the indicator data under the indicator option, including: According to the business scenario information and the style identifier, indicator data under the indicator option is determined.

8. A form generating device, characterized in that: include: A search module, used to receive a query request sent by the front end, and search for a style identifier corresponding to an indicator option in the query request; A determination module, configured to determine, when the style identifier is found, a display component for displaying the indicator option and indicator data under the indicator option according to the style identifier; A generating module is used to upload the indicator data and the display component to the front end, so that the front end generates a target form based on the indicator data and the display component.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.