A method, apparatus, device, and readable storage medium for creating a page.

By obtaining user-defined page configuration information and database data, and using the low-code front-end framework Amis to generate pages, the problem of low page building efficiency in existing technologies is solved, and efficient and convenient page development is achieved.

CN116088833BActive Publication Date: 2026-11-17CHINA TELECOM DIGITAL INTELLIGENCE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211476641.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-23
Publication Date
2026-11-17
Estimated Expiration
2042-11-23

AI Technical Summary

Technical Problem

In existing technologies, building pages by writing code using third-party components is inefficient and wastes a lot of time.

Method used

By acquiring user-defined page configuration information and component data stored in the database, the target page is created using a data logic unit and a data collector, reducing programming steps and using a low-code front-end framework such as AMIS for page generation.

Benefits of technology

It improves the efficiency and accuracy of page creation, lowers the development threshold, and makes page development more convenient and efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116088833B_ABST
    Figure CN116088833B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, device, and readable storage medium for creating a page. The method includes: obtaining data information of multiple components corresponding to front-end page configuration information and back-end page configuration information, wherein the page configuration information includes configuration information of multiple components, which is obtained through user-defined settings, and the data information of the multiple components is pre-stored in a database; and creating a target page based on the page configuration information and the data information of the multiple components. This method can improve the efficiency of page creation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of front-end page design, and more specifically, to a method, apparatus, device, and readable storage medium for creating pages. Background Technology

[0002] Currently, as front-end technology continues to develop, code is encapsulated layer by layer, becoming increasingly powerful, and there are a variety of ways to achieve gorgeous page rendering. Professional front-end developers usually need to write code using third-party components to build pages.

[0003] The above-mentioned method of building pages based on third-party components has significant limitations, requiring a large amount of code for development and wasting a lot of time.

[0004] Therefore, improving the efficiency of page creation is a technical problem that needs to be solved. Summary of the Invention

[0005] The purpose of this application is to provide a method for creating pages, and the technical solution of this application can improve the efficiency of page creation.

[0006] In a first aspect, embodiments of this application provide a method for creating a page, including: obtaining data information of multiple components corresponding to front-end page configuration information and back-end page configuration information, wherein the page configuration information includes configuration information of multiple components, the page configuration information is obtained through user-defined settings, and the data information of multiple components is stored in a database in advance; and creating a target page based on the page configuration information and the data information of multiple components.

[0007] In the above embodiments, this application can directly obtain data information of multiple components stored in the database through user-defined page configuration information to complete the creation of the target page, avoiding the need for extensive programming in existing technologies. The method of this application can improve the efficiency of page creation.

[0008] In some embodiments, page configuration information includes:

[0009] At least one of the following: page frame information, page component information, page style information, and component rendering information.

[0010] In the above embodiments, this application allows for more diverse and convenient page creation styles through one or more user-defined page configuration information.

[0011] In some embodiments, a page is created based on page configuration information and data information of multiple components, including:

[0012] The data logic processor processes the page configuration information and the data information of multiple components to obtain the processed page configuration information and the processed data information of multiple components.

[0013] The processed page configuration information and multiple processed data information are integrated to obtain the resource information of the target page;

[0014] Generate the target page corresponding to the resource information.

[0015] In the above embodiments, by integrating page configuration information and multiple data information resources, the resource information of the target page can be determined, thereby automatically generating the target page with the target style, saving the time of page creation.

[0016] In some embodiments, a data logic unit processes page configuration information and data information of multiple components to obtain processed page configuration information and processed data information corresponding to multiple components, including:

[0017] The data logic unit analyzes the page configuration information and the data information of multiple components to determine whether the page configuration information and the data information of multiple components meet the requirements of the user's customized page configuration information.

[0018] If the page configuration information and the data information of multiple components meet the requirements of the user's customized page configuration information, the page configuration information and the data information of multiple components will be used as the processed page configuration information and the processed multiple data information.

[0019] If the page configuration information and the data information of multiple components do not meet the user's custom page configuration information requirements, the page configuration information and the data information of multiple components are modified or replaced to obtain the processed page configuration information and the processed data information.

[0020] In the above embodiments, by detecting whether the page configuration information and the data information of multiple components meet the requirements of the user-defined page configuration information, the page can be accurately created in the style required by the user, thereby improving the accuracy of page creation.

[0021] In some embodiments, obtaining data information of multiple components corresponding to the front-end page configuration information and the back-end page configuration information includes:

[0022] Obtain the user-defined page configuration information and create a data collector for each of the multiple components to obtain multiple data collectors;

