Page generation method, device, electronic device and readable storage medium

By displaying page configuration prompt information and responding to page generation requests, determining the page template and obtaining components from the component library, and calling the rendering engine to render the page, solving the page fixation problem, realizing the flexibility of dynamically configuring the page, meeting user and business needs.

CN114217795BActive Publication Date: 2024-11-26BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111468004.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-03
Publication Date
2024-11-26
Estimated Expiration
2041-12-03

AI Technical Summary

Technical Problem

In the prior art, the page is fixed during the page generation process, which cannot meet the dynamic needs of users and business scenarios.

Method used

By displaying the page configuration prompt information, responding to the page generation request, determining the page template containing the template content and configuration rules, obtaining the corresponding components from the component library, and calling the page rendering engine according to the configuration rules to render, and generating the page.

Benefits of technology

It realizes dynamic configuration of pages based on user needs or business needs, solves the problem of page fixation, and improves the flexibility of page generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114217795B_ABST
    Figure CN114217795B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a page generation method, device, electronic device and readable storage medium, including displaying page configuration prompt information; determining a page template in response to a page generation request triggered by the page configuration prompt information, wherein the page template includes template content and configuration rules, and the template content includes at least one field and a component type corresponding to the at least one field; based on the component type corresponding to the at least one field, obtaining at least one component corresponding to the at least one field from a component library; calling a page rendering engine according to the configuration rule, rendering the at least one field and the at least one component, and generating and displaying a page. The technical solution of the present disclosure solves the problem of fixed generated pages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a page generation method, device, electronic device, and readable storage medium. Background Art

[0002] At present, in the process of page development, the form of the page is usually fixed. For example, if the page is a form, the fields and components contained in the form are usually fixed.

[0003] However, as user demands and business scenario requirements increase, the fixed pages in the above traditional solutions may not be able to meet user and business scenario requirements. Summary of the invention

[0004] The present disclosure provides a page generation method, device, electronic device and readable storage medium to at least solve the problem that the generated pages are fixed during page development, resulting in failure to meet user and business scenario requirements. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a page generation method, comprising:

[0006] Display page configuration prompt information;

[0007] In response to a page generation request triggered by the page configuration prompt information, determining a page template, wherein the page template includes template content and configuration rules, and the template content includes at least one field and a component type corresponding to the at least one field;

[0008] Based on the component type corresponding to the at least one field, acquiring at least one component corresponding to the at least one field from a component library;

[0009] Calling a page rendering engine according to the configuration rule to render the at least one field and the at least one component;

[0010] Generate and display the page.

[0011] According to a second aspect of an embodiment of the present disclosure, a page generation method is provided, including:

[0012] Display page configuration prompt information;

[0013] In response to a page generation request triggered by the page configuration prompt information, determining a page template, wherein the page template includes template content and configuration rules, and the template content includes at least one field and a component type corresponding to the at least one field;

[0014] Based on the page template, generate a page rendering request;

[0015] The page rendering request is sent to the server so that the server determines the page template, obtains at least one component corresponding to the at least one field from a component library based on the component type corresponding to the at least one field, and calls the page rendering engine according to the configuration rule to render the at least one field and the at least one component to generate a page.

[0016] According to a third aspect of an embodiment of the present disclosure, there is provided a page generating device, including:

[0017] A first display module is configured to display page configuration prompt information;

[0018] A first determination module is configured to determine a page template in response to a page generation request triggered by the page configuration prompt information;

[0019] an acquisition module, configured to acquire at least one component corresponding to the at least one field from a component library based on the component type corresponding to the at least one field;

[0020] A rendering module, configured to call a page rendering engine according to the configuration rule to render the at least one field and the at least one component;

[0021] The first generating module is configured to generate and display a page.

[0022] According to a fourth aspect of an embodiment of the present disclosure, there is provided a page generating device, including:

[0023] The second display module is configured to display page configuration prompt information;

[0024] A second determination module is configured to determine a page template in response to a page generation request triggered by the page configuration prompt information;

[0025] A second generating module is configured to generate a page rendering request based on the page template;

[0026] The sending module is configured to send the page rendering request to the server.

[0027] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0028] processor;

[0029] a memory for storing instructions executable by the processor;

[0030] The processor is configured to execute the instructions to implement the page generation method described in either the first aspect or the second aspect.

[0031] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the page generation method described in either the first aspect or the second aspect.

[0032] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the page generation method described in either the first aspect or the second aspect is implemented.

[0033] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0034] By displaying page configuration prompt information, a page template can be determined in response to a page generation request triggered by the page configuration prompt information. The page template can include template content and configuration rules, and based on at least one field included in the template content and a component type corresponding to at least one field, at least one corresponding component is obtained from a component library, and a page rendering engine is called to perform rendering according to the configuration rules to generate a page. This solves the problem of fixed page generation in the prior art and enables the configuration of pages according to user needs or business needs.

[0035] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0037] Figure 1 The figure is a flow chart of a page generation method according to an exemplary embodiment.

[0038] Figure 2 The diagram is a schematic diagram of generating a page according to an exemplary embodiment.

