Page configuration generation method and device

Automatically determine the mapping relationship between page components and data sources through user input information, and generate target pages, solving the problem of inefficient traditional page development, achieving rapid response and efficient development, reducing costs and improving user satisfaction.

CN119088389AActive Publication Date: 2024-12-06河北网星软件有限公司
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411193497.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-06
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

Traditional page development is inefficient and difficult to adapt to rapidly changing market demands and user preferences, resulting in long development cycles and high costs.

Method used

Determine the target business areas and display needs through user input information, automatically determine the data source and page components, establish the mapping relationship between the data source and page components, generate the target page, reduce coding work and improve resource utilization.

Benefits of technology

It significantly shortens the page development cycle, improves the user interface friendliness and the accuracy of information display, reduces development costs, enhances user satisfaction and work efficiency, and improves the maintainability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088389A_ABST
    Figure CN119088389A_ABST
Patent Text Reader

Abstract

The invention provides a page configuration generation method and device, and belongs to the technical field of information, and the method comprises the steps: determining a target business field corresponding to a user and a display demand of the user based on information input by the user, and determining a data source based on the target business field; determining a page component based on the data source and the display demand of the user, and determining the position of the page component in a preset page based on the data source and the display demand of the user; establishing a mapping relationship between the data source and the page component; and based on the mapping relationship, generating a target page at the position of the page component in the preset page. According to the method, the page can be generated according to the data source, the page development period is remarkably shortened, the development cost is reduced, and quick response from demand to display is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the field of information technology, and more specifically, relates to a page configuration generation method and device. Background Art

[0002] In the field of information technology, with the rapid development of the Internet and the growing demand of users for personalized and efficient interface experience, the importance of page configuration generation methods has become increasingly prominent. Traditional page development often requires front-end engineers to manually write a large amount of HTML, CSS and JavaScript code, and back-end engineers to determine the logic. This method is not only inefficient and has a long development cycle, but also difficult to adapt to rapidly changing market demands and user preferences. Summary of the invention

[0003] The purpose of the present disclosure is to provide a page configuration generation method and device to shorten the page development cycle and meet user needs.

[0004] A first aspect of an embodiment of the present disclosure provides a method for generating a page configuration, including: Determine the target business domain corresponding to the user and the display requirements of the user based on the information input by the user, and determine the data source based on the target business domain; Determine a page component based on the data source and the display requirement of the user, and determine a position of the page component in a preset page based on the data source and the display requirement of the user; Establishing a mapping relationship between the data source and the page component; A target page is generated based on the mapping relationship and the position of the page component in the preset page.

[0005] A second aspect of the embodiments of the present disclosure provides a page configuration generating device, including: A first determination module is used to determine the target business field corresponding to the user and the display requirements of the user based on the information input by the user, and determine the data source based on the target business field; A second determination module, configured to determine a page component based on the data source and the display requirements of the user, and to determine a position of the page component in a preset page based on the data source and the display requirements of the user; A mapping module, used to establish a mapping relationship between the data source and the page component; The page generation module is used to generate a target page based on the mapping relationship and the position of the page component in the preset page.

[0006] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the above-mentioned page configuration generation method when executing the computer program.

[0007] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned page configuration generation method are implemented.

[0008] The page configuration generation method and device provided by the embodiments of the present disclosure have the following beneficial effects: First of all, the present invention can accurately identify the corresponding target business field and personalized display needs by directly responding to the user's input information, so as to flexibly configure the data source and accurately select the page components and their layout, which not only improves the friendliness and practicality of the user interface, but also ensures the accuracy and efficiency of information display, greatly enhancing user satisfaction and work efficiency.

[0009] Secondly, the present disclosure can automatically establish a mapping relationship between data sources and page components, and instantly generate a target page, which significantly shortens the page development cycle and achieves a rapid response from demand to display.

[0010] Finally, the disclosure reduces the repetitive coding work in traditional page development through a standardized page configuration generation process, effectively reducing development costs. In addition, since the mapping relationship between data sources and page components is configurable, the same page components and data sources can be reused by different users or different business scenarios, improving the utilization of development resources and the maintainability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0012] Figure 1 A schematic diagram of a flow chart of a page configuration generation method provided in an embodiment of the present disclosure; Figure 2 A structural block diagram of a page configuration generating device provided by an embodiment of the present disclosure; Figure 3 A schematic block diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0013] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present disclosure. However, it should be clear to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present disclosure with unnecessary details.

