CN115756464A - Dynamic generation method and device of overview page - Google Patents

Dynamic generation method and device of overview page Download PDF

Info

Publication number
CN115756464A
CN115756464A CN202211489152.3A CN202211489152A CN115756464A CN 115756464 A CN115756464 A CN 115756464A CN 202211489152 A CN202211489152 A CN 202211489152A CN 115756464 A CN115756464 A CN 115756464A
Authority
CN
China
Prior art keywords
overview page
target
overview
user
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211489152.3A
Other languages
Chinese (zh)
Inventor
赵铭
兰保军
王检稳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Original Assignee
China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Southern Power Grid Digital Platform Technology Guangdong Co ltd filed Critical China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Priority to CN202211489152.3A priority Critical patent/CN115756464A/en
Publication of CN115756464A publication Critical patent/CN115756464A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a dynamic generation method and a device of an overview page, which comprises the following steps: when an overview page viewing request triggered by a certain user is detected, acquiring user information of the certain user; determining configuration information of a certain user about the overview page according to the overview page viewing request and the user information, wherein the configuration information at least comprises at least one data module to be viewed by the certain user; generating a target overview page corresponding to the overview page viewing request according to the configuration information; and transmitting the target overview page to a target terminal of a certain user. Therefore, the invention can generate the overview page to be checked by the user according to the configuration information of the user, thereby dynamically generating the overview page for the user, improving the diversity of the overview page, meeting the diversified and individualized data checking requirements of the user, and combining the data modules to be checked by the user into the overview page, which not only can reduce the data resources required to be loaded, but also can greatly reduce the workload of the design and maintenance of the overview page.

Description

