CN114385952A - Page function item management method and device, computer equipment and readable storage medium - Google Patents

Page function item management method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN114385952A
CN114385952A CN202210037870.0A CN202210037870A CN114385952A CN 114385952 A CN114385952 A CN 114385952A CN 202210037870 A CN202210037870 A CN 202210037870A CN 114385952 A CN114385952 A CN 114385952A
Authority
CN
China
Prior art keywords
data
page
function
configuration
function item
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
CN202210037870.0A
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.)
Ping An E Wallet Electronic Commerce Co Ltd
Original Assignee
Ping An E Wallet Electronic Commerce 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 Ping An E Wallet Electronic Commerce Co Ltd filed Critical Ping An E Wallet Electronic Commerce Co Ltd
Priority to CN202210037870.0A priority Critical patent/CN114385952A/en
Publication of CN114385952A publication Critical patent/CN114385952A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of computer operation and maintenance, and discloses a page function item management method, a page function item management device, a computer device and a readable storage medium, wherein the page function item management method comprises the following steps: virtualizing a front-end server and a back-end server in a server; acquiring configuration management data, rendering the configuration management data to obtain a configuration management view, and sending the configuration management view to a control end connected with a back-end server; acquiring event information triggered by a control end on a configuration management view, and generating a configuration updating code according to the event information; and inputting the configuration updating code into the function item data to obtain updating function data, obtaining updating page data according to the updating function data and the list data, and sending the updating page data to the front-end server. According to the method and the device, a large amount of codes do not need to be written to regenerate new page data, or a large amount of manpower is consumed to modify the codes corresponding to the page data, so that the problems of high manpower consumption and low page function item modification efficiency are avoided.

Description