[0014] In order to make the purpose, technical solutions and advantages of the present disclosure more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0015] Please refer to Figure 1 , Figure 1 A schematic diagram of a page configuration generation method provided in an embodiment of the present disclosure, the method comprising: S101: Determine the target business domain corresponding to the user and the display requirements of the user based on the information input by the user, and determine the data source based on the target business domain.

[0016] In this embodiment, the information input by the user needs to be obtained before the page is generated, and the user's needs and the target business field corresponding to the user can be understood based on the information input by the user. The server can obtain the information input by the user on the client's page through the network protocol.

[0017] The target business area refers to the specific industry or field in which the user is currently interested or needs services, such as finance (banking, securities, insurance, investment management), medicine (hospital management, pharmaceuticals, medical devices, healthcare services), education (preschool education, basic education, higher education), manufacturing (automobile manufacturing, electronic product manufacturing, food processing), e-commerce, energy, science and technology, tourism, etc.

[0018] Presentation requirements refer to the manner or format in which a user wishes to view or receive information, including but not limited to specific report formats, data visualization types, levels of detail, or other personalized presentation preferences.

[0019] A data source is a source that stores or provides data, which can be a database, file, API, real-time data stream, etc. A data source contains information used to satisfy user queries or requirements.

[0020] Determining the target business field and display needs of the user based on the information input by the user can be understood as: extracting keywords from the information input by the user, and determining the target business field of the user based on the keywords. For example, if the user input information contains keywords such as "laboratory", "statistical data", "paper", etc., it indicates that it is directed to the education field; if the user input information contains keywords such as "sales data", "customer order", "inventory management", etc., it indicates that it is directed to the e-commerce field.

[0021] Determining the target business domain and display needs of the user based on the information input by the user can also be understood as: determining the target business domain of the user based on the context of the information input by the user. Consider the context of the information input by the user, including the structure of the sentence, the background of the wording, etc. For example, if the user mentions "hospital patient records" and "medical diagnosis reports", the target business domain can be determined to be the medical field based on the context.

[0022] Determining the target business field and display needs of the user based on the information input by the user can also be understood as: comparing industry standards and terminology to determine whether the information input by the user meets the characteristics of a specific business field. If so, the corresponding target business field can be determined. For example, terms such as "balance sheet" and "financial statement" are usually related to the financial or accounting business field.

[0023] Based on the information input by the user, we can also clarify the user's goals, determine the form of the user's requirements, and consider the user's interaction needs. For example, if the user mentions "I need to monitor changes in sales performance", then the display requirements include real-time updated sales data charts and key indicator comparisons. If the user mentions "I want to show the sales of different products in a bar chart", it directly indicates the display requirements for the chart type. If the user mentions "I want to be able to filter sales data by date", it indicates that the user needs data filtering function.

[0024] Determining the data source based on the target business domain includes: establishing an association library between the business domain and the data source, searching for the business domain matching the target business domain in the association library, and determining the data source corresponding to the business domain as the data source corresponding to the target business domain. After determining the data source, it is also necessary to configure the connection parameters to establish a connection between the server and the data source to ensure that the data in the data source can be securely transmitted to the server.

[0025] S102: Determine a page component based on a data source and a user's display requirement, and determine a position of the page component in a preset page based on the data source and the user's display requirement.

[0026] In this embodiment, page components are basic elements that constitute a web page. They can be buttons, text boxes, charts, pictures, list items, etc. Page components are used to display data, receive user input, or perform other interactive functions. A preset page refers to a page template or layout that has been defined during the design or development phase. It specifies which elements a page should contain and the basic arrangement of these elements. The preset page provides a framework for developers to customize and adjust according to specific needs.

[0027] In this embodiment, the characteristics of the data source include the type of data source, the amount of data in the data source, the update frequency of the data source, etc. The types of data sources include text data, digital data, image data, and audio data, etc. The page components can be determined based on the characteristics of the data source and the user's display requirements. For example, if the user wants to see the proportion of each pollutant in the air pollutant data, then the page component can be a pie chart.

[0028] Determine the position of page components in the preset page based on the data source and the user's display requirements. For example, assume that the data source is the sales data of an e-commerce website, including digital information such as product name, price, sales volume, and product images. The user's display requirement is to be able to intuitively compare the sales of different products and quickly find popular products. Then the server can choose to use a bar chart to show the sales comparison of different products, use a table to list the detailed information of the products, and place product images next to it. In the preset page, the bar chart can be placed in the upper center of the page to attract the user's attention; the table and pictures are placed at the bottom to facilitate users to view specific product information.

