Visual interactive panoramic machine room management method and system
Through Pano2VR and Vue.js technology, the three-dimensional spatial information of the computer room is integrated and the panoramic image is displayed on the browser front-end page, which solves the problem of lack of visualization and interactivity in the existing computer room management system and realizes the intuitive display and efficient management of computer room information.
Patent Information
- Application Number
- CN202410891208.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-10
AI Technical Summary
The existing computer room management system is displayed in table form, lacking visualization and interactivity. It is difficult to intuitively display the computer room layout and equipment information, which affects operation and maintenance efficiency.
Pano2VR panoramic production software is used to integrate the three-dimensional spatial information of the computer room, display panoramic images through the browser front-end page, and set mouse click events for polygonal hot spots. Combined with the interactive structure developed by Vue.js, event monitoring and business logic operations are implemented to enhance interactivity and Information display.
It achieves a panoramic display of the computer room, improves the operation and maintenance personnel's intuitive understanding and grasp of the computer room status, and significantly improves the operation and maintenance efficiency and management efficiency.
Smart Images

Figure CN118626199A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of front-end development, and in particular to a visual interactive panoramic computer room management method and system. Background Art
[0002] With the rapid development of the Internet, especially the application of computer software technology, the demand for computer room construction and computer room management systems is also growing. In terms of computer room management, more operation and maintenance needs need to be considered, such as monitoring of computer room equipment, troubleshooting and backup, etc. On the other hand, the development of the Internet has also improved the availability and reliability of computer room management systems, requiring more sophisticated management methods to ensure data security, stability and efficiency.
[0003] The current computer room management system is basically in tabular form. Information on the computer room, cabinets, and servers is displayed in tabular form, which separates the direct feeling between the user and the computer room. The user is faced with a pile of tabular data and has no feeling about the layout of the computer room, the size of the cabinets, or the appearance of the servers. For those users who have never been to the computer room, there is no intuitive experience.
[0004] How to achieve visualization and interactivity of the computer room display is a technical problem that needs to be solved. Summary of the invention
[0005] The technical task of the present invention is to address the above shortcomings and provide a visual interactive panoramic computer room management method and system to solve the problem of how to achieve visualization and interactivity of computer room display.
[0006] In a first aspect, the present invention provides a visual interactive panoramic computer room management method, comprising the following steps:
[0007] Build Pano2VR panoramic project: Use the panoramic production software Pano2VR to integrate the three-dimensional spatial information of the computer room into a panoramic image, take the cabinets and hosts in the computer room as objects, configure polygonal hotspots for each object, and set position marks for each hotspot;
[0008] Build a web application: embed the Pano2VR panoramic project into the front-end page of the browser, display the panoramic image through the front-end page of the browser, and set the mouse click event for the polygon hotspot. When the user clicks the preset polygon hotspot, the global agent based on Pano2VR captures the user's mouse click behavior in the panoramic image, parses the hotspot information associated with the click position, stores the hotspot information in the windows object of the browser, and generates and publishes the mouse click event;
[0009] Build event listening: configure a listener on the front page of the browser and bind the listener to the windows object for event. When the user clicks the preset hotspot with the mouse, the listener listens to the mouse click event. Based on the mouse click event, the hotspot information is read through the front page of the browser and related business logic operations are performed.
[0010] As a preferred method, building a Pano2VR panoramic project includes the following steps:
[0011] For the cabinets in the computer room, set a polygonal hotspot for each cabinet and configure a location mark for each hotspot;
[0012] For the cabinets in the computer room, a main view switch is set for each cabinet, and the main view replacement is triggered based on a mouse click event;
[0013] For the hosts in the computer room, a polygonal hotspot is configured for each host, a position mark is configured for each hotspot, and the hotspot is selected as a specific mark. The observation mode is set for the characteristic mark. The user triggers the observation mode by clicking the specific mark with the mouse. In the observation mode, a full-screen window pops up in the main view area, and the index parameters of the host are displayed through the full-screen window. The index parameters include CPU performance and parameters, memory usage and occupancy, and hard disk storage capacity and usage status;
[0014] For the hosts in the computer room, a main view switch is set for each host, and the main view replacement is triggered based on a mouse click event.
[0015] As a preferred method, construct the Pano2VR panoramic project to form an HTML file, and embed the HTML file into the HTML frame corresponding to the browser;
[0016] The front-end page of the browser is an interactive structure developed based on Vue.js.
[0017] Preferably, a block-level container element is created in the HTML structure layout of the browser, and the block-level container element is used to store the content of the Pano2VR panoramic project.
[0018] Preferably, the browser uses the storage object technology localStorage to temporarily or persistently store the hotspot information stored in the windows object.
[0019] Preferably, after configuring a listener on the front-end page of the browser and performing an event binding operation on the listener and the windows object, an action event is triggered when the browser is loaded or the hash value of the URL changes. The action event is captured by the listener, and the target panoramic scene that the user expects to access or switch to is determined by parsing the target parameter in the URL;
[0020] The user clicks on a preset hotspot in the panoramic image, and the mouse click event is listened to through the listener. Based on the mouse click event, the front-end page of the browser obtains the corresponding hotspot association information, which includes the device object ID, location coordinates, and key parameters for requesting the background server. Based on the hotspot association information, an asynchronous network request is sent to the back-end server of the browser through the front-end page of the browser. Based on the asynchronous network request, the back-end server of the browser returns the hotspot information to the front-end page of the browser. Based on the hotspot information, related business logic operations are performed through the front-end page of the browser. The business logic operations include view switching, information display, and updating and rendering of the front-end page.
[0021] In a second aspect, the present invention provides a visual interactive panoramic computer room management system, which is used to manage a panoramic computer room by using a visual interactive panoramic computer room management method as described in any one of the first aspects, wherein the system includes a panoramic project construction module, a web application construction module, and an event monitoring construction module.
[0022] The panoramic project construction module is used to perform the following steps to construct a Pano2VR panoramic project: integrate the three-dimensional spatial information of the computer room into a panoramic image through the panoramic production software Pano2VR, take the cabinets and hosts in the computer room as objects, configure polygonal hotspots for each object, and set a position mark for each hotspot;
[0023] The web application construction module is used to perform the following web application construction: embed the Pano2VR panoramic project into the front-end page of the browser, display the panoramic image through the front-end page of the browser, and set the mouse click event for the polygon hotspot. When the user clicks the preset polygon hotspot, the global agent based on Pano2VR captures the user's mouse click behavior in the panoramic image, parses the hotspot information associated with the click position, stores the hotspot information in the windows object of the browser, and generates and publishes the mouse click event;
[0024] The event monitoring construction module is used to perform the following event monitoring: configure the listener on the front-end page of the browser and bind the listener to the windows object for event. When the user clicks the preset hotspot with the mouse, the mouse click event is listened to by the listener. Based on the mouse click event, the hotspot information is read through the front-end page of the browser and related business logic operations are performed.
[0025] Preferably, the panoramic project construction module is used to execute the following steps to construct a Pano2VR panoramic project:
[0026] For the cabinets in the computer room, set a polygonal hotspot for each cabinet and configure a location mark for each hotspot;
[0027] For the cabinets in the computer room, a main view switch is set for each cabinet, and the main view replacement is triggered based on a mouse click event;
[0028] For the hosts in the computer room, a polygonal hotspot is configured for each host, a position mark is configured for each hotspot, and the hotspot is selected as a specific mark. The observation mode is set for the characteristic mark. The user triggers the observation mode by clicking the specific mark with the mouse. In the observation mode, a full-screen window pops up in the main view area, and the index parameters of the host are displayed through the full-screen window. The index parameters include CPU performance and parameters, memory usage and occupancy, and hard disk storage capacity and usage status;
[0029] For the hosts in the computer room, a main view switch is set for each host, and the main view replacement is triggered based on a mouse click event.
[0030] Preferably, the Pano2VR panoramic project forms an HTML file, and the HTML file is embedded in the HTML frame corresponding to the browser, and the front-end page of the browser is an interactive structure developed based on Vue.js;
[0031] A block-level container element is created in the HTML structure layout of the browser, and the block-level container element is used to store the content of the Pano2VR panoramic project.
[0032] Preferably, the browser uses the storage object technology localStorage to temporarily or persistently store the hotspot information stored in the windows object.
[0033] The visual interactive panoramic computer room management method and system of the present invention have the following advantages:
[0034] 1. Pano2vr technology is used to realize the panoramic display of the computer room. Compared with the traditional static image or SVG image method, the panoramic technology can intuitively display the information of the computer room to a large extent, improve the overall look and feel of the page, enable the operation and maintenance personnel to efficiently understand and grasp the status of the computer room, and greatly improve the operation and maintenance efficiency;
[0035] 2. The component mounting monitoring mechanism of Vue is adopted, which can dynamically render the panoramic view according to the changes of the page. It can realize smooth transition for multiple computer rooms and realize the management of different computer rooms under the same computer room management system. It has been verified in practice that this has greatly improved the management efficiency;
[0036] 3. Through the browser custom events and event monitoring technology combined with pano2vr's polygon hotspot click technology, the intercommunication between the pano2vr panoramic display system and the vue front-end display system is realized, and the interactive effect is achieved through this intercommunication technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] The present invention is further described below in conjunction with the accompanying drawings.
[0039] Figure 1 This is a structural diagram of a visual interactive panoramic computer room management method according to Example 1;
[0040] Figure 2 This is a page interaction event diagram in a visual interactive panoramic computer room management method according to Example 1. DETAILED DESCRIPTION
[0041] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it. However, the embodiments are not intended to limit the present invention. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments may be combined with each other.
[0042] The embodiment of the present invention provides a visual interactive panoramic computer room management method and system, which are used to solve the technical problem of how to achieve visualization and interactivity of computer room display.
[0043] Embodiment 1:
[0044] The present invention discloses a visual interactive panoramic computer room management method, which comprises three steps of constructing a Pano2VR panoramic project, constructing a web application and constructing an event monitor.
[0045] Step S100 constructs a Pano2VR panoramic project: the three-dimensional space information of the computer room is integrated into a panoramic image through the panoramic production software Pano2VR, the cabinets and hosts in the computer room are taken as objects, a polygonal hotspot is configured for each object, and a position mark is set for each hotspot.
[0046] As a specific implementation of building the Pano2VR panoramic project, the following operations are included:
[0047] (1) For the cabinets in the computer room, set a polygonal hotspot for each cabinet and configure a location mark for each hotspot;
[0048] (2) For the cabinets in the computer room, a main view switch is set for each cabinet, and the main view replacement is triggered based on a mouse click event;
[0049] (3) For the hosts in the computer room, a polygonal hotspot is configured for each host, a position mark is configured for each hotspot, and the hotspot is selected as a specific mark. The observation mode is set for the characteristic mark. The user triggers the observation mode by clicking the specific mark with the mouse. In the observation mode, a full-screen window pops up in the main view area, and the index parameters of the host are displayed through the full-screen window. The index parameters include CPU performance and parameters, memory usage and occupancy, and hard disk storage capacity and usage status;
[0050] (4) For the hosts in the computer room, a main view switching is set for each host, and the main view replacement is triggered based on a mouse click event.
[0051] Through the panoramic production software Pano2VR, the three-dimensional spatial information of the computer room is integrated into an immersive VR panoramic experience environment. In this virtual reality, every detail is carefully captured and reconstructed to ensure that users can get an immersive sense of presence. First of all, a main view switching function is specially designed for each cabinet in the computer room to achieve refined control of the layout of the computer room. When the user clicks on any cabinet in the VR panorama, the system will respond immediately and automatically adjust the viewing angle, just like turning and moving in the physical world, so that the user's line of sight instantly switches from a global bird's-eye view to the front of the selected cabinet, achieving close and all-round observation.
[0052] Pano2VR supports mouse dragging operations to enhance interactivity and exploration. Users can directly "touch" the cabinets in the virtual space with the mouse, freely rotate the 360-degree view, and view the details of each cabinet and its internal equipment from top to bottom and from front to back without blind spots. In addition, intuitive and easily recognizable hot spots are set on the surface of the cabinet. These hot spots are not only visual guides, but also function triggers. Just click the mark to instantly jump to the main view of the corresponding cabinet, so as to conveniently shuttle between different cabinets and realize the first-person perspective observation of all cabinets.
[0053] In addition, the host equipment inside each cabinet is also designed with meticulous care. The host is not only part of the overall cabinet layout, but also given an independent information display function. When the user clicks a specific mark on the host, the screen will smoothly transition to the detailed observation mode of the host. At this time, a full-screen window pops up in the main view area, fully displaying the key indicators and technical parameters of the host, such as the central processing unit (CPU) model and performance data, memory usage and occupancy, hard disk storage capacity and its usage status, and other detailed information.
[0054] After completing the review of the host information, simply click the exit button and the screen will immediately return to the original cabinet perspective, maintaining the continuity and smoothness of the user's operation process.
[0055] Step S200 builds a web application: embeds the Pano2VR panoramic project into the front-end page of the browser, displays the panoramic image through the front-end page of the browser, and sets a mouse click event for the polygon hotspot. When the user clicks the preset polygon hotspot, the global agent based on Pano2VR captures the user's mouse click behavior in the panoramic image, parses the hotspot information associated with the click position, stores the hotspot information in the windows object of the browser, and generates and publishes the mouse click event.
[0056] In this embodiment, a Pano2VR panoramic project is constructed to form an HTML file, and the HTML file is embedded in an HTML frame corresponding to the browser. The front-end page of the browser is an interactive structure developed based on Vue.js.
[0057] After the Pano2vr project is embedded in the front-end page, there is no direct interaction mechanism between the two. This embodiment combines the Pano2vr panoramic technology with the HTML front-end framework through design and development to build a highly integrated and interactive Web application (such as Figure 2 8 in the figure). At the beginning of creating a Pano2vr project, you need to configure polygonal hotspots for each object. These hotspots accurately depict the outline of the cabinet or host in the form of polygons, ensuring that they can completely cover the target entity they represent, thereby avoiding the problem of operation failure caused by click range errors. Each hotspot has its own unique location marker, which is essentially a unique interactive identifier. When the user browses the panoramic image, by clicking the corresponding position with the mouse, the system can accurately distinguish and identify the specific part that the user intends to operate.
[0058] When the user clicks on a preset polygon hotspot, the hotspot proxy mechanism inside Pano2vr will be triggered. This proxy is responsible for capturing the user's click event and parsing the corresponding hotspot information (such as Figure 2 9). The storage object technology localStorage provided by the browser is used to temporarily or persistently store the detailed data of the hotspot.
[0059] Step S300 builds an event listener: configures a listener on the front-end page of the browser and binds the listener to the windows object for event binding. When the user clicks a preset hotspot with the mouse, the mouse click event is listened to by the listener. Based on the mouse click event, the hotspot information is read through the front-end page of the browser and related business logic operations are performed.
[0060] As a specific implementation of building event listening, after the listener is configured on the front-end page of the browser and the listener is bound to the windows object for event binding, the action event is triggered when the browser is loaded or the hash value of the URL changes. The action event is captured by the listener, and the target panoramic scene that the user expects to access or switch to is determined by parsing the target parameters in the URL.
[0061] The user clicks on a preset hotspot in the panoramic image, and the mouse click event is listened to through the listener. Based on the mouse click event, the front-end page of the browser obtains the corresponding hotspot association information, which includes the device object ID, location coordinates, and key parameters for requesting the background server. Based on the hotspot association information, an asynchronous network request is sent to the back-end server of the browser through the front-end page of the browser. Based on the asynchronous network request, the back-end server of the browser returns the hotspot information to the front-end page of the browser. Based on the hotspot information, related business logic operations are performed through the front-end page of the browser. The business logic operations include view switching, information display, and updating and rendering of the front-end page.
[0062] In this embodiment, in order to achieve real-time communication and linkage between the front and back ends, a browser event is customized. On the specific components or elements of the page controlled by the front-end framework such as Vue.js, the corresponding event listener is set to wait for the occurrence of the customized event. Once the user triggers the hotspot in Pano2vr, the customized event is immediately created through the browser, and the customized event containing the hotspot details is published.
[0063] At this point, the logical chain of the method of this embodiment is: from the hotspot triggering of the Pano2vr project, to the transmission of internal events in the browser, and then to the event monitoring and response preparation of the Vue front end. When the Vue end receives the published custom event, it can perform corresponding view switching, information display or other complex business logic operations according to the hotspot information. In this way, the pano2vr panoramic project not only presents a 360-degree immersive experience of the computer room environment, but also achieves a high degree of coordination and interaction with the front-end interface, together forming a powerful, intuitive and easy-to-use digital computer room management.
[0064] In this embodiment, the Pano2vr panoramic project is introduced in the index page of the vue project. First, in the HTML structure layout, a special block-level container element is created for the Pano2vr content to ensure that it can occupy a suitable position in the page and can be adaptively resized according to the screen size to maintain a good display effect.
[0065] Next, use the event monitoring mechanism provided by the browser to bind events to the window object. When the browser is loaded or the hash value of the URL changes, the hashchange event is triggered (such as Figure 2 The action signal is captured immediately, and the target parameter in the URL is parsed to determine which specific panoramic scene the user wants to visit or switch to. When the user clicks on the preset hotspot area in the Pano2vr panoramic image, the previously set event will be triggered. At this point, the front-end code will immediately respond and capture the hotspot event, and then retrieve the information associated with the hotspot from the browser storage. This information may include device ID, location coordinates, or other key parameters for requesting background data.
[0066] Based on the hotspot information obtained, the front-end will send an asynchronous network request to the back-end server to request detailed data corresponding to the hotspot. When the back-end returns the required data, the front-end will quickly process the data and apply them to the current view component, thereby updating and re-rendering the page content to ensure that users can see the latest status and related information corresponding to their operations. Through the two-step event monitoring and response process designed in the Vue project, the front-end project successfully achieved deep integration and real-time interaction with the Pano2vr panoramic project.
[0067] The method of this embodiment sets up a fine mouse click motion capture mechanism in the panoramic dynamic image area of pano2vr. With the help of the global click proxy function of pano2vr, it can accurately capture every mouse click behavior of the user in the panoramic image, and further parse the hotspot information associated with the click position (such as Figure 2 (as shown in the serial number 1).
[0068] These hotspot location information is extracted and stored in the browser's window object in a timely manner. This is a temporary but efficient way of cross-domain data sharing, allowing two projects in different JavaScript contexts to share and access the same data resources (such as Figure 2 Whenever new hotspot location information is generated, the system will trigger a custom browser event to publish it. This process is like setting up a fast information transmission channel between projects (such as Figure 2 (as shown in the serial number 3).
[0069] On the other end, the front-end management system built by the Vue framework acts as a listener for this custom event. Once it receives the notification of this event, it will immediately respond and obtain the hotspot location data just stored in the window object based on the information carried by the event. After obtaining these key data, the front-end management system can perform a series of complex business logic operations, such as flexible switching of the main view, and initiating accurate data requests based on hotspot information (such as Figure 2 6), and efficient rendering and display of newly acquired data (as shown in Figure 2 (as shown in serial number 7).
[0070] The present invention covers three core parts: first, a highly immersive panoramic dynamic image display module realized by pano2vr technology, which provides users with an immersive visual experience (such as Figure 2 5 in the sequence); the second is the front-end management system developed by Vue.js, which is highly flexible and customizable and is responsible for handling business logic and data management (such as Figure 2 6); finally, a communication bridge is built with the help of browser custom events and listeners, which ensures the smooth flow of data between the pano2vr project and the vue project, and realizes the perfect integration of panoramic browsing and business functions, thus greatly improving the user experience and the overall performance of the system (as shown in Figure 2 (as shown in serial number 4).
[0071] Embodiment 2:
[0072] The present invention provides a visual interactive panoramic computer room management system, which includes a panoramic project construction module, a web application construction module and an event monitoring construction module. The system manages the panoramic computer room through the method disclosed in Example 1.
[0073] The panoramic project construction module is used to perform the following construction of the Pano2VR panoramic project: the three-dimensional spatial information of the computer room is integrated into the panoramic image through the panoramic production software Pano2VR, the cabinets and hosts in the computer room are taken as objects, polygonal hotspots are configured for each object, and position marks are set for each hotspot.
[0074] As a specific implementation of the panoramic project building module, this module is used to perform the following operations to build a Pano2VR panoramic project:
[0075] (1) For the cabinets in the computer room, set a polygonal hotspot for each cabinet and configure a location mark for each hotspot;
[0076] (2) For the cabinets in the computer room, a main view switch is set for each cabinet, and the main view replacement is triggered based on a mouse click event;
[0077] (3) For the hosts in the computer room, a polygonal hotspot is configured for each host, a position mark is configured for each hotspot, and the hotspot is selected as a specific mark. The observation mode is set for the characteristic mark. The user triggers the observation mode by clicking the specific mark with the mouse. In the observation mode, a full-screen window pops up in the main view area, and the index parameters of the host are displayed through the full-screen window. The index parameters include CPU performance and parameters, memory usage and occupancy, and hard disk storage capacity and usage status;
[0078] (4) For the hosts in the computer room, a main view switching is set for each host, and the main view replacement is triggered based on a mouse click event.
[0079] Through the panoramic production software Pano2VR, the three-dimensional spatial information of the computer room is integrated into an immersive VR panoramic experience environment. In this virtual reality, every detail is carefully captured and reconstructed to ensure that users can get an immersive sense of presence. First of all, a main view switching function is specially designed for each cabinet in the computer room to achieve refined control of the layout of the computer room. When the user clicks on any cabinet in the VR panorama, the system will respond immediately and automatically adjust the viewing angle, just like turning and moving in the physical world, so that the user's line of sight instantly switches from a global bird's-eye view to the front of the selected cabinet, achieving close and all-round observation.
[0080] Pano2VR supports mouse dragging operations to enhance interactivity and exploration. Users can directly "touch" the cabinets in the virtual space with the mouse, freely rotate the 360-degree view, and view the details of each cabinet and its internal equipment from top to bottom and from front to back without blind spots. In addition, intuitive and easily recognizable hot spots are set on the surface of the cabinet. These hot spots are not only visual guides, but also function triggers. Just click the mark to instantly jump to the main view of the corresponding cabinet, so as to conveniently shuttle between different cabinets and realize the first-person perspective observation of all cabinets.
[0081] In addition, the host equipment inside each cabinet is also designed with meticulous care. The host is not only part of the overall cabinet layout, but also given an independent information display function. When the user clicks a specific mark on the host, the screen will smoothly transition to the detailed observation mode of the host. At this time, a full-screen window pops up in the main view area, fully displaying the key indicators and technical parameters of the host, such as the central processing unit (CPU) model and performance data, memory usage and occupancy, hard disk storage capacity and its usage status, and other detailed information.
[0082] After completing the review of the host information, simply click the exit button and the screen will immediately return to the original cabinet perspective, maintaining the continuity and smoothness of the user's operation process.
[0083] The web application construction module is used to perform the following web application construction: embed the Pano2VR panoramic project into the front-end page of the browser, display the panoramic image through the front-end page of the browser, and set the mouse click event for the polygon hotspot. When the user clicks the preset polygon hotspot, the global agent based on Pano2VR captures the user's mouse click behavior in the panoramic image, parses the hotspot information associated with the click position, stores the hotspot information in the windows object of the browser, and forms and publishes the mouse click event.
[0084] In this embodiment, a Pano2VR panoramic project is constructed to form an HTML file, and the HTML file is embedded in an HTML frame corresponding to the browser. The front-end page of the browser is an interactive structure developed based on Vue.js.
[0085] After the Pano2vr project is embedded into the front-end page, no direct interaction mechanism is established between the two. This embodiment combines the Pano2vr panoramic technology with the HTML front-end framework through design and development to build a highly integrated and interactive Web application. At the beginning of creating the Pano2vr project, it is necessary to configure polygonal hotspot areas for each object. These hotspots accurately depict the outline of the cabinet or host in the form of polygons, ensuring that they can completely cover the target entity they represent, thereby avoiding the problem of operational failure caused by click range errors. Each hotspot has its own unique location marker, which is essentially a unique interactive identifier. When the user browses the panoramic image, by clicking the corresponding position with the mouse, the system can accurately distinguish and identify the specific part of the user's intended operation.
[0086] When a user clicks on a preset polygonal hotspot, the hotspot proxy mechanism inside Pano2vr will be triggered. This proxy is responsible for capturing the user's click event and parsing the corresponding hotspot information. The localStorage storage object technology provided by the browser is used to temporarily or persistently store the detailed data of the hotspot.
[0087] The event monitoring construction module is used to perform the following event monitoring: configure the listener on the front-end page of the browser and bind the listener to the windows object for event. When the user clicks the preset hotspot with the mouse, the mouse click event is listened to by the listener. Based on the mouse click event, the hotspot information is read through the front-end page of the browser and related business logic operations are performed.
[0088] As a specific implementation of the event listening construction module, this module is used to configure the listener on the front-end page of the browser and bind the listener to the windows object for events. When the browser is loaded or the hash value of the URL changes, an action event is triggered. The action event is captured through the listener, and the target panoramic scene that the user expects to access or switch to is determined by parsing the target parameters in the URL.
[0089] In actual work, the user clicks on the preset hotspot in the panoramic image, and the mouse click event is listened to through the listener. Based on the mouse click event, the front-end page of the browser obtains the corresponding hotspot association information, which includes the device object ID, location coordinates, and key parameters for requesting the background server. Based on the hotspot association information, the front-end page of the browser sends an asynchronous network request to the back-end server of the browser. Based on the asynchronous network request, the back-end server of the browser returns the hotspot information to the front-end page of the browser. Based on the hotspot information, the front-end page of the browser performs related business logic operations, which include view switching, information display, and updating and rendering the front-end page.
[0090] In this embodiment, in order to achieve real-time communication and linkage between the front and back ends, a browser event is customized. On the specific components or elements of the page controlled by the front-end framework such as Vue.js, the corresponding event listener is set to wait for the occurrence of the customized event. Once the user triggers the hotspot in Pano2vr, the customized event is immediately created through the browser, and the customized event containing the hotspot details is published.
[0091] At this point, the logical chain of the system work in this embodiment is: from the hotspot triggering of the Pano2vr project, to the transmission of internal events in the browser, and then to the event monitoring and response preparation of the Vue front end. When the Vue end receives the published custom event, it can perform corresponding view switching, information display or other complex business logic operations according to the hotspot information. In this way, the pano2vr panoramic project not only presents a 360-degree immersive experience of the computer room environment, but also achieves a high degree of coordination and interaction with the front-end interface, together forming a powerful, intuitive and easy-to-use digital computer room management.
[0092] The present invention has been shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the means in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.
Claims
1. A visual interactive panoramic computer room management method, It is characterized in that The steps include: Build Pano2VR panoramic project: Use the panoramic production software Pano2VR to integrate the three-dimensional spatial information of the computer room into a panoramic image, take the cabinets and hosts in the computer room as objects, configure polygonal hotspots for each object, and set position marks for each hotspot; Build a web application: embed the Pano2VR panoramic project into the front-end page of the browser, display the panoramic image through the front-end page of the browser, and set the mouse click event for the polygon hotspot. When the user clicks the preset polygon hotspot, the global agent based on Pano2VR captures the user's mouse click behavior in the panoramic image, parses the hotspot information associated with the click position, stores the hotspot information in the windows object of the browser, and generates and publishes the mouse click event; Build event listening: configure a listener on the front page of the browser and bind the listener to the windows object for event. When the user clicks the preset hotspot with the mouse, the listener listens to the mouse click event. Based on the mouse click event, the hotspot information is read through the front page of the browser and related business logic operations are performed.
2. The visual interactive panoramic computer room management method according to claim 1, It is characterized in that Building a Pano2VR panoramic project includes the following steps: For the cabinets in the computer room, set a polygonal hotspot for each cabinet and configure a location mark for each hotspot; For the cabinets in the computer room, a main view switch is set for each cabinet, and the main view replacement is triggered based on a mouse click event; For the hosts in the computer room, a polygonal hotspot is configured for each host, a position mark is configured for each hotspot, and the hotspot is selected as a specific mark. The observation mode is set for the characteristic mark. The user triggers the observation mode by clicking the specific mark with the mouse. In the observation mode, a full-screen window pops up in the main view area, and the index parameters of the host are displayed through the full-screen window. The index parameters include CPU performance and parameters, memory usage and occupancy, and hard disk storage capacity and usage status; For the hosts in the computer room, a main view switch is set for each host, and the main view replacement is triggered based on a mouse click event.
3. The visual interactive panoramic computer room management method according to claim 1, It is characterized in that Build the Pano2VR panoramic project into an HTML file, and embed the HTML file into the HTML frame corresponding to the browser; The front-end page of the browser is an interactive structure developed based on Vue.js.
4. The visual interactive panoramic computer room management method according to claim 3, It is characterized in that A block-level container element is created in the HTML structure layout of the browser, and the block-level container element is used to store the content of the Pano2VR panoramic project.
5. The visual interactive panoramic computer room management method according to claim 1, It is characterized in that The browser uses the localStorage storage object technology to temporarily or persistently store the hotspot information stored in the windows object.
6. The visual interactive panoramic computer room management method according to claim 1, It is characterized in that After configuring the listener on the front-end page of the browser and binding the listener to the windows object, the action event is triggered when the browser is loaded or the hash value of the URL changes. The action event is captured by the listener, and the target panoramic scene that the user expects to access or switch to is determined by parsing the target parameters in the URL. The user clicks on a preset hotspot in the panoramic image, and the mouse click event is listened to through the listener. Based on the mouse click event, the front-end page of the browser obtains the corresponding hotspot association information, which includes the device object ID, location coordinates, and key parameters for requesting the background server. Based on the hotspot association information, an asynchronous network request is sent to the back-end server of the browser through the front-end page of the browser. Based on the asynchronous network request, the back-end server of the browser returns the hotspot information to the front-end page of the browser. Based on the hotspot information, related business logic operations are performed through the front-end page of the browser. The business logic operations include view switching, information display, and updating and rendering of the front-end page.
7. A visual interactive panoramic computer room management system, It is characterized in that Used to manage a panoramic computer room through a visual interactive panoramic computer room management method as described in any one of claims 1 to 6, the system includes a panoramic project construction module, a web application construction module and an event monitoring construction module, The panoramic project construction module is used to perform the following steps to construct a Pano2VR panoramic project: integrate the three-dimensional spatial information of the computer room into a panoramic image through the panoramic production software Pano2VR, take the cabinets and hosts in the computer room as objects, configure polygonal hotspots for each object, and set a position mark for each hotspot; The web application construction module is used to perform the following web application construction: embed the Pano2VR panoramic project into the front-end page of the browser, display the panoramic image through the front-end page of the browser, and set the mouse click event for the polygon hotspot. When the user clicks the preset polygon hotspot, the global agent based on Pano2VR captures the user's mouse click behavior in the panoramic image, parses the hotspot information associated with the click position, stores the hotspot information in the windows object of the browser, and generates and publishes the mouse click event; The event monitoring construction module is used to perform the following event monitoring: configure the listener on the front-end page of the browser and bind the listener to the windows object for event. When the user clicks the preset hotspot with the mouse, the mouse click event is listened to by the listener. Based on the mouse click event, the hotspot information is read through the front-end page of the browser and related business logic operations are performed.
8. The visual interactive panoramic computer room management system according to claim 7, It is characterized in that The panoramic project building module is used to build the Pano2VR panoramic project as follows: For the cabinets in the computer room, set a polygonal hotspot for each cabinet and configure a location mark for each hotspot; For the cabinets in the computer room, a main view switch is set for each cabinet, and the main view replacement is triggered based on a mouse click event; For the hosts in the computer room, a polygonal hotspot is configured for each host, a position mark is configured for each hotspot, and the hotspot is selected as a specific mark. The observation mode is set for the characteristic mark. The user triggers the observation mode by clicking the specific mark with the mouse. In the observation mode, a full-screen window pops up in the main view area, and the index parameters of the host are displayed through the full-screen window. The index parameters include CPU performance and parameters, memory usage and occupancy, and hard disk storage capacity and usage status; For the hosts in the computer room, a main view switch is set for each host, and the main view replacement is triggered based on a mouse click event.
9. The visual interactive panoramic computer room management system according to claim 7, It is characterized in that The Pano2VR panoramic project forms an HTML file, which is embedded in the HTML frame corresponding to the browser. The front-end page of the browser is an interactive structure developed based on Vue.js; A block-level container element is created in the HTML structure layout of the browser, and the block-level container element is used to store the content of the Pano2VR panoramic project.
10. The visual interactive panoramic computer room management system according to claim 7, It is characterized in that The browser uses the localStorage storage object technology to temporarily or persistently store the hotspot information stored in the windows object.
Citation Information
Cited By
WEB end 360-degree panoramic image rendering and relative space position information calculation method and WEB end 360-degree panoramic image rendering and relative space position information calculation system
CN119182893A