[0039] Figure 3 The figure is a flowchart of a page generating method according to another exemplary embodiment.

[0040] Figure 4 The figure is a flowchart of a page generating method according to yet another exemplary embodiment.

[0041] Figure 5 The figure is a flowchart of a page generating method according to yet another exemplary embodiment.

[0042] Figure 6 The figure is a block diagram of a page generating device according to an exemplary embodiment.

[0043] Figure 7 is a block diagram of a page generating device according to another exemplary embodiment.

[0044] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0045] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0047] The present disclosure can be applied to page generation scenarios, especially form generation scenarios. At present, in the process of page development, the form of the page is usually fixed. Taking the page as a form as an example, the fields, components, etc. contained in the form are usually fixed. However, with the increase of user needs and business scenario requirements, the fixed pages in the above traditional solutions may not meet the needs of users and business scenarios.

[0048] Therefore, in order to solve the above technical problems, the inventors have proposed the technical solution of the present disclosure, providing a page generation method, including displaying page configuration prompt information; in response to a page generation request triggered by the page configuration prompt information, determining a page template, wherein the page template contains template content and configuration rules, and the template content includes at least one field and a component type corresponding to at least one field; based on the component type corresponding to the at least one field, obtaining at least one component corresponding to the at least one field from a component library; calling a page rendering engine according to the configuration rules, rendering the at least one field and the at least one component, and generating and displaying a page.

[0049] By displaying page configuration prompt information, a page template can be determined in response to a page generation request triggered by the page configuration prompt information. The page template can include template content and configuration rules, and based on at least one field included in the template content and a component type corresponding to at least one field, at least one corresponding component is obtained from a component library, and a page rendering engine is called to perform rendering according to the configuration rules to generate a page. This solves the problem of fixed page generation in the prior art and enables the configuration of pages according to user needs or business needs.

[0050] The following will be combined with the accompanying drawings to clearly and completely describe the technical solutions 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. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0051] Figure 1 is a flow chart of a page generation method according to an exemplary embodiment, which may include the following steps.

[0052] In step S11, page configuration prompt information is displayed.

[0053] In this embodiment, the page generation method can be applied to a user terminal, which can be configured in a user device, such as a mobile phone, a tablet computer, a smart watch, a computer device, or other intelligent terminal devices. Specifically, the user terminal can display the above page configuration prompt information. In order to facilitate user operation, the page configuration prompt information can include page templates, fields, and other page-related content.

[0054] Optionally, the page generation method can also be applied to the server, and the server can output page configuration prompt information to the user to prompt the user to configure the page. In the page development scenario, the server can establish a communication connection with the user's client, send the page configuration prompt information to the user's client, and the client will display it to the corresponding user.

[0055] Specifically, the server can send page configuration prompt information to the user end after receiving the page configuration request sent by the user end. The page configuration request can be generated by the user end in response to the page configuration operation triggered by the user. The specific implementation process will be described in the subsequent embodiments and will not be repeated here.

[0056] In step S12, in response to a page generation request triggered by the page configuration prompt information, a page template is determined.

[0057] The page template may include template content and configuration rules, and the template content may include at least one field and a component type corresponding to at least one field.

[0058] The template content may include at least one field. Taking a form as an example, it may include a name field, an address field, etc. The component types corresponding to the fields may include a text input component type, a list selection component type, a date selection component type, a picture display component type, etc., which may be set according to the actual application scenario.

[0059] Configuration rules may include information related to page rendering and operation. Optionally, configuration rules may include at least one of field information, form information, and layout information. Specifically, field information may include information such as field type and field attributes, form information may include information such as form structure, and layout information may include display information of fields or components corresponding to fields in the page, such as position information, sorting information, etc.

[0060] In response to a page request triggered by page configuration prompt information, there are multiple implementations for determining a page template, which will be described in subsequent embodiments and will not be described in detail here.

[0061] In step S13, based on the component type corresponding to the at least one field, at least one component corresponding to the at least one field is obtained from the component library.

[0062] Among them, based on the component type corresponding to at least one field included in the page template, at least one component corresponding to at least one field can be obtained from the component library. For example, based on the input component type corresponding to the name field, the corresponding input component can be obtained from the component library. Or, based on the selection component type corresponding to the address field, the corresponding selection component, such as a radio button, can be obtained from the component library. Specifically, the component library can be pre-set.

[0063] Optionally, the component library may also include at least one component corresponding to at least one field provided by a user, that is, a custom component, such as a picture display component provided by a user, etc., without specific limitation.

[0064] In step S14, the page rendering engine is called according to the configuration rules to render at least one field and at least one component.

[0065] In step S15, a page is generated and displayed.

[0066] After at least one component is determined, the page rendering engine can be called to render the at least one field and component according to the configuration rules in the page template to generate a page. Figure 2 As shown, a schematic diagram of generating a form is shown.

[0067] Optionally, the configuration rules may include rendering rules and running rules. The rendering rules may refer to rules related to page rendering, such as component rendering methods, and the running rules may refer to rules related to page running, such as field value verification process during page running. Specifically, the page rendering engine may be called according to the rendering rules to render at least one field and at least one component to generate a page, so that when the page is running, corresponding operations are performed according to the running rules.