[0023] Data is collected from multiple components in the backend using multiple data collectors.

[0024] In the above embodiments, the data information of the component can be directly obtained through the collector, without requiring the user to redevelop the component data, thus saving component development time.

[0025] In some embodiments, before obtaining the data information of multiple components corresponding to the front-end page configuration information and the back-end page configuration information, the method further includes:

[0026] Create a node for each of the multiple components. Each node is used to reconnect the multiple components and adjust the connections when the positions of the multiple components change.

[0027] In the above embodiments, by creating nodes for components, components can be directly associated through nodes, reducing program development. Users can customize component styles according to their needs, making it more open.

[0028] In some embodiments, after creating the target page based on page configuration information and data information of multiple components, the method further includes:

[0029] The data information of each component in the target page is stored in the application container engine so that when a second target page is created, the data information of each component in the application container engine can be directly accessed.

[0030] In the above embodiments of this application, the developed data information can be re-stored in the application container engine after each development, and can be directly retrieved from the application container engine when the data information is used in subsequent development, thereby reducing development time.

[0031] In some embodiments, after creating the target page based on page configuration information and data information of multiple components, the method further includes:

[0032] Monitor at least one of the following: component response time, static resource loading time, and page data processing performance. When any of these three parameters are abnormal, display the abnormal information to the user.

[0033] In the above embodiments, this application monitors component response time, static resource loading time, and page data processing performance through a monitoring function, thereby avoiding errors in page creation and improving page creation efficiency.

[0034] In some embodiments, a target page is created based on page configuration information and data information of multiple components, including:

[0035] Based on the configuration information, it was determined that there are different data information in the data information of multiple components and the initial data information of multiple components;

[0036] By replacing the initial data information at the corresponding positions with different data information, we obtain the data information of multiple components after replacement;

[0037] Generate the target page corresponding to the data information of multiple components.

[0038] In the above embodiments, by comparing the differences between the source data information and the updated data information, and replacing the different data information, the data update time can be reduced, thereby improving the efficiency of page creation.

[0039] Secondly, embodiments of this application provide an apparatus for creating a page, comprising:

[0040] The acquisition module is used to acquire the data information of multiple components corresponding to the page configuration information of the front end and the page configuration information of the back end. The page configuration information includes the configuration information of multiple components, which is obtained through user-defined settings. The data information of multiple components is stored in the database in advance.

[0041] Create a module to create the target page based on page configuration information and data information from multiple components.

[0042] Optional page configuration information includes:

[0043] At least one of the following: page frame information, page component information, page style information, and component rendering information.

[0044] Optionally, the module is specifically used for:

[0045] The data logic processor processes the page configuration information and the data information of multiple components to obtain the processed page configuration information and the processed data information of multiple components.

[0046] The processed page configuration information and multiple processed data information are integrated to obtain the resource information of the target page;

[0047] Generate the target page corresponding to the resource information.

[0048] Optionally, the module is specifically used for:

[0049] The data logic unit analyzes the page configuration information and the data information of multiple components to determine whether the page configuration information and the data information of multiple components meet the requirements of the user's customized page configuration information.

[0050] If the page configuration information and the data information of multiple components meet the requirements of the user's customized page configuration information, the page configuration information and the data information of multiple components will be used as the processed page configuration information and the processed multiple data information.

[0051] If the page configuration information and the data information of multiple components do not meet the user's custom page configuration information requirements, the page configuration information and the data information of multiple components are modified or replaced to obtain the processed page configuration information and the processed data information.

[0052] Optionally, the acquisition module is specifically used for:

[0053] Obtain the user-defined page configuration information and create a data collector for each of the multiple components to obtain multiple data collectors;

[0054] Data is collected from multiple components in the backend using multiple data collectors.

[0055] Optionally, the device further includes:

[0056] A node creation module is used to create a node for each of the multiple components before the acquisition module acquires the data information of multiple components corresponding to the front-end page configuration information and the back-end page configuration information. The node of each component is used to reconnect the multiple components and according to the connection when the position of the multiple components changes.

[0057] Optionally, the device further includes:

[0058] The storage module is used to store the data information of each component in the target page in the application container engine after the creation module creates the target page according to the page configuration information and the data information of multiple components, so that when creating the second target page, the data information of each component in the application container engine can be directly called.

[0059] Optionally, the device further includes:

[0060] The monitoring module is used to monitor at least one of the following after the creation module creates the target page based on the page configuration information and the data information of multiple components: component response time, static resource loading time, and page data processing performance. When the component response time, static resource loading time, and page data processing performance show abnormalities, the module displays the abnormal information to the user.

