CN117573860A - Page display method and device, electronic equipment and storage medium - Google Patents

Page display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117573860A
CN117573860A CN202311438143.6A CN202311438143A CN117573860A CN 117573860 A CN117573860 A CN 117573860A CN 202311438143 A CN202311438143 A CN 202311438143A CN 117573860 A CN117573860 A CN 117573860A
Authority
CN
China
Prior art keywords
target
information
page
interface information
server
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
CN202311438143.6A
Other languages
Chinese (zh)
Inventor
闫阿宾
肖钢
徐志彬
郭徽
郭娅祥
孙佳林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Securities Co Ltd
Original Assignee
China Securities Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Securities Co Ltd filed Critical China Securities Co Ltd
Priority to CN202311438143.6A priority Critical patent/CN117573860A/en
Publication of CN117573860A publication Critical patent/CN117573860A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/34Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • 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 provides a page display method, a device, electronic equipment and a storage medium, and relates to the technical field of data processing, wherein the page display method comprises the following steps: according to the address information sent by the server, a document corresponding to the server is obtained, the document is analyzed to obtain target interface information of the server, the target interface information is compared with historical interface information of the server to obtain a comparison result, if the comparison result shows that the target interface information changes relative to the historical interface information, the information that the target interface information changes relative to the historical interface information is determined, the target interface information is rendered on a target page control to obtain a target display page corresponding to the server, and the target display page is displayed. Therefore, the development efficiency of the exhibition page aiming at the management platform can be improved by the scheme.

Description

