Page Configuration Generation Method and Device
By automatically identifying user needs and generating page components and layouts, the problem of inefficiency in traditional page development is solved, and rapid response and efficient development is achieved.
Patent Information
- Application Number
- CN202411193497.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2044-08-28
AI Technical Summary
Traditional page development is inefficient and has a long development cycle, making it difficult to adapt to rapidly changing market demands and user preferences.
By determining the target business areas and display needs based on user input information, automatically determining the data source and page components, establishing a mapping relationship between the data source and page components, and generating a target page.
It significantly shortens the page development cycle, improves the friendliness and practicality of the user interface, ensures the accuracy and efficiency of information display, and enhances user satisfaction and work efficiency.
Smart Images

Figure CN119088389B_ABST
Abstract
Description
Technical Field
[0001] This disclosure belongs to the field of information technology, and more specifically, relates to a page configuration generation method and apparatus. 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 experiences, the importance of page configuration generation methods has become increasingly prominent. In traditional page development, front-end engineers often manually write a large amount of HTML, CSS, and JavaScript code first, and then back-end engineers determine the logic. This method is not only inefficient and has a long development cycle, but also difficult to adapt to the rapidly changing market demands and user preferences. Summary of the Invention
[0003] The purpose of this disclosure is to provide a page configuration generation method and apparatus to shorten the page development cycle and adapt to user requirements.
[0004] In the first aspect of the embodiments of this disclosure, a page configuration generation method is provided, including:
[0005] Determining the target business area corresponding to the user and the display requirements of the user based on the information input by the user, and determining a data source based on the target business area;
[0006] Determining page components based on the data source and the display requirements of the user, and determining the positions of the page components in a preset page based on the data source and the display requirements of the user;
[0007] Establishing a mapping relationship between the data source and the page components;
[0008] Generating a target page based on the mapping relationship and the positions of the page components in the preset page.
[0009] In the second aspect of the embodiments of this disclosure, a page configuration generation apparatus is provided, including:
[0010] A first determination module, configured to determine the target business area corresponding to the user and the display requirements of the user based on the information input by the user, and determine a data source based on the target business area;
[0011] A second determination module, configured to determine page components based on the data source and the display requirements of the user, and determine the positions of the page components in a preset page based on the data source and the display requirements of the user;
[0012] A mapping module, configured to establish a mapping relationship between the data source and the page components;
[0013] A page generation module, configured to generate a target page according to the mapping relationship and the positions of the page components in a preset page.
[0014] In a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the steps of the above-mentioned page configuration generation method are implemented.
[0015] In a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing 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.
[0016] The beneficial effects of the page configuration generation method and device provided by the embodiments of the present disclosure are as follows:
[0017] First of all, the present disclosure can directly respond to the input information of the user, accurately identify the corresponding target business field and personalized display requirements, so as to flexibly configure the data source and accurately select the page components and their layouts. This not only improves the friendliness and practicality of the user interface, but also ensures the accuracy and efficiency of information display, greatly enhancing the user's satisfaction and work efficiency.
[0018] Secondly, the present disclosure can automatically establish the mapping relationship between the data source and the page components, and instantly generate the target page, significantly shortening the page development cycle and realizing the rapid response from requirements to display.
[0019] Finally, through the standardized page configuration generation process, the present disclosure reduces the repetitive coding work in traditional page development, effectively reducing the development cost. In addition, since the mapping relationship between the data source and the page components is configurable, the same page components and data sources can be reused by different users or different business scenarios, improving the utilization rate of development resources and the maintainability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0021] Figure 1 It is a schematic flowchart of a page configuration generation method provided by an embodiment of the present disclosure;
[0022] Figure 2 It is a structural block diagram of a page configuration generation device provided by an embodiment of the present disclosure;
[0023] Figure 3 Schematic block diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners
[0024] In the following description, specific details such as specific system architectures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present disclosure. However, those skilled in the art should clearly understand that the present disclosure can also 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 unnecessary details from interfering with the description of the present disclosure.
[0025] To make the purpose, technical solutions, and advantages of the present disclosure clearer, the following will be described through specific embodiments with reference to the accompanying drawings.
[0026] Please refer to Figure 1 , Figure 1 Flow schematic diagram of a page configuration generation method provided by an embodiment of the present disclosure. The method includes:
[0027] S101: Determine the target business area 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 area.
[0028] In this embodiment, it is necessary to obtain the information input by the user before page generation. According to the information input by the user, the needs of the user and the target business area corresponding to the user can be understood. The server can obtain the information input by the user on the client page through network protocols.
[0029] The target business area refers to the specific industry or field that the user is currently interested in or needs to obtain services, such as the financial field (banks, securities, insurance, investment management), the medical field (hospital management, pharmaceuticals, medical devices, healthcare services), the education field (preschool education, basic education, higher education), the manufacturing field (automobile manufacturing, electronic product manufacturing, food processing), the e-commerce field, the energy field, the technology field, the tourism field, etc.
[0030] The display requirements refer to the ways or formats in which the user hopes to view or receive information, including but not limited to specific report formats, data visualization types, levels of detail, or other personalized display preferences.
[0031] The data source refers to the source that stores or provides data, which can be a database, a file, an API, a real-time data stream, etc. The data source contains the information used to meet the user's queries or needs.
[0032] Determining the target business area corresponding to the user and the user's display requirements based on the information input by the user can be understood as: extracting the keywords in the information input by the user and determining the target business area corresponding to the user according to the keywords. For example, if the keywords "laboratory", "statistical data", "papers", etc. are included in the user input information, it indicates a direction towards the education field; if the keywords "sales data", "customer orders", "inventory management", etc. are included in the user input information, it indicates a direction towards the e-commerce field.
[0033] Determining the target business area corresponding to the user and the user's display requirements based on the information input by the user can also be understood as: determining the target business area corresponding to the user according to the context of the information input by the user. Consider the context of the information input by the user, including the structure of the statement, the background of the words used, etc. For example, if the user mentions "hospital patient records", "medical diagnosis reports", the target business area can be determined as the medical field in combination with the context.
[0034] Determining the target business area corresponding to the user and the user's display requirements based on the information input by the user can also be understood as: comparing industry standards and terms to judge whether the information input by the user conforms to the characteristics of a specific business area. If it conforms, the corresponding target business area can be determined. For example, terms such as "balance sheet", "financial statements" are usually related to the financial or accounting business area.
[0035] Based on the information input by the user, the user's goals can also be clarified, the form required by the user can be determined, the user's interaction requirements can be considered, etc. For example, if the user mentions "I need to monitor the changes in sales performance", then the display requirements include a real-time updated sales data chart and key indicator comparison. If the user mentions "I hope to display the sales situation of different products in a bar chart", it directly indicates the display requirement 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 a data filtering function.
[0036] Determining the data source based on the target business area includes: establishing an association library between the business area and the data source, searching in the association library for the business area that matches the target business area, and determining the data source corresponding to the business area as the data source corresponding to the target business area. After determining the data source, it is also necessary to establish a connection between the server and the data source by configuring connection parameters to ensure that the data in the data source can be securely transmitted to the server.
[0037] S102: Determine the page components based on the data source and the user's display requirements, and determine the position of the page components in the preset page based on the data source and the user's display requirements.
[0038] In this embodiment, page components are the basic elements that make up a web page. They can be buttons, text boxes, charts, images, 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 stage, which stipulates what elements the 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 requirements.
[0039] In this embodiment, the characteristics of the data source include the type of the data source, the data volume of the data source, the update frequency of the data source, etc. Among them, the types of data sources include text data, digital data, image data, audio data, etc. Based on the characteristics of the data source and the user's display requirements, the page components can be determined. 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.
[0040] Determine the position of the page component 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 names, prices, sales volumes, and product pictures. The user's display requirement is to be able to intuitively compare the sales situations of different products and quickly find popular products. Then the server can choose to use a bar chart to display the sales volume comparison of different products, list the detailed product information in a table, and place the product pictures beside. In the preset page, the bar chart can be placed in the central position at the top of the page to attract the user's attention; the table and pictures can be placed at the bottom for the user to view the specific product information conveniently.
[0041] S103: Establish a mapping relationship between the data source and the page component.
[0042] In this embodiment, for simple data sources and page components, the server can directly establish a one-to-one mapping relationship. For example, directly map a specific field in the data source to a text box or label on the page. This method is applicable to situations with a small amount of data and a simple structure. 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 respectively.
[0043] For complex data sources and page components, the server needs to establish a mapping relationship through an intermediate layer. For example, the server can use a data model or a 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 applicable to situations with a large amount of data and a complex structure.
[0044] For example, in an enterprise-level application, the data source may be a combination of multiple databases and file systems. It is necessary to integrate and abstract these data sources through a data model, and then map the page components 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 change dynamically, the server can establish dynamic mapping relationships.
[0045] For example, data binding technology can be used 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 real-time display of data changes is required. 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.
[0046] S104: Generate a target page based on the mapping relationship and the positions of page components in a preset page.
[0047] In this embodiment, after determining the page components, the server can select a page generation tool or technology (front-end development framework or visual page design tool) to create page components, and bind the data in the data source to the corresponding page components 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.
[0048] During the page generation process, the server adjusts and optimizes the page layout and the positions of page components according to the preview results, and finally generates a target page for the client to display to the user.
[0049] From the above, it can be concluded that, firstly, the present disclosure can accurately identify the corresponding target business area and personalized display requirements by directly responding to the user's input information, so that the data source can be flexibly configured and the page components and their layouts can be accurately selected. This not only improves the friendliness and usability of the user interface, but also ensures the accuracy and efficiency of information display, greatly enhancing the user's satisfaction and work efficiency.
[0050] Secondly, the present disclosure can automatically establish a mapping relationship between the data source and page components and instantaneously generate a target page, significantly shortening the page development cycle and achieving a quick response from requirements to display.
[0051] Finally, the present disclosure reduces the repetitive coding work in traditional page development through a standardized page configuration generation process, effectively reducing the development cost. In addition, since the mapping relationship between the data source and the page components is configurable, the same page components and data sources can be reused by different users or different business scenarios, improving the utilization rate of development resources and the maintainability of the system.
[0052] In an embodiment of the present disclosure, determining a data source based on a target business domain includes:
[0053] Create an association library containing different business domains and their corresponding data sources;
[0054] Determine the data source corresponding to the target business domain according to the matching relationship between the target business domain and different business domains in the association library.
[0055] In this embodiment, the server can pre-create an association library containing different business domains and their corresponding data sources, and this association library can be continuously expanded and improved. For example, the financial business domain can be associated with a bank transaction database, stock market data, etc.; the manufacturing business domain can be associated with a production management system, a supply chain database, etc.
[0056] According to the determined target business domain, search for the matching business domain in the association library; when one or more business domains matching the target business domain are found, determine the data sources corresponding to the one or more business domains as the data source corresponding to the target business domain. For example, if the target business domain corresponding to the user is the education business domain, then the student information system, course management database, etc. in the association library can be its corresponding data sources. It can be concluded from the above that this embodiment realizes the systematic arrangement of data sources for different business domains by creating an association library, improving the query efficiency. Secondly, this embodiment can quickly and accurately match a suitable data source for the target business domain to meet personalized needs.
[0057] In an embodiment of the present disclosure, determining page components based on a data source and a user's display requirements includes:
[0058] 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;
[0059] If the data type of the data source includes the data type of the target data source, determine the page components based on the data type of the target data source;
[0060] If the data type of the data source does not include the data type of the target data source, determine the page components based on the data type of the data source.
[0061] In this embodiment, the data types of the data sources include text, numbers, images, audio, etc. Different data types have different presentation forms and processing methods. Determining the data type of the target data source corresponding to the user's display requirements can be understood as: analyzing the purpose of the user's display requirements and extracting key information. For example, if the user requests to display the sales growth rates of different products, then the key information is the numerical sales data; if the user requests to display the working status of employees, then the key information is the textual job description or the image of the working scenario of the employees. Based on the key information, the data type of the target data source can be determined.
[0062] When the data type of the data source contains the data type of the target data source, determine the page components based on the data type of the target data source. This indicates that there is already a data type in the data source that meets the user's specific display requirements. Therefore, it is necessary to determine the page components according to the user's display requirements. For example, the data source is a database containing text and numerical data, and the user's display requirement is to display the numerical sales data of a specific product. At this time, the page components suitable for displaying numbers, such as bar charts, line charts, etc., can be directly determined according to the numerical data type.
[0063] When the data type of the data source does not contain the data type of the target data source, determine the page components based on the data type of the data source. In this case, although there is no data type in the data source that exactly meets the user's display requirements, the page components closest to the user's requirements can be selected according to the existing data types of the data source. For example, the data source only has text data, but the user hopes to display some simple statistical information. At this time, statistics can be performed based on the keywords in the text data, and then the page components suitable for displaying the statistical results, such as tables, etc., can be selected.
[0064] From the above, it can be concluded that in this embodiment, by accurately matching the data types in the data source and the user's display requirements, the accuracy and rationality of page component selection are effectively improved. Whether the data source contains the type of the target data source or not, the server can ensure that the page components can appropriately display the information required by the user. This not only enhances the user experience but also improves the efficiency and accuracy of data display.
[0065] In one embodiment of the present disclosure, determining the page components based on the data source and the user's display requirements includes:
[0066] Determine the data type of the data source based on the user's display requirements;
[0067] Determine the type of the page components based on the data type of the data source;
[0068] Determine the page components based on the data volume of the data source and the type of the page components.
[0069] In this embodiment, the data types of the data source include, but are not limited to, digital data types, text data types, image data types, and audio data types.
[0070] Determining the data type of the data source based on the user's display requirements can be understood as determining the data type of the data source according to the content and form that the user expects to display. For example, if the user's display requirement is to present the sales trends of different products in the form of charts, it can be inferred that the data source needs to contain data of the digital type, because sales trends are usually reflected by a series of numbers (such as sales amount, sales volume, etc.). If the user wishes to display pictures of products and related descriptions, then the data source needs to contain image data types and text data types.
[0071] The types of page components refer to different categories divided according to the functions undertaken by the page and the characteristics of the displayed content. The types of page components mainly include text display types, digital display types, image display types, interactive types, audio-visual display types, etc.
[0072] Text display types include text boxes, labels, paragraph text display areas, etc.; digital display types include digital display boxes, tables, charts, etc.; image display types include picture display boxes, picture galleries (scrollable or paginated browsing), slide shows, etc.; interactive types include search boxes, drop-down menus, buttons, data filtering components, etc.; audio-visual display types include audio playback components, video playback components, etc.
[0073] Determining the type of page components based on the data type of the data source can be understood as determining the type of page components corresponding to the data in the data source according to the data type of the data source.
[0074] For example, when the data type of the data source is a digital data type, the types of page components are digital display types and interactive types; when the data type of the data source is a text data type, the types of page components are text display types and interactive types; when the data type of the data source is an image data type, the types of page components are image display types and interactive types; when the data type of the data source is an audio data type, the types of page components are audio-visual display types and interactive types.
[0075] Determine the page component based on the data volume of the data source and the type of the page component. It can be understood that different page components in the same type of page components are applicable to different data volumes. For example, when the type of the page component is digital display, when the data volume of the data source is less than the second threshold, select a display box for direct display; when the data volume of 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 data volume of 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 volume of the data source, ensure efficient page loading and effective data display, and improve the page usability and user satisfaction.
[0076] In an embodiment of the present disclosure, determining the page component based on the data volume of the data source and the type of the page component includes:
[0077] Sort the data in the data source in chronological order, count the data volume of the data source within each first time period, and calculate the first difference between the data volumes in two adjacent first time periods;
[0078] Determine the page component according to multiple first differences and the type of the page component.
[0079] In this embodiment, the data in many business fields is updated very frequently. In order to prevent the sudden increase in the data volume, resulting in incomplete data displayed on the page and affecting the user experience, the present application provides a method for generating a page component. The design idea of this method is to predict the page component to be configured according to the change trend of the historical data in the data source.
[0080] The server can sort the historical data in the data source from far to near in chronological order and divide it according to time blocks (for example, each time block is the first time period), and count the data volume of the data source within each time block. Calculate the first difference between the data volumes of two adjacent time blocks; sort multiple first differences in chronological order. Determine the page component according to the change of multiple first differences and the type of the page component.
[0081] From the above, it can be concluded that this embodiment can dynamically determine the optimal page component by accurately analyzing the time change of the data volume of the data source (calculating the difference in data volume between adjacent time periods) and combining the type of the page component, effectively improving the page loading efficiency and user experience, and at the same time ensuring the timeliness and accuracy of data display.
[0082] In an embodiment of the present disclosure, determining the page component according to multiple first differences and the type of the page component includes:
[0083] 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 the data source within all first time durations and the type of the page component.
[0084] If the absolute value of each first difference is greater than the first threshold, determine the page component according to the preset page component type.
[0085] In this embodiment, the server may determine the first threshold according to the system performance, historical first difference data, and data characteristics of the data source. The system performance includes the page loading time and the server load. Determine the business requirements of the user according to the information input by the user, and determine the data characteristics related to the first threshold according to the data characteristics of the data source and the business requirements of the user.
[0086] For example, the first threshold may be calculated according to the first formula, and the first formula includes:
[0087]
[0088] 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, represents the standard deviation of the historical first difference data, represents the standard deviation weight coefficient, represents the page loading time, represents the page loading time weight coefficient, represents the server load, represents the server load weight coefficient, p represents the number of data characteristics of the data source, represents the data characteristic value of the h-th data source, represents the sum of the data characteristic values of all data sources.
[0089] In this embodiment, if the user has extremely high requirements for the system response speed, such as in scenarios like real-time trading systems or online games, a too long page loading time will directly lead to a sharp decline in the user experience or even the inability to conduct business normally. At this time, the value can be appropriately increased. On the contrary, if the system is relatively less sensitive to the page loading time, such as some background data processing systems where users do not directly focus on the page loading speed, then the value can be decreased.
[0090] If the server resources are limited and often face high concurrency situations, then a too high server load may cause the system to crash or the performance to seriously decline. In this case, the the value to attach more importance to the role of server load in determining the first threshold. If the server has strong performance and can easily handle various load conditions, then the value can be reduced.
[0091] 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 data volume within any one first duration is relatively stable. In this case, the average value of the data volume of the data source within all first durations can be calculated, and the page component can be determined according to this average value and the type of the page component.
[0092] For example, the type of the page component is a text data type, and the data volume of the data source is the number of words. When the average value of the data volume of the data source is less than the fourth threshold, a text box is selected for direct display; 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, a label is selected for direct display; when the average value of the data volume of the data source is greater than the fifth threshold, a paragraph text display area is selected for direct display.
[0093] 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 changes significantly over a period of time, which can 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.
[0094] For example, the preset page component types are page component types that can display a large amount of data, such as a paragraph text display area, a chart, a slide show, etc. 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, the page component can be determined as a chart.
[0095] It can be concluded from the above that this embodiment can automatically update the page component according to the change trend of the data volume in the data source, better meeting the needs of users.
[0096] In an embodiment of the present disclosure, generating a target page based on a mapping relationship and the position of a page component in a preset page includes:
[0097] Based on the mapping relationship, displaying the data in the data source in the page component of the preset page;
[0098] Combining with the preset components in the preset page to generate a target page.
[0099] In this embodiment, the server can fill the specific data from the data source into the corresponding page components on the preset page according to the mapping relationship established previously between the data source and the page components. For example, if the data source is a sales database containing 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 into a certain column of the table, and the sales quantity and sales date will also be filled into the corresponding columns, so as to ensure that the data can be accurately presented on the page to meet the user's need to view specific data.
[0100] In the preset page, usually in addition to the page components directly related to the data source, there are also some preset components, which can be elements such as navigation bars, title bars, footers, buttons, etc. that are not directly associated with the data source but play an important role in the overall layout and function of the page. Organically combining the page components filled with data and the preset components can generate the target page. 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 a good experience for users.
[0101] Corresponding to the page configuration generation method in the above embodiment, Figure 2 is a structural block diagram of a page configuration generation device provided by an embodiment of the present disclosure. For the sake of convenience of description, only the parts related to the embodiments of the present disclosure are shown. Refer to Figure 2 The page configuration generation device 20 includes: a first determination module 21, a second determination module 22, a mapping module 23, and a page generation module 24.
[0102] Among them, the first determination module 21 is used to determine the target business area 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 area;
[0103] The second determination module 22 is used to determine the page components based on the data source and the user's display requirements, and determine the positions of the page components in the preset page based on the data source and the user's display requirements;
[0104] The mapping module 23 is used to establish a mapping relationship between the data source and the page components;
[0105] The page generation module 24 is used to generate the target page based on the mapping relationship and the positions of the page components in the preset page.
[0106] In an embodiment of the present disclosure, the first determination module 21 is specifically used for:
[0107] Create an association library that includes different business domains and corresponding data sources;
[0108] Determine the data source corresponding to the target business domain according to the matching relationship between the target business domain and different business domains in the association library.
[0109] In an embodiment of the present disclosure, the second determination module 22 is specifically configured to:
[0110] 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;
[0111] If the data type of the data source includes the data type of the target data source, determine the page component based on the data type of the target data source;
[0112] If the data type of the data source does not include the data type of the target data source, determine the page component based on the data type of the data source.
[0113] In an embodiment of the present disclosure, the second determination module 22 is specifically configured to:
[0114] Determine the data type of the data source based on the display requirements of the user;
[0115] Determine the type of the page component based on the data type of the data source;
[0116] Determine the page component based on the data volume of the data source and the type of the page component.
[0117] In an embodiment of the present disclosure, the second determination module 22 is specifically configured to:
[0118] Sort the data in the data source in chronological order, count the data volume of the data source within each first time period, and calculate the first difference between the data volumes in two adjacent first time periods;
[0119] Determine the page component according to multiple first differences and the type of the page component.
[0120] In an embodiment of the present disclosure, the second determination module 22 is specifically configured to:
[0121] 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 volumes of the data source within all first time periods and the type of the page component;
[0122] If the absolute value of each first difference is greater than the first threshold, determine the page component according to the preset page component type.
[0123] In an embodiment of the present disclosure, the page generation module 24 is specifically configured to:
[0124] Based on the mapping relationship, display the data in the data source in the page components of a preset page;
[0125] Generate a target page by combining preset components in the preset page.
[0126] See Figure 3 , Figure 3 which is a schematic block diagram of an electronic device provided by an embodiment of the present disclosure. As Figure 3 shown, the electronic device 300 in this embodiment 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 above-mentioned processors 301, input devices 302, output devices 303, and memories 304 communicate with each other through a communication bus 305. The memory 304 is used to store computer programs, and the computer programs include program instructions. The processor 301 is used to execute the program instructions stored in the memory 304. Among them, 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 the modules 21 to 24 shown.
[0127] It should be understood that in the embodiments of the present disclosure, the so-called processor 301 may be a central processing unit (CPU), and this processor may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or this processor may also be any conventional processor, etc.
[0128] The input device 302 may include a touchpad, a fingerprint acquisition sensor (for acquiring the fingerprint information and the direction information of the fingerprint of the user), a microphone, etc., and the output device 303 may include a display (such as an LCD), a speaker, etc.
[0129] The memory 304 may include a read-only memory and a random access memory, and provide instructions and data to the processor 301. A part 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.
[0130] In a specific implementation, the processor 301, input device 302, and output device 303 described in the embodiments of the present disclosure may execute the implementation manners described in the first and second embodiments of the page configuration generation method provided by the embodiments of the present disclosure, and may also execute the implementation manner of the electronic device described in the embodiments of the present disclosure, which will not be elaborated herein.
[0131] In another embodiment of the present disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, all or part of the processes in the above-described method embodiments are implemented. It may also be completed by instructing relevant hardware through the computer program. The computer program may be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-described method embodiments may be implemented. Among them, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc.
[0132] The computer-readable storage medium may be an internal storage unit of the electronic device in any of the foregoing embodiments, such as the 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, smart media card (SMC), secure digital (SD) card, flash card, etc. equipped on the electronic device. Further, the computer-readable storage medium may also include both the internal storage unit and the external storage device of the electronic device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store the data that has been output or will be output.
[0133] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of the examples have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this disclosure.
[0134] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described electronic devices and units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0135] In several embodiments provided in this 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 merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed couplings, direct couplings, or communication connections to each other can be indirect couplings or communication connections through some interfaces or units, or can be electrical, mechanical, or other forms of connection.
[0136] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of this disclosure.
[0137] In addition, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0138] The above is only the specific implementation manner of this disclosure, but the protection scope of this disclosure is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or substitutions within the technical scope disclosed by this disclosure, and these modifications or substitutions should all be covered by the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be subject to 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; 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; 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; Determine the page component according to the multiple first differences and the type of the page component, and determine the position of the page component in the preset page based on the data source and the display requirements of the user; Wherein, determining the page component according to the plurality of first difference values and the type of the page component includes: 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; and the first threshold is calculated according to a first formula, the first formula comprising: 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; 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 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.
5. 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 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; 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; Determine the page component according to the multiple first differences and the type of the page component, and determine the position of the page component in the preset page based on the data source and the display requirements of the user; Wherein, determining the page component according to the plurality of first difference values and the type of the page component includes: 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; and the first threshold is calculated according to a first formula, the first formula comprising: 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; 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.
6. 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 4 are implemented.
7. 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 4 are implemented.
Citation Information
Patent Citations
Service data processing method, apparatus and device, and storage medium
CN110853720A
Page construction method and device, equipment, and medium
CN114020245A