[0061] Optionally, the module is specifically used for:

[0062] Based on the configuration information, it was determined that there are different data information in the data information of multiple components and the initial data information of multiple components;

[0063] By replacing the initial data information at the corresponding positions with different data information, we obtain the data information of multiple components after replacement;

[0064] Generate the target page corresponding to the data information of multiple components.

[0065] Thirdly, embodiments of this application provide an electronic device, including a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the method provided in the first aspect above are performed.

[0066] Fourthly, embodiments of this application provide a readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the method provided in the first aspect above.

[0067] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing embodiments of this application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description

[0068] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0069] Figure 1 A flowchart illustrating a method for creating a page, as provided in this application embodiment;

[0070] Figure 2 A flowchart illustrating a detailed method for creating a page, as provided in an embodiment of this application;

[0071] Figure 3 A flowchart illustrating a method for creating a page by integrating front-end and back-end resources, provided as an embodiment of this application;

[0072] Figure 4 A schematic block diagram of an apparatus for creating a page, provided for embodiments of this application;

[0073] Figure 5 This is a schematic diagram of a device for creating a page, provided in an embodiment of this application. Detailed Implementation

[0074] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0075] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0076] First, some of the terms used in the embodiments of this application will be explained to facilitate understanding by those skilled in the art.

[0077] JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is based on a subset of ECMAScript (the JavaScript specification developed by the European Computer Manufacturers Association) and uses a text format that is completely independent of programming languages ​​to store and represent data. Its concise and clear hierarchical structure makes JSON an ideal data exchange language.

[0078] Vue: Vue is a front-end framework. To run it, you need to download Node.js and VS Code (a code editor) to edit the code. It can be used with Eliment UI (search on Baidu) for rapid front-end page development.

[0079] CSS: Cascading Style Sheets is a computer language used to style documents such as HTML (an application of Standard Generalized Markup Language) or XML (a subset of Standard Generalized Markup Language).

[0080] jsPlumb is a front-end-based workflow design framework that uses SVG technology to connect components. With simple JavaScript configuration, any component can be connected to form an automated deployment process. This not only meets users' personalized needs but also reduces backend pressure, allowing the backend to focus on specific business implementations.

[0081] SVG: SVG is a graphics file format. Its full name is Scalable Vector Graphics.

[0082] Docker is an open-source application container engine that allows developers to package their applications and dependencies into a portable image, which can then be deployed to machines running any popular Linux or Windows operating system, effectively achieving virtualization. Containers are completely sandboxed and have no interfaces with each other.

[0083] FLEX (Flipboard Explorer) is an in-app debugging and probing toolkit for iOS development.

[0084] This application is applied to front-end page design scenarios, specifically, scenarios where user-defined page information can be used to automatically generate target pages that meet user needs.

[0085] However, with the continuous development of front-end technology, code has been encapsulated layer by layer, becoming increasingly powerful, and there are many ways to achieve stunning page rendering. Professional front-end developers often need to write code using third-party components to build pages. The aforementioned method of building pages using third-party components has significant limitations, requiring a large amount of code for development and wasting a lot of time.

[0086] To address this, this application obtains data information from multiple components corresponding to the front-end and back-end page configuration information. The page configuration information includes configuration information for multiple components, obtained through user-defined settings. This data information is pre-stored in a database. The target page is created based on the page configuration information and the data information of the multiple components. This method directly retrieves the data information of multiple components stored in the database using the user-defined page configuration information, avoiding the extensive programming required in existing technologies. This significantly improves the efficiency of page creation. In other words, the Amis (low-code front-end framework) used in this application manipulates JSON deployment to form a page. Developers only need to understand JSON to develop; they don't need to know front-end development, Vue, or CSS. A visual editor can be used to automatically generate pages and JSON source code by pulling predefined components. This not only generates dynamic pages but also allows for immediate online deployment. Amis provides numerous built-in components, eliminating reliance on complex third-party components and making page development logic clearer and more efficient. This greatly lowers the development threshold, making programming accessible to everyone.

[0087] In this embodiment of the application, the executing entity can be a page creation device in the page creation system. In practical applications, the page creation device can be an electronic device such as a terminal device or a server, and there are no restrictions here.

[0088] The following is combined with Figure 1 The method for creating a page according to embodiments of this application will be described in detail.

[0089] Please refer to Figure 1 , Figure 1 A flowchart illustrating a method for creating a page, as provided in this application embodiment, is shown below. Figure 1 The methods for creating pages shown include:

[0090] Step 110: Obtain the data information of multiple components corresponding to the front-end page configuration information and the back-end page configuration information.

[0091] The page configuration information includes configuration information for multiple components. This configuration information is obtained through user-defined settings, and the data information for multiple components is stored in the database in advance.

[0092] In some embodiments of this application, the page configuration information includes at least one of the following: page frame information, page component information, page style information, and component rendering information.

[0093] In the above process, this application allows for more diverse and convenient page creation styles through one or more user-defined page configuration information.

[0094] The page frame information can be a page frame customized according to user needs, the page component information can be user-defined component content, the page style information can be the layout, format, shape and color of user-defined components, and it can also be the connection style, endpoints and positions of the page flow, such as the arrow style and endpoint positions of the lines connecting components.

[0095] In some embodiments of this application, before obtaining the data information of multiple components corresponding to the front-end page configuration information and the back-end page configuration information, Figure 1 The method shown also includes:

[0096] Create a node for each of the multiple components. Each node is used to reconnect the multiple components and adjust the connections when the positions of the multiple components change.

[0097] In the above process, this application creates component nodes, which can directly associate components, reducing program development. Users can customize component styles according to their needs, making it more open.

[0098] Nodes can be pre-defined, and each component can be configured with appropriate nodes using the node editor. This ensures automatic connection between components when users drag and drop custom components. Creating nodes for each component across multiple components involves creating nodes or anchors for each component. Leveraging jsplumb's layout design capabilities, anchors or nodes are established between user components to build connections. Connections are then established between these anchors or nodes, allowing access to component object properties. When one component completes its function, the next component connected by the anchor or node is executed. Even when component positions change, the positions of jsplumb's anchors or nodes also change, while the connections remain, enabling drag-and-drop functionality between nodes. This also changes the traditional linear layout, allowing for a tree-like layout and enabling component expansion and collapse, making the relationships between components clearer.

[0099] In some embodiments of this application, obtaining data information of multiple components corresponding to the front-end page configuration information and the back-end page configuration information includes: obtaining user-defined page configuration information and creating a data collector for each of the multiple components to obtain multiple data collectors; and collecting data information of multiple components from the back-end through the multiple data collectors.

[0100] In the above process, the data information of the component can be directly obtained through the collector, without the need for the user to redevelop the component data, thus saving component development time.

[0101] The data can be stored in a database, and corresponding component data can be retrieved from the database. Custom page configuration information can be edited using a visual editor. This allows both the front-end and back-end to configure the component's data domains and data chains. For the back-end, the database stores the editor system's related components and their data information. For front-end data interaction, data chain technology can be used. It also allows the front-end to use API calls to access data in the database from the back-end.

[0102] Step 120: Create the target page based on the page configuration information and the data information of multiple components.

[0103] In some embodiments of this application, creating a page based on page configuration information and data information of multiple components includes: processing the page configuration information and data information of multiple components through a data logic unit to obtain processed page configuration information and processed multiple data information corresponding to multiple components; integrating the processed page configuration information and processed multiple data information to obtain resource information of the target page; and generating the target page corresponding to the resource information.

[0104] In the above process, this application can determine the resource information of the target page by integrating page configuration information and multiple data information, and then automatically generate the target page with the target style, saving the time of page creation.

[0105] Resource integration includes configuring multiple data points as page configuration information. This can include configuring code data, as well as handling user modifications to code, such as parameter changes, dependency changes, middleware configuration adjustments, or page style changes. Different modifications are categorized and processed accordingly. Conflicts may occur during database data retrieval; these are addressed by checking and verifying database user passwords, inspecting modified configuration files, and resolving conflicts. When starting the project, dependency conflicts arising from code changes may occur; these are resolved using dependency handling methods.

[0106] In some embodiments of this application, a data logic unit processes page configuration information and data information of multiple components to obtain processed page configuration information and processed multiple data information corresponding to multiple components. This includes: analyzing the page configuration information and data information of multiple components using the data logic unit to determine whether the page configuration information and data information of multiple components meet the requirements of user-defined page configuration information; if the page configuration information and data information of multiple components meet the requirements of user-defined page configuration information, using the page configuration information and data information of multiple components as the processed page configuration information and processed multiple data information; if the page configuration information and data information of multiple components do not meet the requirements of user-defined page configuration information, modifying or replacing the page configuration information and data information of multiple components to obtain the processed page configuration information and processed multiple data information.