Page display method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a page display method, a device, an electronic device, and a storage medium.
Background
In the daily production and operation of an enterprise, many tool systems are used, such as: automated operation and maintenance systems, monitoring systems, etc., these tool systems may also be referred to as servers, and any one of the servers may provide various services.
The prior art generally accesses a server through a management platform. For each service end, a corresponding display page needs to be manually developed on the management platform, and each service end is correspondingly provided with a fixed display page for users to perform function configuration or information viewing for the service end.
However, when the service of the service end is changed, the corresponding display page needs to be manually modified, and the process can be regarded as the development of the display page aiming at the management platform, so that the development efficiency of the display page aiming at the management platform is lower.
Disclosure of Invention
The embodiment of the invention aims to provide a page display method, a device, electronic equipment and a storage medium, so as to improve development efficiency of a display industry page aiming at a management platform. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a page display method, which is applied to a management platform, where the management platform is used for managing a server, and the method includes:
Acquiring a document corresponding to the server according to the address information sent by the server; the address information characterizes a downloading address of the document, the document is packaged with target interface information of the server, and the target interface information characterizes appointed information of a service provided by the server;
analyzing the document to obtain target interface information of the server;
comparing the target interface information with the historical interface information of the server to obtain a comparison result; the history interface information characterizes interface information which is saved by the management platform and is obtained by analysis last time;
if the comparison result represents that the target interface information changes relative to the historical interface information, determining information of the target interface information changing relative to the historical interface information;
rendering the target interface information on a target page control to obtain a target display page corresponding to the server; the target page control is a page template for displaying the target interface information, and when the target interface information is rendered on the target page control, the changed information is displayed in the target display page in a distinguishing mode from other information in the target interface information;
And displaying the target display page.
Optionally, the document is also encapsulated with a target page type; the target page type is used for representing the page type required to be utilized by the target interface information during display, and the page type comprises a configuration type or a display type;
before the target interface information is rendered on the target page control to obtain the target display page corresponding to the server, the method further comprises:
analyzing the document to obtain the target page type of the server;
and determining the page control corresponding to the target page type to obtain the target page control.
Optionally, the determining the page control corresponding to the target page type to obtain the target page control includes:
if the target page type is a display type, determining a page template related to a list display page to obtain a target page control; the list display page is used for displaying parameter information which does not need to be configured;
if the target page type is a configuration type, determining a page template related to an interface configuration page to obtain the target page control; the interface configuration page is used for displaying parameter information required to be configured.
Optionally, after the rendering the target interface information on the target page control to obtain the target display page corresponding to the server, and before the displaying the target display page, the method further includes:
detecting a target modification instruction sent by the server side, and displaying prompt information; the prompt information is used for indicating that the specified parameter information in the target display page is manually modified;
modifying the appointed parameter information in the target display page in response to the modification content based on the prompt information, and marking the modified appointed parameter information;
the displaying the target display page comprises the following steps:
and displaying the modified target display page.
Optionally, the target interface information includes an interface function name, interface description information and an interface parameter entry list; the interface description information characterizes information describing interface functions, and the interface entry list characterizes parameter information displayed on the page control.
Optionally, the method further comprises:
and if the comparison result indicates that the target interface information is unchanged relative to the historical interface information, rendering the target interface information on a target page control to obtain a target display page corresponding to the server, and displaying the target display page.
Optionally, the parsing the document to obtain the target interface information of the server includes:
analyzing the document to obtain the full interface information of the server;
and screening the full interface information of the server to obtain the target interface information of the server.
In a second aspect, an embodiment of the present invention provides a page display device, which is applied to a management platform, where the management platform is used for managing a server, and the device includes:
the acquisition module is used for acquiring a document corresponding to the server according to the address information sent by the server; the address information characterizes a downloading address of the document, the document is packaged with target interface information of the server, and the target interface information characterizes appointed information of a service provided by the server;
the first analysis module is used for analyzing the document to obtain target interface information of the server;
the comparison module is used for comparing the target interface information with the historical interface information of the server to obtain a comparison result; the history interface information characterizes interface information which is saved by the management platform and is obtained by analysis last time;
The first determining module is used for determining information of the target interface information which changes relative to the historical interface information if the comparison result represents that the target interface information changes relative to the historical interface information;
the first rendering module is used for rendering the target interface information on a target page control to obtain a target display page corresponding to the server; the target page control is a page template for displaying the target interface information, and when the target interface information is rendered on the target page control, the changed information is displayed in the target display page in a distinguishing mode from other information in the target interface information;
and the display module is used for displaying the target display page.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the page display methods when executing the programs stored in the memory.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having a computer program stored therein, which when executed by a processor implements any of the above page presentation methods.
The embodiment of the invention has the beneficial effects that:
according to the page display method provided by the embodiment of the invention, the document corresponding to the server side can be acquired according to the address information sent by the server side, the document is analyzed to obtain the target interface information of the server side, the target interface information is compared with the historical interface information of the server side to obtain the comparison result, if the comparison result shows that the target interface information changes relative to the historical interface information, the information of the target interface information changing relative to the historical interface information is determined, the target interface information is rendered on a target page control to obtain a target display page corresponding to the server side, the target display page is displayed, and when the target interface information is rendered on the target page control, the changed information is distinguished from other information in the target interface information and displayed on the target display page. Therefore, the embodiment of the invention can render the target interface information obtained by analysis from the server on the target page control, and the target interface information characterizes the interface information required to be displayed by the current server, so that the target display page is automatically generated, and the information for displaying the change of the target interface information and the history interface information can be distinguished on the target display page.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the invention, and other embodiments may be obtained according to these drawings to those skilled in the art.
Fig. 1 is a schematic flow chart of a page display method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another page display method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another page display method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a page display device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
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. Based on the embodiments of the present invention, all other embodiments obtained by the person skilled in the art based on the present invention are included in the scope of protection of the present invention.
The following first describes a page display method provided by the embodiment of the present invention.
The page display method provided by the embodiment of the invention can be applied to a management platform, wherein the management platform is used for managing a server, and the server can be an operation and maintenance system in an enterprise, such as: an automated operation and maintenance system, a monitoring operation and maintenance system, etc., and correspondingly, the management platform can be operated on a terminal device or a server. It should be emphasized that the management platform may correspond to a presentation page or a presentation window, which is used to present the interface information sent by the server.
Specifically, when the management platform is running on the terminal device, the management platform may be a client running on the terminal device and used for page presentation. For example, when the management platform is running on a server, the management platform may be a computer program running in the server, which may be used for page presentation.
The page display method is applied to a management platform, wherein the management platform is used for managing a server side, and the method comprises the following steps:
acquiring a document corresponding to the server according to the address information sent by the server; the address information characterizes a downloading address of the document, the document is packaged with target interface information of the server, and the target interface information characterizes appointed information of a service provided by the server;
Analyzing the document to obtain target interface information of the server;
comparing the target interface information with the historical interface information of the server to obtain a comparison result; the history interface information characterizes interface information which is saved by the management platform and is obtained by analysis last time;
if the comparison result represents that the target interface information changes relative to the historical interface information, determining information of the target interface information changing relative to the historical interface information;
rendering the target interface information on a target page control to obtain a target display page corresponding to the server; the target page control is a page template for displaying the target interface information, and when the target interface information is rendered on the target page control, the changed information is displayed in the target display page in a distinguishing mode from other information in the target interface information;
and displaying the target display page.
Therefore, the embodiment of the invention can render the target interface information obtained by analysis from the server on the target page control, and the target interface information characterizes the interface information required to be displayed by the current server, so that the target display page is automatically generated, and the information for displaying the change of the target interface information and the history interface information can be distinguished on the target display page.
The following describes a page display method provided by the embodiment of the invention with reference to the accompanying drawings.
As shown in fig. 1, the method for displaying a page provided by the embodiment of the present invention is applied to a management platform, where the management platform is used for managing a server, and the method may include the following steps:
s101, acquiring a document corresponding to the server according to address information sent by the server;
the address information characterizes a downloading address of the document, the document is packaged with target interface information of the server, and the target interface information characterizes appointed information of a service provided by the server;
it can be understood that the address information is sent by an interface document management tool of the server, the interface document management tool is used for managing the document, and the interface document management tool can encapsulate the target interface information of the server in the document and can store the document in a designated position; the designated location may be a storage area of the server, or may be a storage area of a cloud server, where the cloud server may store data of the server. In addition, the interface document management tool may be a swagger, which is software for automatically generating and managing documents online, and the swagger may supplement the target interface information by adding comments to the interface information of the server, where the supplement information may be interface description information, interface parameter description information, and the like. Of course, other management tools are possible, and embodiments of the present invention are not limited in this regard. It should be emphasized that the target interface information is the information that the management platform needs to perform page display for the server; for clarity of layout, specific kinds of the target interface information will be described in the subsequent steps. Of course, information that needs to be displayed may also be packaged in the document, and the information will be described in detail in other embodiments, so that details are not described here.
It can be understood that the management platform can directly obtain the document corresponding to the service end from the designated position based on the address information, the document encapsulates the designated information of the service provided by the service end, and the designated information can be displayed on the management platform; then, since the service ends are different, the specified information of the service provided by the service ends is also different, for example: when the server is an automatic operation and maintenance system, the specified information can be the name of an interface, the name of an automatic function realized, configuration information and the like; when the server is a monitoring operation and maintenance system, the specified information may be the name, the IP address, the configuration information, etc. of each monitoring device.
S102, analyzing the document to obtain target interface information of the server;
it can be understood that the management platform has a function of analyzing the document, and can directly analyze the target interface information of the server encapsulated by the document. Illustratively, the management platform parses the document a to obtain information about the services provided by the monitoring system. And, the management platform has various analysis methods for the document, and the embodiment of the invention is not particularly limited to this.
In one implementation, the target interface information includes an interface function name, interface description information, and an interface entry list; the interface description information characterizes information describing interface functions, and the interface entry list characterizes parameter information displayed on the page control.
It may be understood that the interface function name may be name1, the interface description information may be description1, the interface entry list may be parameters, the interface description information may describe the function of the interface, and the interface description information of the monitoring operation and maintenance system may be used for performing the monitoring specification scene.
The interface entry list may include specific parameter information displayed on the page control, and exemplary specific parameter information may include a field name2, a field description information description2, whether the parameter information is necessary to be filled, a parameter type, whether the parameter information is allowed to be empty value, a display type showType, a data source dataSource, a default value, a parameter example sample, an interface output parameter response, a result display mode dataShowFormat, and format detail information format details, and the like; the parameter type may be a number, a text, a character string, or the like, the presentation type may be a text input box type input/radio button type radio/check box type checkbox/drop-down list type selected/text field type textarea, or the like, the data source may also be understood as a digital dictionary, and the result presentation mode dataShowFormat may include a character string/table/bar graph barChart, or the like.
It will be appreciated that, for the subsequent step of rendering the target interface information to the target page control, the respective parameter information may be used, and this portion of the content will be described in the subsequent step.
In one implementation manner, the parsing the document to obtain the target interface information of the server includes steps A1-A2:
step A1, analyzing the document to obtain the full interface information of the server;
it can be understood that the document encapsulates the full-volume interface information about the server, that is, the full-volume information about the port of the server, where the full-volume interface information includes the target interface information, that is, the interface information that can be displayed, and some interface information that does not need to be displayed.
And step A2, screening the full interface information of the server to obtain the target interface information of the server.
It should be emphasized that the total interface information of the server may be screened according to the tags, so that the target interface information of the server may be obtained, the tags may be marked in the total interface in advance by the server, and the tags are used to mark the target interface information, so that the management platform may screen the target interface information from the total interface information by using the tags after analyzing the total interface information.
Therefore, the management platform can analyze the document to obtain the full interface information of the server, and screen the full interface information to obtain the target interface information of the server, so that the interface information for displaying can be obtained, and the target interface information can be directly displayed on the page in the follow-up process, so that the development efficiency of the display page aiming at the management platform can be improved.
S103, comparing the target interface information with the historical interface information of the server to obtain a comparison result;
the history interface information characterizes interface information which is saved by the management platform and is obtained by analysis last time;
it can be understood that the management platform stores the interface information after each analysis to obtain the interface information, so that the stored interface information obtained by the previous analysis is used as the historical interface information after the next analysis to obtain the interface information. It can be understood that, when comparing the target interface information with the historical interface information of the server, two comparison results can be obtained, that is, the comparison result represents that the target interface information is changed with the historical interface information of the server, and the comparison result represents that the target interface information is unchanged with the historical interface information of the server, it is emphasized that the embodiment aims at the situation that the target interface information is changed relative to the historical interface information, and the situation that the target interface information is unchanged will be simply described in other embodiments and will not be described herein.
S104, if the comparison result represents that the target interface information changes relative to the historical interface information, determining the information of the target interface information changing relative to the historical interface information;
it can be understood that if the comparison result indicates that the target interface information changes relative to the historical interface information, the characterization server changes for the provided service, which may be specifically represented by deletion of the function by the server, addition of the function by the server, modification of the function by the server, and the like. For example, the monitoring operation and maintenance system can add a face recognition function, and then the target interface information of the monitoring operation and maintenance system can add parameter information for the face recognition function.
It can be understood that the information that the target interface information changes relative to the history interface information is determined, that is, the service that the server side changes is determined. For example, the target interface information 1 includes information a, information b and information c, and the history interface information 1 includes information a and information b, so that it can be determined that the information of the target interface information 1 changing relative to the history interface information 1 is information c.
S105, rendering the target interface information on a target page control to obtain a target display page corresponding to the server;
the target page control is a page template for displaying the target interface information, and when the target interface information is rendered on the target page control, the changed information is displayed in the target display page in a distinguishing mode from other information in the target interface information;
the rendering of the target interface information on the target page control may be considered as adding the target interface information to the target page control, it may be understood that the target page control may be essentially considered as a page template, the page template defaults to introduce Element component library resources, the management platform may add the target interface information to the target page control entirely, the target page control has two types, and the condition corresponding to each type of template will be described in other embodiments, which will not be described herein.
It should be emphasized that, when the target interface information is rendered on the target page control, the information about the change and other information in the target interface information can be distinguished and displayed, and the specific implementation of distinguishing and displaying can be to add a mark for the information about the change, for example: the question mark icon can be added beside the changed information, and the colored icon and the like can also be added to the changed information; the method and the device can also display the changed information at the top of the target display page for obvious display, and can display recent detailed changes when the cursor is suspended in the changed information, and certainly, the mode of distinguishing display is not unique, and the embodiment of the invention does not particularly limit distinguishing display.
It can be understood that when the target interface information is rendered on the target page control, each parameter information in the target interface information can be considered, an html control corresponding to the showType can be introduced on the page control according to the showType of the parameter information, and a data source and a default value are supplemented on the html control according to the data source dataSource and the default value; the html control corresponding to the show type showType may be a drop-down control, a text input box control, a radio button control, or the like. For example, when rendering the field name2 on the page control, the showType of the field name2 may be considered as a text input box, at this time, the text input box control may be introduced on the page control, and the data related to the field name2 may be filled into the text input box control according to the data source dataSource.
It should be emphasized that, the specific implementation manner of rendering the target interface information to the target page control is not limited to this embodiment of the present invention, and any implementation manner may be applied to this solution.
S106, displaying the target display page.
It can be appreciated that the obtained target display page can be directly displayed on the display page of the management platform. The obtained target display page is displayed on a display screen of the Personal Computer (PC) device corresponding to the management platform.
In addition, after the target display page is displayed, a user can configure the function for the target display page and can view the target display page. It can be understood that after the user performs the configuration for the function for the target display page, the information configured based on the target display page can be sent back to the server through the management platform, so that the server can perform configuration processing according to the received information, and the configured result is fed back to the management platform, the process of displaying and configuring the target display page can be regarded as entering the parameters, the server feeds back the configured result to the management platform, the process from entering the parameters to exiting the parameters can be regarded as a complete process of providing the services by the server. The management platform displays the target display page corresponding to the automatic operation and maintenance system on the display screen, a user can configure part of content in the target display page on the management platform, and the information obtained through configuration is sent back to the automatic operation and maintenance system through the management platform, so that the automatic operation and maintenance system provides automatic service according to the configured information after receiving the configured information, and feeds back an executed result to the management platform, and the user can view the executed result on the management platform.
And after the user checks the target display page, the user can also operate, so that other information can be queried, and the user can check the alarm information about the interface information on the display screen, and the user also wants to check the historical alarm information, so that the user can adjust parameters of the characterization date on the alarm information, query the historical alarm information to the server and check the historical alarm information on the display screen.
Therefore, the embodiment of the invention can render the target interface information obtained by analysis from the server on the target page control, and the target interface information characterizes the interface information required to be displayed by the current server, so that the target display page is automatically generated, and the information for displaying the change of the target interface information and the history interface information can be distinguished on the target display page.
Optionally, in one implementation, the method further includes step B1:
And B1, if the comparison result shows that the target interface information is unchanged relative to the historical interface information, rendering the target interface information on a target page control to obtain a target display page corresponding to the server, and displaying the target display page.
It can be understood that the target interface information is unchanged relative to the historical interface information, so that the target interface information obtained by the current analysis of the characterization management platform and the interface information obtained by the previous analysis stored by the management platform are unchanged, and the target interface information can be directly rendered on the target page control without determining the information of the target interface information changing relative to the historical interface information, so that the target display page corresponding to the obtained server side can be displayed.
Therefore, when the comparison result indicates that the target interface information is unchanged relative to the historical interface information, the target interface information can be directly rendered on the target page control, so that a target display page is obtained.
Optionally, in one implementation manner, after the rendering the target interface information on the target page control to obtain the target display page corresponding to the server, and before the displaying the target display page, the method further includes steps C1-C2:
step C1, detecting a target modification instruction sent by the server side, and displaying prompt information; the prompt information is used for indicating that the specified parameter information in the target display page is manually modified;
step C2, modifying the appointed parameter information in the target display page in response to the modification content based on the prompt information, and marking the modified appointed parameter information;
correspondingly, the displaying the target display page includes:
and displaying the modified target display page.
It may be understood that the target modification instruction sent by the server side is an instruction that can be manually modified by a management platform administrator, where the management platform administrator is an administrator that is specially configured to maintain and modify the management platform, and the case where the server side sends the target modification instruction may be that the management platform modifies the provided service after obtaining the target display page corresponding to the server side, and at this time, the target modification instruction may be sent to the management platform, so that the management platform administrator may manually modify the specified parameter information in the target display page, or may be that the specified parameter information in the target display page is abnormal or wrong, and the management platform administrator needs to manually modify the specified parameter information, which is not limited to the foregoing case, and the embodiment of the present invention is not limited to the foregoing case specifically. And after detecting the target modification instruction sent by the server, the management platform can display the prompt information so as to remind the management platform manager to manually modify the specified parameter information, and of course, the management platform can display the prompt information and also can send out an alarm to prompt the management platform manager to send the prompt information, which is feasible.
It can be understood that after the administrator of the management platform modifies the target display page on the management platform according to the modification content of the prompt information, the management platform responds to the modification content based on the prompt information to modify the specified parameter information in the target display page and marks the modified specified parameter information, and it can be understood that the purpose of marking the modified specified parameter information is as follows: the specific process of marking the modified specified parameter information is described in the above embodiment, and therefore will not be described in detail herein.
Correspondingly, the modified target display page can be displayed, and the manually modified designated parameter information is also provided with marking processing and can be highlighted.
Therefore, according to the embodiment of the invention, the prompt information can be displayed aiming at the condition that manual modification is needed, after the management platform administrator manually modifies the appointed parameter information in the target display page, the appointed parameter information in the target display page can be modified, the modified appointed parameter information is marked, and the modified target display page is displayed.
Optionally, another page display method is further provided in the embodiment of the present invention, as shown in fig. 2, which may include:
s201, acquiring a document corresponding to the server according to the address information sent by the server;
s202, analyzing the document to obtain target interface information of the server;
s203, comparing the target interface information with the historical interface information of the server to obtain a comparison result;
s204, if the comparison result represents that the target interface information changes relative to the historical interface information, determining the information of the target interface information changing relative to the historical interface information;
it is understood that steps S201-S204, S207-S208 are identical to steps S101-S104, S105-S106, and will not be described herein.
S205, analyzing the document to obtain the target page type of the server;
correspondingly, the document is also encapsulated with a target page type; the target page type is used for representing the page type required to be utilized by the target interface information during display, and the page type comprises a configuration type or a display type;
it can be understood that the document may be packaged with a target page type and target interface information, where the target interface information is information required to be displayed by the management platform, and the target page type is information that is not required to be displayed, and the target page type may include a configuration type or a display type. The management platform analyzes the document corresponding to the automatic operation and maintenance system A, and can obtain that the target page type of the server is the configuration type.
The target page type can be characterized as an interfaceShowType after being parsed from the document.
S206, determining a page control corresponding to the target page type to obtain a target page control;
it can be understood that each target page type corresponds to a target page control, that is, the configuration type corresponds to a page control, the display type corresponds to a page control, the page control corresponding to the configuration type can be configured, the page control corresponding to the display type can be displayed, and the page control corresponding to the target page type can be regarded as the target page control.
Optionally, in an implementation manner, the determining the page control corresponding to the target page type, to obtain the target page control may include one of step D1 or step D2:
step D1, if the target page type is a display type, determining a page template about a list display page to obtain a target page control; the list display page is used for displaying parameter information which does not need to be configured;
it can be understood that if the target page type is a display type, the page template related to the list display page can be determined as a target page control, and the target page control can be regarded as a page template essentially, then the page control corresponding to the display type is a page template related to the list display page, and the page template related to the list display page is a page template only used for displaying parameter information, and parameter information cannot be configured. It can be understood that the page template related to the list display page can be used for displaying alarm information, function information without configuration, and the like, and the information displayed by the page template is not particularly limited in the embodiment of the invention.
In addition, when the target page type interfaceShowType is page, the target page type can be considered as display type, at this time, a page template of a list display page can be determined and used as a target page control, when the alarm information is displayed, a user can enter the page, and the management platform automatically displays the alarm information of the current day.
It is emphasized that when the target page type is a display type, there is no need to solidify page elements in the page template for the list presentation page, which may also be considered as components in the page.
Step D2, if the target page type is a configuration type, determining a page template of an interface configuration page to obtain the target page control; the interface configuration page is used for displaying parameter information required to be configured.
It will be appreciated that if the target page type is a configuration type, the page template related to the interface configuration page may be determined as a target page control, and the target page control may be regarded as a page template essentially, then the page control corresponding to the configuration type is a page template related to the interface configuration page, and the page template related to the interface configuration page is a page template for displaying the required configuration parameter information. It may be understood that, the page template related to the interface configuration page may be used to configure functional information that may be configured, description information that may be configured, and so on, and the information presented by the page template is not specifically limited in the embodiment of the present invention.
In addition, when the target page type interfaceShowType is task, the target page type can be considered as configuration type, and at this time, a page template about an interface configuration page can be determined and used as a target page control.
It is emphasized that when the target page type is a configuration type, some page elements may be solidified in the page template for the interface configuration page, for example: task name, task responsible person, task goal, execution mode, etc.
Therefore, the embodiment of the invention can determine the corresponding page template based on the type of the target page as the target page control, so that the target interface information can be rendered on the target page control to obtain the target display page, the automatic generation of the target display page can be realized, and the development efficiency of the display page aiming at the management platform can be improved. And the embodiment of the invention can determine the corresponding page template according to different target page types, thereby obtaining the page template applicable to various conditions and improving the display effect of the target page control.
S207, rendering the target interface information on a target page control to obtain a target display page corresponding to the server;
S208, displaying the target display page.
It can be seen that, according to the embodiment of the invention, based on the type of the target page, a corresponding page template can be determined and used as a target page control, and the target interface information obtained by analyzing the server side is rendered on the target page control, wherein the target interface information represents the interface information required to be displayed by the current server side, so that a target display page is automatically generated, and the information of the change of the target interface information and the history interface information can be displayed on the target display page.
And the embodiment of the invention can determine the corresponding page template according to different target page types, thereby obtaining the page template applicable to various conditions and improving the display effect of the target page control.
Optionally, from the perspective of interaction between the server and the management platform, the embodiment of the invention further provides another page display method, as shown in fig. 3, which may include:
S301, adding notes into interface information of a server by using an interface document management tool, so as to complement the interface information;
it will be appreciated that S301 and S302 are steps for the server, and the process of sending a document from the server to the management platform may be referred to as service awareness. The server can add notes to the interfaces of the server by using an interface document management tool, so that the completion of the interface information is realized, and the completed information can be interface description information, interface parameter description information and the like.
S302, the server transmits target interface information to the management platform through a document;
it can be understood that the server side can directly transmit the document to the management platform, or can transmit the address information to the management platform, so that the management platform obtains the target interface information based on the address information, wherein the address information characterizes the downloading address of the document.
S303, the management platform collects the document sent by the server;
it will be appreciated that S303 and S304 are steps for the management platform, and the process of returning data from the management platform to the server may be referred to as service invocation. The management platform can directly collect the documents sent by the server side, and can collect the documents sent by the server side according to the acquired address information.
S304, the management platform analyzes the document, acquires target interface information according to the completed information in the annotation field, compares the target interface information with the historical interface information, determines changed information if the target interface information changes relative to the historical interface information, renders the target interface information on a target page control to acquire a target display page corresponding to the server, displays the target display page, and calls service after finishing input for a user;
it can be understood that after the management platform parses the document, the management platform may obtain the complement information from the annotation field, and complement the interface information obtained by other parsing to obtain the target interface information. It will be appreciated that the rest of the embodiments have been described above, and will not be described in detail herein.
Therefore, the embodiment of the invention can render the target interface information obtained by analysis from the server on the target page control, and the target interface information characterizes the interface information required to be displayed by the current server, so that the target display page is automatically generated, and the information of the change of the target interface information and the history interface information can be displayed on the target display page.
Based on the above method embodiment, as shown in fig. 4, an embodiment of the present invention provides a page display device, which is applied to a management platform, where the management platform is used for managing a server, and the device includes:
an obtaining module 410, configured to obtain a document corresponding to the server according to the address information sent by the server; the address information characterizes a downloading address of the document, the document is packaged with target interface information of the server, and the target interface information characterizes appointed information of a service provided by the server;
the first parsing module 420 is configured to parse the document to obtain target interface information of the server;
the comparison module 430 is configured to compare the target interface information with the historical interface information of the server to obtain a comparison result; the history interface information characterizes interface information which is saved by the management platform and is obtained by analysis last time;
a first determining module 440, configured to determine information that the target interface information changes relative to the historical interface information if the comparison result indicates that the target interface information changes relative to the historical interface information;
The first rendering module 450 is configured to render the target interface information on a target page control, so as to obtain a target display page corresponding to the server; the target page control is a page template for displaying the target interface information, and when the target interface information is rendered on the target page control, the changed information is displayed in the target display page in a distinguishing mode from other information in the target interface information;
and a display module 460, configured to display the target display page.
Optionally, the document is also encapsulated with a target page type; the target page type is used for representing the page type required to be utilized by the target interface information during display, and the page type comprises a configuration type or a display type;
the apparatus further comprises:
the second analysis module is used for analyzing the document before rendering the target interface information on a target page control to obtain a target display page corresponding to the server to obtain a target page type of the server;
and the second determining module is used for determining the page control corresponding to the target page type to obtain the target page control.
Optionally, the second determining module includes:
the first determining submodule is used for determining a page template about a list display page to obtain a target page control if the target page type is a display type; the list display page is used for displaying parameter information which does not need to be configured;
the second determining submodule is used for determining a page template of an interface configuration page if the target page type is a configuration type, and obtaining the target page control; the interface configuration page is used for displaying parameter information required to be configured.
Optionally, the apparatus further comprises:
the detection module is used for detecting a target modification instruction sent by the server and displaying prompt information after the target interface information is rendered on a target page control to obtain a target display page corresponding to the server and before the target display page is displayed; the prompt information is used for indicating that the specified parameter information in the target display page is manually modified;
the modification module is used for responding to the modification content based on the prompt information, modifying the appointed parameter information in the target display page and marking the modified appointed parameter information;
The display module comprises:
and the display sub-module is used for displaying the modified target display page.
Optionally, the target interface information includes an interface function name, interface description information and an interface parameter entry list; the interface description information characterizes information describing interface functions, and the interface entry list characterizes parameter information displayed on the page control.
Optionally, the apparatus further comprises:
and the second rendering module is used for rendering the target interface information on a target page control if the comparison result indicates that the target interface information is unchanged relative to the historical interface information, obtaining a target display page corresponding to the server side, and displaying the target display page.
Optionally, the first parsing module includes:
the analysis sub-module is used for analyzing the document to obtain the full interface information of the server;
and the screening sub-module is used for screening the full interface information of the server to obtain the target interface information of the server.
The embodiment of the invention also provides an electronic device, as shown in fig. 5, which comprises a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 complete communication with each other through the communication bus 504,
A memory 503 for storing a computer program;
the processor 501 is configured to implement the page display method when executing the program stored in the memory 503.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, in which a computer program is stored, which when executed by a processor implements any of the above-mentioned page presentation methods.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the page display methods of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (10)