[0068] Optionally, when the page generation method is applied to the server, after the server generates the page, the page can be sent to the user, and the user will display it to the user, which will not be described in detail.

[0069] In this embodiment, by displaying page configuration prompt information, a page template can be determined in response to a page generation request triggered by the page configuration prompt information. The page template can include template content and configuration rules, and based on at least one field included in the template content and the component type corresponding to the at least one field, at least one corresponding component is obtained from the component library, and the page rendering engine is called to render according to the configuration rules to generate a page. This solves the problem of fixed page generation in the prior art and enables the page to be configured according to user needs or business needs.

[0070] In actual applications, the above configuration rules can be expanded based on the existing configuration rules. For example, based on the existing schema configuration rules, the relevant definitions of field information, form information, and layout information can be added to the rendering rules and operation rules to increase the flexibility of page configuration. Optionally, the rendering rules may include whether there are boundaries, field types, and page style themes; the operation rules may include field monitoring methods, field verification timing, form submission timing, form reset timing, not calculating form values, error prompt alignment, row-column layout, dependencies, passive response based on target values, and whether to only verify single fields when they change.

[0071] Specifically, according to at least one of whether there is a boundary, a field type, and a page style theme, a page rendering engine may be called to render at least one field and at least one component to generate a page, so as to perform one or more of the following operations when the page is running:

[0072] Monitor the corresponding fields according to the field monitoring method;

[0073] Verify the corresponding fields according to the field verification timing;

[0074] Submit the corresponding form according to the form submission timing;

[0075] Reset the corresponding form according to the form reset timing;

[0076] Process the corresponding fields as if they are not calculated into the form value;

[0077] Prompt the corresponding error field according to the error prompt alignment method;

[0078] Process the corresponding fields according to the dependencies;

[0079] According to the passive response based on the target value, a passive response is made when the corresponding field is at the target value;

[0080] Determine whether to check only a single field when it changes based on whether to check only a single field when it changes.

[0081] In actual applications, since the components in the component library come from many sources and have different development specifications, in order to achieve unified rendering processing, in some implementations, the above page generation method may also include:

[0082] Get components developed according to preset rules and configure them in the component library.

[0083] The preset rules may be pre-set configuration rules expanded based on existing configuration rules, which will not be described in detail. Components developed according to the preset rules may be configured in the component library so as to be rendered according to the configuration rules.

[0084] In order to support rendering according to the above configuration rules, optionally, the page rendering engine can also be developed according to the above preset rules.

[0085] The development process of the page rendering engine can be set according to the actual application scenario without specific restrictions. For example, the 24-list of bootstrap (an HTML, CSS and JavaScript framework for developing responsive layout and mobile device-first WEB projects) can be used for development.

[0086] In actual applications, considering that the page rendering engine usually only supports specific data types when performing data processing such as rendering during operation. Therefore, there may be a situation where the data type of the above configuration rule is inconsistent with the data type supported by the page rendering engine, so that the page rendering engine cannot recognize the configuration rule and cannot perform rendering processing. Therefore, in order to solve the above problem, in some embodiments, before calling the page rendering engine according to the configuration rule, the method may also include:

[0087] Determine the target data type supported by the page rendering engine;

[0088] Converts the data type of the configuration rule to the target data type.

[0089] Among them, the page rendering engine may include a data type conversion tool. For example, the target data type supported by the page rendering engine may be a flattened structure type, such as a typescript type, and the data type of the configuration rule may be a tree structure type, such as a schema type. At this time, the data type of the configuration rule may be converted based on the json-schema-to-typescript conversion tool to obtain the target data type supported by the page rendering engine. Specifically, the data type conversion tool may be set according to the actual application scenario, and the present disclosure does not impose specific restrictions.

[0090] Furthermore, after the data type conversion, the page rendering engine can identify the configuration rule with the target data type, and render at least one field and component according to the configuration rule to generate a page. By converting the data type of the configuration rule to the target data type supported by the page rendering engine, the page rendering engine is prevented from being unable to identify the configuration rule and unable to perform rendering processing according to the configuration rule, thereby achieving type constraints.

[0091] In actual applications, the page template provided by the user can be obtained by user configuration. Figure 3 FIG. 1 is a flow chart of a page generation method according to another exemplary embodiment, which may include the following steps.

[0092] In step S31, page configuration prompt information is displayed, and the page configuration prompt information may include field prompt information, component type prompt information, and configuration rule prompt information.

[0093] In this embodiment, the page generation method can also be applied to the user end, and the user end can display the page configuration prompt information. Optionally, the page generation method can also be applied to the server end, and after the server end receives the page configuration request sent by the user end, it sends the page configuration prompt information to the user end. In addition to the prompt information, the page configuration prompt information also includes field prompt information, component type prompt information and configuration rule prompt information.