Dynamic generation method and device of overview page
Technical Field
The invention relates to the technical field of overview pages, in particular to a dynamic generation method and device of an overview page.
Background
In the big data era, data is a very important resource. In some current platforms, in order to improve the visualization degree of platform data, an overview page is generally used to summarize various items of information of the platform so as to reflect data resources of various modules of the platform. The same set of views are adopted by the previous platform as overview pages provided for different user roles, so that the overview pages are single and cannot meet diversified and personalized data viewing requirements of different users. Therefore, different views are solidified by part of the platform aiming at different user roles to be used as overview pages, however, practice finds that even if different views are solidified for different user roles to be used as overview pages, the overview pages which can be viewed by a single user are still single, diversified and personalized data viewing requirements of the single user are difficult to meet, and the work load of designing and maintaining the overview pages is large due to the fact that different views are solidified for different user roles.
Therefore, how to improve the diversity of the overview page is important to meet the diversified and personalized data viewing requirements of users and how to reduce the workload of the design and maintenance of the overview page.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and an apparatus for dynamically generating an overview page, which can improve the diversity of the overview page, so as to meet the diversified and personalized data viewing requirements of users, and reduce the workload of designing and maintaining the overview page.
In order to solve the above technical problem, a first aspect of the present invention discloses a method for dynamically generating an overview page, where the method includes:
when an overview page viewing request triggered by a certain user is detected, acquiring user information of the certain user;
determining configuration information of the certain user about an overview page according to the overview page viewing request and the user information, wherein the configuration information at least comprises at least one data module to be viewed by the certain user;
generating a target overview page corresponding to the overview page viewing request according to the configuration information;
and transmitting the target overview page to a target terminal which is used by a certain user for viewing the target overview page.
As an optional implementation manner, in the first aspect of the present invention, the configuration information further includes preference information of the certain user on an overview page, and the preference information at least includes a layout view preset by the certain user on the overview page.
As an optional implementation manner, in the first aspect of the present invention, the generating a target overview page corresponding to the overview page view request according to the configuration information includes:
acquiring data encapsulation packets corresponding to one or more target data modules to be displayed in all the data modules based on a preset data import tool;
and loading the data encapsulation package corresponding to each target data module to the corresponding position of the target data module in the layout view to obtain a target overview page corresponding to the overview page viewing request.
As an optional implementation manner, in the first aspect of the present invention, the loading the data encapsulation package corresponding to each target data module to a corresponding position of the target data module in the layout view to obtain the target overview page corresponding to the overview page viewing request includes:
determining first adaptive information matched with all the target data modules according to the preference information, wherein the preference information also comprises reading preference information of a certain user;
according to the preference information, determining corresponding personalized chart configuration information of each target data module in the layout view as second adaptive information matched with the target data module;
and for each target data module, loading a data packaging packet corresponding to the target data module to a corresponding position of the target data module in the layout view according to the first adaptation information and second adaptation information matched with the target data module, and obtaining a target overview page corresponding to the overview page viewing request.
As an optional implementation manner, in the first aspect of the present invention, before generating the target overview page corresponding to the overview page viewing request according to the configuration information, the method further includes:
determining a target terminal used by a certain user for viewing an overview page and window configuration information matched with the overview page in the target terminal:
updating the layout view according to the window configuration information so as to enable the layout view to be matched with the target terminal, and triggering and executing the operation of generating the target overview page corresponding to the overview page viewing request according to the configuration information;
and before the preset data import tool is used for acquiring the data encapsulation packages corresponding to one or more target data modules to be displayed in all the data modules, the method further comprises the following steps:
and determining at least one target data module to be displayed from all the data modules according to the window configuration information and the corresponding position of each data module in the layout view.
As an optional implementation manner, in the first aspect of the present invention, the updating the layout view according to the window configuration information to adapt the layout view to the target terminal includes:
determining the adaptive attribute information of each data module in the layout view according to the window configuration information, wherein the adaptive attribute information of each data module in the layout view comprises one or more combinations of the adaptive font type of the data module, the adaptive font size of the data module, the adaptive component position of the data module, and the adaptive spacing distance between the data module and other data modules;
and updating the layout view according to the adaptive attribute information of each data module in the layout view so as to enable the layout view to be adaptive to the target terminal.
As an optional implementation manner, in the first aspect of the present invention, after the transmitting the target overview page to the target terminal that the certain user uses to view the target overview page, the method further includes:
when the editing operation triggered by the user on the corresponding editing page on the target overview page is detected, updating the target overview page according to the editing operation, and re-executing the operation of transmitting the target overview page to a target terminal of the user for viewing the target overview page; and/or the presence of a gas in the atmosphere,
when detecting an overview page switching request triggered by a certain user on the target terminal, determining the overview page switching request as a new overview page viewing request, and re-executing the operation of determining configuration information of the certain user about an overview page according to the overview page viewing request and the user information, the operation of generating a target overview page corresponding to the overview page viewing request according to the configuration information, and the operation of transmitting the target overview page to the target terminal used for viewing the target overview page by the certain user.
As an alternative implementation, in the first aspect of the present invention, the method further includes:
when module layout operation triggered by a certain user on an overview page design page is detected, updating the overview page design in real time according to the module layout operation so that the certain user can view a modification result of the module layout operation on the overview page design, wherein the module layout operation comprises module add-delete operation for adding or deleting displayed data modules to the overview page design and/or attribute modification operation for modifying attribute information of data modules displayed by the overview page design;
when detecting a page confirmation operation triggered by the user on the overview design page, determining new configuration information of the user about the overview page according to a latest modification result of the overview design page, wherein the new configuration information is used for being stored in a preset database and being called when the user requests to view the overview page corresponding to the new configuration information.
The second aspect of the present invention discloses an apparatus for dynamically generating an overview page, the apparatus comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring user information of a certain user when an overview page viewing request triggered by the certain user is detected;
a determining module, configured to determine configuration information about an overview page of the certain user according to the overview page viewing request and the user information, where the configuration information at least includes at least one data module to be viewed by the certain user;
the generating module is used for generating a target overview page corresponding to the overview page viewing request according to the configuration information;
and the transmission module is used for transmitting the target overview page to a target terminal which is used by a certain user for viewing the target overview page.
As an optional implementation manner, in the second aspect of the present invention, the configuration information further includes preference information of the certain user on the overview page, and the preference information at least includes a layout view preset by the certain user on the overview page.
As an optional implementation manner, in the second aspect of the present invention, a specific manner in which the generating module generates the target overview page corresponding to the overview page viewing request according to the configuration information includes:
acquiring data encapsulation packages corresponding to one or more target data modules to be displayed in all the data modules based on a preset data import tool;
and loading the data encapsulation package corresponding to each target data module to the corresponding position of the target data module in the layout view to obtain a target overview page corresponding to the overview page viewing request.
As an optional implementation manner, in the second aspect of the present invention, a specific manner in which the generating module loads the data encapsulation package corresponding to each target data module to a corresponding position of the target data module in the layout view to obtain the target overview page corresponding to the overview page viewing request includes:
determining first adaptive information matched with all the target data modules according to the preference information, wherein the preference information also comprises reading preference information of a certain user;
according to the preference information, determining corresponding personalized chart configuration information of each target data module in the layout view as second adaptive information matched with the target data module;
and for each target data module, loading a data packaging packet corresponding to the target data module to a corresponding position of the target data module in the layout view according to the first adaptation information and second adaptation information matched with the target data module, and obtaining a target overview page corresponding to the overview page viewing request.
As an optional implementation manner, in the second aspect of the present invention, the determining module is further configured to, before the generating module generates the target overview page corresponding to the overview page viewing request according to the configuration information, determine a target terminal of the certain user for viewing the overview page and window configuration information of the overview page in the target terminal, where the window configuration information is matched with the target terminal:
the device further comprises:
a first updating module, configured to update the layout view according to the window configuration information, so that the layout view is adapted to the target terminal, and trigger the generating module to execute the operation of generating a target overview page corresponding to the overview page viewing request according to the configuration information;
and the generating module is further configured to determine at least one target data module to be displayed from all the data modules according to the window configuration information and the corresponding position of each data module in the layout view before acquiring the data encapsulation package corresponding to one or more target data modules to be displayed from all the data modules based on a preset data import tool.
As an optional implementation manner, in the second aspect of the present invention, a specific manner in which the first updating module updates the layout view according to the window configuration information so that the layout view is adapted to the target terminal includes:
determining the adaptation attribute information of each data module in the layout view according to the window configuration information, wherein the adaptation attribute information of each data module in the layout view comprises one or more combinations of the adaptation font type of the data module, the adaptation font size of the data module, the adaptation component position of the data module, and the adaptation spacing distance between the data module and other data modules;
and updating the layout view according to the adaptive attribute information of each data module in the layout view so as to enable the layout view to be adaptive to the target terminal.
As an alternative embodiment, in the second aspect of the present invention, the apparatus further comprises:
a second updating module, configured to update the target overview page according to an editing operation triggered by the user on a corresponding editing page on the target overview page when the editing operation triggered by the user on the corresponding editing page on the target overview page is detected after the transmission module transmits the target overview page to the target terminal used by the user for viewing the target overview page, and trigger the transmission module to re-execute the operation of transmitting the target overview page to the target terminal used by the user for viewing the target overview page; and/or when detecting an overview page switching request triggered by the user on the target terminal, determining the overview page switching request as a new overview page viewing request, triggering the determining module to re-execute the operation of determining the configuration information of the user about an overview page according to the overview page viewing request and the user information, executing the operation of generating a target overview page corresponding to the overview page viewing request according to the configuration information by the generating module, and executing the operation of transmitting the target overview page to the target terminal used for viewing the target overview page by the user by the transmitting module.
As an alternative embodiment, in the second aspect of the present invention, the apparatus further comprises:
a third updating module, configured to, when a module layout operation triggered by the certain user on an overview page design page is detected, update the overview page design page in real time according to the module layout operation, so that the certain user views a modification result of the module layout operation on the overview page design page, where the module layout operation includes a module add/delete operation for adding or deleting a displayed data module to the overview page design page and/or an attribute modification operation for modifying attribute information of a data module displayed on the overview page design page;
the determining module is further configured to determine, when a page confirmation operation triggered by the certain user on the overview design page is detected, new configuration information of the certain user about the overview page according to a latest modification result of the overview design page, where the new configuration information is used to be stored in a preset database and is called when the certain user requests to view the overview page corresponding to the new configuration information.
The third aspect of the present invention discloses another dynamic generation apparatus for an overview page, the apparatus comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the method for dynamically generating the overview page disclosed by the first aspect of the invention.
A fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions, and when the computer instructions are called, the computer instructions are used to execute the dynamic generation method for the overview page disclosed in the first aspect of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when an overview page viewing request triggered by a certain user is detected, user information of the certain user is acquired; determining configuration information of a certain user about the overview page according to the overview page viewing request and the user information, wherein the configuration information at least comprises at least one data module to be viewed by the certain user; generating a target overview page corresponding to the overview page viewing request according to the configuration information; and transmitting the target overview page to a target terminal which is used for viewing the target overview page by a certain user. Therefore, the implementation of the invention can be implemented according to the configuration information of the user about the overview page, such as: the data modules to be checked by the user generate the overview page to be checked, so that the overview page can be dynamically generated for each user, the diversity of the overview page is improved, the diversified and personalized data checking requirements of each user are met, the overview page formed by combining the data modules to be checked by the user can reduce the occurrence of the situation of loading all data resources at one time, the loading speed of the overview page is improved, the performance of the overview page is optimized, and the workload of designing and maintaining the overview page can be greatly reduced by combining the data modules into the overview page.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for dynamically generating an overview page according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for dynamically generating an overview page according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of an apparatus for dynamically generating an overview page according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another apparatus for dynamically generating an overview page, disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another apparatus for dynamically generating an overview page according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The invention discloses a dynamic generation method and a device of an overview page, which can be used for dynamically generating the overview page according to configuration information of a user about the overview page, such as: the data modules to be checked by the user generate the overview page to be checked, so that the overview page can be dynamically generated for each user, the diversity of the overview page is improved, the diversified and personalized data checking requirements of each user are met, the overview page formed by combining the data modules to be checked by the user can reduce the occurrence of the situation of loading all data resources at one time, the loading speed of the overview page is improved, the performance of the overview page is optimized, and the workload of designing and maintaining the overview page can be greatly reduced by combining the data modules into the overview page. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for dynamically generating an overview page according to an embodiment of the present invention. The method for dynamically generating an overview page described in fig. 1 may be applied to implement dynamic generation of an overview page of any platform, including but not limited to a technology platform based on a rapid development purpose (e.g., eclipse, jbuilder, VC + +, and other development tools), a service platform based on service logic multiplexing (e.g., an operating system of a computer), an application platform based on system self-maintenance and self-expansion (e.g., a microservice platform), and the like. As shown in fig. 1, the dynamic generation method of the overview page may include the following operations:
101. and when an overview page viewing request triggered by a certain user is detected, acquiring user information of the certain user.
In the embodiment of the present invention, optionally, the overview page viewing request may include an overview page identifier corresponding to an overview page requested by the user, optionally, the overview page identifier may include a unique identifier such as a name and a number corresponding to the overview page, and the user information may include a user identifier, such as a user ID.
102. And determining the configuration information of a certain user about the overview page according to the overview page viewing request and the user information.
Optionally, the configuration information at least includes at least one data module to be viewed by a certain user, and further optionally, the configuration information may further include preference information of a certain user about the overview page, and the preference information at least includes a layout view preset by a certain user about the overview page. Further optionally, the user may trigger various overview page viewing requests, each overview page viewing request corresponds to one type of configuration information, each type of configuration information corresponds to one overview page, and each overview page corresponds to one layout view.
In the embodiment of the present invention, optionally, an association relationship may be pre-established between user information of a certain user and configuration information of the user about the overview page, and the user information, the configuration information, and the association relationship between the user information and the configuration information may be pre-stored in a preset database. Therefore, the configuration information, such as the data module and other information, is solidified in the database, so that later maintenance and modification can be facilitated, and the workload of modifying front-end codes is reduced.
103. And generating a target overview page corresponding to the overview page viewing request according to the configuration information.
As an optional implementation manner, generating a target overview page corresponding to the overview page viewing request according to the configuration information may include:
acquiring data encapsulation packages corresponding to one or more target data modules to be displayed in all the data modules based on a preset data import tool;
and loading the data encapsulation package corresponding to each target data module to the corresponding position of the target data module in the layout view to obtain a target overview page corresponding to the overview page viewing request.
In the embodiment of the invention, preferably, the preset data importing tool can be webpack, and the webpack can analyze the require.context in the code when importing the data module, so that the data module is subjected to secondary packaging on the basis, the data module does not need to be imported manually when newly adding the data module, and the aim of automatically importing the data module is fulfilled.
Therefore, by implementing the optional implementation mode, the data encapsulation package corresponding to the data module can be loaded into the layout view preset by the user to generate the overview page, the accuracy and the reliability of the generation of the overview page can be improved, and the matching degree of the generated overview page with the user preference is improved.
In this optional implementation manner, optionally, loading the data encapsulation package corresponding to each target data module to a corresponding position of the target data module in the layout view to obtain a target overview page corresponding to the overview page viewing request, which may include:
determining first adaptive information matched with all target data modules according to the preference information, wherein the preference information can also comprise reading preference information of a certain user;
according to the preference information, determining corresponding personalized chart configuration information of each target data module in the layout view as second adaptive information matched with the target data module;
and for each target data module, loading the data encapsulation package corresponding to the target data module to the corresponding position of the target data module in the layout view according to the first adaptation information and the second adaptation information matched with the target data module, and obtaining a target overview page corresponding to the overview page viewing request.
In this optional embodiment, optionally, the second matching information matched by each target data module may be personalized chart configuration information previously screened from a data visualization chart library, for example: selecting a personalized chart or customizing the personalized chart from the JavaScript-based EChats, and determining the configuration information of the personalized chart as second adapting information matched with the target data module. This can provide a more personalized overview page for the user.
In this embodiment of the present invention, optionally, the reading preference information may include preference information of a certain user regarding one or more of a font, a font size, a chart color, a background color, a chart size, a reading direction (e.g., from right to left), and the like.
Therefore, the optional implementation mode can load the data encapsulation package corresponding to the data module to the layout view according to the reading preference information of the user and the configuration information of each target data module on the personalized chart, so that the matching degree of the generated overview page to the reading preference of the user is improved, the personalized degree of the chart in the overview page can be improved, and the experience of the user in viewing the overview page is further improved.
104. And transmitting the target overview page to a target terminal which is used for viewing the target overview page by a certain user.
In this embodiment of the present invention, optionally, the target terminal may include one or more of a terminal for the user to trigger the overview page viewing request, a terminal for the user to view the target overview page, and a terminal commonly used by the user, which are preset by the user.
In the embodiment of the present invention, optionally, related operations such as design and generation of the overview page may be completed by a preset overview page generation tool, and preferably, the overview page generation tool may be a vue-grid-layout plug-in.
Therefore, the embodiment of the invention can be implemented according to the configuration information of the user about the overview page, such as: the data modules to be checked by the user generate the overview page to be checked, so that the overview page can be dynamically generated for each user, the diversity of the overview page is improved, the diversified and personalized data checking requirements of each user are met, the overview page formed by combining the data modules to be checked by the user can reduce the occurrence of the situation of loading all data resources at one time, the loading speed of the overview page is improved, the performance of the overview page is optimized, and the workload of designing and maintaining the overview page can be greatly reduced by combining the data modules into the overview page.
In an optional embodiment, after transmitting the target overview page to a target terminal for a user to view the target overview page, the method may further comprise:
when the editing operation triggered by a certain user on the corresponding editing page on the target overview page is detected, updating the target overview page according to the editing operation, and re-executing the operation of transmitting the target overview page to a target terminal of the certain user for viewing the target overview page; and/or the presence of a gas in the gas,
when detecting an overview page switching request triggered by a certain user on a target terminal, determining the overview page switching request as a new overview page viewing request, and re-executing the operation of determining the configuration information of the certain user about the overview page according to the overview page viewing request and the user information, the operation of generating the target overview page corresponding to the overview page viewing request according to the configuration information, and the operation of transmitting the target overview page to the target terminal used for viewing the target overview page by the certain user.
Therefore, the optional embodiment can meet the requirements of modifying the overview page and switching other overview pages after the user views the overview page, enriches the services which can be provided by the overview page, improves the convenience of modifying the overview page, provides various overview pages for the user, and further meets the viewing requirements of diversified overview pages of the user.
In another optional embodiment, the method may further comprise:
when detecting module layout operation triggered by a certain user on an overview page design page, updating the overview page design in real time according to the module layout operation so that the certain user can view the modification result of the module layout operation on the overview page design, wherein the module layout operation comprises module adding and deleting operation for adding or deleting displayed data modules for the overview page design and/or attribute modification operation for modifying attribute information of the data modules displayed for the overview page design;
when detecting a page confirmation operation triggered by a certain user on an overview design page, determining new configuration information of the user about the overview page according to a latest modification result of the overview design page, wherein the new configuration information is used for being stored in a preset database and being called when the user requests to view the overview page corresponding to the new configuration information.
In this embodiment of the present invention, optionally, the module add/delete operation may include one or more of a hook/cancel hook operation of a user on a data module menu, a drag operation of the user on an overview design page triggered for a data module, and a related operation (such as delete, copy, paste) of the user on an operation menu of any data module on the overview design page triggered for the data module.
Optionally, a user may design multiple layout views in the manner of the embodiment of the present invention.
In this alternative embodiment, user-triggered module layout operations, page validation operations, and the like may be performed by the overview page generation tool described above (e.g., vue-grid-layout plug-in).
Therefore, the optional embodiment can be implemented to design the overview page according to the module adding and deleting operation and the attribute modifying operation triggered by the user, so that the user can screen the data module and modify the attribute of the data module according to personal requirements, and the diversified and personalized overview page viewing requirements of the user are further met.
Example two
Referring to fig. 2, fig. 2 is a flowchart illustrating another method for dynamically generating an overview page according to an embodiment of the present invention. The method for dynamically generating an overview page described in fig. 2 may be applied to implement dynamic generation of an overview page of any platform, including but not limited to a technology platform based on a rapid development purpose (e.g., eclipse, jbuilder, VC + +, and other development tools), a service platform based on service logic multiplexing (e.g., an operating system of a computer), an application platform based on system self-maintenance and self-expansion (e.g., a microservice platform), and the like, which is not limited in the embodiment of the present invention. As shown in fig. 2, the dynamic generation method of the overview page may include the following operations:
201. and when an overview page viewing request triggered by a certain user is detected, acquiring user information of the certain user.
202. And determining the configuration information of a certain user about the overview page according to the overview page viewing request and the user information.
203. And determining a target terminal used for viewing the overview page by a certain user and window configuration information matched with the overview page in the target terminal.
In this embodiment of the present invention, optionally, the window matching information may include allocation rate information and window size
204. And updating a layout view preset by a certain user about the overview page in the configuration information according to the window configuration information so as to enable the layout view to be matched with the target terminal.
As an optional implementation manner, updating the layout view according to the window configuration information to adapt the layout view to the target terminal may include:
according to the window configuration information, determining the adaptive attribute information of each data module in the layout view;
updating the layout view according to the adaptive attribute information of each data module in the layout view so as to enable the layout view to be adaptive to the target terminal;
optionally, the adaptation attribute information of each data module in the layout view may include a combination of one or more of an adaptation font type of the data module, an adaptation font size of the data module, an adaptation component position of the data module, and an adaptation interval distance between the data module and other data modules.
Therefore, the optional implementation can determine the adaptation attribute information of each data module in the layout view according to the window configuration information, such as the font type, font size, component size, and the like of the data module, so that the comprehensiveness and flexibility of updating the layout view according to the window configuration information can be improved.
205. And generating a target overview page corresponding to the overview page viewing request according to the configuration information.
206. And transmitting the target overview page to a target terminal which is used for viewing the target overview page by a certain user.
In the embodiment of the present invention, for other descriptions of step 201, step 202, step 205, and step 206, please refer to the detailed description of step 101 to step 104 in the first embodiment, and details of the embodiment of the present invention are not repeated.
Therefore, the embodiment of the invention can be implemented according to the configuration information of the user about the overview page, such as: the data modules to be checked by the user are used for generating the overview page to be checked, so that the overview page can be dynamically generated for each user, the diversity of the overview page is improved, the diversified and personalized data checking requirements of each user are met, the situation of loading all data resources at one time can be reduced by combining the data modules to be checked by the user into the overview page, the loading speed of the overview page is improved, the performance of the overview page is optimized, the workload of designing and maintaining the overview page can be greatly reduced by combining the data modules into the overview page, in addition, the matching degree of the overview page and the window configuration information of the target terminal can be improved by updating the layout view of the overview page according to the window configuration information of the user terminal, and the situation (such as undersize fonts) caused by the fact that the display screen of the user terminal is not matched with the overview page is reduced.
In an optional embodiment, before acquiring, based on a preset data import tool, a data encapsulation package corresponding to one or more target data modules to be displayed in all data modules, the method may further include:
and determining at least one target data module to be displayed from all the data modules according to the window configuration information and the corresponding position of each data module in the layout view.
Therefore, the optional embodiment can be implemented to determine the data modules to be displayed according to the window configuration information, reduce the situation that the number of the data modules is large and the components in the overview page are too small or too crowded, and load the data modules according to the installation window configuration information, further reduce the situation that all the data modules are loaded at one time and maintained, so that the loading speed of the overview page is increased, and the generation performance of the overview page is optimized.
In another optional embodiment, the method may further comprise:
when detecting that a certain user carries out attribute modification operation on an overview page design page aiming at an existing data module on an existing overview page, judging whether a modification type of the existing data module is an individualized modification type or not, and when the judgment result is negative, determining all the overview pages using the existing data module to serve as the overview pages to be modified; modifying the configuration information of a certain user about each overview page to be modified according to attribute modification operation triggered by the existing data module; and/or the presence of a gas in the gas,
when detecting that a certain user modifies the operation on the data module design page aiming at the attribute triggered by the existing data module, determining all overview pages using the existing data module as the overview pages to be modified; and modifying the configuration information of a certain user about each overview page to be modified according to the attribute modification operation triggered by the existing data module.
Therefore, the implementation of the optional embodiment can also synchronize the modification to all overview pages which refer to the existing data module when the modification is carried out on the data module, so that the convenience and efficiency of the maintenance and modification of the overview pages are further improved.
In this optional embodiment, optionally, the determining whether the modification type related to the existing data module is the personalized design type may include:
judging whether the design type of the existing overview page is an individualized design type; when the design type of the existing overview page is judged to be not the personalized design type, determining that the modification type of the existing data module is not the personalized modification type;
further optionally, when it is determined that the design type of the existing overview page is not the personalized design type, before determining that the modification type with respect to the existing data module is not the personalized modification type, the method may further include: judging whether the existing data module is in a synchronous state or not; and when the existing data module is judged to be in the synchronous state, determining that the modification type of the existing data module is not the personalized modification type.
Therefore, the implementation of the optional embodiment can also synchronize the current modification aiming at the existing data module to all the overview pages referencing the existing data module when the design type of the overview page is not the personalized design type or the existing data module is frequently used in the synchronization state, thereby further improving the flexibility of modification and maintenance of the existing data module.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of another dynamic generation apparatus for an overview page according to an embodiment of the present disclosure. The dynamic generation apparatus for the overview page described in fig. 3 may be applied to implement dynamic generation of the overview page of any platform, including but not limited to a technology platform based on a rapid development purpose (e.g., eclipse, jbuilder, VC + +, and other development tools), a service platform based on service logic multiplexing (e.g., an operating system of a computer), an application platform based on system self-maintenance and self-expansion (e.g., a microservice platform), and the like, which is not limited in the embodiment of the present invention. As shown in fig. 3, the dynamic generation means of the overview page may include:
an obtaining module 301, configured to obtain user information of a certain user when an overview page viewing request triggered by the certain user is detected;
a determining module 302, configured to determine configuration information about an overview page of a user according to an overview page viewing request and user information, where the configuration information at least includes at least one data module to be viewed by the user;
a generating module 303, configured to generate a target overview page corresponding to the overview page viewing request according to the configuration information;
and the transmission module 304 is used for transmitting the target overview page to a target terminal which is used by a certain user for viewing the target overview page.
It can be seen that the implementation of the apparatus described in fig. 3 enables the user to configure information about the overview page, such as: the data modules to be checked by the user generate the overview page to be checked, so that the overview page can be dynamically generated for each user, the diversity of the overview page is improved, the diversified and personalized data checking requirements of each user are met, the overview page formed by combining the data modules to be checked by the user can reduce the occurrence of the situation of loading all data resources at one time, the loading speed of the overview page is improved, the performance of the overview page is optimized, and the workload of designing and maintaining the overview page can be greatly reduced by combining the data modules into the overview page.
In an alternative embodiment, as shown in fig. 3, the configuration information may further include preference information of a certain user about the overview page, and the preference information includes at least a layout view preset by the certain user about the overview page;
the specific manner of generating the target overview page corresponding to the overview page viewing request by the generating module 303 according to the configuration information may include:
acquiring data encapsulation packages corresponding to one or more target data modules to be displayed in all the data modules based on a preset data import tool;
and loading the data encapsulation package corresponding to each target data module to the corresponding position of the target data module in the layout view to obtain a target overview page corresponding to the overview page viewing request.
Therefore, by implementing the device described in fig. 3, the data encapsulation package corresponding to the data module can be loaded into the layout view preset by the user to generate the overview page, so that the accuracy and reliability of generating the overview page can be improved, and the matching degree of the generated overview page with the user preference can be improved.
In another optional embodiment, as shown in fig. 3, the specific manner in which the generating module 303 loads the data encapsulation package corresponding to each target data module to the corresponding position of the target data module in the layout view to obtain the target overview page corresponding to the overview page viewing request may include:
determining first adaptive information matched with all target data modules according to the preference information, wherein the preference information can also comprise reading preference information of a certain user;
according to the preference information, determining corresponding personalized chart configuration information of each target data module in the layout view as second adaptive information matched with the target data module;
and for each target data module, loading the data encapsulation package corresponding to the target data module to the corresponding position of the target data module in the layout view according to the first adaptation information and the second adaptation information matched with the target data module, and obtaining a target overview page corresponding to the overview page viewing request.
Therefore, the device described in fig. 3 can load the data encapsulation package corresponding to the data module to the layout view according to the reading preference information of the user and the configuration information of each target data module on the personalized chart, so that the matching degree of the generated overview page to the reading preference of the user can be improved, the personalized degree of the chart in the overview page can be improved, and the experience of the user in viewing the overview page is further improved.
In yet another alternative embodiment, as shown in fig. 4, the determining module 302 is further configured to determine, before the generating module 303 generates the target overview page corresponding to the overview page viewing request according to the configuration information, a target terminal that a user uses to view the overview page and window configuration information that the overview page matches in the target terminal:
the apparatus may further include:
a first updating module 305, configured to update the layout view according to the window configuration information, so that the layout view is adapted to the target terminal, and trigger the generating module 303 to execute the operation of generating the target overview page corresponding to the overview page viewing request according to the configuration information;
and the generating module 303 is further configured to determine at least one target data module to be displayed from all the data modules according to the window configuration information and the corresponding position of each data module in the layout view before acquiring the data encapsulation package corresponding to the one or more target data modules to be displayed from all the data modules based on the preset data import tool.
It can be seen that, by implementing the apparatus described in fig. 4, the layout view of the overview page can be updated according to the window configuration information of the user terminal, so as to improve the matching degree between the overview page and the window configuration information of the target terminal, thereby reducing the situation that the viewing experience of the user is not good (for example, the font is too small) due to the fact that the display screen of the user terminal is not matched with the overview page, and also determining the data module to be displayed according to the window configuration information, so as to reduce the situation that the number of the data modules is too small or too crowded, and also installing the window configuration information loading data module, further reducing the situation that all the data modules are loaded at one time and maintained, thereby improving the loading speed of the overview page, and optimizing the generation performance of the overview page.
In yet another alternative embodiment, as shown in fig. 4, the specific manner in which the first updating module 305 updates the layout view according to the window configuration information to adapt the layout view to the target terminal may include:
determining the adaptive attribute information of each data module in the layout view according to the window configuration information, wherein the adaptive attribute information of each data module in the layout view comprises one or more of the adaptive font type of the data module, the adaptive font size of the data module, the adaptive component position of the data module, and the adaptive spacing distance between the data module and other data modules;
and updating the layout view according to the adaptive attribute information of each data module in the layout view so as to adapt the layout view to the target terminal.
It can be seen that the apparatus described in implementing fig. 4 can also determine the adaptation attribute information of each data module in the layout view according to the window configuration information, such as the font type, font size, component size, and the like of the data module, so that the comprehensiveness and flexibility of updating the layout view according to the window configuration information can be improved.
In yet another alternative embodiment, as shown in fig. 4, the apparatus may further include:
a second updating module 306, configured to update the target overview page according to the editing operation when the editing operation triggered by a certain user on the corresponding editing page on the target overview page is detected after the transmission module 304 transmits the target overview page to a certain target terminal used by the user for viewing the target overview page, and trigger the transmission module 304 to re-execute the operation of transmitting the target overview page to the certain target terminal used by the user for viewing the target overview page; and/or when detecting an overview page switching request triggered by a certain user on a target terminal, determining the overview page switching request as a new overview page viewing request, triggering the determining module 302 to re-execute the above-mentioned operation of determining the configuration information of the certain user about the overview page according to the overview page viewing request and the user information, executing the above-mentioned operation of generating a target overview page corresponding to the overview page viewing request according to the configuration information by the generating module 303, and executing the above-mentioned operation of transmitting the target overview page to the target terminal used by the certain user to view the target overview page by the transmitting module 304.
Therefore, the device described by implementing fig. 4 can meet the requirements of modifying the overview page and switching other overview pages after the user views the overview page, enrich the services provided by the overview page, improve the convenience of modifying the overview page, provide various overview pages for the user, and further meet the viewing requirements of diversified overview pages of the user.
In yet another alternative embodiment, as shown in fig. 4, the apparatus may further include:
a third updating module 307, configured to, when a module layout operation triggered by a certain user on the overview page design page is detected, update the overview page design in real time according to the module layout operation, so that the certain user views a modification result of the module layout operation on the overview page design, where the module layout operation includes a module add/delete operation for adding or deleting a displayed data module to the overview page design and/or an attribute modification operation for modifying attribute information of a data module displayed on the overview page design;
the determining module 302 is further configured to, when detecting a page confirmation operation triggered by a certain user on the overview design page, determine new configuration information of the certain user about the overview page according to a latest modification result of the overview design page, where the new configuration information is used to be stored in a preset database and is invoked when the certain user requests to view the overview page corresponding to the new configuration information.
Therefore, the device described in fig. 4 can also be implemented to design the overview page according to the module adding and deleting operation and the attribute modifying operation triggered by the user, so that the user can screen the data module and modify the attribute of the data module according to the personal requirement, and the diversified and personalized overview page viewing requirement of the user is further met.
Example four
Referring to fig. 5, fig. 5 is a schematic structural diagram of another dynamic overview page generation apparatus according to an embodiment of the present invention. As shown in fig. 5, the dynamic generation means of the overview page may include:
a memory 401 storing executable program code;
a processor 402 coupled with the memory 401;
the processor 402 calls the executable program code stored in the memory 401 to execute the steps in the method for dynamically generating an overview page described in the first embodiment of the present invention or the second embodiment of the present invention.
EXAMPLE five
The embodiment of the invention discloses a computer storage medium, which stores computer instructions, and the computer instructions are used for executing steps in the dynamic generation method of the overview page described in the first embodiment or the second embodiment of the invention when being called.
EXAMPLE six
An embodiment of the invention discloses a computer program product comprising a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps of the method for dynamically generating an overview page as described in the first or second embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above technical solutions may essentially or in part contribute to the prior art, be embodied in the form of a software product, which may be stored in a computer-readable storage medium, including a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable Programmable Read-Only Memory (EEPROM), an optical Disc-Read (CD-ROM) or other storage medium capable of storing data, a magnetic tape, or any other computer-readable medium capable of storing data.
Finally, it should be noted that: the method and apparatus for dynamically generating an overview page disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used for illustrating the technical solutions of the present invention, rather than for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for dynamically generating an overview page, the method comprising:
when an overview page viewing request triggered by a certain user is detected, acquiring user information of the certain user;
determining configuration information of the certain user about the overview page according to the overview page viewing request and the user information, wherein the configuration information at least comprises at least one data module to be viewed by the certain user;
generating a target overview page corresponding to the overview page viewing request according to the configuration information;
and transmitting the target overview page to a target terminal which is used by a certain user for viewing the target overview page.
2. The dynamic generation method of overview page as claimed in claim 1, wherein the configuration information further comprises preference information of the certain user about the overview page, the preference information at least comprising a layout view preset by the certain user about the overview page;
generating a target overview page corresponding to the overview page viewing request according to the configuration information, including:
acquiring data encapsulation packages corresponding to one or more target data modules to be displayed in all the data modules based on a preset data import tool;
and loading the data encapsulation package corresponding to each target data module to the corresponding position of the target data module in the layout view to obtain a target overview page corresponding to the overview page viewing request.
3. The method for dynamically generating an overview page according to claim 2, wherein the loading the data encapsulation package corresponding to each target data module to a corresponding position of the target data module in the layout view to obtain the target overview page corresponding to the overview page viewing request includes:
determining first adaptive information matched with all the target data modules according to the preference information, wherein the preference information also comprises reading preference information of a certain user;
according to the preference information, determining corresponding personalized chart configuration information of each target data module in the layout view as second adaptive information matched with the target data module;
and for each target data module, loading a data packaging packet corresponding to the target data module to a corresponding position of the target data module in the layout view according to the first adaptation information and second adaptation information matched with the target data module, and obtaining a target overview page corresponding to the overview page viewing request.
4. The method for dynamically generating an overview page as claimed in claim 2, wherein before the generating a target overview page corresponding to the overview page viewing request according to the configuration information, the method further comprises:
determining a target terminal used by a certain user for viewing an overview page and window configuration information matched with the overview page in the target terminal:
updating the layout view according to the window configuration information so as to enable the layout view to be matched with the target terminal, and triggering and executing the operation of generating the target overview page corresponding to the overview page viewing request according to the configuration information;
and before the preset data import tool is used for acquiring the data encapsulation packages corresponding to one or more target data modules to be displayed in all the data modules, the method further comprises the following steps:
and determining at least one target data module to be displayed from all the data modules according to the window configuration information and the corresponding position of each data module in the layout view.
5. The dynamic generation method of the overview page as claimed in claim 4, wherein the updating the layout view according to the window configuration information to adapt the layout view to the target terminal includes:
determining the adaptation attribute information of each data module in the layout view according to the window configuration information, wherein the adaptation attribute information of each data module in the layout view comprises one or more combinations of the adaptation font type of the data module, the adaptation font size of the data module, the adaptation component position of the data module, and the adaptation spacing distance between the data module and other data modules;
and updating the layout view according to the adaptive attribute information of each data module in the layout view so as to enable the layout view to be adaptive to the target terminal.
6. Method for dynamic generation of an overview page as claimed in any of the claims 1-5, wherein after said transmission of the target overview page to a target terminal, which the user uses for viewing the target overview page, the method further comprises:
when the editing operation triggered by the user on the corresponding editing page on the target overview page is detected, updating the target overview page according to the editing operation, and re-executing the operation of transmitting the target overview page to a target terminal of the user for viewing the target overview page; and/or the presence of a gas in the gas,
when detecting an overview page switching request triggered by a certain user on the target terminal, determining the overview page switching request as a new overview page viewing request, and re-executing the operation of determining configuration information of the certain user about an overview page according to the overview page viewing request and the user information, the operation of generating a target overview page corresponding to the overview page viewing request according to the configuration information, and the operation of transmitting the target overview page to the target terminal used for viewing the target overview page by the certain user.
7. A method for dynamic generation of an overview page according to any of the claims 1-5 and further comprising:
when module layout operation triggered by a certain user on an overview page design page is detected, updating the overview page design in real time according to the module layout operation so that the certain user can view a modification result of the module layout operation on the overview page design, wherein the module layout operation comprises module add-delete operation for adding or deleting displayed data modules to the overview page design and/or attribute modification operation for modifying attribute information of data modules displayed by the overview page design;
when detecting a page confirmation operation triggered by the user on the overview design page, determining new configuration information of the user about the overview page according to a latest modification result of the overview design page, wherein the new configuration information is used for being stored in a preset database and being called when the user requests to view the overview page corresponding to the new configuration information.
8. An apparatus for dynamic generation of an overview page, the apparatus comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring user information of a certain user when an overview page viewing request triggered by the certain user is detected;
a determining module, configured to determine configuration information about an overview page of the certain user according to the overview page viewing request and the user information, where the configuration information at least includes at least one data module to be viewed by the certain user;
the generating module is used for generating a target overview page corresponding to the overview page viewing request according to the configuration information;
and the transmission module is used for transmitting the target overview page to a target terminal which is used for viewing the target overview page by a certain user.
9. An apparatus for dynamic generation of an overview page, the apparatus comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform a method of dynamically generating an overview page as claimed in any one of claims 1 to 7.
10. A computer storage medium storing computer instructions for performing a method of dynamically generating an overview page as claimed in any one of claims 1 to 7 when invoked.
CN202211489152.3A 2022-11-25 2022-11-25 Dynamic generation method and device of overview page Pending CN115756464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211489152.3A CN115756464A (en) 2022-11-25 2022-11-25 Dynamic generation method and device of overview page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211489152.3A CN115756464A (en) 2022-11-25 2022-11-25 Dynamic generation method and device of overview page