1. The page display method is characterized by being applied to a management platform, wherein the management platform is used for managing a server side, and the method comprises the following steps:
acquiring a document corresponding to the server according to the address information sent by the server; the address information characterizes a downloading address of the document, the document is packaged with target interface information of the server, and the target interface information characterizes appointed information of a service provided by the server;
analyzing the document to obtain target interface information of the server;
comparing the target interface information with the historical interface information of the server to obtain a comparison result; the history interface information characterizes interface information which is saved by the management platform and is obtained by analysis last time;
if the comparison result represents that the target interface information changes relative to the historical interface information, determining information of the target interface information changing relative to the historical interface information;
Rendering the target interface information on a target page control to obtain a target display page corresponding to the server; the target page control is a page template for displaying the target interface information, and when the target interface information is rendered on the target page control, the changed information is displayed in the target display page in a distinguishing mode from other information in the target interface information;
and displaying the target display page.
2. The method of claim 1, wherein the document further encapsulates a target page type; the target page type is used for representing the page type required to be utilized by the target interface information during display, and the page type comprises a configuration type or a display type;
before the target interface information is rendered on the target page control to obtain the target display page corresponding to the server, the method further comprises:
analyzing the document to obtain the target page type of the server;
and determining the page control corresponding to the target page type to obtain the target page control.
3. The method of claim 2, wherein the determining the page control corresponding to the target page type, to obtain the target page control, comprises:
If the target page type is a display type, determining a page template related to a list display page to obtain a target page control; the list display page is used for displaying parameter information which does not need to be configured;
if the target page type is a configuration type, determining a page template related to an interface configuration page to obtain the target page control; the interface configuration page is used for displaying parameter information required to be configured.
4. The method of claim 1, wherein the rendering the target interface information on a target page control, after obtaining a target display page corresponding to the server, and before displaying the target display page, further comprises:
detecting a target modification instruction sent by the server side, and displaying prompt information; the prompt information is used for indicating that the specified parameter information in the target display page is manually modified;
modifying the appointed parameter information in the target display page in response to the modification content based on the prompt information, and marking the modified appointed parameter information;
The displaying the target display page comprises the following steps:
and displaying the modified target display page.
5. The method of any of claims 1-4, wherein the target interface information includes an interface function name, interface description information, and an interface entry list; the interface description information characterizes information describing interface functions, and the interface entry list characterizes parameter information displayed on the page control.
6. The method according to claim 1 or 2, characterized in that the method further comprises:
and if the comparison result indicates that the target interface information is unchanged relative to the historical interface information, rendering the target interface information on a target page control to obtain a target display page corresponding to the server, and displaying the target display page.
7. The method according to claim 1 or 2, wherein the parsing the document to obtain the target interface information of the server includes:
analyzing the document to obtain the full interface information of the server;
and screening the full interface information of the server to obtain the target interface information of the server.
8. The utility model provides a page display device which characterized in that is applied to management platform, management platform is used for managing the server, and the device includes:
the acquisition module is used for acquiring a document corresponding to the server according to the address information sent by the server; the address information characterizes a downloading address of the document, the document is packaged with target interface information of the server, and the target interface information characterizes appointed information of a service provided by the server;
the first analysis module is used for analyzing the document to obtain target interface information of the server;
the comparison module is used for comparing the target interface information with the historical interface information of the server to obtain a comparison result; the history interface information characterizes interface information which is saved by the management platform and is obtained by analysis last time;
the first determining module is used for determining information of the target interface information which changes relative to the historical interface information if the comparison result represents that the target interface information changes relative to the historical interface information;
the first rendering module is used for rendering the target interface information on a target page control to obtain a target display page corresponding to the server; the target page control is a page template for displaying the target interface information, and when the target interface information is rendered on the target page control, the changed information is displayed in the target display page in a distinguishing mode from other information in the target interface information;
And the display module is used for displaying the target display page.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method of any of claims 1-7 when executing a program stored on a memory.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-7.
CN202311438143.6A 2023-11-01 2023-11-01 Page display method and device, electronic equipment and storage medium Pending CN117573860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311438143.6A CN117573860A (en) 2023-11-01 2023-11-01 Page display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311438143.6A CN117573860A (en) 2023-11-01 2023-11-01 Page display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117573860A true CN117573860A (en) 2024-02-20