[0094] The field prompt information may include multiple recommended fields related to the page to be generated. For example, taking a form as an example, the field prompt information may include a name field, an address field, a contact field, etc. related to the form. The component type prompt information may include multiple recommended component types related to the page to be generated. Taking a form as an example, the component type prompt information may include an input component type, a selection component type, a date selection component type, etc. related to the form. The configuration rule prompt information may include multiple recommended configuration rules related to the page to be generated. Taking a form as an example, the configuration rule prompt information may include field attributes related to the form, such as whether the field is required or optional, and layout information, such as the layout position of the component corresponding to the field in the page.

[0095] In step S32, a page template is determined in response to the field input or selected for the field prompt information, the component type input or selected for the component type prompt information, and the configuration rule input or selected for the configuration rule prompt information.

[0096] After the page configuration prompt information containing the above-mentioned field prompt information, component type prompt information and configuration rule prompt information is sent to the user end where the user is located, the page template provided by the user can be determined based on the page generation request generated by the user's trigger operation for the above-mentioned field prompt information, component type prompt information and configuration rule prompt information.

[0097] Optionally, the trigger operation may include a selection operation, i.e., selecting at least one field from the multiple recommended fields, selecting at least one component type from the multiple recommended component types, and selecting at least one configuration rule from the multiple recommended configuration rules, so that based on the at least one field, at least one component type, and at least one configuration rule selected by the user, a page template provided by the user may be determined, wherein the page template may include the at least one field, component type, and configuration rule. Taking a form as an example, a page template may be determined based on the name field and address field selected by the user from multiple recommended fields, the input component type selected from multiple recommended component types, and configuration rules selected from multiple recommended configuration rules, such as the name field is required, the address field is optional, and the position of the component corresponding to the name field in the page is above the component corresponding to the address field.

[0098] Optionally, the trigger operation may also include an input operation, that is, inputting at least one field, at least one component type and at least one configuration rule, so as to determine the page template provided by the user based on the at least one field, at least one component type and at least one configuration rule input by the user. In this case, the page template may include the at least one field, component type and configuration rule. Taking a form as an example, the page template may be determined based on the name field and email field input by the user, the input component type and the position of the component corresponding to the name field on the page to the left of the component corresponding to the email field.

[0099] Optionally, the trigger operation may also include a selection operation and an input operation, such as selecting at least one field from a plurality of recommended fields, selecting at least one component type from a plurality of recommended component types, and inputting at least one configuration rule, or selecting at least one field from a plurality of recommended fields, and inputting at least one component type and configuration rule, etc. At this time, the page template provided by the user may be determined based on the field input or selected by the user for the field prompt information, the component type input or selected for the component type prompt information, and the configuration rule input or selected for the configuration rule prompt information, and examples are not given one by one.

[0100] In step S33, based on the component type corresponding to the at least one field, at least one component corresponding to the at least one field is obtained from the component library.

[0101] In step S34, the page rendering engine is called according to the configuration rules to render at least one field and at least one component to generate a page.

[0102] In this embodiment, the implementation process of steps S33 to S34 can refer to Figure 1 The specific implementation process of steps S13 to S14 in the illustrated embodiment will not be described in detail here.

[0103] In this embodiment, by displaying page configuration prompt information including field prompt information, component type prompt information, and configuration rule prompt information, a page template can be determined in response to the field entered or selected for the field prompt information, the component type entered or selected for the component type prompt information, and the configuration rule entered or selected for the configuration rule prompt information. The page template can include template content and configuration rules, and based on at least one field included in the template content and the component type corresponding to at least one field, at least one corresponding component is obtained from the component library, and the page rendering engine is called to render according to the configuration rules to generate a page, thereby realizing that the page template can be configured as required and the corresponding page can be generated.

[0104] In the above method, since the fields, component types, configuration rules, etc. contained in the page template provided by the user are obtained based on the selection or input operation triggered by the user in response to the page configuration prompt information, this can be verified to ensure that the page is configured normally. Therefore, in some embodiments, the above method may also include:

[0105] When the configuration rule in the page template is a configuration rule input by the user, check whether the configuration rule complies with the preset rule.

[0106] Among them, checking whether the configuration rule conforms to the preset rule is to check the parameter validity of the configuration rule. For example, it can be checked whether the field type is legal. Specifically, the configuration rule can be checked using a verification tool. Taking the configuration rule as a schema data type as an example, the configuration rule can be checked using the Ajv (verification schema data format) tool to determine the parameter validity of the configuration rule, thereby determining the correctness of the page template configured by the user.

[0107] If the verification passes, the page rendering engine can be called according to the configuration rules to perform rendering operations and generate the page.

[0108] If the verification fails, the page rendering engine cannot be called to perform the rendering operation according to the configuration rule. At this time, a prompt message indicating that the verification failed can be output to the user to inform the user. Optionally, the prompt message may include a modification prompt message to prompt the user to modify the page template. Based on the modified page template, the verification process can be performed again, which will not be repeated.

[0109] In addition to performing the above-mentioned parameter validity check, in some embodiments, when the configuration rule in the page template is a configuration rule input by the user, it can be determined whether the field information in the configuration rule is consistent with the field information in the preset rule.