[0107] In the above process, this application can accurately create the page in the style required by the user by detecting whether the page configuration information and the data information of multiple components meet the requirements of the user-defined page configuration information, thereby improving the accuracy of page creation.

[0108] This involves modifying or replacing page configuration information and data information of multiple components. Replacement information for multiple components can be retrieved from the database, or modification information can be obtained based on prompts. The source data can then be directly replaced or modified. Different components on the page will generate different data processing logic events. When a component field changes or a click event is triggered, calculation logic will be performed. A data logic generator is used to handle these logical events, performing different data processing and method calls, thereby enabling the processing of page configuration information and data information.

[0109] In some embodiments of this application, creating a target page based on page configuration information and data information of multiple components includes: determining, based on the configuration information, that there are different data information in the data information of multiple components and the initial data information of multiple components; replacing the initial data information at the corresponding position with the different data information to obtain the replaced data information of multiple components; and generating the target page corresponding to the data information of multiple components.

[0110] In the above process, this application compares the differences between the source data and the updated data, and replaces the different data accordingly, which can reduce the data update time and thus improve the efficiency of page creation.

[0111] When modifying data, code conflicts may occur. Replacing the entire code is resource-intensive. Therefore, it is better to locate the updated location before replacing the code, which reduces the complexity of searching through a large number of files and code, and makes page deployment more flexible and free when modifying functions.

[0112] In some embodiments of this application, after creating the target page based on page configuration information and data information of multiple components, Figure 1 The method also includes storing the data information of each component in the target page in the application container engine, so that when creating the second target page, the data information of each component in the application container engine can be directly called.

[0113] In the above process, each development iteration of this application can re-store the developed data in the application container engine, allowing the data to be retrieved directly from the application container engine during subsequent development, thus reducing development time.

[0114] This approach allows for the encapsulation of component data after each development iteration within a Docker image, which users can access at any time for convenient deployment. This not only enriches deployment options but also ensures complete isolation of the application within the container from other containers, granting users some control over modifying configurations.

[0115] In some embodiments of this application, after creating the target page based on page configuration information and data information of multiple components, Figure 1 The method also includes monitoring at least one of component response time, static resource loading time, and page data processing performance, and displaying abnormal information to the user when the component response time, static resource loading time, and page data processing performance show abnormalities.

[0116] In the above process, this application monitors component response time, static resource loading time, and page data processing performance through monitoring functions, thereby avoiding errors in page creation and improving page creation efficiency.

[0117] After displaying the anomaly information to the user, the user can choose to automatically repair or manually modify the system, thereby maintaining the system and improving the accuracy of page creation. For example, an event listener engine can be introduced to monitor changes in event actions and interaction scenarios during component linkage. This mainly handles data transfer, linkage refresh, state judgment, and logic orchestration between components, refreshing data when data linkage changes. When data is submitted on one page, data is populated back on another page, realizing the mapping between data relationships in a simple and easy-to-understand way.

[0118] In addition, through Figure 1The method shown creates a page, for example, a single-line text box component. A `cssVars` property (theme style) is created under `page` (webpage), and the `cssVars` property is used to dynamically update CSS variables in `amis`, storing the data in the database. Flexbox is used to set the layout, and `jslumb` functions are called within the component to process the results returned from the backend. Combined with `jsplumbd` to generate link anchors, data relationships are established between components, thus completing page creation. Unlike traditional JavaScript data calls, `jsplumbd` establishes anchor points for connectors between components, determining their positions. It can also hide connecting elements to optimize the interface and enable dynamic interface connections. Compared to traditional drag-and-drop components, it offers greater smoothness and overall integrity. Connections based on `jsplumbd` are uninterrupted, increasing freedom of movement and manipulation. Furthermore, it allows for more personalized component flow; the style, position, and endpoints of component connections are variable, resulting in a richer layout compared to traditional size and color changes.

[0119] In the above Figure 1 In the process shown, this application obtains data information of multiple components corresponding to the front-end and back-end page configuration information. The page configuration information includes configuration information for multiple components, obtained through user-defined settings, and the data information of these components is pre-stored in a database. The target page is created based on the page configuration information and the data information of the multiple components. This method directly obtains the data information of multiple components stored in the database from the user-defined page configuration information to complete the creation of the target page, avoiding the extensive programming required in existing technologies. This method significantly improves the efficiency of page creation.

[0120] The following is combined with Figure 2 The method for creating a page according to embodiments of this application will be described in detail.

[0121] Please refer to Figure 2 , Figure 2 A flowchart illustrating a detailed method for creating a page, as provided in this application embodiment, is shown below. Figure 2 The detailed methods for creating pages are shown below:

[0122] Step 210: Obtain data information.

[0123] Specifically, it retrieves data information from multiple components corresponding to the front-end and back-end page configuration information.

[0124] Step 220: Data processing.

[0125] Specifically, the data logic unit processes the page configuration information and the data information of multiple components to obtain the processed page configuration information and the processed data information corresponding to the multiple components.

[0126] Step 230: Configure data domains and data chains.

[0127] Specifically, configure the data domain and data chain for each component corresponding to each data piece of information.

[0128] Step 240: Resource integration.

[0129] Specifically, the processed page configuration information and multiple processed data information are integrated to obtain the resource information of the target page.

[0130] Step 250: Data linkage and data mapping.

[0131] Specifically, the component data is connected through nodes, making the various components in the interface related.

[0132] Step 260: Create the page.

[0133] Specifically, the target page is generated based on the integrated resources.

[0134] Step 270: Resource monitoring.

[0135] Specifically, at least one of the following should be monitored: component response time, static resource loading time, and page data processing performance. When any of these three parameters are abnormal, the abnormal information should be displayed to the user.

[0136] also, Figure 2 The specific methods and steps shown can be referred to Figure 1 The methods and steps shown will not be elaborated further here.

[0137] The following is combined with Figure 3 The method for creating pages by integrating front-end and back-end resources according to embodiments of this application will be described in detail.

[0138] Please refer to Figure 3 , Figure 3 A flowchart illustrating a method for creating a page by integrating front-end and back-end resources, as provided in this application embodiment, is shown below. Figure 3 The methods shown for creating pages by integrating front-end and back-end resources include:

[0139] Step 310: Configure the page frame.

[0140] Specifically: the framework information in the configuration page.

[0141] Step 320: Configure page styles and components.

[0142] Specifically: the page components and component styles in the configuration page settings.

[0143] Step 330: Obtain component data information.

[0144] Specifically: Obtain data information from multiple components corresponding to the front-end page configuration information and the back-end page configuration information.

[0145] Step 340: Data linkage.

[0146] Specifically: track the interaction of page data and link data information according to nodes.

[0147] Step 350: Resource integration.

[0148] Specifically, the processed page configuration information and multiple processed data information are integrated to obtain the resource information of the target page.

[0149] Step 360: Create the target page.

[0150] The target page is generated based on the integrated resources.

[0151] also, Figure 3 The specific methods and steps shown can be referred to Figure 1 The methods and steps shown will not be elaborated further here.

[0152] The previous text passed Figures 1-3 The method for creating a page has been described. Below, we will combine it with... Figures 4-5 Describes the device used to create the page.

[0153] Please refer to Figure 4 This is a schematic block diagram of a page creation device 400 provided in an embodiment of this application. The device 400 can be a module, program segment, or code on an electronic device. This device 400 is related to the above... Figure 1 The method implementation corresponds to this and can be executed. Figure 1 The various steps involved in the method embodiment, and the specific functions of the device 400, can be found in the following description. To avoid repetition, detailed descriptions are omitted here.

[0154] Optionally, the device 400 includes:

[0155] The acquisition module 410 is used to acquire the data information of multiple components corresponding to the front-end page configuration information and the back-end page configuration information. The page configuration information includes the configuration information of multiple components, which is obtained through user-defined settings. The data information of multiple components is stored in the database in advance.

[0156] Create module 420 to create the target page based on page configuration information and data information from multiple components.

[0157] Optional page configuration information includes:

[0158] At least one of the following: page frame information, page component information, page style information, and component rendering information.

[0159] Optionally, the module is specifically used for:

[0160] The data logic unit processes the page configuration information and data information of multiple components to obtain the processed page configuration information and the processed data information of multiple components; it then integrates the processed page configuration information and the processed data information to obtain the resource information of the target page; and finally generates the target page corresponding to the resource information.

[0161] Optionally, the module is specifically used for:

[0162] The data logic unit analyzes the page configuration information and the data information of multiple components to determine whether the page configuration information and the data information of multiple components meet the user's customized page configuration requirements. If the page configuration information and the data information of multiple components meet the user's customized page configuration requirements, the page configuration information and the data information of multiple components are used as the processed page configuration information and the processed multiple data information. If the page configuration information and the data information of multiple components do not meet the user's customized page configuration requirements, the page configuration information and the data information of multiple components are modified or replaced to obtain the processed page configuration information and the processed multiple data information.

[0163] Optionally, the acquisition module is specifically used for:

[0164] Obtain the user-defined page configuration information and create a data collector for each of the multiple components, resulting in multiple data collectors; collect data information from the backend of multiple components through these multiple data collectors.

[0165] Optionally, the device further includes:

[0166] A node creation module is used to create a node for each of the multiple components before the acquisition module acquires the data information of multiple components corresponding to the front-end page configuration information and the back-end page configuration information. The node of each component is used to reconnect the multiple components and according to the connection when the position of the multiple components changes.

[0167] Optionally, the device further includes:

[0168] The storage module is used to store the data information of each component in the target page in the application container engine after the creation module creates the target page according to the page configuration information and the data information of multiple components, so that when creating the second target page, the data information of each component in the application container engine can be directly called.

[0169] Optionally, the device further includes:

[0170] The monitoring module is used to monitor at least one of the following after the creation module creates the target page based on the page configuration information and the data information of multiple components: component response time, static resource loading time, and page data processing performance. When the component response time, static resource loading time, and page data processing performance show abnormalities, the module displays the abnormal information to the user.

[0171] Optionally, the module is specifically used for:

[0172] Based on the configuration information, it is determined that there are differences between the data information of multiple components and the initial data information of multiple components; the different data information is used to replace the initial data information at the corresponding positions to obtain the data information of multiple components after replacement; the target page corresponding to the data information of multiple components is generated.

[0173] Please refer to Figure 5 This is a schematic block diagram of a page creation device 500 provided in an embodiment of this application. The device may include a memory 510 and a processor 520. Optionally, the device may further include a communication interface 530 and a communication bus 540. This device is similar to the one described above. Figure 1 The method implementation corresponds to this and can be executed. Figure 1 The specific functions of the device involved in the method embodiments can be found in the following description.

[0174] Specifically, memory 510 is used to store computer-readable instructions.

[0175] Processor 520 is used to process readable instructions stored in memory and is capable of executing... Figure 1 Each step in the method.

[0176] The communication interface 530 is used for signaling or data communication with other node devices. For example, it is used for communication with a server or terminal, or for communication with other device nodes, but the embodiments of this application are not limited thereto.

[0177] Communication bus 540 is used to enable direct communication between the above components.

[0178] In this embodiment, the communication interface 530 of the device is used for signaling or data communication with other node devices. The memory 510 can be high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 510 can also be at least one storage device located remotely from the aforementioned processor. The memory 510 stores computer-readable instructions, which, when executed by the processor 520, enable the electronic device to perform the aforementioned... Figure 1 The method process is shown. Processor 520 can be used on device 400 and is used to perform the functions described in this application. Exemplarily, the processor 520 described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components; the embodiments of this application are not limited thereto.

[0179] This application embodiment also provides a readable storage medium, wherein when the computer program is executed by a processor, it performs the following... Figure 1 The method process executed by the electronic device in the illustrated method embodiment.

[0180] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the aforementioned method, and will not be elaborated further here.

[0181] In summary, this application provides a method, apparatus, electronic device, and readable storage medium for creating a page. The method includes obtaining data information of multiple components corresponding to front-end page configuration information and back-end page configuration information. The page configuration information includes configuration information of multiple components, obtained through user-defined settings, and the data information of the multiple components is pre-stored in a database. A target page is then created based on the page configuration information and the data information of the multiple components. This method can improve the efficiency of page creation.

[0182] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0183] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

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

[0185] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0186] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0187] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A method for creating a page, characterized in that, include: Obtain the page configuration information of the front end and the data information of multiple components corresponding to the page configuration information of the back end. The page configuration information includes the configuration information of the multiple components. The page configuration information is obtained through user-defined settings, and the data information of the multiple components is stored in the database in advance. The data logic processor processes the page configuration information and the data information of the multiple components to obtain processed page configuration information and processed multiple data information corresponding to the multiple components. This includes: analyzing the page configuration information and the data information of the multiple components using the data logic processor to determine whether the page configuration information and the data information of the multiple components meet the requirements of the user-defined page configuration information; if the requirements of the user-defined page configuration information are met, using the page configuration information and the data information of the multiple components as the processed page configuration information and the processed multiple data information; if the requirements of the user-defined page configuration information are not met, modifying or replacing the page configuration information and the data information of the multiple components to obtain the processed page configuration information and the processed multiple data information. The processed page configuration information and the processed multiple data information are integrated to obtain the resource information of the target page; the resource integration includes configuring multiple data information in the form of page configuration information; the configuration includes the configuration of code data, and the configuration also includes at least one of user code modification, parameter change under the corresponding component, dependency change, middleware configuration processing, and page style presentation change, and different modifications are classified and processed. Based on the processed page configuration information, it is determined that there is different data information between the data information of the multiple components and the initial data information of the multiple components, and the different data information replaces the initial data information at the corresponding position to obtain the replaced data information of the multiple components; the step of replacing the different data information with the initial data information at the corresponding position includes: locating the update position corresponding to the different data information and performing the replacement at the update position; The target page is generated based on the data information of the replaced multiple components; The replaced data information of each component in the target page is stored in an application container engine so that the replaced data information of each component in the application container engine can be called when the second target page is created; the application container engine is Docker; storing the replaced data information of each component in the target page in the application container engine includes: encapsulating the replaced data information of each component in the target page in a Docker image; the Docker container corresponding to the Docker image is isolated from other containers; calling the replaced data information of each component in the application container engine when the second target page is created includes: calling the replaced data information already stored in the Docker image when the second target page is created.