Page function item management method and device, computer equipment and readable storage medium
Technical Field
The invention relates to the technical field of computer operation and maintenance, in particular to a page function item management method and device, computer equipment and a readable storage medium.
Background
In a web application, the queried data is often subjected to multi-condition sequencing and screening, so that the requirement of a user for quickly finding a certain type of data is met. Such as tables commonly used in BI systems, flight listings in ticketing systems, order listings, and so forth, all have similar requirements.
However, the inventor has realized that in the process of service development, the current service needs only to be concerned and cannot be configured, so that when a functional item of a page needs to be added later, a page code needs to be rewritten, or a great amount of manpower and energy needs to be spent on modifying the page code, which causes a problem of large manpower consumption and low efficiency of modifying the page functional item.
Disclosure of Invention
The invention aims to provide a page function item management method, a page function item management device, a computer device and a readable storage medium, which are used for solving the problems that in the prior art, a page code needs to be rewritten or needs to be modified by spending a large amount of manpower and energy, so that the manpower consumption is large and the modification efficiency of a page function item is low.
In order to achieve the above object, the present invention provides a method for managing page function items, which runs in a server and includes:
virtualizing a front-end server and a back-end server in the server;
acquiring configuration management data, rendering the configuration management data to obtain a configuration management view, and sending the configuration management view to a control end connected with the back-end server; acquiring event information triggered by the control end on the configuration management view, and generating a configuration updating code according to the event information, wherein the event information represents a new added sequencing function item or screening function item of the control end on the configuration management view;
and recording the configuration updating code into preset function item data to obtain updating function data, obtaining updating page data according to the updating function data and preset list data, and sending the updating page data to the front-end server.
In the foregoing solution, before the obtaining the configuration management data and rendering to obtain the configuration management view, the method further includes:
acquiring list data and function item data, wherein the list data is service data used for being displayed on a page, and the function item data is function configuration data used for providing a sorting function and/or a screening function for the service data;
the acquiring list data and the function item data includes:
receiving display metadata sent by a control end, inputting the display metadata into a preset display query function, and calling the display query function to acquire list data corresponding to the display metadata from a preset list database; receiving function metadata sent by a control end, inputting the display metadata into a preset function query function, and calling the function query function to acquire function item data corresponding to the function metadata from a preset configuration database.
In the foregoing solution, after the obtaining of the list data and the function item data, the method further includes:
rendering the list data and the function item data to form page data, and sending the page data to a front-end server; the page data comprises a list view for displaying the list data and a configuration function view for providing sorting function items and/or screening function items for the list data;
in the foregoing solution, rendering the list data and the function item data to form page data, and sending the page data to a front-end server includes:
constructing a list DOM tree according to the list data, and constructing a configuration DOM tree according to the function item data;
integrating the list DOM tree and the configuration DOM tree to obtain a page DOM tree;
rendering the page DOM tree to obtain page data, and sending the page data to the front-end server.
In the above scheme, the obtaining configuration management data and rendering to obtain the configuration management view includes:
acquiring configuration management data from a preset configuration database;
according to the configuration management data, at least one function item element representing a function item in the configuration management data is constructed, and a list DOM tree is constructed according to a logical relation between the function item elements, wherein the logical relation reflects the inclusion relation between the function item and other function items in the configuration management data.
In the foregoing solution, the obtaining event information triggered by the control end on the configuration management view, and generating a configuration update code according to the event information includes:
enabling an observer mode to monitor whether the control end triggers event information in the configuration management view;
and if so, acquiring the event information, and inputting the event information into a preset configuration template to form the configuration updating code.
In the foregoing solution, the obtaining updated page data according to the updated function data and preset list data includes:
constructing a list DOM tree according to the list data, and constructing an updated DOM tree according to the updating function data;
integrating the list DOM tree and the updated DOM tree to obtain a page DOM tree;
rendering the page DOM tree to obtain page data;
and uploading the page data to a block chain.
In order to achieve the above object, the present invention further provides a page function item management device, installed in the server, including:
the virtual module is used for virtualizing a front-end server and a back-end server in the server;
the code generation module is used for acquiring configuration management data, rendering the configuration management data to obtain a configuration management view, and sending the configuration management view to a control end connected with the back-end server; acquiring event information triggered by the control end on the configuration management view, and generating a configuration updating code according to the event information, wherein the event information represents a new added sequencing function item or screening function item of the control end on the configuration management view;
and the page updating module is used for recording the configuration updating code into preset functional item data to obtain updating functional data, obtaining updating page data according to the updating functional data and preset list data, and sending the updating page data to the front-end server.
In order to achieve the above object, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor of the computer device implements the steps of the page function item management method when executing the computer program.
In order to achieve the above object, the present invention further provides a computer readable storage medium, wherein a computer program is stored on the readable storage medium, and the computer program stored on the readable storage medium realizes the steps of the above page function item management method when executed by a processor.
According to the page function item management method, the page function item management device, the computer equipment and the readable storage medium, the front-end server and the back-end server are virtualized in the server, so that the problem that the server needs to be restarted due to the modification of the page configuration at present, and the service stability is insufficient is solved;
by means of rendering the configuration management data to obtain a configuration management view and sending the configuration management view to the control end, the control end can directly add the function items of the page data in the front-end server according to the needs of the control end, and convenience is provided for adding the function items in the page data;
by means of entering the configuration updating codes into the function item data to obtain updating function data and obtaining updating page data according to the updating function item data and the list data, rapid change of the page data displayed in the front-end server is achieved, a large number of codes do not need to be written to regenerate new page data, or a large amount of manpower needs to be consumed to modify the corresponding codes of the page data, and the problems that manpower consumption is large and the modifying efficiency of the page function items is low are avoided.
Drawings
FIG. 1 is a flowchart of a first embodiment of a page function item management method according to the present invention;
FIG. 2 is a schematic diagram of an environment application of a page function item management method according to a second embodiment of the page function item management method of the present invention;
FIG. 3 is a flowchart of a specific method of the page function item management method according to a second embodiment of the page function item management method of the present invention;
FIG. 4 is a schematic diagram of program modules of a third embodiment of a page function item management apparatus according to the present invention;
fig. 5 is a schematic diagram of a hardware structure of a computer device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. 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 invention provides a page function item management method, a page function item management device, a computer device and a readable storage medium, which are suitable for the technical field of computer operation and maintenance and provide a page function item management method based on a virtual module, a code generation module and a page updating module. The invention virtualizes a front-end server and a back-end server in the server; acquiring configuration management data, rendering the configuration management data to obtain a configuration management view, and sending the configuration management view to a control end connected with the back-end server; acquiring event information triggered by the control end on the configuration management view, and generating a configuration updating code according to the event information; and recording the configuration updating code into preset function item data to obtain updating function data, obtaining updating page data according to the updating function data and preset list data, and sending the updating page data to the front-end server.
The first embodiment is as follows:
referring to fig. 1, a method for managing page function items according to the present embodiment, which runs in a server, includes:
s101: virtualizing a front-end server and a back-end server in the server;
s104: acquiring configuration management data, rendering the configuration management data to obtain a configuration management view, and sending the configuration management view to a control end connected with the back-end server; acquiring event information triggered by the control end on the configuration management view, and generating a configuration updating code according to the event information, wherein the event information represents a new added sequencing function item or screening function item of the control end on the configuration management view;
s105: and recording the configuration updating code into preset function item data to obtain updating function data, obtaining updating page data according to the updating function data and preset list data, and sending the updating page data to the front-end server.
In an exemplary embodiment, a mode that the VM virtual machine virtualizes the front-end server and the back-end server in the server is adopted, so that an operation of displaying the page data by the front-end server and an operation of modifying the configuration data by the back-end server are not interfered with each other, and the problem of insufficient service stability caused by restarting the server due to the modification of the page configuration at present is avoided.
The configuration management view is obtained by rendering the configuration management data and is sent to the control end, so that the control end can directly configure the newly added function items to generate event information in a clicking, checking and other modes; and then, the technical effect of newly adding the function items is realized by converting the event information into a configuration updating code which can be read by a computer, so that the control end can directly newly add the function items of the page data in the front-end server according to the requirement of the control end, and convenience is provided for newly adding the function items in the page data.
By means of entering the configuration updating codes into the function item data to obtain updated function data and obtaining updated page data according to the updated function item data and the list data, rapid change of page data displayed in a front-end server is achieved, and the problems that a large amount of codes are not needed to be written to regenerate new page data, or a large amount of manpower is needed to be consumed to modify corresponding codes of the page data, so that the manpower consumption is large, and the page function item modification efficiency is low are solved.
Example two:
the embodiment is a specific application scenario of the first embodiment, and the method provided by the present invention can be more clearly and specifically explained through the embodiment.
The method provided in this embodiment will be specifically described below, by taking an example that configuration update codes are entered into function item data to obtain update function data, and update page data is obtained according to the update function data and list data in a server running a page function item management method. It should be noted that the present embodiment is only exemplary, and does not limit the protection scope of the embodiments of the present invention.
Fig. 2 schematically shows an environment application diagram of the page function item management method according to the second embodiment of the present application.
In an exemplary embodiment, the servers 2 where the page function item management method is located are respectively connected with the control terminals 4 through the network 3; the server 2 may provide services through one or more networks 3, which networks 3 may include various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and/or the like. The network 3 may include physical links, such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, and/or the like. The network 3 may include wireless links, such as cellular links, satellite links, Wi-Fi links, and/or the like; the control terminal 4 may be a computer device such as a smart phone, a tablet computer, a notebook computer, and a desktop computer.
Fig. 3 is a flowchart of a specific method of a page function item management method according to an embodiment of the present invention, where the method specifically includes steps S201 to S205.
S201: virtualizing a front-end server and a back-end server in the server.
In this step, a mode that the VM virtual machine virtualizes the front-end server and the back-end server in the server is adopted, so that the operation of displaying the page data by the front-end server and the operation of modifying the configuration data by the back-end server are not interfered with each other, and the problem of insufficient service stability caused by restarting the server due to the modification of the page configuration at present is avoided.
Wherein, vm virtual machine is a 'virtual PC' software. It makes you run two or more Windows, DOS, LINUX systems on one machine at the same time.
S202: acquiring list data and function item data, wherein the list data is service data used for being displayed on a page, and the function item data is function configuration data used for providing a sorting function and/or a screening function for the service data;
in this step, the list data is obtained from the preset list database, and the function item data is obtained from the preset configuration database, so that different list data can be matched with different function item data, not only is the multiplexing of the function item data realized, but also the efficiency of integrating the list data and the function item data to finally obtain the page data is improved. Specifically, display metadata sent by a control end is received, the display metadata are recorded into a preset display query function, and the display query function is called to obtain list data corresponding to the display metadata from a preset list database; receiving function metadata sent by a control end, inputting the display metadata into a preset function query function, and calling the function query function to acquire function item data corresponding to the function metadata from a preset configuration database. In this embodiment, the presentation query function and the function query function are respectively select () functions.
S203: rendering the list data and the function item data to form page data, and sending the page data to a front-end server; the page data comprises a list view for displaying the list data and a configuration function view for providing sorting function items and/or screening function items for the list data;
the page data are sent to a front-end server, so that a control end connected with the front-end server can extract the page data from the page data and obtain the list view and the configuration function view.
In a preferred embodiment, the rendering the list data and the function item data to form page data, and the sending the page data to a front-end server includes:
s31: constructing a list DOM tree according to the list data, and constructing a configuration DOM tree according to the function item data;
s32: integrating the list DOM tree and the configuration DOM tree to obtain a page DOM tree;
s33: rendering the page DOM tree to obtain page data, and sending the page data to the front-end server.
Specifically, the DOM tree is a DOM (document Object model), which is a standard interface specification made by W3C and is a standard API for processing HTML and XML files. The DOM provides an access model to the entire document as a tree structure, with each node of the tree representing an HTML tag or text item within a tag. The DOM tree structure accurately describes the interrelationship between tags in an HTML document. The process of converting an HTML or XML document into a DOM tree is called parsing (parse). The HTML document is converted into a DOM tree after being analyzed, so that the HTML document can be processed through the operation of the DOM tree.
And constructing at least one list array element for representing arrays in the list data according to the list data through a VUE component, and constructing a list DOM tree according to the logical relationship among the list array elements, wherein the logical relationship reflects the inclusion relationship between the arrays and other arrays in the list data.
And constructing at least one function item element for representing function items in the function item data according to the function item data through a VUE component, and constructing a list DOM tree according to a logical relationship among the function item elements, wherein the logical relationship reflects the inclusion relationship between the function item and other function items in the function item data.
And setting the functional items in the configuration DOM tree on list array elements for representing metadata in list data in the list DOM tree to obtain a page DOM tree, so that the functional items can carry out sequencing and/or screening management on the metadata in the list data, and the technical effect of integrating the list DOM tree and the configuration DOM tree to obtain the page DOM tree is realized.
And finally, rendering the DOM tree through a VUE assembly to obtain page data with a list view and a configuration function view, wherein the list data is used for displaying service data, and function items in the configuration function view are used for sequencing and/or screening the service data according to metadata in the list data.
Through with page data send to the front end server, in order to with the control end that the front end server is connected can directly be transferred fast page data in the front end server avoids rendering page DOM tree in the control end, has reduced the operating pressure of control end.
Note that the Vue component, namely: vue, js, is a set of progressive JavaScript frames used to construct a user interface.
S204: acquiring configuration management data, rendering the configuration management data to obtain a configuration management view, and sending the configuration management view to a control end connected with the back-end server; acquiring event information triggered by the control end on the configuration management view, and generating a configuration updating code according to the event information, wherein the event information represents a new added sequencing function item or screening function item of the control end on the configuration management view;
in order to facilitate the control end to directly add a function item of the page data in the front-end server according to the requirement of the control end, the step obtains a configuration management view by rendering configuration management data and sends the configuration management view to the control end, so that the control end can directly configure the added function item to generate event information by clicking, checking and the like; and then, the technical effect of adding function items is realized by converting the event information into a configuration updating code which can be read by a computer.
In a preferred embodiment, the obtaining configuration management data and rendering to obtain the configuration management view includes:
s41: acquiring configuration management data from a preset configuration database;
s42: according to the configuration management data, at least one function item element representing a function item in the configuration management data is constructed, and a list DOM tree is constructed according to a logical relation between the function item elements, wherein the logical relation reflects the inclusion relation between the function item and other function items in the configuration management data.
Specifically, the DOM tree is a DOM (document Object model), which is a standard interface specification made by W3C and is a standard API for processing HTML and XML files. The DOM provides an access model to the entire document as a tree structure, with each node of the tree representing an HTML tag or text item within a tag. The DOM tree structure accurately describes the interrelationship between tags in an HTML document. The process of converting an HTML or XML document into a DOM tree is called parsing (parse). The HTML document is converted into a DOM tree after being analyzed, so that the HTML document can be processed through the operation of the DOM tree.
And constructing at least one function item element representing a function item in the configuration management data according to the configuration management data through a VUE component, and constructing a list DOM tree according to a logical relationship between the function item elements, wherein the logical relationship reflects the inclusion relationship between the function item and other function items in the configuration management data.
Note that the Vue component, namely: vue, js, is a set of progressive JavaScript frames used to construct a user interface.
In a preferred embodiment, the obtaining event information triggered by the control end on the configuration management view and generating a configuration update code according to the event information includes:
s43: enabling an observer mode to monitor whether the control end triggers event information in the configuration management view.
S44: and if so, acquiring the event information, and inputting the event information into a preset configuration template to form the configuration updating code.
Specifically, the Observer Pattern (Observer Pattern) refers to a behavior Pattern of a dependent object for observing whether any object is modified when a one-to-many relationship exists between objects, and automatically notifying the modified object once modified.
The main roles of the observer mode are as follows.
Abstract topic (Subject) role: also called abstract target class, which provides a method for holding aggregated classes of observer objects and adding, deleting observer objects, and an abstract method for notifying all observers.
Specific topic (Concrete Subject) role: also called concrete object class, which implements a notification method in abstract objects to notify all registered observer objects when the internal state of a concrete topic changes.
Abstract Observer (Observer) role: it is an abstract class or interface that contains an abstract method for updating itself, and is called when notified of changes to a particular topic.
Specific Observer (Conscrete Observer) role: the abstract methods defined in the abstract observer are implemented to update the state of itself when notified of changes to the target.
The event information is a Js event, wherein the Js event refers to an operation executed by a user on a certain transaction due to a certain behavior; (some manipulation of page elements) and the occurrence of a particular interaction instant in a document or browser window; and some action performed by the user or the browser itself, such as click, load, and mouseover, are the names of the events. Thus, the event is a bridge between the interaction between the javaScript and DOM.
The event information includes the following elements:
event sources: refers to the event that is raised at which element, such as: a-tag, div-tag; event action: an event refers to an action performed; such as: single click, double click, etc.; event driver (event handler): i.e., the result of the execution; such as: click the function executed by the button tab.
In this embodiment, the event information may be event information for generating a new ranking or screening function item by the control terminal clicking a drop-down box or a check item corresponding to a configuration element in a configuration management page, where the configuration element is an event source, and the clicking operation performed on the drop-down box or the check item is an event action, and the event information is generated as the event driver.
Because the event information cannot be directly executed, the event information needs to be entered into the configuration template, so that the configuration template forms a configuration updating code which can be executed; wherein the configuration template is a computer template that provides executable conditions for the event information.
Illustratively, the configuration management data includes the following fields:
prop field requiring operation
True is the sort term and false is the filter option; sorting is performed prior to screening
filter-type, single-select, multiple-select, single-range single-select, multiple-range multiple-select during screening only
sort-type, type date type corresponding to sort field, Number digital type
Title of display
filters screening items
custom ordering method, execute if any, do not execute in default mode
custom-filter-method, executed if any, and executed not in a default manner
child-level structure and parent-level structure of child
Further, the control end may add a function item by operating the above field in the configuration management page, for example: ordered by date and by number, which supports the extension type: such as character encoding, pinyin sequencing, etc. And presetting a common sequencing method and simultaneously supporting a user-defined method.
The control end can add new screening function items by operating the fields in the configuration management page, for example: and (3) screening types: single selection, multiple selection, single-range single selection range and mul-range multiple selection; can be used with checkbox components. Meanwhile, a group of screening methods is preset, and a user-defined method, such as screening according to a time range, is supported.
S205: and recording the configuration updating code into preset function item data to obtain updating function data, obtaining updating page data according to the updating function data and preset list data, and sending the updating page data to the front-end server.
In this step, the configuration update code is entered into the function item data to obtain updated function data, and updated page data is obtained according to the updated function item data and the list data, so that the page data displayed in the front-end server is changed quickly without writing a large amount of codes to regenerate new page data or consuming a large amount of manpower to modify the corresponding code of the page data, and the problems of large manpower consumption and low efficiency in modifying the page function item are avoided.
In a preferred embodiment, the obtaining updated page data according to the updated function data and preset list data includes:
s51: constructing a list DOM tree according to the list data, and constructing an updated DOM tree according to the updating function data;
s52: integrating the list DOM tree and the updated DOM tree to obtain a page DOM tree;
s53: and rendering the page DOM tree to obtain page data.
Specifically, according to the list data, a VUE component constructs at least one list array element for representing arrays in the list data, and constructs a list DOM tree according to a logical relationship between the list array elements, wherein the logical relationship reflects the inclusion relationship between the arrays and other arrays in the list data.
And constructing at least one function item element representing a function item in the updated function data according to the updated function data through a VUE component, and constructing a list DOM tree according to a logical relationship among the function item elements, wherein the logical relationship reflects the inclusion relationship between the function item and other function items in the updated function data.
And setting the functional items in the updated DOM tree on list array elements representing metadata in list data in the list DOM tree to obtain a page DOM tree, so that the functional items can carry out sequencing and/or screening management on the metadata in the list data, and the technical effect of integrating the list DOM tree and the updated DOM tree to obtain the page DOM tree is realized.
And finally, rendering the DOM tree through a VUE assembly to obtain page data with a list view and a configuration function view, wherein the list data is used for displaying service data, and function items in the configuration function view are used for sequencing and/or screening the service data according to metadata in the list data.
Through with page data send to the front end server, in order to with the control end that the front end server is connected can directly be transferred fast page data in the front end server avoids rendering page DOM tree in the control end, has reduced the operating pressure of control end.
Preferably, after the rendering is performed on the page DOM tree to obtain page data, the method further includes:
and uploading the page data to a block chain.
It should be noted that the corresponding digest information is obtained based on the page data, and specifically, the digest information is obtained by hashing the page data, for example, by using the sha256s algorithm. Uploading summary information to the blockchain can ensure the safety and the fair transparency of the user. The user device may download the summary information from the blockchain to verify whether the page data is tampered. The blockchain referred to in this example is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Example three:
referring to fig. 4, a page function item management device 1 of the present embodiment is installed in a server 2, and includes:
a virtual module 11, configured to virtualize a front-end server and a back-end server in the server;
the code generation module 14 is configured to obtain configuration management data, render the configuration management data to obtain a configuration management view, and send the configuration management view to a control end connected to the backend server; acquiring event information triggered by the control end on the configuration management view, and generating a configuration updating code according to the event information, wherein the event information represents a new added sequencing function item or screening function item of the control end on the configuration management view;
and the page updating module 15 is configured to enter the configuration updating code into preset function item data to obtain updating function data, obtain updating page data according to the updating function data and preset list data, and send the updating page data to the front-end server.
Optionally, the page function item management apparatus 1 further includes:
the data obtaining module 12 is configured to obtain list data and function item data, where the list data is service data displayed on a page, and the function item data is function configuration data used for providing a sorting function and/or a screening function for the service data.
Optionally, the page function item management apparatus 1 further includes:
a data rendering module 13, configured to render the list data and the function item data to form page data, and send the page data to a front-end server; the page data comprises a list view for displaying the list data and a configuration function view for providing sorting function items and/or screening function items for the list data.
Optionally, the data rendering module 13 includes:
a tree building unit 131, configured to build a list DOM tree according to the list data, and build a configuration DOM tree according to the function item data;
an integrating unit 132, configured to integrate the list DOM tree and the configuration DOM tree to obtain a page DOM tree;
and a tree rendering unit 133, configured to render the page DOM tree to obtain page data, and send the page data to the front-end server.
Optionally, the code generation module 14 includes:
a configuration acquiring unit 141 configured to acquire configuration management data from a preset configuration database;
a configuration tree constructing unit 142, configured to construct, according to the configuration management data, at least one function item element representing a function item in the configuration management data, and construct a list DOM tree according to a logical relationship between the function item elements, where the logical relationship reflects an inclusion relationship between the function item and other function items in the configuration management data;
the observer unit 143 is configured to enable an observer mode to monitor whether the control end triggers event information in the configuration management view.
And the code generating unit 144 is configured to obtain the event information, and enter the event information into a preset configuration template to form the configuration update code.
Optionally, the page update module 15 includes:
a list tree construction unit 151, configured to construct a list DOM tree according to the list data, and construct an update DOM tree according to the update function data;
a list tree integration unit 152, configured to integrate the list DOM tree and the updated DOM tree to obtain a page DOM tree;
and the page updating unit 153 is configured to render the page DOM tree to obtain page data.
The technical scheme is applied to the technical field of computer operation and maintenance, configuration management data are obtained and rendered to obtain a configuration management view, and the configuration management view is sent to a control end connected with the back-end server; acquiring event information triggered by the control end on the configuration management view, generating a configuration updating code according to the event information, inputting the configuration updating code into preset function item data to obtain updating function data, obtaining updating page data according to the updating function data and preset list data, and sending the updating page data to the front-end server; the technical effect of optimizing the functions of the page is achieved.
Example four:
in order to achieve the above object, the present invention further provides a computer device 5, where components of the page function item management apparatus in the third embodiment may be distributed in different computer devices, and the computer device 5 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including an independent server or a server cluster formed by multiple application servers) that executes a program, and the like. The computer device of the embodiment at least includes but is not limited to: a memory 51, a processor 52, which may be communicatively coupled to each other via a system bus, as shown in FIG. 5. It should be noted that fig. 5 only shows a computer device with components, but it should be understood that not all of the shown components are required to be implemented, and more or fewer components may be implemented instead.
In this embodiment, the memory 51 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the memory 51 may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the memory 51 may be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device. Of course, the memory 51 may also include both internal and external storage devices of the computer device. In this embodiment, the memory 51 is generally used for storing an operating system and various application software installed in the computer device, for example, a program code of the page function item management apparatus in the third embodiment. Further, the memory 51 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 52 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 52 is typically used to control the overall operation of the computer device. In this embodiment, the processor 52 is configured to run program codes stored in the memory 51 or process data, for example, run a page function item management device, so as to implement the page function item management methods of the first embodiment and the second embodiment.
Example five:
to achieve the above objects, the present invention also provides a computer readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by a processor 52, implements corresponding functions. The computer-readable storage medium of this embodiment is used for storing a computer program for implementing the page function item management method, and when executed by the processor 52, implements the page function item management method of the first embodiment and the second embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A page function item management method, operating in a server, comprising:
virtualizing a front-end server and a back-end server in the server;
acquiring configuration management data, rendering the configuration management data to obtain a configuration management view, and sending the configuration management view to a control end connected with the back-end server;
acquiring event information triggered by the control end on the configuration management view, and generating a configuration updating code according to the event information, wherein the event information represents a new added sequencing function item or screening function item of the control end on the configuration management view;
the configuration updating code is recorded into preset function item data to obtain updating function data, updating page data is obtained according to the updating function data and preset list data, and the updating page data is sent to the front-end server, wherein the list data is service data displayed on a page, and the function item data is function configuration data used for providing a sorting function and/or a screening function for the service data.
2. The method for managing page function items according to claim 1, wherein before obtaining configuration management data and rendering the configuration management data to obtain a configuration management view, the method further comprises:
acquiring list data and function item data;
the acquiring list data and the function item data includes:
receiving display metadata sent by a control end, inputting the display metadata into a preset display query function, and calling the display query function to acquire list data corresponding to the display metadata from a preset list database;
receiving function metadata sent by a control end, inputting the display metadata into a preset function query function, and calling the function query function to acquire function item data corresponding to the function metadata from a preset configuration database.
3. The page function item management method according to claim 2, wherein after the acquiring of the list data and the function item data, the method further comprises:
rendering the list data and the function item data to form page data, and sending the page data to a front-end server; the page data comprises a list view for displaying the list data and a configuration function view for providing sorting function items and/or screening function items for the list data.
4. The page function item management method according to claim 3, wherein the rendering the list data and the function item data to form page data, and the sending the page data to a front-end server, comprises:
constructing a list DOM tree according to the list data, and constructing a configuration DOM tree according to the function item data;
integrating the list DOM tree and the configuration DOM tree to obtain a page DOM tree;
rendering the page DOM tree to obtain page data, and sending the page data to the front-end server.
5. The method for managing page function items according to claim 1, wherein the obtaining configuration management data and rendering to obtain a configuration management view comprises:
acquiring configuration management data from a preset configuration database;
according to the configuration management data, at least one function item element representing a function item in the configuration management data is constructed, and a list DOM tree is constructed according to a logical relation between the function item elements, wherein the logical relation reflects the inclusion relation between the function item and other function items in the configuration management data.
6. The method for managing page function items according to claim 1, wherein the acquiring event information triggered by the control end on the configuration management view and generating a configuration update code according to the event information includes:
enabling an observer mode to monitor whether the control end triggers event information in the configuration management view;
and if so, acquiring the event information, and inputting the event information into a preset configuration template to form the configuration updating code.
7. The method for managing page function items according to claim 1, wherein said obtaining updated page data based on said updated function data and preset list data comprises:
constructing a list DOM tree according to the list data, and constructing an updated DOM tree according to the updating function data;
integrating the list DOM tree and the updated DOM tree to obtain a page DOM tree;
rendering the page DOM tree to obtain page data;
and uploading the page data to a block chain.
8. A page function item management apparatus installed in the server, comprising:
the virtual module is used for virtualizing a front-end server and a back-end server in the server;
the code generation module is used for acquiring configuration management data, rendering the configuration management data to obtain a configuration management view, and sending the configuration management view to a control end connected with the back-end server; acquiring event information triggered by the control end on the configuration management view, and generating a configuration updating code according to the event information, wherein the event information represents a new added sequencing function item or screening function item of the control end on the configuration management view;
and the page updating module is used for recording the configuration updating code into preset functional item data to obtain updating functional data, obtaining updating page data according to the updating functional data and preset list data, and sending the updating page data to the front-end server.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the page function item management method according to any one of claims 1 to 7 are implemented by the processor of the computer device when the computer program is executed by the processor.
10. A computer-readable storage medium on which a computer program is stored, the computer program stored in the computer-readable storage medium, when being executed by a processor, implementing the steps of the page function item management method according to any one of claims 1 to 7.
CN202210037870.0A 2022-01-13 2022-01-13 Page function item management method and device, computer equipment and readable storage medium Pending CN114385952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210037870.0A CN114385952A (en) 2022-01-13 2022-01-13 Page function item management method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210037870.0A CN114385952A (en) 2022-01-13 2022-01-13 Page function item management method and device, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114385952A true CN114385952A (en) 2022-04-22