[0110] If they are consistent, the page rendering engine can be called according to the configuration rules to perform rendering operations and generate the page.

[0111] When the field information in the configuration rule is inconsistent with the field information in the preset rule, since the field information in the configuration rule includes multiple information such as field type and field attributes, some field information, such as field name and other field information related to display and user interaction, will not affect the page rendering processing operation when it is inconsistent with the field information in the preset rule, while some field information, such as field attributes and other field information related to verification, will affect the page rendering processing operation when it is inconsistent with the field information in the preset rule. Therefore, corresponding processing can be performed according to different field information.

[0112] Specifically, the priority of each field information can be set in advance. For example, field information related to display and user interaction such as field name can be set to a lower priority, while field information related to verification such as field attributes can be set to a higher priority. This can be set according to the actual application scenario without specific restrictions.

[0113] According to the above-mentioned preset priority, when the field information in the configuration rule input by the user is inconsistent with the field information in the preset rule, the distinguishing field information and the corresponding priority can be determined. If the priority of the distinguishing field information is lower than the preset priority, the rendering engine can continue to be called according to the configuration rule input by the user, and the rendering operation can be performed to generate the page. Among them, the preset priority can be set according to the actual application scenario, without specific restrictions. Taking the form as an example, the distinguishing field information can be the field name, such as the field name of the mailbox field in the configuration rule input by the user is email, and the name in the preset rule is email. Since the priority of the field name is lower, lower than the preset priority, the rendering engine can continue to be called according to the configuration rule input by the user, and the rendering operation can be performed to generate the page. At this time, the name of the mailbox field in the rendered page is email.

[0114] If the priority of the distinguishing field information is higher than the preset priority, the field information of the configuration rule input by the user is modified using the field information in the preset rule, and the configuration rule input by the user is updated based on the modified field information, and the page rendering engine is called according to the updated configuration rule to perform the rendering operation and generate the page. Taking the form as an example, the distinguishing field information can be a required or optional attribute of the field. For example, when the address field in the configuration rule input by the user is an optional attribute, and the address field in the preset rule is a required attribute, the address field in the configuration rule input by the user is changed to a required attribute and updated, and the page rendering engine is called according to the updated configuration rule to perform the rendering operation and generate the page. At this time, the address field in the rendered page is required.

[0115] Optionally, update prompt information may be output to the user to inform the user of the above update content.

[0116] By verifying the page template provided by the user, we ensure that the parameters of the page template provided by the user are legal and correct, thereby ensuring the normal operation of the page generation process.

[0117] In actual applications, the page template provided by the user can be selected by the user based on the recommended page template. Figure 4 FIG. 1 is a flow chart of a page generation method according to another exemplary embodiment, which may include the following steps.

[0118] In step S41, at least one recommended page template is determined.

[0119] In this embodiment, the page generation method can also be applied to the user end, and the user end can determine at least one recommended page template. Optionally, the page generation method can also be applied to the server end, and after the server end receives the page configuration request sent by the user end, it determines at least one recommended page template. Among them, the recommended page template may include at least one preset field, at least one component type, and at least one configuration rule. The implementation process of determining the recommended page template will be described in subsequent embodiments and will not be repeated here.

[0120] In step S42, page configuration prompt information including at least one recommended page template is generated.

[0121] Based on the determined at least one recommended page template, page configuration prompt information including the at least one recommended page template may be generated. In this case, the page configuration prompt information includes the at least one recommended page template in addition to the prompt information.

[0122] In step S43, page configuration prompt information is displayed.

[0123] The user terminal can display the page configuration prompt information to the user. Optionally, when the page generation method is applied to the server terminal, the server terminal can send the page configuration prompt information to the user terminal, and the user terminal displays the prompt information and at least one recommended page template to the user.

[0124] In step S44, in response to a page request triggered by a page template selected from at least one recommended page template, a page template is determined.

[0125] The page template may include template content and configuration rules, and the template content may include at least one field and a component type corresponding to at least one field.

[0126] After the page configuration prompt information including the at least one recommended page template is sent to the user terminal, the page template provided by the user can be determined based on the page generation request generated by the user's selection operation triggered by the at least one recommended page template. For example, the page configuration prompt information may include three recommended page templates A, B, and C. Based on the page generation request generated by the user's selection operation for the B template, the page template provided by the user can be determined to be the B template.

[0127] In step S45, based on the component type corresponding to the at least one field, at least one component corresponding to the at least one field is obtained from the component library.

[0128] In step S46, the page rendering engine is called according to the configuration rules to render at least one field and at least one component to generate a page.

[0129] In this embodiment, the implementation process of steps S45 to S46 can refer to Figure 1 The specific implementation process of steps S13 to S14 in the illustrated embodiment will not be described in detail here.

[0130] In this embodiment, by displaying page configuration prompt information including at least one recommended page template, a page template can be determined in response to a page generation request generated by a selection operation for at least one recommended page template. The page template can include template content and configuration rules, and based on at least one field included in the template content and a component type corresponding to at least one field, at least one corresponding component is obtained, and a page rendering engine is called to perform rendering according to the configuration rules to generate a page. This enables the page template to be selected according to user needs and the corresponding page to be generated, thereby improving the convenience of determining the page template.