Family

ID=89890768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311438143.6A Pending CN117573860A (en) 2023-11-01 2023-11-01 Page display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117573860A (en)

Similar Documents

Publication Publication Date Title
TWI670672B (en) Automated constructing method of cloud manufacturing service, computer program product, and cloud manufacturing system
CN108667807B (en) Protocol self-adaption method and system based on monitoring cloud platform and gateway
US10419546B2 (en) Migration assessment for cloud computing platforms
CN107977351B (en) Electronic report generation method and device, computer equipment and storage medium
CN111930635B (en) Swagger-based rapid automatic testing method and system
US8195931B1 (en) Application change control
US20220309076A1 (en) Computer Network Controlled Data Orchestration System And Method For Data Aggregation, Normalization, For Presentation, Analysis And Action/Decision Making
CN110333863B (en) Method and device for generating and displaying applet page
CN111061464B (en) Analysis code generation method, device, equipment and storage medium
CN105094921A (en) Method and device for calling peripheral in cross-browser mode
US20200293592A1 (en) Methods and systems for browser extension used to generate relative xpath, absolute xpath and/or css selectors
US10922207B2 (en) Method, apparatus, and computer-readable medium for maintaining visual consistency
CN111859231A (en) Webpage monitoring method, equipment, device and computer storage medium
US9104573B1 (en) Providing relevant diagnostic information using ontology rules
CN113076094A (en) Front end component construction method and device and electronic equipment
CN117573860A (en) Page display method and device, electronic equipment and storage medium
CN110837500A (en) Data screening method and device based on local embedded window and computer equipment
CN113515715B (en) Buried point event code generation method, buried point event code processing method and related equipment
CN114172978A (en) Multi-protocol equipment access method and related device
CN109101515B (en) Rule configuration method, server and computer-readable storage medium
CN110351162A (en) Page availability monitor method, apparatus, computer equipment and storage medium
US20160179480A1 (en) Computer application development assistance
CN116415089B (en) Industrial equipment visual management method, computer equipment and storage medium
CN112559278B (en) Method and device for acquiring operation data
CN117270956B (en) Configuration method of hardware equipment, client, hardware equipment network management system and 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