Family

ID=81200865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210037870.0A Pending CN114385952A (en) 2022-01-13 2022-01-13 Page function item management method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114385952A (en)

Similar Documents

Publication Publication Date Title
JP6463393B2 (en) Tenant data recovery across tenant migration
CN109683953B (en) Method and device for processing configuration file based on visual interface
CN108874558B (en) Message subscription method of distributed transaction, electronic device and readable storage medium
CN111666189B (en) Method and system for declaratively visually configuring Prometheus monitoring alarm
CN108399072B (en) Application page updating method and device
CN103077108A (en) Method and system for warning browser crash
CN111611207A (en) State data processing method and device and computer equipment
CN114844792A (en) Dynamic monitoring method, device, equipment and storage medium based on LUA language
CN111611276A (en) Data query method, device and storage medium
US20160335301A1 (en) Generating context tree data based on a tailored data model
US9104573B1 (en) Providing relevant diagnostic information using ontology rules
CN103838575A (en) Plug-in type page customization implementation method based on EXTJS frame
CN110599112B (en) Network page development and maintenance method and device
CN114385952A (en) Page function item management method and device, computer equipment and readable storage medium
CN113139145B (en) Page generation method and device, electronic equipment and readable storage medium
CN114169306A (en) Method, device and equipment for generating electronic receipt and readable storage medium
CN111610908B (en) Method for generating frame diagram, computer equipment and readable storage medium
CN112528189B (en) Data-based component packaging method and device, computer equipment and storage medium
CN117251159A (en) Rule page generation method, device, computer equipment and storage medium
CN115544134A (en) Data access method, device, computer equipment and storage medium
CN115328604A (en) Cloud platform operation method, device, equipment and medium
CN113360813A (en) Data interaction method, device, equipment and storage medium of nuclear power design and production management platform
CN114201214A (en) File generation method, file generation device, electronic equipment, medium and program product
CN115526731A (en) Task batch processing method and device, computer equipment and storage medium
CN117827624A (en) Function test method, device and storage medium

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