[0131] The method for determining the at least one recommended page template is described below. In some embodiments, at least one recommended page template corresponding to the user may be determined based on the user's identification information; or,

[0132] Based on the identification information of the page to be generated, at least one recommended page template corresponding to the page to be generated is determined.

[0133] In actual applications, when configuring page templates, different page templates can be configured for different users, such as ordinary users or management users. The fields, configuration rules, etc. in different page templates can be different. When receiving a page configuration request from a user, at least one recommended page template corresponding to the user can be determined based on the corresponding relationship between the user and the page template and the identification information of the requesting user. The corresponding relationship between the user and the page template can be preset according to the actual application scenario.

[0134] Optionally, when configuring page templates, different page templates may be configured for different pages to be generated, and the fields, configuration rules, etc. in different page templates may be different. Among them, different pages to be generated may include pages to be generated for different projects, such as pages to be generated for project a, pages to be generated for project b, etc., and may also include pages to be generated for different task categories, such as pages to be generated for task category x, pages to be generated for task category y, etc. When receiving a page configuration request from a user, at least one recommended page template corresponding to the page to be generated may be determined based on the corresponding relationship between the page to be generated and the page template and the identification information of the page to be generated. The corresponding relationship between the page to be generated and the page template may be preset according to the actual application scenario.

[0135] Optionally, the configured page templates can also be stored. Specifically, kcdn (cdn distributed storage and distribution technology) page templates can be used for storage.

[0136] Figure 5 is a flow chart of a page generation method according to yet another exemplary embodiment, which may include the following steps.

[0137] In step S51, page configuration prompt information is displayed.

[0138] In this embodiment, the page generation method can be applied to the user end. The user end can respond to the user's page configuration operation, generate a page configuration request, and send the page configuration request to the server end, so that the server end sends page configuration prompt information to the user end based on the page configuration request.

[0139] After receiving the page configuration prompt information sent by the server, the user end can display the page configuration prompt information in the interface. The content of the page configuration prompt information has been described in detail in the above embodiment and will not be repeated here.

[0140] In step S52, in response to a page generation request triggered by the page configuration prompt information, a page template is determined.

[0141] The page template may include template content and configuration rules, and the template content may include at least one field and a component type corresponding to at least one field.

[0142] The user terminal interface may include configuration operation buttons, such as selection buttons, input boxes, etc. In response to the page generation request triggered by the page configuration prompt information, the page template provided by the user may be determined in response to the page generation request generated by the selection operation or input operation triggered by the page configuration prompt information.

[0143] In step S53, a page rendering request is generated based on the page template.

[0144] The user end can generate a page rendering request including the page template based on the page template provided by the user.

[0145] In step S54, a page rendering request is sent to the server so that the server can determine the page template, obtain at least one component corresponding to at least one field from the component library based on the component type corresponding to at least one field, and call the page rendering engine according to the configuration rules to render at least one field and at least one component to generate a page.

[0146] The user end can send the generated page rendering request to the server end, so that the server end determines the page template, obtains at least one component corresponding to at least one field from the component library based on the component type corresponding to at least one field, and calls the page rendering engine according to the configuration rule to render at least one field and at least one component to generate a page. The implementation process of the server-side rendering to generate a page has been described in detail in the above embodiment and will not be repeated here.

[0147] In this embodiment, by displaying page configuration prompt information and responding to the configuration operation triggered by the page configuration prompt information, the page template is determined, and the corresponding page rendering request is generated and sent to the server, so that the server can obtain at least one corresponding component based on at least one field included in the template content and the component type corresponding to at least one field, and call the page rendering engine for rendering according to the configuration rules to generate the page, thereby solving the problem of fixed page generation in the prior art and realizing the configuration of the page according to user needs.

[0148] Figure 6 is a block diagram of a page generation device according to an exemplary embodiment. Figure 6 The device may include a first display module 601, a first determination module 602, an acquisition module 603, a rendering module 604 and a first generation module 605.

[0149] The first display module 601 is configured to display page configuration prompt information;

[0150] The first determination module 602 is configured to determine a page template in response to a page generation request triggered by page configuration prompt information;

[0151] The acquisition module 603 is configured to acquire at least one component corresponding to at least one field from a component library based on the component type corresponding to at least one field;

[0152] The rendering module 604 is configured to call the page rendering engine according to the configuration rules to render at least one field and at least one component;

[0153] The first generating module 605 is configured to generate and display a page.

[0154] In this embodiment, the page generation device provided can achieve Figure 1The page generation method in the illustrated embodiment can determine a page template in response to a page generation request triggered by the page configuration prompt information by displaying page configuration prompt information. The page template can include template content and configuration rules, and based on at least one field included in the template content and a component type corresponding to at least one field, obtain at least one corresponding component from a component library, and call a page rendering engine for rendering according to the configuration rules to generate a page. This solves the problem of fixed page generation in the prior art and enables the configuration of pages according to user needs or business needs.