[0029] S103: Establish a mapping relationship between the data source and the page component.

[0030] In this embodiment, for simple data sources and page components, the server can directly establish a one-to-one mapping relationship. For example, a specific field in the data source is directly mapped to a text box or label on the page. This method is suitable for situations where the data volume is small and the structure is simple. For example, to display the name and price of a product, the product name field and price field in the data source can be directly mapped to two text boxes on the page.

[0031] For complex data sources and page components, the server needs to establish a mapping relationship through the middle layer. For example, the server can use a data model or data view to abstract and encapsulate the data source, and then map the page component to the data model or data view. This method is suitable for situations where the data volume is large and the structure is complex.

[0032] For example, in an enterprise application, the data source may be a combination of multiple databases and file systems. These data sources need to be integrated and abstracted through a data model, and then the page components are mapped to the data model to display a unified data view on the page. For data sources and page components that need to be updated in real time or dynamically changed, the server can establish a dynamic mapping relationship.

[0033] For example, you can use data binding technology to bind page components to data sources in real time. When the data in the data source changes, the page components are automatically updated and displayed. This method is suitable for situations where data changes need to be displayed in real time. For example, in a stock trading system, stock price data needs to be updated in real time. The chart component on the page can be bound to the data source in real time through data binding technology so that users can see the latest stock price trends at any time.

[0034] S104: Generate a target page based on the mapping relationship and the position of the page component in the preset page.

[0035] In this embodiment, after determining the page component, the server can select a page generation tool or technology (front-end development framework or visual page design tool) to create the page component, and bind the data in the data source to the corresponding page component according to the mapping relationship. For example, for a table component, the data in the data source can be filled into the rows and columns of the table; for a chart component, the data series and axis labels can be set to correctly display the data in the data source.

[0036] During the page generation process, the server adjusts and optimizes the page layout and page component positions according to the preview results, and finally generates the target page which is displayed to the user by the client.

[0037] From the above, it can be concluded that, firstly, the present disclosure can accurately identify the corresponding target business field and personalized display needs by directly responding to the user's input information, so as to flexibly configure the data source and accurately select the page components and their layout, which not only improves the friendliness and practicality of the user interface, but also ensures the accuracy and efficiency of information display, greatly enhancing user satisfaction and work efficiency.

[0038] Secondly, the present disclosure can automatically establish a mapping relationship between data sources and page components, and instantly generate a target page, which significantly shortens the page development cycle and achieves a rapid response from demand to display.

[0039] Finally, the disclosure reduces the repetitive coding work in traditional page development through a standardized page configuration generation process, effectively reducing development costs. In addition, since the mapping relationship between data sources and page components is configurable, the same page components and data sources can be reused by different users or different business scenarios, improving the utilization of development resources and the maintainability of the system.

[0040] In one embodiment of the present disclosure, determining a data source based on a target business domain includes: Create a related library containing different business areas and corresponding data sources; The data source corresponding to the target business domain is determined according to the matching relationship between the target business domain and different business domains in the associated library.

[0041] In this embodiment, the server can pre-create a database containing different business fields and their corresponding data sources, and this database can be continuously expanded and improved. For example, the financial business field can be associated with bank transaction databases, securities market data, etc.; the manufacturing business field can be associated with production management systems, supply chain databases, etc.

[0042] According to the determined target business field, the business field that matches it is searched in the association library; when one or more business fields that match the target business field are queried, the data sources corresponding to the one or more business fields are determined to be the data sources corresponding to the target business field. For example, if the target business field corresponding to the user is the education business field, then the student information system, course management database, etc. in the association library can be the corresponding data sources. It can be concluded from the above that this embodiment realizes the systematic organization of data sources in different business fields and improves the query efficiency by creating an association library. Secondly, this embodiment can quickly and accurately match the target business field with a suitable data source to meet personalized needs.

[0043] In one embodiment of the present disclosure, determining a page component based on a data source and a user's display requirements includes: Determine the data type of the data source, and determine the data type of the corresponding target data source based on the user's display requirements; If the data type of the data source includes the data type of the target data source, the page component is determined based on the data type of the target data source; If the data type of the data source does not include the data type of the target data source, the page component is determined based on the data type of the data source.

