WEB page generation method and device, electronic equipment and storage medium
By pre-configuring control template files on the server side and establishing control nesting relationships, the problems of cumbersome WEB page generation and poor user experience in the existing technology are solved, and the file size is reduced and the user experience is improved.
Patent Information
- Application Number
- CN202310293577.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-15
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-03-15
AI Technical Summary
In the existing technology, the platform files for generating WEB pages are large in size, have low modular integration, and have strong correlations between controls, resulting in cumbersome generation of WEB pages and poor user experience.
By pre-configuring the control template file on the server, each module is an independent logical control, loading the template file to generate the control, combining the control to generate and display the target WEB page, supporting the copy, delete and attribute change operations of the control, and establishing a nested relationship between parent and child pages. It has a jump relationship with upper-level and lower-level pages to achieve flexible expansion of controls and page diversity.
It effectively reduces the file size, simplifies the process of generating WEB pages, improves user experience, and enables flexible expansion of controls and diversity of page display.
Smart Images

Figure CN118673241A
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic information processing technology, and in particular to a method, device, electronic device and storage medium for generating a WEB page. Background Art
[0002] With the continuous development of electronic information technology, in order to meet the needs of various industries for product data visualization, it has gradually become a trend to visualize data in the form of WEB pages.
[0003] In the prior art, platforms for realizing visual data display, such as FineBI and PowerBI, usually use direct drag and drop in the Chrome browser to complete the creation of WEB pages. The dragged objects are various graphical user interface (GUI) controls supported by the browser. These controls can establish a direct association with the background data and support data refresh of the controls during operation. Since the platform files of FineBI and PowerBI are huge, the storage space requirements of the terminal devices that host the platform are relatively high, and the modular integration within the platform is limited. The controls used to generate WEB pages are highly correlated, and a lot of additional content needs to be carried to publish the final WEB page, which makes the generation of WEB pages cumbersome and the user experience poor.
[0004] Therefore, how to reduce the file size, make the generation of WEB pages more convenient, and improve the user experience is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for generating a WEB page, so as to reduce the file size, generate the WEB page more conveniently and improve the user experience.
[0006] In a first aspect, an embodiment of the present application provides a method for generating a WEB page, comprising:
[0007] Receiving a creation operation for a target WEB page, and displaying a control list in response to the creation operation;
[0008] In response to a selection operation of any control in the control list, a pre-configured control template file corresponding to the control is obtained from a server, wherein the control template file corresponding to the control is obtained by the server according to various modules corresponding to the control in a module library, and each module is an independent logic control;
[0009] Load the control template file, generate and display the control;
[0010] The target WEB page is generated and displayed in combination with the controls.
[0011] In this way, a template file is configured for each control in advance, and the control template file is obtained by the server according to the combination of various modules corresponding to the control in the module library. Various modules are independent logical controls, which can effectively reduce the file size. The control can be generated by loading the template file, and then the WEB page is generated, making the generation of WEB pages more convenient, thereby improving the user experience.
[0012] In some embodiments, the control template file includes at least a style module, a behavior module, a basic element module and a property module; the style module is a logic control for displaying a corresponding display style on an interface; the behavior module is a logic control for displaying a corresponding operation behavior on an interface; the basic element module is a logic control for displaying a corresponding basic element on an interface; and the property module is a logic control for displaying property parameters corresponding to settable operation behaviors on an interface.
[0013] In some embodiments, the operating behavior includes an adjustment behavior, and further includes:
[0014] receiving an adjustment behavior operation for the control, updating the control in response to the adjustment behavior operation, and displaying the updated control;
[0015] The adjustment behavior operation at least includes a copy control operation and a delete control operation.
[0016] In this way, the operation behavior of the control can be extended according to the copy control operation and the delete control operation, making the extension of the control more flexible.
[0017] In some embodiments, obtaining a pre-configured control template file corresponding to the control from the server includes:
[0018] Obtaining file indexes of various modules in a pre-configured control template file corresponding to the control from the server;
[0019] Based on the file indexes of the various modules, obtaining the various modules corresponding to the file indexes from the server;
[0020] Loading the control template file, generating and displaying the control, including:
[0021] Loading the style module and the basic element module, and displaying the initial interface of the control;
[0022] In response to a click operation on the initial interface of the control, a behavior module and a property module are loaded, and a property list of the control is displayed.
[0023] In this way, the file index of each module in the control template corresponding to the control is first obtained according to the control, and then the corresponding modules are obtained according to the index, which can reduce the file size of the control template file.
[0024] In some embodiments, it also includes:
[0025] An operation of modifying a property in a property list of the control is received, and in response to the modification operation, a local adjustment function for modifying a property parameter of the control is called to update the control, and the updated control is displayed.
[0026] In this way, the properties in the property list of the control can be flexibly changed, making the generated and displayed controls more personalized and diversified, further improving the user experience.
[0027] In some embodiments, generating and displaying the target WEB page in combination with the controls includes:
[0028] A target WEB page is generated by combining the controls and the nested relationship, and the target WEB page is embedded as a child page in a pre-generated first page as a parent page for display, or the first page is embedded as a child page in the target WEB page as a parent page for display; the nested relationship is a correspondence between a parent page and a child page; the nested relationship includes a correspondence between the target WEB page and the first page.
[0029] In this way, establishing a nested relationship between parent pages and child pages can increase the diversity of page display and enhance user experience.
[0030] In some embodiments, the method further comprises:
[0031] The nested relationship is established in the following manner:
[0032] Receiving an embedding operation for any parent page, and generating a page control in a blank area of the parent page in response to the embedding operation;
[0033] Receive a setting of a page document property of the page control, and obtain an identifier of a subpage of the setting of the page document property;
[0034] Based on the identifier of the child page and the identifier of any parent page, a corresponding relationship between any parent page and the child page is established.
[0035] In this way, you only need to generate a page control in the blank area of the parent page, set the page document property of the page control to the identifier of the child page, and then you can establish a correspondence between the parent page and the child page, embed the child page in the parent page for display, making page display more flexible and convenient.
[0036] In some embodiments, generating and displaying the target WEB page in combination with the controls includes:
[0037] Receive a click operation to jump from an upper-level page to a lower-level page, and in response to the click operation, jump from the current page as the upper-level page to the target WEB page as the lower-level page, or jump from the target WEB page as the upper-level page to the lower-level page, based on a pre-established jump relationship from the upper-level page to the lower-level page.
[0038] In this way, establishing a jump relationship between the upper-level page and the lower-level page can increase the diversity of page display and further enhance the user experience.
[0039] In some embodiments, the method further comprises:
[0040] Use the following method to establish the jump relationship from the upper-level page to the lower-level page:
[0041] Receiving a navigation property setting operation for any control in any upper-level page, and receiving an input lower-level page name in response to the navigation property setting operation;
[0042] The navigation property of the control is set to the name of the subordinate page, and a jump relationship between the superior page and the subordinate page is established.
[0043] In this way, you only need to set the navigation property of any control in the parent page to the name of the subordinate page to establish a jump relationship from the parent page to the subordinate page. You can jump from the parent page to the subordinate page by operating the control, and then display the subordinate page, making page display more flexible and convenient.
[0044] In some embodiments, after the target WEB page is generated and displayed in combination with the controls, the method further includes:
[0045] Receiving a linkage operation set for the target WEB page or any control in the target WEB page;
[0046] In response to the linkage operation, determining the target WEB page or any control in the target WEB page as a trigger event generated by the triggering party;
[0047] When it is determined that the triggering event is valid, determining an associated party that is set with the same receiving event as the triggering event;
[0048] When it is determined that the receiving event is valid, the associated party interface is changed accordingly according to the linkage relationship between the triggering party and the associated party.
[0049] In this way, if the triggering event is valid, the associated party with the same receiving event as the triggering event is determined according to the triggering event generated by the triggering party. If the receiving event is valid, the associated party interface can be changed accordingly based on the linkage relationship between the triggering party and the associated party. Through the linkage between the triggering party and the associated party, data transmission between the triggering party and the associated party is realized, thereby improving the user experience.
[0050] In a second aspect, an embodiment of the present application provides a device for generating a web page, including:
[0051] A receiving module, used for receiving a creation operation on a target WEB page, and displaying a control list in response to the creation operation;
[0052] An acquisition module, used for, in response to a selection operation on any control in the control list, acquiring a pre-configured control template file corresponding to the control from a server, wherein the control template file corresponding to the control is obtained by the server according to various modules corresponding to the control in a module library, and each module is an independent logic control;
[0053] A loading module, used to load the control template file, generate and display the control;
[0054] A generating module is used to generate and display the target WEB page in combination with the controls.
[0055] In some embodiments, the control template file includes at least a style module, a behavior module, a basic element module and a property module; the style module is a logic control for displaying a corresponding display style on an interface; the behavior module is a logic control for displaying a corresponding operation behavior on an interface; the basic element module is a logic control for displaying a corresponding basic element on an interface; and the property module is a logic control for displaying property parameters corresponding to settable operation behaviors on an interface.
[0056] In some embodiments, the operating behavior includes an adjustment behavior, and further includes:
[0057] An updating module, configured to receive an adjustment behavior operation for the control, update the control in response to the adjustment behavior operation, and display the updated control;
[0058] The adjustment behavior operation at least includes a copy control operation and a delete control operation.
[0059] In some embodiments, the acquisition module is specifically used to:
[0060] Obtaining file indexes of various modules in a pre-configured control template file corresponding to the control from the server;
[0061] Based on the file indexes of the various modules, obtaining the various modules corresponding to the file indexes from the server;
[0062] The loading module is specifically used for:
[0063] Loading the style module and the basic element module, and displaying the initial interface of the control;
[0064] In response to a click operation on the initial interface of the control, a behavior module and a property module are loaded, and a property list of the control is displayed.
[0065] In some embodiments, the update module is further used to:
[0066] An operation of modifying a property in a property list of the control is received, and in response to the modification operation, a local adjustment function for modifying a property parameter of the control is called to update the control, and the updated control is displayed.
[0067] In some embodiments, the generating module is specifically used to:
[0068] A target WEB page is generated by combining the controls and the nested relationship, and the target WEB page is embedded as a child page in a pre-generated first page as a parent page for display, or the first page is embedded as a child page in the target WEB page as a parent page for display; the nested relationship is a correspondence between a parent page and a child page; the nested relationship includes a correspondence between the target WEB page and the first page.
[0069] In some embodiments, it also includes:
[0070] A module is established to establish the nested relationship in the following manner:
[0071] Receiving an embedding operation for any parent page, and generating a page control in a blank area of the parent page in response to the embedding operation;
[0072] Receive a setting of a page document property of the page control, and obtain an identifier of a subpage of the setting of the page document property;
[0073] Based on the identifier of the child page and the identifier of any parent page, a corresponding relationship between any parent page and the child page is established.
[0074] In some embodiments, the generating module is specifically used to:
[0075] Receive a click operation to jump from an upper-level page to a lower-level page, and in response to the click operation, jump from the current page as the upper-level page to the target WEB page as the lower-level page, or jump from the target WEB page as the upper-level page to the lower-level page, based on a pre-established jump relationship from the upper-level page to the lower-level page.
[0076] In some embodiments, the establishing module is further used to:
[0077] Use the following method to establish the jump relationship from the upper-level page to the lower-level page:
[0078] Receiving a navigation property setting operation for any control in any upper-level page, and receiving an input lower-level page name in response to the navigation property setting operation;
[0079] The navigation property of the control is set to the name of the subordinate page, and a jump relationship between the superior page and the subordinate page is established.
[0080] In some embodiments, after the generating module generates and displays the target WEB page in combination with the controls, the updating module is further configured to:
[0081] Receiving a linkage operation set for the target WEB page or any control in the target WEB page;
[0082] In response to the linkage operation, determining the target WEB page or any control in the target WEB page as a trigger event generated by the triggering party;
[0083] When it is determined that the triggering event is valid, determining an associated party that is set with the same receiving event as the triggering event;
[0084] When it is determined that the receiving event is valid, the associated party interface is changed accordingly according to the linkage relationship between the triggering party and the associated party.
[0085] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein:
[0086] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned WEB page generation method.
[0087] In a fourth aspect, an embodiment of the present application provides a storage medium. When a computer program in the storage medium is executed by a processor of an electronic device, the electronic device can execute the above-mentioned method for generating a WEB page.
[0088] In an embodiment of the present application, a creation operation for a target WEB page is received, a control list is displayed in response to the creation operation, and in response to a selection operation for any control in the control list, a pre-configured control template file corresponding to the control is obtained from the server, wherein the control template file corresponding to the control is obtained by the server according to the combination of various modules corresponding to the control in the module library, and each module is an independent logical control, and the control template file is loaded, the control is generated and displayed, and the target WEB page is generated and displayed in combination with each control. In this way, a template file is configured for each control in advance, and the control template file is obtained by the server according to the combination of various modules corresponding to the control in the module library, and each module is an independent logical control, which can effectively reduce the file size, and the control can be generated by loading the template file, and then the WEB page is generated, making the generation of the WEB page more convenient, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0089] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0090] Figure 1 A flowchart of a method for generating a WEB page provided in an embodiment of the present application;
[0091] Figure 2 An interactive flow chart of a method for generating a WEB page provided in an embodiment of the present application;
[0092] Figure 3 A schematic diagram of a visual portal platform interface for generating a WEB page provided in an embodiment of the present application;
[0093] Figure 4 A schematic diagram of a visual portal platform creation interface provided in an embodiment of the present application;
[0094] Figure 5 A schematic diagram of an initial interface of a bar graph control provided in an embodiment of the present application;
[0095] Figure 6 A schematic diagram of an attribute list provided in an embodiment of the present application;
[0096] Figure 7 A schematic diagram of a page after a control update provided in an embodiment of the present application;
[0097] Figure 8 A schematic diagram of a page display provided in an embodiment of the present application;
[0098] Fig. 9 Another page display schematic diagram provided for an embodiment of the present application;
[0099] Fig.10 A schematic diagram of the structure of a device for generating a WEB page provided in an embodiment of the present application;
[0100] Fig.11 A schematic diagram of the hardware structure of an electronic device for implementing a method for generating a WEB page provided in an embodiment of the present application. DETAILED DESCRIPTION
[0101] In order to reduce the file size, make the generation of WEB pages more convenient, and improve the user experience, the embodiments of the present application provide a method, device, electronic device and storage medium for generating a WEB page.
[0102] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.
[0103] In order to facilitate the understanding of this application, the technical terms involved in this application are:
[0104] EChart: The visualization chart library is an open source chart library maintained by the Apache Foundation.
[0105] The embodiment of the present application can be applied to the client, wherein the client can be a visual portal platform, which is deployed on any smart device such as a smart phone, a tablet computer, a portable personal computer, etc. The visual portal platform can provide a corresponding user interface (UI), and a variety of controls for generating WEB pages can be displayed on the user interface, so that the user can select the corresponding control according to the generation requirements of the WEB page on the user interface. The visual portal platform receives the creation operation of the target WEB page, displays the control list in response to the creation operation, and obtains the pre-configured control template file corresponding to the control from the server in response to the user's selection operation of any control in the control list. The control template file is loaded, the control is generated and displayed, and finally, the target WEB page is generated and displayed in combination with each control. Among them, the control template file corresponding to the control is obtained by the server according to the combination of various modules corresponding to the control in the module library, and each module is an independent logical control. In this way, the target WEB page can be generated by dragging or clicking the required control, making it more convenient to generate the WEB page. At the same time, setting the template file for each control in advance can also effectively reduce the file size of the visual portal platform. Among them, the visual portal platform can be deployed on the server, and the user can access and use the visual portal platform through the WEB page or the specified application.
[0106] The generation of the WEB page proposed in this application is described below with reference to a specific embodiment. Figure 1 A flowchart of a method for generating a WEB page provided in an embodiment of the present application, the method comprising the following steps.
[0107] In step 101, a creation operation for a target WEB page is received, and a control list is displayed in response to the creation operation.
[0108] In specific implementation, the client is provided with a menu bar, and a create button is provided on the menu bar. When the user clicks the create button, a new WEB page operation interface can be created. The client displays a control list in response to the create operation. For example, the control list displays basic controls, chart controls, electrical controls, etc.
[0109] In step 102, in response to a selection operation on any control in the control list, a pre-configured control template file corresponding to the control is obtained from the server, wherein the control template file corresponding to the control is obtained by the server according to a combination of various modules corresponding to the control in the module library, and each module is an independent logical control.
[0110] In specific implementation, the selection operation of any control may be triggered by a user's click action or a drag action, which is not limited here.
[0111] In some embodiments, the control template file includes at least a style module, a behavior module, a basic element module and a property module. The style module is a logic control for displaying the corresponding display style on the interface, the behavior module is a logic control for displaying the corresponding operation behavior on the interface, the basic element module is a logic control for displaying the corresponding basic elements on the interface, and the property module is a logic control for displaying the property parameters corresponding to the settable operation behavior on the interface.
[0112] For example, taking the EChart control which is a visual chart as an example, the styles of the control include column chart style, line chart style, etc., the behaviors of the control include basic property class, binding class, border class, fill class, etc., the basic elements of the control include the outer size of the control and the background color, etc., the properties of the control can be the properties that can be set with the control behavior, such as the basic properties can set the width, height, top and bottom margins, etc., the binding properties can set the bound data file name and whether it is valid, etc., the border properties can be set with border color, border line type, etc., the fill properties can set the fill color, the transparency of the fill color, etc.
[0113] In specific implementation, the control template of the control can be obtained according to the combination of various modules corresponding to the control in the module library. Each module is an independent control logic, that is, the modules can be reused. For example, the bar chart control and the line chart control have the same behavior, both have basic property classes, data binding classes, boundary classes, and filling classes, then the behavior modules of these two controls are the same, this can make the template file configuration more flexible, without the need for repeated coding, and reduce the file size of the platform.
[0114] In the specific implementation, in order to further reduce the size of the template file, the control template file can also only record the file index of each module. For example, the control template file format is: {"Style module": ["Folder f / Folder g / File m.File format"; "Behavior module": ["Folder f / Folder k.File format"; "Basic element module": ["Folder f / Folder j / File t.File format"; "Property module": ["Folder f / Folder q / File x.File format";].
[0115] In specific implementation, when the client obtains the pre-configured control template file corresponding to the control from the server, it can first obtain the file index of each module in the pre-configured control template file corresponding to the control from the server, and then obtain the various modules corresponding to the file index from the server based on the file index of each module.
[0116] It should be noted that the control template file can also add other functional modules according to the needs of the control, such as an option module, which is used to add additional parameters to the control. The specific settings can be made by technical personnel and are not limited here.
[0117] In step 103, the control template file is loaded, and the control is generated and displayed.
[0118] In specific implementation, the initial interface of the control is displayed by loading the style module and the basic element module. Then, in response to a click operation on the initial interface of the control, the client loads the behavior module and the property module to display the property list of the control.
[0119] In specific implementation, the properties in the property list of each control can be flexibly changed. The client receives the change operation of the properties in the property list of the control, and in response to the change operation, calls the local adjustment function for changing the control property parameters to update the control, and displays the updated control, so that the generated and displayed controls are more personalized and diversified, further enhancing the user experience.
[0120] Among them, adjustment functions include initialization function, size adjustment function, data refresh function, property bar parameter setting function, property bar property value acquisition function, etc. The initialization function is called when initializing and loading the property parameters of the control, the size adjustment function is called when adjusting the size of the basic properties of the control, the data refresh function is called when refreshing the data bound to the control, the property bar parameter setting function is called when changing the property bar parameters, and the property bar property value acquisition function is called when displaying the property values of the property bar.
[0121] In specific implementation, in order to make the expansion of the control more flexible, the modified control can also be adjusted. The client can receive the adjustment behavior operation for the control, update the control in response to the adjustment behavior operation, and display the updated control, wherein the adjustment behavior operation includes at least a copy control operation and a delete control operation.
[0122] In step 104, the target WEB page is generated and displayed in combination with each control.
[0123] In specific implementation, the final interfaces of the controls are combined, for example, the arrangement order of the controls can be determined according to user preferences.
[0124] In some embodiments, the page can be displayed in a nested manner, and the target WEB page is generated by combining various controls and nested relationships, and the target WEB page is embedded as a child page in a pre-generated first page as a parent page for display, or the first page is embedded as a child page in the target WEB page as a parent page for display; wherein the nested relationship is the corresponding relationship between the parent page and the child page, and the nested relationship includes the corresponding relationship between the target WEB page and the first page.
[0125] In specific implementation, the nested relationship can be established in the following manner: receiving an embedding operation for any parent page, generating a page control in a blank area of the parent page in response to the embedding operation, receiving a setting for the page document property of the page control, obtaining the identifier of the child page for which the page document property is set, and establishing a corresponding relationship between any parent page and the child page based on the identifier of the child page and the identifier of any parent page.
[0126] For example, an embed operation button is set on the menu bar of the parent page. In response to a click operation of the embed button, a page control can be generated in a blank area of the parent page. After the page document properties of the page control are set, the size of the page control can also be adjusted, such as through the property list, or by selecting the page control and directly dragging the identifier that appears on the page control boundary inward or outward until it is adjusted to the target size. The page control can also be moved to the target area on the parent page by dragging it.
[0127] In some embodiments, the page can be displayed in a jump manner, receiving a click operation to jump from an upper-level page to a lower-level page, and in response to the click operation, based on a pre-established jump relationship from the upper-level page to the lower-level page, jumping from the current page as the upper-level page to the target WEB page as the lower-level page, or jumping from the target WEB page as the upper-level page to the lower-level page.
[0128] In specific implementation, the following method can be used to establish a jump relationship between the upper-level page and the lower-level page: receive a navigation property setting operation for any control in any upper-level page, respond to the navigation property setting operation, receive the input lower-level page name, set the navigation property of the control to the lower-level page name, and establish a jump relationship between the upper-level page and the lower-level page.
[0129] For example, taking the current page as the parent page, the parent page is the map of country A, and the map of country A is marked with three province controls a, b, and c. For example, the navigation properties can be set in any control in the parent page. For example, the user first selects the province a control, then right-clicks the mouse and selects the navigation property setting. At this time, a setting pop-up window may be displayed, and the pop-up window may display "Please enter the name of the subordinate page to be jumped to". The user can enter the subordinate page name in this pop-up window. For example, the entered subordinate page name is the map name of province a. The client responds to the navigation property setting operation, and after receiving the entered map name of province a, it sets the navigation property of the province a control to the map name of province a. After the setting is completed, you can jump to the map page of province a by clicking the province a control on the map of country A.
[0130] In some embodiments, after the target WEB page is generated and displayed in combination with each control, a linkage operation set for the target WEB page or any control in the target WEB page can also be received. In response to the linkage operation, a trigger event generated by the target WEB page or any control in the target WEB page as a triggering party is determined. When it is determined that the triggering event is valid, an associated party with a receiving event identical to the triggering event is determined. When it is determined that the receiving event is valid, corresponding changes are made to the associated party interface based on the linkage relationship between the triggering party and the associated party.
[0131] In specific implementation, the linkage relationship is pre-set and used for data transmission between controls, controls and pages, and pages and pages, and there is at least one associated party linked to the triggering party. When an event occurs on the triggering party, the associated party can be triggered to make corresponding changes, such as: clicking a button to trigger page switching, data refresh triggering data changes in other controls, clicking a switch to trigger the start and stop of an animation, etc. Among them, the triggering event refers to the name of the event sent by the triggering party, triggering valid means that the triggering party is allowed to send events, receiving events refer to the name of the event that the receiving party can receive, and receiving valid means that the receiving party is allowed to receive events.
[0132] In the embodiment of the present application, a template file is configured for each control in advance, and the modules that make up the control template file are independent and reusable, thereby effectively reducing the size of the platform. When generating a WEB page, it is only necessary to obtain the template files of the controls that make up the page, and then load the template files to generate the WEB page, making it more convenient to generate WEB pages, thereby improving the user experience. At the same time, the control expansion is convenient, which makes it easy to use existing WEB plug-ins for expansion. The page nesting is flexible, and the linkage solution is convenient and flexible, which can increase the diversity of page display and further improve the user experience.
[0133] Figure 2 An interactive flow chart of a method for generating a WEB page provided in an embodiment of the present application includes a client and a server, and the method includes the following steps.
[0134] In step 201, the client receives a creation operation for a target WEB page, and displays a control list in response to the creation operation.
[0135] For specific implementation, please refer to step 101, which will not be described in detail here.
[0136] In step 202, in response to a selection operation on any control in the control list, the client sends a request to the server to obtain a pre-configured control template file corresponding to the control.
[0137] During specific implementation, the control template file corresponding to the control is obtained by the server based on the combination of various modules corresponding to the control in the module library. Each module is an independent logical control. The control template file includes at least a style module, a behavior module, a basic element module and a property module; the style module is a logical control for displaying the corresponding display style on the interface; the behavior module is a logical control for displaying the corresponding operation behavior on the interface; the basic element module is a logical control for displaying the corresponding basic elements on the interface; the property module is a logical control for displaying the property parameters corresponding to the settable operation behavior on the interface.
[0138] In step 203, the server receives a request from the client to obtain a pre-configured control template file corresponding to the control, and sends the control template file corresponding to the control to the client.
[0139] In step 204, the client receives the control template file sent by the server, and determines the file indexes of various modules in the control template file.
[0140] In step 205, the client sends a request to the server to obtain various modules corresponding to the file index.
[0141] In step 206, the server receives the request sent by the client to obtain various modules corresponding to the file index, and sends the various modules corresponding to the file index to the client.
[0142] In step 207, the client receives various modules corresponding to each file index, loads the style module and the basic element module, and displays the initial interface of the control.
[0143] In step 208, the client loads the behavior module and the property module in response to a click operation on the initial interface of the control, and displays a property list of the control.
[0144] In step 209, the client receives a modification operation for a property in a property list of the control, and in response to the modification operation, calls a local adjustment function for modifying a property parameter of the control to update the control, and displays the updated control.
[0145] In step 210, the client generates and displays a target WEB page in combination with various controls.
[0146] The following takes a bar chart control in the target WEB page as an example to illustrate the solution of the embodiment of the present application. The client of the embodiment of the present application is a visual portal platform.
[0147] Figure 3 A schematic diagram of a visual portal platform interface for generating a WEB page provided in an embodiment of the present application, such as Figure 3 As shown, the interface can be divided into the editing area, the property list area and the control area. The following steps will specifically explain the process of creating a bar chart control to generate the target WEB page.
[0148] Step 1: The user creates an operation page on the visual portal platform, and then the visual portal platform displays a list of controls in response to the creation operation, such as Figure 4 As shown, Figure 4 A schematic diagram of a visual portal platform creation interface provided in an embodiment of the present application.
[0149] Step 2: The user selects the chart in the control area with the mouse, and the visualization portal platform responds to the click operation by displaying a list of chart-type controls, such as bar charts, line charts, pie charts, etc. The user can then select a bar chart control, and the visualization portal platform responds to the selection of the bar chart control by obtaining a pre-configured control template file corresponding to the bar chart control from the server.
[0150] During specific implementation, the control template file is obtained by the server according to the combination of various modules corresponding to the control in the module library. Each module is an independent logical control. The control template file of the bar chart control links the four major components of the control, namely the style module, the behavior module, the basic element module and the attribute module. Among them, the style module can be a style module, the behavior module can be a class module, the basic element module can be an HTML module and the attribute module can be a param module. The style module is a logical control for displaying the corresponding display style on the interface; the class module is a logical control for displaying the corresponding operation behavior on the interface; the HTML module is a logical control for displaying the corresponding basic elements on the interface; and the param module is a logical control for displaying the attribute parameters corresponding to the settable operation behavior on the interface.
[0151] In specific implementation, after the server sends the control template file to the client, the client parses the control template file and obtains the file indexes of various modules in the control template file. Then, based on the file indexes of various modules, the client obtains the various modules corresponding to the file indexes from the server.
[0152] For example, in the control template file, the style module format is: {"style": ["folder f / folder g / file m.css"], "style" represents the module name, "folder f / folder g / file m.css" represents the file index of the module, and the file format is .css. Similarly, the class module format is: "class": [""name":"Basic Behavior","js":"all-base.js""], which defines the basic behavior of the control. In addition, you can also define binding behavior, filling behavior, border behavior, etc. The HTML module can be statically limited, such as: width = '300' height='300' limits the outer width and height of the control. The param module format is {"##beg":border attribute start code,"url":"param / borderbehavior.json"}, where the border attribute start code is a natural number. Each type of attribute contains a certain code range for the configurable attribute parameters. For example, there are 2 configurable attribute parameters for the border attribute, namely border color and border line type. A code can be set for each attribute parameter. For example, if the border color code is set to 1 and the border line type code is set to 2, then 1 is the start code of the border attribute, and then the start code of the fill attribute is set from 3, and so on.
[0153] In specific implementation, the properties in the property list of each control can be flexibly changed. The client receives the change operation of the properties in the property list of the control, and in response to the change operation, calls the local adjustment function used to change the control property parameters to update the control, and displays the updated control. It can also add control deletion and copying behaviors, such as adjustment functions such as initialization function reinit, size adjustment function resize, property bar parameter setting function setv, property bar property value acquisition function getv, deletion function remove, copy function clone, and data refresh function reset.
[0154] 1. reinit: Called when initializing and loading the attribute parameters of the control;
[0155] 2. resize: called when resizing the basic properties of the control;
[0156] 3. setv: called when changing the property bar parameters;
[0157] 4. getv: called when displaying the attribute values of the attribute bar;
[0158] 5. remove: called when deleting a control;
[0159] 6. clone: called when copying a control;
[0160] 7. reset: called to refresh the data bound to the control.
[0161] Step 3: The visualization portal platform loads the control template file, generates and displays the control.
[0162] In the specific implementation, the visual portal platform loads the control template file, adopts the dynamic loading method, loads four modules in sequence and makes them effective in the front end, so as to realize the modularization and dynamic loading of the control. Here, the visual portal platform can display the initial interface of the control by loading the style module and the HTML module, such as Figure 5 As shown, Figure 5 A schematic diagram of the initial interface of a bar graph control provided in an embodiment of the present application.
[0163] Afterwards, the visualization portal platform responds to a click operation on the initial interface of the bar chart control, loads the class module and the param module, and displays a property list of the control. Figure 6 A schematic diagram of an attribute list provided in an embodiment of the present application. Figure 6As shown in the figure, the initial interface of the bar chart control is marked with dots, and the property list area on the right displays the property list. Then, according to the parameter settings of the control properties in the property list of the initial interface of the control, such as basic parameter settings, binding parameter settings, boundary parameter settings, filling parameter settings, etc., the visualization portal platform receives the change operation of the property in the property list of the control, and in response to the change operation, calls the local adjustment function used to change the property parameters of the control to update the control and display the updated control. Figure 7 As shown, Figure 7 A schematic diagram of a page after a control update provided in an embodiment of the present application.
[0164] Step 4: Generate the target WEB page.
[0165] During specific implementation, after creation, the page can be named and saved.
[0166] During specific implementation, the page may be displayed in a nested manner or in a jump manner.
[0167] For example, displaying by page nesting may be to embed the target WEB page as a child page in a pre-generated first page as a parent page for display, or to embed the first page as a child page in the target WEB page as a parent page for display; wherein the nesting relationship is a corresponding relationship between a parent page and a child page, and the nesting relationship includes a corresponding relationship between the target WEB page and the first page;
[0168] In specific implementation, the nested relationship can be established in the following manner: receiving an embedding operation for any parent page, generating a page control in a blank area of the parent page in response to the embedding operation, receiving a setting of a page document property for the page control, obtaining an identifier of the child page for the page document property setting, and establishing a corresponding relationship between any parent page and the child page based on the identifier of the child page and the identifier of any parent page. Figure 8 As shown, Figure 8 A schematic diagram of a page display provided in an embodiment of the present application.
[0169] For another example, display by page jump can be: receiving a click operation to jump from an upper-level page to a lower-level page, and in response to the click operation, based on a pre-established jump relationship from the upper-level page to the lower-level page, jumping from the current page as the upper-level page to the target WEB page as the lower-level page, or jumping from the target WEB page as the upper-level page to the lower-level page.
[0170] In specific implementation, the following method is used to establish a jump relationship between the upper-level page and the lower-level page: receive a navigation property setting operation for any control in any upper-level page, respond to the navigation property setting operation, receive the input lower-level page name, set the navigation property of the control to the lower-level page name, and establish a jump relationship between the upper-level page and the lower-level page. Fig. 9 As shown, Fig. 9 Another page display schematic diagram provided for an embodiment of the present application. After the user sets the navigation attribute of the triangle button to the page name of the subordinate page, by clicking the triangle button on the superior page, it is possible to jump from the superior page to the subordinate page, that is, to display the subordinate page on the current page.
[0171] In specific implementation, after the target WEB page is generated, the linkage operation set for the target WEB page or any control in the target WEB page can also be received. In response to the linkage operation, the target WEB page or any control in the target WEB page is determined as a trigger event generated by the triggering party. When the triggering event is determined to be valid, the associated party with the same receiving event as the triggering event is determined. When the receiving event is determined to be valid, the associated party interface is changed accordingly according to the linkage relationship between the triggering party and the associated party. The linkage relationship is pre-set and used for data transmission between controls and controls, controls and pages, and pages and pages. There is at least one associated party linked with the triggering party. When an event occurs on the triggering party, the associated party can be triggered to make corresponding changes, such as: clicking a button to trigger page switching, data refresh triggering other control data changes, clicking a switch to trigger the start and stop of an animation, etc. Among them, the triggering event refers to the event name issued by the triggering party, triggering valid means that the triggering party allows the event to be issued, receiving event refers to the event name that the receiving party can receive, and receiving valid means that the receiving party allows the event to be received.
[0172] In the embodiment of the present application, a template file is configured for each control in advance, and the modules that make up the control template file are independent and reusable, thereby effectively reducing the size of the platform. When generating a WEB page, it is only necessary to obtain the templates of the controls that make up the page, and then parse the template to generate the WEB page, making it more convenient to generate WEB pages, thereby improving the user experience. At the same time, the control expansion is convenient, which makes it easy to use existing WEB plug-ins for expansion. The page nesting is flexible, and the linkage scheme is flexible, which further improves the user experience.
[0173] Based on the same technical concept, the embodiment of the present application also provides a device for generating a WEB page. The principle of solving the problem by the device for generating a WEB page is similar to that of the above-mentioned method for generating a WEB page. Therefore, the implementation of the device for generating a WEB page can refer to the implementation of the method for generating a WEB page, and the repeated parts will not be repeated.
[0174] Fig.10A schematic diagram of the structure of a WEB page generation device provided in an embodiment of the present application includes a receiving module 1001, an acquisition module 1002, a loading module 1003, and a generation module 1004.
[0175] The receiving module 1001 is used to receive a creation operation on a target WEB page, and display a control list in response to the creation operation;
[0176] The acquisition module 1002 is used to obtain a pre-configured control template file corresponding to any control in the control list from the server in response to a selection operation of the control, wherein the control template file corresponding to the control is obtained by the server according to various modules corresponding to the control in the module library, and each module is an independent logic control;
[0177] The loading module 1003 is used to load the control template file, generate and display the control;
[0178] The generating module 1004 is used to generate and display the target WEB page in combination with the controls.
[0179] In some embodiments, the control template file includes at least a style module, a behavior module, a basic element module and a property module; the style module is a logic control for displaying a corresponding display style on an interface; the behavior module is a logic control for displaying a corresponding operation behavior on an interface; the basic element module is a logic control for displaying a corresponding basic element on an interface; and the property module is a logic control for displaying property parameters corresponding to settable operation behaviors on an interface.
[0180] In some embodiments, the operating behavior includes an adjustment behavior, and further includes:
[0181] An updating module 1005, configured to receive an adjustment behavior operation for the control, update the control in response to the adjustment behavior operation, and display the updated control;
[0182] The adjustment behavior operation at least includes a copy control operation and a delete control operation.
[0183] In some embodiments, the acquisition module 1002 is specifically used to:
[0184] Obtaining file indexes of various modules in a pre-configured control template file corresponding to the control from the server;
[0185] Based on the file indexes of the various modules, obtaining the various modules corresponding to the file indexes from the server;
[0186] The loading module 1003 is specifically used for:
[0187] Loading the style module and the basic element module, and displaying the initial interface of the control;
[0188] In response to a click operation on the initial interface of the control, a behavior module and a property module are loaded, and a property list of the control is displayed.
[0189] In some embodiments, the updating module 1005 is further used to:
[0190] An operation of modifying a property in a property list of the control is received, and in response to the modification operation, a local adjustment function for modifying a property parameter of the control is called to update the control, and the updated control is displayed.
[0191] In some embodiments, the generating module 1004 is specifically used to:
[0192] A target WEB page is generated by combining the controls and the nested relationship, and the target WEB page is embedded as a child page in a pre-generated first page as a parent page for display, or the first page is embedded as a child page in the target WEB page as a parent page for display; the nested relationship is a correspondence between a parent page and a child page; the nested relationship includes a correspondence between the target WEB page and the first page.
[0193] In some embodiments, it also includes:
[0194] Establishing module 1006, used to establish the nested relationship in the following manner:
[0195] Receiving an embedding operation for any parent page, and generating a page control in a blank area of the parent page in response to the embedding operation;
[0196] Receive a setting of a page document property of the page control, and obtain an identifier of a subpage of the setting of the page document property;
[0197] Based on the identifier of the child page and the identifier of any parent page, a corresponding relationship between any parent page and the child page is established.
[0198] In some embodiments, the generating module 1004 is specifically used to:
[0199] Receive a click operation to jump from an upper-level page to a lower-level page, and in response to the click operation, jump from the current page as the upper-level page to the target WEB page as the lower-level page, or jump from the target WEB page as the upper-level page to the lower-level page, based on a pre-established jump relationship from the upper-level page to the lower-level page.
[0200] In some embodiments, the establishing module 1006 is further configured to:
[0201] Use the following method to establish the jump relationship from the upper-level page to the lower-level page:
[0202] Receiving a navigation property setting operation for any control in any upper-level page, and receiving an input lower-level page name in response to the navigation property setting operation;
[0203] The navigation property of the control is set to the name of the subordinate page, and a jump relationship between the superior page and the subordinate page is established.
[0204] In some embodiments, after the generation module generates and displays the target WEB page in combination with the controls, the update module 1005 is further configured to:
[0205] Receiving a linkage operation set for the target WEB page or any control in the target WEB page;
[0206] In response to the linkage operation, determining the target WEB page or any control in the target WEB page as a trigger event generated by the triggering party;
[0207] When it is determined that the triggering event is valid, determining an associated party that is set with the same receiving event as the triggering event;
[0208] When it is determined that the receiving event is valid, the associated party interface is changed accordingly according to the linkage relationship between the triggering party and the associated party.
[0209] The division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, the functional modules in the embodiments of the present application may be integrated in a processor, or may exist physically separately, or two or more modules may be integrated in one module. The coupling between the modules may be achieved through some interfaces, which are usually electrical communication interfaces, but it is not excluded that they may be mechanical interfaces or other forms of interfaces. Therefore, the modules described as separate components may or may not be physically separated, and may be located in one place or distributed to different locations of the same or different devices. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0210] After introducing the method and device for generating a WEB page according to an exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.
[0211] Refer to the following Fig.11The electronic device 130 implemented according to this embodiment of the present application is described. Fig.11 The electronic device 130 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0212] like Fig.11 As shown, the electronic device 130 is in the form of a general electronic device. The components of the electronic device 130 may include but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting different system components (including the memory 132 and the processor 131).
[0213] Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0214] The memory 132 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and / or a cache memory 1322 , and may further include a read-only memory (ROM) 1323 .
[0215] The memory 132 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0216] The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 130, and / or communicate with any device that enables the electronic device 130 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 135. Furthermore, the electronic device 130 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 136. As shown, the network adapter 136 communicates with other modules for the electronic device 130 via a bus 133. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0217] In an exemplary embodiment, a storage medium is also provided, and when the computer program in the storage medium is executed by the processor of the electronic device, the electronic device can execute the above-mentioned method for generating a WEB page. Optionally, the storage medium can be a non-temporary computer-readable storage medium, for example, the non-temporary 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.
[0218] In an exemplary embodiment, the electronic device of the present application may include at least one processor and a memory communicatively connected to the at least one processor, wherein the memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor may execute the steps of any WEB page generation method provided in the embodiments of the present application.
[0219] In an exemplary embodiment, a computer program product is also provided. When the computer program product is executed by an electronic device, the electronic device can implement any exemplary method provided in the present application.
[0220] Furthermore, the computer program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The 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 (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a compact disk read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0221] The program product for generating a WEB page in the embodiment of the present application may adopt a CD-ROM and include program code, and may be run on a computing device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, an apparatus or a device.
[0222] The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein the readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0223] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
[0224] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network such as a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0225] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.
[0226] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0227] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0228] The present application is described with reference to the flowcharts and / or block diagrams of the methods, apparatus (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0229] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0230] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0231] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0232] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for generating a WEB page, characterized in that: include: Receiving a creation operation for a target WEB page, and displaying a control list in response to the creation operation; In response to a selection operation on any control in the control list, a pre-configured control template file corresponding to the control is obtained from a server, wherein the control template file corresponding to the control is obtained by the server according to various modules corresponding to the control in a module library, and each module is an independent logic control; Load the control template file, generate and display the control; The target WEB page is generated and displayed in combination with the controls.
2. The generation method according to claim 1, characterized in that: The control template file includes at least a style module, a behavior module, a basic element module and a property module; the style module is a logic control for displaying a corresponding display style on an interface; the behavior module is a logic control for displaying a corresponding operation behavior on an interface; the basic element module is a logic control for displaying a corresponding basic element on an interface; and the property module is a logic control for displaying property parameters corresponding to settable operation behaviors on an interface.
3. The generation method according to claim 1 or 2, characterized in that: The operation behavior includes adjustment behavior, and also includes: receiving an adjustment behavior operation for the control, updating the control in response to the adjustment behavior operation, and displaying the updated control; The adjustment behavior operation at least includes a copy control operation and a delete control operation.
4. The generation method according to claim 1 or 2, characterized in that: Obtaining a pre-configured control template file corresponding to the control from the server, including: Obtaining file indexes of various modules in a pre-configured control template file corresponding to the control from the server; Based on the file indexes of the various modules, obtaining the various modules corresponding to the file indexes from the server; Loading the control template file, generating and displaying the control, including: Loading the style module and the basic element module, and displaying the initial interface of the control; In response to a click operation on the initial interface of the control, a behavior module and a property module are loaded, and a property list of the control is displayed.
5. The generation method according to claim 4, characterized in that: Also includes: An operation of modifying a property in a property list of the control is received, and in response to the modification operation, a local adjustment function for modifying a property parameter of the control is called to update the control, and the updated control is displayed.
6. The generation method according to claim 1, characterized in that: Generating and displaying the target WEB page in combination with the controls includes: A target WEB page is generated by combining the controls and the nested relationship, and the target WEB page is embedded as a child page in a pre-generated first page as a parent page for display, or the first page is embedded as a child page in the target WEB page as a parent page for display; the nested relationship is a correspondence between a parent page and a child page; the nested relationship includes a correspondence between the target WEB page and the first page.
7. The generation method according to claim 6, characterized in that: The method further comprises: The nested relationship is established in the following manner: Receiving an embedding operation for any parent page, and generating a page control in a blank area of the parent page in response to the embedding operation; Receive a setting of a page document property of the page control, and obtain an identifier of a subpage of the setting of the page document property; Based on the identifier of the child page and the identifier of any parent page, a corresponding relationship between any parent page and the child page is established.
8. The generation method according to claim 1, characterized in that: Generating and displaying the target WEB page in combination with the controls includes: Receive a click operation to jump from an upper-level page to a lower-level page, and in response to the click operation, jump from the current page as the upper-level page to the target WEB page as the lower-level page, or jump from the target WEB page as the upper-level page to the lower-level page, based on a pre-established jump relationship from the upper-level page to the lower-level page.
9. The generation method according to claim 8, characterized in that: The method further comprises: Use the following method to establish the jump relationship from the upper-level page to the lower-level page: Receiving a navigation property setting operation for any control in any upper-level page, and receiving an input lower-level page name in response to the navigation property setting operation; The navigation property of the control is set to the name of the subordinate page, and a jump relationship between the superior page and the subordinate page is established.
10. The generation method according to claim 1, characterized in that: After the target WEB page is generated and displayed in combination with the controls, the method further includes: Receiving a linkage operation set for the target WEB page or any control in the target WEB page; In response to the linkage operation, determining the target WEB page or any control in the target WEB page as a trigger event generated by the triggering party; When it is determined that the triggering event is valid, determining an associated party that is set with the same receiving event as the triggering event; When it is determined that the receiving event is valid, the associated party interface is changed accordingly according to the linkage relationship between the triggering party and the associated party.
11. A device for generating a WEB page, characterized in that: include: A receiving module, used for receiving a creation operation on a target WEB page, and displaying a control list in response to the creation operation; An acquisition module, used for, in response to a selection operation on any control in the control list, acquiring a pre-configured control template file corresponding to the control from a server, wherein the control template file corresponding to the control is obtained by the server according to various modules corresponding to the control in a module library, and each module is an independent logic control; A loading module, used to load the control template file, generate and display the control; A generating module is used to generate and display the target WEB page in combination with the controls.
12. An electronic device, characterized in that: include: at least one processor, and a memory communicatively connected to the at least one processor, wherein: The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 10.
13. A storage medium, characterized in that: When the computer program in the storage medium is executed by a processor of an electronic device, the electronic device can execute the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Page generating method and device, server, electronic device and storage medium
CN108829885A
Page processing method and related equipment
CN111273907A
Page generation method, server and storage medium
CN111782216A
Webpage generation method and system, electronic equipment and storage medium
CN115408002A
Client-side components
US20080307299A1