[0155] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0156] Figure 7 is a block diagram of a page generation device according to another exemplary embodiment. Figure 7 The device may include a second display module 701, a second determination module 702, a second generation module 703 and a sending module 704.

[0157] The second display module 701 is configured to display page configuration prompt information;

[0158] The second determination module 702 is configured to determine a page template in response to a page generation request triggered by the page configuration prompt information;

[0159] The second generating module 703 is configured to generate a page rendering request based on the page template;

[0160] The sending module 704 is configured to send the page rendering request to the server.

[0161] In this embodiment, the page generation device provided can achieve Figure 5 The page generation method in the illustrated embodiment displays page configuration prompt information, and in response to a page generation request triggered by the page configuration prompt information, determines a page template, generates a corresponding page rendering request and sends it to the server, so that the server can obtain at least one corresponding component based on at least one field included in the template content and the component type corresponding to at least one field, and calls the page rendering engine for rendering according to the configuration rules to generate the page, thereby solving the problem of fixed page generation in the prior art and realizing that the page can be configured according to user needs or business needs.

[0162] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0163] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment, including a processor 801 and a memory 802 for storing instructions executable by the processor.

[0164] The processor 801 is configured to execute instructions to implement Figure 1 to Figure 5 A page generation method according to any of the embodiments shown.

[0165] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by a processor of an electronic device to perform the above method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0166] In an exemplary embodiment, a computer program product is also provided, comprising a computer program, which, when executed by a processor, implements Figure 1 to Figure 5 A page generation method according to any of the embodiments shown.

[0167] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0168] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A page generation method, characterized in that: include: Display page configuration prompt information; In response to a page generation request triggered by the page configuration prompt information, determining a page template, wherein the page template includes template content and configuration rules, and the template content includes at least one field and a component type corresponding to the at least one field; The configuration rules include rendering rules and operation rules. The rendering rules include whether there are boundaries, field types, and page style themes; the operation rules include field monitoring methods, field verification timing, form submission timing, form reset timing, not calculating form values, error prompt alignment, row-column layout, dependencies, passive response based on target values, and whether to only verify a single field when it changes; Based on the component type corresponding to the at least one field, acquiring at least one component corresponding to the at least one field from a component library; According to at least one of whether there is a boundary, field type, and page style theme, a page rendering engine is called to render the at least one field and the at least one component to generate a page, so as to perform one or more of the following operations when the page is running: Monitor the corresponding fields according to the field monitoring method; Verify the corresponding fields according to the field verification timing; Submit the corresponding form according to the form submission timing; Reset the corresponding form according to the form reset timing; Process the corresponding fields as described above without calculating the form value; Prompt the corresponding error field according to the error prompt alignment method; Process the corresponding fields according to the dependencies; Making a passive response according to the target value as described makes a passive response when the corresponding field is at the target value; Determine whether to check only a single field when it changes according to whether to check only a single field when it changes; Generate and display the page.

2. The method according to claim 1, characterized in that: The page configuration prompt information includes field prompt information, component type prompt information, and configuration rule prompt information; The determining of the page template in response to the page generation request triggered by the page configuration prompt information includes: A page template is determined in response to the field entered or selected for the field prompt information, the component type entered or selected for the component type prompt information, and the configuration rule entered or selected for the configuration rule prompt information.

3. The method according to claim 2, characterized in that Also includes: When the configuration rule is an input configuration rule, verifying whether the configuration rule complies with a preset rule; The calling of the page rendering engine according to the configuration rule to render the at least one field and the at least one component comprises: If the verification passes, the page rendering engine is called according to the configuration rule to render the at least one field and the at least one component.

4. The method according to claim 2, characterized in that: Also includes: When the configuration rule is an input configuration rule, determining whether the field information in the input configuration rule is consistent with the field information in the preset rule; If they are inconsistent, and the priority of the distinguished field information is higher than the preset priority, modifying the field information in the input configuration rule using the field information in the preset rule, and updating the input configuration rule based on the modified field information; The calling of the page rendering engine according to the configuration rule to render the at least one field and the at least one component comprises: Calling the page rendering engine according to the updated configuration rule to render the at least one field and the at least one component; or, If the field information in the input configuration rule is consistent with the field information in the preset rule, calling the page rendering engine according to the configuration rule to render the at least one field and the at least one component; or If the field information in the input configuration rule is inconsistent with the field information in the preset rule, and the priority of distinguishing the field information is lower than the preset priority, the page rendering engine is called according to the configuration rule to render the at least one field and the at least one component.

5. The method according to claim 3, characterized in that: The method further comprises: Components developed according to preset rules are obtained and configured in the component library.

6. The method according to claim 3, characterized in that The page rendering engine is developed according to preset rules.

7. The method according to claim 6, characterized in that Before calling the page rendering engine according to the configuration rule, the method further includes: Determine the target data type supported by the page rendering engine; The data type of the configuration rule is converted into the target data type.

8. The method according to claim 1, characterized in that The display page configuration prompt information includes: Identify at least one recommended page template; generating page configuration prompt information including the at least one recommended page template; Displaying the page configuration prompt information; The determining of the page template in response to the page generation request triggered by the page configuration prompt information includes: In response to a page request triggered by a page template selected from the at least one recommended page template, a page template is determined.