[0044] In this embodiment, the data type of the data source includes text, numbers, images, audio, etc. Different data types have different representations and processing methods. Determining the data type of the corresponding target data source based on the user's display needs can be understood as: analyzing the purpose of the user's display needs and extracting key information. For example, if the user requires the display of sales growth rates of different products, then the key information is the sales data of the digital type; if the user requires the display of the employee's work status, then the key information is the text-type job description or the image-type work scene photo. The data type of the target data source can be determined based on the key information.

[0045] When the data type of the data source includes the data type of the target data source, the page component is determined based on the data type of the target data source. This indicates that the data source already has a data type that meets the user's specific display needs, so the page component needs to be determined based on the user's display needs. For example, the data source is a database containing text and numeric data, and the user's display requirement is to display the sales data of a specific product. At this time, the page component suitable for displaying numbers can be directly determined based on the numeric data type, such as a bar chart, line chart, etc.

[0046] When the data type of the data source does not include the data type of the target data source, the page component is determined based on the data type of the data source. In this case, although there is no data type in the data source that fully meets the user's display requirements, you can select the page component that is closest to the user's needs based on the existing data source data type. For example, the data source only has text data, but the user wants to display some simple statistical information. At this time, you can perform statistics based on the keywords in the text data, and then select a page component suitable for displaying the statistical results, such as a table.

[0047] It can be concluded from the above that this embodiment effectively improves the accuracy and rationality of page component selection by accurately matching the data source with the data type in the user's display requirements. Regardless of whether the data source contains the type of the target data source, the server can ensure that the page component can properly display the information required by the user. This not only enhances the user experience, but also improves the efficiency and accuracy of data display.

[0048] In one embodiment of the present disclosure, determining a page component based on a data source and a user's display requirements includes: Determine the data type of the data source based on the user's display requirements; Determine the type of page component based on the data type of the data source; Determine the page components based on the amount of data in the data source and the type of page components.

[0049] In this embodiment, the data type of the data source includes but is not limited to a digital data type, a text data type, an image data type, and an audio data type.

[0050] Determining the data type of the data source based on the user's display needs can be understood as determining the data type of the data source based on the content and form that the user expects to display. For example, if the user's display needs to present the sales trends of different products in the form of charts, it can be inferred that the data source needs to contain digital data, because sales trends are usually reflected in a series of numbers (such as sales, sales volume, etc.). If the user wants to display product pictures and related descriptions, the data source needs to contain image data types and text data types.

[0051] The types of page components refer to different categories divided according to the functions of the page and the characteristics of the displayed content. The types of page components mainly include text display, digital display, image display, interactive, audio and video display, etc.

[0052] Text display categories include text boxes, labels, paragraph text display areas, etc.; digital display categories include digital display boxes, tables, charts, etc.; image display categories include picture display boxes, picture galleries (scrolling or paging browsing), slide shows, etc.; interactive categories include search boxes, drop-down menus, buttons, data filtering components, etc.; audio and video display categories include audio playback components, video playback components, etc.

[0053] Determining the type of the page component based on the data type of the data source can be understood as determining the type of the page component corresponding to the data in the data source according to the data type of the data source.

[0054] For example, when the data type of the data source is a numeric data type, the types of the page components are numeric display class and interactive class; when the data type of the data source is a text data type, the types of the page components are text display class and interactive class; when the data type of the data source is an image data type, the types of the page components are image display class and interactive class; when the data type of the data source is an audio data type, the types of the page components are audio and video display class and interactive class.

[0055] Determine the page component based on the amount of data from the data source and the type of page component. It can be understood that different page components of the same type are applicable to different amounts of data. For example, when the type of page component is a digital display type, when the amount of data from the data source is less than the second threshold, select the display box for direct display; when the amount of data from the data source is greater than or equal to the second threshold and less than the third threshold, select a table for display; when the amount of data from the data source is greater than or equal to the third threshold, select a chart for display. The second threshold is less than the third threshold. From the above, it can be concluded that this embodiment can accurately match the best page component according to the data type and data amount of the data source, ensure efficient page loading and effective data display, and improve page practicality and user satisfaction.

[0056] In one embodiment of the present disclosure, determining a page component based on the amount of data from a data source and the type of the page component includes: Sort the data in the data source in chronological order, count the data volume of the data source in each first time period, and calculate the first difference of the data volume in two adjacent first time periods; The page component is determined according to the plurality of first difference values ​​and the type of the page component.