2. The method according to claim 1, characterized in that, The page configuration information includes: At least one of the following: page frame information, page component information, page style information, and component rendering information.

3. The method according to claim 1 or 2, characterized in that, The process of obtaining data information from multiple components corresponding to the front-end page configuration information and the back-end page configuration information includes: Obtain the user-defined page configuration information and create a data collector for each of the multiple components to obtain multiple data collectors; The multiple data collectors collect data information from the multiple components at the back end.

4. The method according to claim 1 or 2, characterized in that, Before obtaining the data information of multiple components corresponding to the page configuration information of the front end and the page configuration information of the back end, the method further includes: Create a node for each of the plurality of components, wherein the node of each component is used to reconnect the plurality of components and according to the connection when the position of the plurality of components changes.

5. The method according to claim 1 or 2, characterized in that, The method further includes: Monitor at least one of component response time, static resource loading time, and page data processing performance. When the component response time, static resource loading time, or page data processing performance shows abnormalities, display the abnormal information to the user.

6. An apparatus for creating a page, characterized in that, include: The acquisition module is used to acquire the page configuration information of the front end and the data information of multiple components corresponding to the page configuration information of the back end. The page configuration information includes the configuration information of the multiple components, which is obtained through user-defined settings. The data information of the multiple components is stored in the database in advance. A creation module is used to process the page configuration information and the data information of the multiple components through a data logic unit to obtain processed page configuration information and processed multiple data information corresponding to the multiple components; to integrate the processed page configuration information and the processed multiple data information to obtain the resource information of the target page; to determine, based on the processed page configuration information, that there is different data information in the data information of the multiple components from the initial data information of the multiple components, and to replace the initial data information at the corresponding position with the different data information to obtain the replaced data information of the multiple components; to generate the target page based on the replaced data information of the multiple components; the resource integration includes configuring the multiple data information in the form of page configuration information; the configuration includes the configuration of code data, and the configuration also includes at least one of user code modification, parameter change under the corresponding component, dependency change, middleware configuration processing, and page style presentation change, and different modifications are classified and processed; the replacement of the initial data information at the corresponding position with the different data information includes: locating the update position corresponding to the different data information and replacing it at the update position; The creation module is specifically used to analyze the page configuration information and the data information of the multiple components through the data logic unit to determine whether the page configuration information and the data information of the multiple components meet the requirements of the user-defined page configuration information; if it is determined that the requirements of the user-defined page configuration information are met, the page configuration information and the data information of the multiple components are used as the processed page configuration information and the processed multiple data information; if it is determined that the requirements of the user-defined page configuration information are not met, the page configuration information and the data information of the multiple components are modified or replaced to obtain the processed page configuration information and the processed multiple data information. A storage module is used to store the replaced data information of each component in the target page in an application container engine, so that the replaced data information of each component in the application container engine can be called when the second target page is created; the application container engine is Docker; storing the replaced data information of each component in the target page in the application container engine includes: encapsulating the replaced data information of each component in the target page in a Docker image; the Docker container corresponding to the Docker image is isolated from other containers; calling the replaced data information of each component in the application container engine when the second target page is created includes: calling the replaced data information already stored in the Docker image when the second target page is created.

7. An electronic device, characterized in that, include: A memory and a processor, the memory storing computer-readable instructions that, when executed by the processor, perform the steps of the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, include: A computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Page configuration method and device, computer equipment and storage medium

    CN111708971A

  • Page development method and device and computer equipment

    CN112416339A

  • Front-end page generation method, computer device and storage medium

    CN114237593A

  • Resource page generation method and device, equipment and medium

    CN114489886A