9. The method according to claim 8, characterized in that Determining at least one recommended page template includes: Based on the identification information of the user, determining at least one recommended page template corresponding to the user; or, Based on the identification information of the page to be generated, at least one recommended page template corresponding to the page to be generated is determined.

10. A page generation method, characterized in that: include: Display page configuration prompt information; In response to a page generation request triggered by the page configuration prompt information, determining a page template, wherein the page template includes template content and configuration rules, and the template content includes at least one field and a component type corresponding to the at least one field; The configuration rules include rendering rules and operation rules. The rendering rules include whether there are boundaries, field types, and page style themes; the operation rules include field monitoring methods, field verification timing, form submission timing, form reset timing, not calculating form values, error prompt alignment, row-column layout, dependencies, passive response based on target values, and whether to only verify a single field when it changes; Based on the page template, generate a page rendering request; The page rendering request is sent to the server so that the server determines the page template, obtains at least one component corresponding to the at least one field from the component library based on the component type corresponding to the at least one field, and calls the page rendering engine according to at least one of whether there is a boundary, the field type, and the page style theme, renders the at least one field and the at least one component, and generates a page, so as to perform one or more of the following operations when the page is running: monitor the corresponding field according to the field monitoring mode; check the corresponding field according to the field check timing; submit the corresponding form according to the form submission timing; reset the corresponding form according to the form reset timing; process the corresponding field according to the non-calculation into form value; Prompt the corresponding error field according to the error prompt alignment method; Process the corresponding fields according to the dependencies; Making a passive response according to the target value as described makes a passive response when the corresponding field is at the target value; According to whether to check only the single field when it changes, it is determined whether to check only the single field when it changes, and a page is generated.

11. A page generating device, characterized in that: include: A first display module is configured to display page configuration prompt information; A first determination module is configured to determine a page template in response to a page generation request triggered by the page configuration prompt information, wherein the page template includes template content and configuration rules, and the template content includes at least one field and a component type corresponding to the at least one field; The configuration rules include rendering rules and operation rules. The rendering rules include whether there are boundaries, field types, and page style themes; the operation rules include field monitoring methods, field verification timing, form submission timing, form reset timing, not calculating form values, error prompt alignment, row-column layout, dependencies, passive response based on target values, and whether to only verify a single field when it changes; an acquisition module, configured to acquire at least one component corresponding to the at least one field from a component library based on the component type corresponding to the at least one field; The rendering module is configured to call the page rendering engine according to at least one of whether there is a boundary, the field type, and the page style theme, render the at least one field and the at least one component, generate a page, and perform one or more of the following operations when the page is running: Monitor the corresponding fields according to the field monitoring method; Verify the corresponding fields according to the field verification timing; Submit the corresponding form according to the form submission timing; Reset the corresponding form according to the form reset timing; Process the corresponding fields as described above without calculating the form value; Prompt the corresponding error field according to the error prompt alignment method; Process the corresponding fields according to the dependencies; Making a passive response according to the target value as described makes a passive response when the corresponding field is at the target value; Determine whether to check only a single field when it changes according to whether to check only a single field when it changes; The first generating module is configured to generate and display a page.

12. A page generating device, characterized in that: include: The second display module is configured to display page configuration prompt information; A second determination module is configured to determine a page template in response to a page generation request triggered by the page configuration prompt information, wherein the page template includes template content and configuration rules, and the template content includes at least one field and a component type corresponding to the at least one field; The configuration rules include rendering rules and operation rules. The rendering rules include whether there are boundaries, field types, and page style themes; the operation rules include field monitoring methods, field verification timing, form submission timing, form reset timing, not calculating form values, error prompt alignment, row-column layout, dependencies, passive response based on target values, and whether to only verify a single field when it changes; A second generating module is configured to generate a page rendering request based on the page template; The sending module is configured to send the page rendering request to the server so that the server can determine the page template, obtain at least one component corresponding to the at least one field from the component library based on the component type corresponding to the at least one field, and call the page rendering engine according to at least one of whether there is a boundary, field type, and page style theme, render the at least one field and the at least one component, and generate a page, so as to perform one or more of the following operations when the page is running: monitor the corresponding field according to the field monitoring mode; check the corresponding field according to the field check timing; submit the corresponding form according to the form submission timing; reset the corresponding form according to the form reset timing; process the corresponding field according to the non-calculation into form value; Prompt the corresponding error field according to the error prompt alignment method; Process the corresponding fields according to the dependencies; Making a passive response according to the target value as described makes a passive response when the corresponding field is at the target value; According to whether to check only the single field when it changes, it is determined whether to check only the single field when it changes, and a page is generated.

13. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the page generation method according to any one of claims 1 to 9.

14. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the page generation method as claimed in any one of claims 1 to 9.

15. A computer program product, characterized in that It comprises a computer program, characterized in that when the computer program is executed by a processor, it implements the page generation method according to any one of claims 1 to 9.