[0057] In this embodiment, there are many business areas where data is updated very frequently. In order to prevent a sudden increase in data volume, resulting in incomplete data displayed on the page and affecting user experience, this application provides a method for generating page components. The design idea of ​​this method is to predict the page components that need to be configured based on the change trend of historical data in the data source.

[0058] The server can sort the historical data in the data source from the earliest to the latest in chronological order, and divide it by time blocks (for example, each time block is the first duration), and count the amount of data from the data source in each time block. Calculate the first difference in the amount of data of two adjacent time blocks; sort multiple first differences in chronological order. Determine the page component based on the changes in multiple first differences and the type of page component.

[0059] From the above, it can be concluded that this embodiment can effectively improve the page loading efficiency and user experience while ensuring the timeliness and accuracy of data display by accurately analyzing the time changes of the data volume of the data source (calculating the difference in the data volume of adjacent time lengths) and combining the type of page components to dynamically determine the optimal page component.

[0060] In one embodiment of the present disclosure, determining a page component according to a plurality of first difference values ​​and a type of the page component includes: If the absolute value of each first difference is less than or equal to the first threshold, determine the page component according to the average value of the data volume of all data sources within the first time period and the type of the page component; If the absolute value of each first difference is greater than the first threshold, the page component is determined according to a preset page component type.

[0061] In this embodiment, the server may determine the first threshold value based on system performance, historical first difference data, and data features of the data source. System performance includes page loading time and server load. The user's business needs are determined based on the information input by the user, and the data features related to the first threshold value are determined based on the data features of the data source and the user's business needs.

[0062] For example, the first threshold may be calculated according to a first formula, where the first formula includes:

[0063] Where n represents the number of historical first difference data, represents the i-th historical first difference data, Represents the sum of all historical first difference data, Represents the mean weight coefficient of the historical first difference data, Indicates the standard deviation of the historical first difference data, represents the standard deviation weight coefficient, Indicates the page loading time, Represents the page loading time weight coefficient, Indicates the server load. represents the server load weight coefficient, p represents the number of data features of the data source, represents the data feature value of the hth data source, Represents the sum of data feature values ​​from all data sources.

[0064] In this embodiment, if the user has extremely high requirements for the system response speed, such as in real-time trading systems or online games, a long page loading time will directly lead to a sharp decline in user experience or even business failure. In this case, the timer can be appropriately increased. On the contrary, if the system is relatively less sensitive to page loading time, such as some background data processing systems, users do not directly care about page loading speed, then you can lower The value of .

[0065] If the server has limited resources and is often faced with high concurrency, excessive server load may cause the system to crash or severely degrade performance. In this case, you should increase The value of can be increased to give more importance to the role of server load in determining the first threshold. If the server performance is strong and can easily cope with various load conditions, then you can lower The value of .

[0066] When the absolute value of each first difference is less than or equal to the first threshold, it indicates that the data in the data source shows a stable growth trend over a period of time, and the amount of data in any first time period is relatively stable. In this case, the average value of the data volume of all data sources in the first time period can be calculated, and the page component can be determined based on the average value and the type of page component.

[0067] For example, the type of the page component is the text data type, and the data volume of the data source is the number of characters. When the average value of the data volume of the data source is less than the fourth threshold, select the text box to display directly; when the average value of the data volume of the data source is greater than or equal to the fourth threshold and less than the fifth threshold, select the label to display directly; when the average value of the data volume of the data source is greater than the fifth threshold, select the paragraph text display area to display directly.

[0068] In this embodiment, when the absolute value of each first difference is greater than the first threshold, it indicates that the data in the data source has changed significantly over a period of time, which may be a sudden increase, a sudden decrease, or an unstable growth. In this case, the page component can be determined according to the preset page component type.

[0069] For example, the preset page component types are page component types such as paragraph text display area, chart, slide show, etc. that can display a large amount of data. When the data type of the data source is a numeric type and the absolute value of each first difference is greater than the first threshold, it can be determined that the page component is a chart.

[0070] It can be concluded from the above that this embodiment can automatically update page components according to the change trend of the data volume in the data source to better meet the needs of users.