Publications (1)

Publication Number Publication Date
CN115756464A true CN115756464A (en) 2023-03-07

Family

ID=85337846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211489152.3A Pending CN115756464A (en) 2022-11-25 2022-11-25 Dynamic generation method and device of overview page

Country Status (1)

Country Link
CN (1) CN115756464A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117216300A (en) * 2023-10-19 2023-12-12 深圳般若海科技有限公司 Picture uploading method and system based on H5 generation by one key

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117216300A (en) * 2023-10-19 2023-12-12 深圳般若海科技有限公司 Picture uploading method and system based on H5 generation by one key
CN117216300B (en) * 2023-10-19 2024-05-10 深圳般若海科技有限公司 Picture uploading method and system based on H5 generation by one key

Similar Documents

Publication Publication Date Title
EP3011442B1 (en) Method and apparatus for customized software development kit (sdk) generation
EP3011444B1 (en) Method and apparatus for code virtualization and remote process call generation
CN114064024B (en) Method, apparatus, device, storage medium and program product for developing micro-application
CN109067890A (en) A kind of CDN node edge calculations system based on docker container
CN109189758B (en) Operation and maintenance flow design method, device and equipment, operation method, device and host
CN111343181B (en) Message processing method and system, data pool and computer readable storage medium
CN111580926A (en) Model publishing method, model deploying method, model publishing device, model deploying device, model publishing equipment and storage medium
CN110297671A (en) Client plug-in implementation method, device, computer equipment and storage medium
CN111752587B (en) Batch processing method and device for small programs, electronic equipment and readable storage medium
CN111068328A (en) Game advertisement configuration table generation method, terminal device and medium
CN115756464A (en) Dynamic generation method and device of overview page
CN109873863A (en) The asynchronous invoking method and device of service
CN112035163A (en) Software development kit configuration method, device and storage medium
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
CN114217795A (en) Page generation method and device, electronic equipment and readable storage medium
CN113448650A (en) Live broadcast function plug-in loading method, device, equipment and storage medium
CN112256295A (en) Application program updating method, device, equipment and storage medium
CN112732265A (en) Data processing method and related device
CN115865718A (en) Service arrangement control method and device based on Yaml template
US8374593B2 (en) Method of providing mobile application
CN111427770B (en) Resource testing method and related equipment
CN106547528B (en) Interface layout method and device
CN112565472B (en) Static resource processing method and device
CN114489854A (en) Modularized software development method, system, device and storage medium
CN115841100A (en) Intelligent form adjusting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination