CN109358919B - Dynamic configuration method and device for universal page, computer equipment and storage medium - Google Patents

Dynamic configuration method and device for universal page, computer equipment and storage medium Download PDF

Info

Publication number
CN109358919B
CN109358919B CN201810946608.1A CN201810946608A CN109358919B CN 109358919 B CN109358919 B CN 109358919B CN 201810946608 A CN201810946608 A CN 201810946608A CN 109358919 B CN109358919 B CN 109358919B
Authority
CN
China
Prior art keywords
page
displayed
component
configuration parameters
elements
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.)
Active
Application number
CN201810946608.1A
Other languages
Chinese (zh)
Other versions
CN109358919A (en
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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810946608.1A priority Critical patent/CN109358919B/en
Publication of CN109358919A publication Critical patent/CN109358919A/en
Application granted granted Critical
Publication of CN109358919B publication Critical patent/CN109358919B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses a dynamic configuration method, a device, computer equipment and a storage medium of a general page, which comprise the following steps: acquiring a dynamic data table of a page to be displayed, wherein the dynamic data table comprises storage paths of page elements forming the page to be displayed and configuration parameters of the page elements; loading the page element according to the storage path of the page element; typesetting the page elements according to the configuration parameters so that the page elements form a page to be displayed for displaying. The dynamic data table of the page to be displayed is obtained, then the page elements are loaded by data processing and analysis according to the dynamic data table, and typesetting is carried out on the page elements according to the configuration parameters of the page elements in the dynamic data table, so that the page elements form the page to be displayed for displaying, the system dynamically loads the dynamic data table to generate the page to be displayed, the dynamic configuration of the page elements is flexibly carried out, the development efficiency is greatly improved, and the development time of the page is shortened.

Description

Dynamic configuration method and device for universal page, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of page configuration, in particular to a dynamic configuration method, a device, computer equipment and a storage medium of a general page.
Background
When people browse the web pages, when the interested web page information is found, the user clicks the page component in the web pages and then jumps to browse new web page information, and the establishment of the web pages is completed by the participation of programmers.
In the prior art, when a programmer establishes a system page, firstly, a visible page of the page needs to be established, then a database is set according to elements corresponding to the page, namely, data storage addresses corresponding to elements used by the page are related to the elements of the page, and then a user can call the corresponding logic change of the page components when the page components are called, and parameters (quantity, size, position, type and function) of the page components contained in the page are different, so that the programmer needs to set the parameters of each page component, the configuration process of the page components is inflexible, the development efficiency is low, and the development period of the page is prolonged.
Disclosure of Invention
The embodiment of the invention provides a dynamic configuration method, a device, computer equipment and a storage medium for quickly realizing a general page by establishing a dynamic data table.
In order to solve the technical problems, the embodiment of the invention adopts the following technical scheme: the dynamic configuration method of the universal page comprises the following steps:
acquiring a dynamic data table of a page to be displayed, wherein the dynamic data table comprises a storage path of page elements forming the page to be displayed and configuration parameters of the page elements;
loading the page element according to the storage path of the page element;
typesetting the page elements according to the configuration parameters so that the page elements form the page to be displayed for displaying.
Optionally, before the step of obtaining the dynamic data table of the page to be displayed, the method further includes:
acquiring a replacement element corresponding to the page element;
and storing the replacement element into a storage path of the page element, and deleting the page element.
Optionally, after the step of displaying the page element to form the page to be displayed, the method further includes:
acquiring a page component which is newly added into the page to be displayed and is an associated component with page elements of the page to be displayed;
and configuring the page component according to the configuration parameters of the page elements which are the associated components.
Optionally, the step of configuring the page component according to the configuration parameters of the page elements of the mutually associated component includes:
acquiring general configuration parameters which are common between the page elements and the page components and are associated components;
and when the page to be displayed loads the page component, the general configuration parameters are transferred to the configuration parameters of the page component.
Optionally, the step of determining the companion component includes:
calculating the relevance between the page component and each page element combination in the page to be displayed to obtain a relevance entropy value;
comparing the association entropy value with a preset threshold value;
when the association entropy value is larger than the budget threshold, the page component and the page element in the mark combination are associated components.
Optionally, the step of calculating the associated entropy value includes:
the number of the dynamic data tables and the element same-table times are obtained, wherein the element same-table times are times when the page component and the page element are in the same dynamic data table in a two-to-two combined mode;
and inputting the element co-table times and the number of the dynamic data tables into a preset associated entropy calculation model to obtain an associated entropy value between the page component and the page element combination.
Optionally, the configuration parameters include: the size parameter, the function parameter and the position parameter of the page element in the page to be displayed.
In order to solve the above technical problem, an embodiment of the present invention further provides a dynamic configuration device for a general page, including:
the first acquisition module is used for acquiring a dynamic data table of a page to be displayed, wherein the dynamic data table comprises a storage path of page elements forming the page to be displayed and configuration parameters of the page elements;
the loading module is used for loading the page element according to the storage path of the page element;
and the typesetting module is used for typesetting the page elements according to the configuration parameters so that the page elements form the page to be displayed for displaying.
Optionally, the method further comprises:
the second acquisition module is used for acquiring the replacement element corresponding to the page element;
and the replacement module is used for storing the replacement element into a storage path of the page element and deleting the page element.
Optionally, the method further comprises:
the third acquisition module is used for acquiring a page component which is newly added into the page to be displayed and is an associated component with the page element of the page to be displayed;
and the transmission module is used for configuring the page component according to the configuration parameters of the page elements which are associated components.
Optionally, the transfer module includes:
the first acquisition submodule is used for acquiring general configuration parameters which are common between the page elements of the associated components and the page components;
and the first transmission submodule is used for transmitting the general configuration parameters to the configuration parameters of the page component when the page to be displayed loads the page component.
Optionally, the method further comprises:
the calculating module is used for calculating the relevance between the page component and each page element combination in the page to be displayed to obtain a relevance entropy value;
the comparison module is used for comparing the association entropy value with a preset threshold value;
and the marking module is used for marking that the page component and the page element in the combination are associated components when the association entropy value is larger than the budget threshold value.
Optionally, the computing module includes:
the second acquisition sub-module is used for acquiring the number of the dynamic data tables and the element same table times, wherein the element same table times are times when the page component and the page element are in the same dynamic data table in a two-to-two combined mode;
the first calculation sub-module is used for inputting the element co-table times and the number of the dynamic data tables into a preset associated entropy calculation model to obtain an associated entropy value between the page component and the page element combination.
Optionally, the configuration parameters include: and the size parameter, the function parameter and the position parameter of the modification information page element in the page to be displayed are the size parameter, the function parameter and the position parameter of the modification information page element in the page to be displayed.
In order to solve the above technical problem, an embodiment of the present invention further provides a computer device, including a memory and a processor, where the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the processor is caused to execute the steps of the dynamic configuration method of the general page.
To solve the above technical problem, an embodiment of the present invention further provides a storage medium storing computer readable instructions, where the computer readable instructions when executed by one or more processors cause the one or more processors to perform the steps of the dynamic configuration method of a general page.
The embodiment of the invention has the beneficial effects that: the page elements are loaded according to the storage paths of the page elements in the dynamic data table, and the page elements are typeset according to the configuration parameters of the page elements in the dynamic data table, so that the page elements form the page to be displayed for displaying.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a basic flow diagram of a dynamic configuration method of a general page according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another embodiment of a method for dynamically configuring a generic page according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for dynamically configuring a generic page according to another embodiment of the present invention;
FIG. 4 is a schematic flow chart of a configuration companion assembly according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of a judging companion component according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a method for calculating an associated entropy value according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a basic structure of a dynamic configuration device for a general page according to an embodiment of the present invention;
FIG. 8 is a basic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to enable those skilled in the art to better understand the present invention, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present invention with reference to the accompanying drawings.
In some of the flows described in the specification and claims of the present invention and in the foregoing figures, a plurality of operations occurring in a particular order are included, but it should be understood that the operations may be performed out of order or performed in parallel, with the order of operations such as 101, 102, etc., being merely used to distinguish between the various operations, the order of the operations themselves not representing any order of execution. In addition, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first" and "second" herein are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, and are not limited to the "first" and the "second" being different types.
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
Example 1
Referring to fig. 1 specifically, fig. 1 is a basic flow chart of a dynamic configuration method of a general page according to the present embodiment.
As shown in fig. 1, a dynamic configuration method of a general page includes the following steps:
s1100, acquiring a dynamic data table of a page to be displayed, wherein the dynamic data table comprises storage paths of page elements forming the page to be displayed and configuration parameters of the page elements;
the dynamic data table at least comprises storage paths of page elements and configuration parameters of the page elements, wherein the page elements are used for forming a page to be displayed, and when a plurality of page elements exist in the page to be displayed, the storage paths and the configuration parameters in the dynamic data table are in one-to-one correspondence with the page elements. Specifically, when a user wants to modify the page element, for example, replace an apple picture in a page to be displayed with an orange picture, only store the orange picture in the storage path of the page element, and correspondingly delete the apple picture in the storage path, when the page to be displayed is constructed, the system searches for and reads the orange picture according to the storage path of the page element, and then loads the orange picture and displays the orange picture in the page to be displayed; the configuration parameters include: the size parameter, the function parameter, the position parameter of the page element in the page to be displayed, and the like. Taking a page to be displayed as a welcome interface, wherein the page to be displayed comprises a word page element and a key page element, the word page element is used for displaying a word style of 'welcome use', the key page element is provided with a prompt word of 'next step', the next page can be jumped when the key page element is pressed down, the word page element is stored in a storage path corresponding to the word page element in a dynamic data table, the key page element is stored in a storage path corresponding to the key page element in the dynamic data table, configuration parameters of the word page element and the key page element are written into the dynamic data table, when the welcome interface is to be displayed, a system acquires the dynamic data table of the page to be displayed, then reads the word page element and the key page element through the storage path stored in the dynamic data table, and then loads and forms the page to be displayed according to respective configuration parameters of the word page element and the key page element. When a user needs to modify a page element, for example, when modifying characters in a character page element, the user only needs to write new characters into a storage path of the character page element, so that the character style of the page to be displayed can be modified, and the dynamic data table does not need to be modified, thereby improving the development efficiency.
S1200, loading page elements according to the storage paths of the page elements;
the dynamic data table comprises storage paths of page elements forming the page to be displayed and configuration parameters of the page elements, and the system can load the page elements according to the storage paths of the page elements in the dynamic data table. Specifically, the storage path of the page element may be a storage path of a local memory, and of course, the storage path of the page element may also be a storage path of a network cloud server. In an alternative embodiment, taking a storage path of a page element as a storage path of a local memory as an example, the page element is stored in the local memory, where the local memory corresponds to the storage path of the page element, and a user can modify the page element in the page to be displayed by modifying or replacing the page element in the local memory, for example, replacing a picture of a puppy in the local memory with a picture of a kitten, so that the page to be displayed reads and loads the picture of the kitten according to the storage address to display.
S1300, typesetting the page elements according to the configuration parameters so that the page elements form a page to be displayed for displaying.
When the page to be displayed loads the page elements, typesetting the page elements according to the configuration parameters of the page elements is needed. Specifically, the system reads configuration parameters of the page elements in the dynamic data table, wherein the configuration parameters at least comprise position parameters of the page elements in the page to be displayed and size parameters of the page elements, so that the page elements are typeset into the page to be displayed for display. Of course, the configuration parameters of the page element are not limited to the above position parameters and size parameters, and may further include other parameter data according to different specific application scenarios.
In some embodiments, modifications and adjustments to the page elements are required before the dynamic data table of the page to be displayed is obtained. Referring to fig. 2, fig. 2 is a schematic flow chart of another embodiment of the dynamic configuration method of the general page according to the present embodiment.
As shown in fig. 2, the following steps are further included before step S1100:
s1010, acquiring a replacement element corresponding to the page element;
the replacement element is input by the user, taking the page element as a lottery key and the replacement element as a determination key as an example, when the user needs to replace the frontal lottery key in the page to be displayed with the determination key, the user inputs the replacement element, and the system receives the replacement element and corresponds the replacement element mark to the page element. In one embodiment, taking a page element as an apple picture and a replacement element as a banana picture as an example, storing the apple picture in a storage path of the page element, when a user needs to display the banana picture in a page to be displayed, the user can search and download the banana picture from a network, and of course, the banana picture can also be acquired through a camera or other image acquisition equipment and then input into a system, and the system marks the banana picture as the replacement element of the apple picture according to the operation meaning expression of the user.
S1020, storing the replacement element into a storage path of the page element, and deleting the page element.
After the system acquires the replacement element corresponding to the page element, deleting the page element, and then storing the replacement element into a storage path of the page element, so that the replacement element becomes a new page element, when the page element to be displayed is loaded, the replacement element is read and loaded according to the storage path, so that the replacement element forms the page to be displayed for displaying, the storage path in the dynamic data table is not required to be modified, and the modification of the page to be displayed can be realized only by modifying the page element in the storage path. In one embodiment, taking a page element as an apple picture and a replacement element as a banana picture as an example, storing the apple picture in a storage path of the page element, when the system monitors that a user wants to replace the apple picture with an operation meaning expression of the banana picture, marking the banana picture as the replacement element of the apple picture by the system, then storing the banana picture in the storage path of the apple picture and deleting the apple picture, so that the banana picture in the storage path is loaded to a page to be displayed for displaying, the modification of the page element in the page to be displayed can be realized without modifying the storage path in a dynamic data table, the page development flow is simplified, and the development efficiency is improved. Of course, when the apple picture does not need to be displayed in the page to be displayed, only the apple picture needs to be deleted from the storage path, the page element read by the system into the storage path is empty, and the page to be displayed will not display the page element. When the page element is required to be added in the page to be displayed, the corresponding storage path is only required to be added in the dynamic data table, and the page element is stored in the storage path.
In some embodiments, referring to fig. 3, fig. 3 is a schematic flow chart of still another embodiment of a dynamic configuration method of a general page in this embodiment.
As shown in fig. 3, step S1300 further includes the following steps:
s1400, acquiring a page component which is newly added into a page to be displayed and is an associated component with page elements of the page to be displayed;
the page to be displayed comprises a plurality of page elements, wherein the page component is also a page element, and a plurality of page elements in the page to be displayed are associated components. Taking the example that the positions of the page elements which are associated components and the page components in the page to be displayed are the same, wherein the page elements are login components and the page components are news scroll display components, after a user logs in, the login components disappear, and the news scroll display components replace the login components in position.
S1500, configuring the page component according to the configuration parameters of the page elements which are the associated components.
After the page component which is associated with the page element is obtained, the page component can be configured according to the configuration parameters of the page element. In one embodiment, taking a page element as a login component and a page component as a lottery component as an example, the login component and the lottery component have the same position in the page, after the user logs in, the login component disappears, and then the lottery component replaces the login component to display, because the login component and the lottery component are associated components, some configuration parameters (such as position parameters or size parameters) in the page can be transmitted in an associated manner, and the newly added lottery component can be configured according to the configuration parameters of the login component. When a plurality of page elements and page components are associated components, the universal configuration parameters among the page elements can be transferred, so that the configuration work of programmers on newly added page components is reduced, and the development efficiency of pages is improved.
In some embodiments, referring to fig. 4, fig. 4 is a schematic flow chart of the configuration companion component according to the present embodiment.
As shown in fig. 4, step S1500 further includes the steps of:
s1510, acquiring general configuration parameters which are general between page elements of associated components and the page components;
the configuration parameters of the page elements include a range of parameters such as position parameters, size parameters, and color parameters, etc., while the general configuration parameters that can be passed between mutually associated components may include only one or more of them. In an alternative embodiment, taking the consultation component and the lottery component in the page to be displayed as accompanying components as examples, if the sizes of the consultation component and the lottery component in the page to be displayed are the same, the general configuration parameters of the consultation component and the lottery component are size parameters; if the size and the color of the consultation component and the lottery component in the page to be displayed are the same, the general configuration parameters between the consultation component and the lottery component are size parameters and color parameters.
S1520, when the page to be displayed loads the page component, the general configuration parameters are transferred to the configuration parameters of the page component.
The configuration parameters of the parts among the associated components can be shared, namely the common configuration parameters among the page elements which are the associated components can be transmitted, so that the configuration work of developers on each component in the page is reduced. After the developer sets the parameters of one of the companion components, the parameters that the companion component can use are transferred to the other components of the companion component. Specifically, the transmission mode is as follows: the general configuration parameters of the page elements which are the associated components are marked, namely are stored in a parameter general table of the control, after the associated components are added in the page, the parameter general table is called, one-time traversal is carried out in the configured configuration parameters, and after the parameter data corresponding to the general configuration parameters in the set page elements are read, the parameter data are written into the configuration parameters of the newly added page components. In an alternative embodiment, taking the counseling component and the lottery component in the page to be displayed as accompanying components as examples, the counseling component and the lottery component have the same size in the page to be displayed, the lottery component is positioned above the counseling component in the page, the size parameter of the lottery component is transferred to the size parameter of the counseling component in the dynamic data table, and when the page to be displayed loads the lottery component according to the dynamic data table and then loads the counseling component, the counseling component can be loaded according to the configuration parameter of the counseling component in the dynamic data table, so that the size of the counseling component is the same as the size of the lottery component.
According to the method, the device and the system, the universal configuration parameters between the page elements and the page components which are the associated components are obtained, when the page to be displayed loads the page components, the universal configuration parameters are transferred to the configuration parameters of the page components, so that parameter transfer between the associated components can be completed, configuration of the page components is reduced, and therefore programming efficiency of the page is further improved.
In some embodiments, before obtaining a newly added page component of the page to be displayed, where the newly added page component is an associated component with a page element of the page to be displayed, it is required to determine whether each component in the page is an associated component with each other. Referring to fig. 5, fig. 5 is a schematic flow chart of a judging companion component according to the embodiment.
As shown in fig. 5, step S1400 includes the steps of:
s1410, calculating the relevance between the page component and each page element combination in the page to be displayed to obtain a relevance entropy value;
specifically, the page component is also a page element in the page to be displayed, wherein the associated entropy value is used for representing the probability of the concomitant occurrence of two or more page elements; the associated entropy value is calculated by the following calculation method: firstly, obtaining the number of dynamic data tables and the number of element same-table times, wherein the element same-table times are the times that page components and page elements are in the same dynamic data table in a two-to-two combined mode; and inputting the element co-table times and the number of dynamic data tables into a preset associated entropy calculation model to obtain an associated entropy value between the page component and the page element combination.
S1420, comparing the associated entropy value with a preset threshold value;
s1430, when the associated entropy value is greater than the budget threshold, marking the page component and the page element in the combination as associated components.
The preset threshold is a preset threshold, and when the association entropy is larger than the preset threshold, page elements in the combination are marked as associated components, and the page elements in the combination have associated relations. Specifically, when a page element with associated relationship is called or written into the dynamic data table, the system reminds the user whether to select the associated component in a popup window mode. And stopping prompting after obtaining a negative instruction of the user.
In an alternative embodiment, please refer to fig. 6, fig. 6 is a schematic flow chart of the calculation of the association entropy value according to the present embodiment.
As shown in fig. 6, the step of calculating the association entropy value includes the steps of:
s1411, acquiring the number of dynamic data tables and the number of element same-table times, wherein the element same-table times are the times that page components and page elements are in the same dynamic data table in a two-to-two combined mode;
specifically, firstly, counting the number of dynamic data tables in a database and counting the times of two page elements appearing in the same dynamic data table in a two-to-two combined mode to obtain the same-table times of the elements. The page component is also a page element in the page to be displayed, and of course, the association entropy value between the page elements can be calculated by combining three page elements, four page elements or a plurality of page elements.
S1412, inputting the element co-table times and the number of dynamic data tables into a preset association entropy calculation model to obtain an association entropy value between the page component and the page element combination.
After the number of the element same table times and the number of the dynamic data tables are obtained, the number of the element same table times and the number of the dynamic data tables are input into a correlation entropy calculation model, and the correlation entropy calculation model has the function of dividing the element same table times by the number of the dynamic data tables to obtain ratio probability, namely the correlation entropy value of the page element combination. Of course, the association entropy values between three, four or even more page element combinations can also be calculated by the above method.
In an alternative embodiment, when a user newly builds a page, an operation instruction of the newly built page input by the user is acquired; specifically, when a user browses a page, an operation instruction of a new page input by the user is acquired in a real-time acquisition mode. For example, touch click operation of a user on a touch screen or click operation of a user on a page through a tool such as a mouse is detected, but the method is not limited to the detection, and operation instructions of a new page input by the user can be obtained in other modes according to different specific application scenes. After the system acquires an operation instruction of a newly built page input by a user, firstly selecting a required page template or a page template to be modified from a preset page database, and searching a dynamic data table corresponding to the page template according to the operation instruction of the user, wherein the page template refers to a page element.
According to the construction requirement of the page to be displayed, a user can delete or add the page elements in the database of the page template, and meanwhile, the configuration parameters in the page elements are modified adaptively, so that the page to be displayed is built.
When the dynamic data table modification of the page elements involves adding or deleting part of the associated components, when one page component which is the associated component is called, the system detects whether the page component is provided with the associated component, when the associated component exists, the name information of the associated component is acquired, and a query prompt is sent to a user whether the associated component which is the calling component needs to be added into a page to be displayed. And stopping prompting after obtaining a negative instruction of the user.
When the accompanying components exist in the page to be displayed, monitoring parameters in the accompanying components, after detecting that the general configuration parameters are modified, sending inquiry prompts whether the general configuration parameters are modified to transmit the general configuration parameters to the configuration parameters of other accompanying components or not to a user, and after obtaining positive instructions of the user, modifying the configuration parameters of other accompanying components.
The storage address and the configuration parameters of the page elements are stored in the dynamic data table, the page elements are added or deleted in a dynamic configuration mode according to different requirements, and when the page is accessed each time, the system dynamically removes the load from the dynamic data table to generate the page to be displayed, so that a new page does not need to be developed any more, the dynamic configuration of the page elements is flexibly realized, the development efficiency is greatly improved, and the development time of the page is shortened.
In order to solve the technical problems, the embodiment of the invention also provides a dynamic configuration device of the general page.
Referring to fig. 7 specifically, fig. 7 is a schematic basic structure diagram of a dynamic configuration device of a general page according to the present embodiment.
As shown in fig. 7, a dynamic configuration device for a general page includes: a first acquisition module 2100, a loading module 2200, and a composition module 2300. The first obtaining module 2100 is configured to obtain a dynamic data table of a page to be displayed, where the dynamic data table includes a storage path of a page element that forms the page to be displayed and a configuration parameter of the page element; loading the page element according to a storage path of the page element; and typesetting the page elements according to the configuration parameters so that the page elements form the page to be displayed for displaying.
The page elements are loaded according to the storage paths of the page elements in the dynamic data table, and the page elements are typeset according to the configuration parameters of the page elements in the dynamic data table, so that the page elements form the page to be displayed for displaying.
In some embodiments, the dynamic configuration device of the generic page further includes: the second acquisition module is used for acquiring a replacement element corresponding to the page element; and the replacement module is used for storing the replacement element into a storage path of the page element and deleting the page element.
In some embodiments, the dynamic configuration device of the generic page further includes: the system comprises a third acquisition module and a transmission module, wherein the third acquisition module is used for acquiring a page component which is newly added into the page to be displayed and is an associated component with page elements of the page to be displayed; the transfer module is used for configuring the page component according to the configuration parameters of the page elements which are associated components.
In some embodiments, the dynamic configuration device of the generic page further includes: the system comprises a first acquisition sub-module and a first transmission sub-module, wherein the first acquisition sub-module is used for acquiring general configuration parameters which are general between the page elements and the page components of the associated components; and the first transmission submodule is used for transmitting the general configuration parameters to the configuration parameters of the page component when the page to be displayed loads the page component.
In some embodiments, the dynamic configuration device of the generic page further includes: the computing module is used for computing the relevance between the page component and each page element combination in the page to be displayed to obtain a relevance entropy value; the comparison module is used for comparing the association entropy value with a preset threshold value; the marking module is used for marking the page component and the page element in the combination as associated components when the association entropy value is larger than the budget threshold value.
In some embodiments, the dynamic configuration device of the generic page further includes: the second acquisition sub-module is used for acquiring the number of the dynamic data tables and the element same table times, wherein the element same table times are times when the page component and the page element are in the same dynamic data table in a two-to-two combined mode; the first calculation submodule is used for inputting the element co-table times and the number of the dynamic data tables into a preset associated entropy calculation model to obtain an associated entropy coordinate offset parameter and a scale offset parameter between the page component and the page element combination.
In some embodiments, the configuration parameters include: and the size parameter, the function parameter and the position parameter of the modification information page element in the page to be displayed are the size parameter, the function parameter and the position parameter of the modification information page element in the page to be displayed.
In order to solve the technical problems, the embodiment of the invention also provides computer equipment. Referring specifically to fig. 8, fig. 8 is a basic structural block diagram of a computer device according to the present embodiment.
As shown in fig. 8, the internal structure of the computer device is schematically shown. As shown in fig. 8, the computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected by a system bus. The nonvolatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store a control information sequence, and the computer readable instructions can enable the processor to realize a dynamic configuration method of the universal page when the computer readable instructions are executed by the processor. The processor of the computer device is used to provide computing and control capabilities, supporting the operation of the entire computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, cause the processor to perform a method of dynamic configuration of a generic page. The network interface of the computer device is for communicating with a terminal connection. It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
The processor in this embodiment is configured to perform specific functions of the first obtaining module 2100, the loading module 2200, and the typesetting module 2300 in fig. 7, and the memory stores program codes and various types of data required for executing the above modules. The network interface is used for data transmission between the user terminal or the server. The memory in this embodiment stores program codes and data required for executing all the sub-modules in the dynamic configuration device of the general page, and the server can call the program codes and data of the server to execute the functions of all the sub-modules.
The computer loads the page elements according to the storage paths of the page elements in the dynamic data table, and typesets the page elements according to the configuration parameters of the page elements in the dynamic data table, so that the page elements form the page to be displayed for displaying.
The present invention also provides a storage medium storing computer readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the method for dynamically configuring a generic page according to any of the embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a random access Memory (Random Access Memory, RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present invention, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

Claims (7)

1. The dynamic configuration method of the universal page is characterized by comprising the following steps:
acquiring a dynamic data table of a page to be displayed, wherein the dynamic data table comprises a storage path of page elements forming the page to be displayed and configuration parameters of the page elements; the storage path is a storage path of a network cloud server;
loading the page element according to the storage path of the page element;
typesetting the page elements according to the configuration parameters so that the page elements form the page to be displayed for displaying;
acquiring a page component which is newly added into the page to be displayed and is an associated component with page elements of the page to be displayed;
acquiring general configuration parameters which are common between the page elements and the page components and are associated components;
when the page to be displayed loads the page component, the general configuration parameters are transmitted to the configuration parameters of the page component;
the judging step of the companion component comprises the following steps:
calculating the relevance between the page component and each page element combination in the page to be displayed to obtain a relevance entropy value;
comparing the association entropy value with a preset threshold value;
and when the association entropy value is larger than the preset threshold value, the page component and the page element in the mark combination are associated components.
2. The method for dynamically configuring a generic page according to claim 1, further comprising, prior to the step of obtaining the dynamic data table of the page to be displayed:
acquiring a replacement element corresponding to the page element;
and storing the replacement element into a storage path of the page element, and deleting the page element.
3. The method for dynamically configuring a generic page according to claim 1, wherein the step of calculating the associated entropy value comprises:
obtaining the number of the dynamic data tables and the number of element co-table times, wherein the element co-table times are the times that the page component and the page element are in the same dynamic data table in a two-to-two combined mode;
and inputting the element co-table times and the number of the dynamic data tables into a preset associated entropy calculation model to obtain an associated entropy value between the page component and the page element combination.
4. A method of dynamic configuration of a generic page according to any one of claims 1 to 3, wherein the configuration parameters include: the size parameter, the function parameter and the position parameter of the page element in the page to be displayed.
5. A dynamic configuration device for a generic page, comprising:
the first acquisition module is used for acquiring a dynamic data table of a page to be displayed, wherein the dynamic data table comprises a storage path of page elements forming the page to be displayed and configuration parameters of the page elements; the storage path is a storage path of a network cloud server;
the loading module is used for loading the page element according to the storage path of the page element;
the typesetting module is used for typesetting the page elements according to the configuration parameters so that the page elements form the page to be displayed for displaying;
the third acquisition module and the transfer module are used for acquiring a page component which is newly added into the page to be displayed and is an associated component with the page element of the page to be displayed; acquiring general configuration parameters which are common between the page elements and the page components and are associated components; when the page to be displayed loads the page component, the general configuration parameters are transmitted to the configuration parameters of the page component;
the calculating module is used for calculating the relevance between the page component and each page element combination in the page to be displayed to obtain a relevance entropy value;
the comparison module is used for comparing the association entropy value with a preset threshold value;
and the marking module is used for marking that the page component and the page element in the combination are associated components when the association entropy value is larger than the preset threshold value.
6. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the method of dynamic configuration of a generic page as claimed in any one of claims 1 to 4.
7. A storage medium storing computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of dynamic configuration of a generic page as claimed in any one of claims 1 to 4.
CN201810946608.1A 2018-08-20 2018-08-20 Dynamic configuration method and device for universal page, computer equipment and storage medium Active CN109358919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810946608.1A CN109358919B (en) 2018-08-20 2018-08-20 Dynamic configuration method and device for universal page, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810946608.1A CN109358919B (en) 2018-08-20 2018-08-20 Dynamic configuration method and device for universal page, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109358919A CN109358919A (en) 2019-02-19
CN109358919B true CN109358919B (en) 2024-04-02

Family

ID=65350129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810946608.1A Active CN109358919B (en) 2018-08-20 2018-08-20 Dynamic configuration method and device for universal page, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109358919B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321508A (en) * 2019-07-12 2019-10-11 广州华多网络科技有限公司 Processing method, device, storage medium and the equipment of page presentation data
CN110781422B (en) * 2019-09-18 2024-04-05 中国平安财产保险股份有限公司 Page configuration method, page configuration device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1628299A (en) * 2002-06-19 2005-06-15 诺基亚有限公司 Method and device for generating mobile homepage in accordance with context related information
CN102254023A (en) * 2011-07-27 2011-11-23 深圳市五巨科技有限公司 Method and device for editing webpage
CN103019684A (en) * 2012-11-20 2013-04-03 北京思特奇信息技术股份有限公司 Dynamic template-based business page configuring method
CN104063460A (en) * 2014-06-25 2014-09-24 北京奇虎科技有限公司 Method and device for loading webpage in browser
CN104380280A (en) * 2012-04-16 2015-02-25 权五石 System and method for dynamically converting webpage, and computer-readable recording medium
CN105573773A (en) * 2014-10-17 2016-05-11 Tcl集团股份有限公司 User interface laying method, apparatus and system
CN105653644A (en) * 2015-12-28 2016-06-08 北京中电普华信息技术有限公司 Page constructor and page construction method
CN106503162A (en) * 2016-10-31 2017-03-15 山东鲁能软件技术有限公司 Page dynamic creation method and system based on SAP platforms
CN107608747A (en) * 2017-09-22 2018-01-19 携程旅游信息技术(上海)有限公司 The construction method of form system, device, electronic equipment, storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6844206B2 (en) * 2016-11-14 2021-03-17 富士通株式会社 Programs, information processing methods, and information processing equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1628299A (en) * 2002-06-19 2005-06-15 诺基亚有限公司 Method and device for generating mobile homepage in accordance with context related information
CN102254023A (en) * 2011-07-27 2011-11-23 深圳市五巨科技有限公司 Method and device for editing webpage
CN104380280A (en) * 2012-04-16 2015-02-25 权五石 System and method for dynamically converting webpage, and computer-readable recording medium
CN103019684A (en) * 2012-11-20 2013-04-03 北京思特奇信息技术股份有限公司 Dynamic template-based business page configuring method
CN104063460A (en) * 2014-06-25 2014-09-24 北京奇虎科技有限公司 Method and device for loading webpage in browser
CN105573773A (en) * 2014-10-17 2016-05-11 Tcl集团股份有限公司 User interface laying method, apparatus and system
CN105653644A (en) * 2015-12-28 2016-06-08 北京中电普华信息技术有限公司 Page constructor and page construction method
CN106503162A (en) * 2016-10-31 2017-03-15 山东鲁能软件技术有限公司 Page dynamic creation method and system based on SAP platforms
CN107608747A (en) * 2017-09-22 2018-01-19 携程旅游信息技术(上海)有限公司 The construction method of form system, device, electronic equipment, storage medium

Also Published As

Publication number Publication date
CN109358919A (en) 2019-02-19

Similar Documents

Publication Publication Date Title
CN111177176B (en) Data detection method, device and storage medium
US10048946B2 (en) Converting visual diagrams into code
US8938720B2 (en) Trace visualization for object oriented programs
CN105511873B (en) User interface control display method and device
CN109508420B (en) Method and device for cleaning attributes of knowledge graph
CN109739855B (en) Method and system for realizing data sheet splicing and automatically training machine learning model
CN109740122B (en) Method and device for converting thinking guide graph use case file
CN107622080B (en) Data processing method and equipment
US11232134B2 (en) Customized visualization based intelligence augmentation
CN110647322B (en) List rendering method and device, electronic equipment and computer readable medium
WO2019242164A1 (en) Document management method and apparatus, computer device and storage medium
CN109358919B (en) Dynamic configuration method and device for universal page, computer equipment and storage medium
WO2023125032A1 (en) Scientific research data change review method based on data snapshot, and server
CN114489625A (en) Method and device for converting JSON format text into visual configuration tool
US9104573B1 (en) Providing relevant diagnostic information using ontology rules
CN112329409B (en) Cell color conversion method and device and electronic equipment
CN107562423B (en) UI page development method and device
CN115617338A (en) Method and device for quickly generating service page and readable storage medium
CN115629763A (en) Target code generation method and NPU instruction display method and device
CN115357696A (en) Dynamic chart billboard display method based on components and related equipment
CN115687704A (en) Information display method and device, electronic equipment and computer readable storage medium
CN115081423A (en) Document editing method and device, electronic equipment and storage medium
CN113515505A (en) Data model generation method and device of data warehouse and electronic equipment
CN106844192A (en) A kind of detection method of program's source code, device and electronic equipment
CN115904572B (en) Template creation method, calling method, program product, system 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
GR01 Patent grant
GR01 Patent grant