[0071] In one embodiment of the present disclosure, generating a target page based on a mapping relationship and a position of a page component in a preset page includes: Based on the mapping relationship, the data in the data source is displayed in the page component of the preset page; Generate a target page by combining the preset components in the preset page.

[0072] In this embodiment, the server can fill the specific data from the data source into the corresponding page component on the preset page based on the mapping relationship between the data source and the page component established previously. For example, if the data source is a sales database, which contains data fields such as product name, sales quantity, and sales date, and there is a table component on the preset page for displaying sales data. Through the mapping relationship, the product name will be filled in a column of the table, and the sales quantity and sales date will also be filled in the corresponding columns, which can ensure that the data can be accurately presented on the page to meet the user's needs to view specific data.

[0073] In addition to the page components directly related to the data source, the preset page usually also has some preset components. These preset components can be elements such as navigation bars, title bars, footers, buttons, etc. that are not directly related to the data source but play an important role in the overall layout and function of the page. The target page can be generated by organically combining the page components filled with data with the preset components. For example, the navigation bar can help users switch between different pages, the title bar can clarify the theme of the page, and the button can trigger some interactive operations. By integrating these preset components with the page components filled with data, this embodiment can form a complete, fully functional and reasonably laid out target page to provide users with a good experience.

[0074] Corresponding to the page configuration generation method of the above embodiment, Figure 2 This is a structural block diagram of a page configuration generating device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 2 The page configuration generating device 20 includes: a first determining module 21 , a second determining module 22 , a mapping module 23 and a page generating module 24 .

[0075] The first determination module 21 is used to determine the target business domain corresponding to the user and the user's display requirements based on the information input by the user, and determine the data source based on the target business domain; A second determination module 22, configured to determine a page component based on a data source and a user's display requirement, and to determine a position of the page component in a preset page based on the data source and the user's display requirement; A mapping module 23, used to establish a mapping relationship between data sources and page components; The page generation module 24 is used to generate a target page based on the mapping relationship and the position of the page components in the preset page.

[0076] In an embodiment of the present disclosure, the first determining module 21 is specifically configured to: Create a related library containing different business areas and corresponding data sources; The data source corresponding to the target business domain is determined according to the matching relationship between the target business domain and different business domains in the associated library.

[0077] In one embodiment of the present disclosure, the second determining module 22 is specifically configured to: Determine the data type of the data source, and determine the data type of the corresponding target data source based on the user's display requirements; If the data type of the data source includes the data type of the target data source, the page component is determined based on the data type of the target data source; If the data type of the data source does not include the data type of the target data source, the page component is determined based on the data type of the data source.

[0078] In one embodiment of the present disclosure, the second determining module 22 is specifically configured to: Determine the data type of the data source based on the user's display requirements; Determine the type of page component based on the data type of the data source; Determine the page components based on the amount of data in the data source and the type of page components.

[0079] In one embodiment of the present disclosure, the second determining module 22 is specifically configured to: Sort the data in the data source in chronological order, count the data volume of the data source in each first time period, and calculate the first difference of the data volume in two adjacent first time periods; The page component is determined according to the plurality of first difference values ​​and the type of the page component.

[0080] In one embodiment of the present disclosure, the second determining module 22 is specifically configured to: If the absolute value of each first difference is less than or equal to the first threshold, determine the page component according to the average value of the data volume of all data sources within the first time period and the type of the page component; If the absolute value of each first difference is greater than the first threshold, the page component is determined according to a preset page component type.

[0081] In one embodiment of the present disclosure, the page generation module 24 is specifically used to: Based on the mapping relationship, the data in the data source is displayed in the page component of the preset page; Generate a target page by combining the preset components in the preset page.

[0082] See also Figure 3 , Figure 3 A schematic block diagram of an electronic device provided by an embodiment of the present disclosure. Figure 3 The electronic device 300 in the embodiment shown may include: one or more processors 301, one or more input devices 302, one or more output devices 303 and one or more memories 304. The processors 301, input devices 302, output devices 303 and memories 304 communicate with each other via a communication bus 305. The memory 304 is used to store computer programs, which include program instructions. The processor 301 is used to execute the program instructions stored in the memory 304. The processor 301 is configured to call the program instructions to execute the functions of each module / unit in the above-mentioned device embodiments, such as Figure 2 The functions of modules 21 to 24 are shown.

[0083] It should be understood that in the embodiment of the present disclosure, the processor 301 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0084] The input device 302 may include a touch panel, a fingerprint collection sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, etc., and the output device 303 may include a display (LCD, etc.), a speaker, etc.

[0085] The memory 304 may include a read-only memory and a random access memory, and provide instructions and data to the processor 301. A portion of the memory 304 may also include a non-volatile random access memory. For example, the memory 304 may also store information about the device type.

[0086] In a specific implementation, the processor 301, input device 302, and output device 303 described in the embodiments of the present disclosure can execute the implementation methods described in the first and second embodiments of the page configuration generation method provided in the embodiments of the present disclosure, and can also execute the implementation methods of the electronic device described in the embodiments of the present disclosure, which will not be repeated here.

[0087] In another embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by the processor, all or part of the processes in the above-mentioned embodiment method are implemented, and the computer program can also be completed by instructing the relevant hardware through the computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0088] The computer-readable storage medium may be an internal storage unit of the electronic device of any of the aforementioned embodiments, such as a hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Furthermore, the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device. The computer-readable storage medium is used to store computer programs and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.

[0089] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.

[0090] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the electronic devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0091] In the several embodiments provided in the present application, it should be understood that the disclosed electronic devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces or units, or it can be an electrical, mechanical or other form of connection.

[0092] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present disclosure.

[0093] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0094] The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present disclosure, and these modifications or replacements should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A page configuration generation method, characterized in that: include: Determine the target business domain corresponding to the user and the display requirements of the user based on the information input by the user, and determine the data source based on the target business domain; Determine a page component based on the data source and the display requirement of the user, and determine a position of the page component in a preset page based on the data source and the display requirement of the user; Establishing a mapping relationship between the data source and the page component; A target page is generated based on the mapping relationship and the position of the page component in the preset page.

2. The page configuration generation method according to claim 1, characterized in that: The determining of the data source based on the target business domain includes: Create a related library containing different business areas and corresponding data sources; The data source corresponding to the target business field is determined according to the matching relationship between the target business field and different business fields in the association library.

3. The page configuration generation method according to claim 1, characterized in that: The determining of the page components based on the data source and the display requirements of the user includes: Determine the data type of the data source, and determine the data type of the corresponding target data source based on the display requirements of the user; If the data type of the data source includes the data type of the target data source, determining the page component based on the data type of the target data source; If the data type of the data source does not include the data type of the target data source, the page component is determined based on the data type of the data source.

4. The page configuration generation method according to claim 1, characterized in that: The determining of the page components based on the data source and the display requirements of the user includes: Determining the data type of the data source based on the display requirements of the user; Determine the type of the page component based on the data type of the data source; The page component is determined based on the data volume of the data source and the type of the page component.

5. The page configuration generation method according to claim 4, characterized in that: Determining the page component based on the data volume of the data source and the type of the page component includes: Sorting the data in the data source in chronological order, counting the amount of data in each first time period of the data source, and calculating a first difference in the amount of data in two adjacent first time periods; The page component is determined according to a plurality of first difference values ​​and a type of the page component.

6. The page configuration generation method according to claim 5, characterized in that: The determining the page component according to the plurality of first differences and the type of the page component comprises: If the absolute value of each first difference is less than or equal to the first threshold, determining the page component according to an average value of the data volume of all data sources within the first time period and the type of the page component; If the absolute value of each first difference is greater than the first threshold, the page component is determined according to a preset page component type.

7. The page configuration generation method according to claim 1, characterized in that: The generating a target page based on the mapping relationship and the position of the page component in the preset page includes: Based on the mapping relationship, the data in the data source is displayed in the page component of the preset page; A target page is generated by combining the preset components in the preset page.

8. A page configuration generating device, characterized in that: include: A first determination module is used to determine the target business field corresponding to the user and the display requirements of the user based on the information input by the user, and determine the data source based on the target business field; A second determination module, configured to determine a page component based on the data source and the display requirements of the user, and to determine a position of the page component in a preset page based on the data source and the display requirements of the user; A mapping module, used to establish a mapping relationship between the data source and the page component; The page generation module is used to generate a target page based on the mapping relationship and the position of the page component in the preset page.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Service data processing method, apparatus and device, and storage medium

    CN110853720A

  • Live broadcast room data interaction method, related device and equipment

    CN112153407A

  • Page display method and device based on data configuration and storage medium

    CN112487067A

  • Processing component selection method and device

    CN113778984A

  • Page construction method and device, equipment, and medium

    CN114020245A