CN-116069204-B - Industrial map configuration method, system, equipment and storage medium
Abstract
The invention provides a configuration method, a system, equipment and a storage medium of an industrial map, which belong to the technical field of software development, wherein the configuration method of the industrial map comprises the steps of obtaining map information; and tracking the cursor position in the configuration page in real time and monitoring a cursor event so as to execute a corresponding configuration event based on the position of the cursor in the configuration page and the type of the cursor event when the cursor event is triggered. The configuration method of the industrial map can fully utilize the interactive gesture of the cursor to respond to the cursor operation in the configuration page by a user to complete equipment configuration of the industrial map, thereby further optimizing the user experience of equipment management.
Inventors
- CHEN GUOQING
- LIU ZHILIANG
- QIN KAIZHI
- HAN WEIMING
- LI WENYONG
- LIANG XIN
- Luo Fangfei
Assignees
- 浙江极氪智能科技有限公司
- 浙江吉利控股集团有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20230223
Claims (8)
- 1. A method for configuring an industrial map, comprising: Map information is acquired; Generating an industrial map in a design area of the configuration page according to the map information; Tracking the position of a cursor in the configuration page in real time and monitoring a cursor event so as to execute a corresponding configuration event based on the position of the cursor in the configuration page and the type of the cursor event when the cursor event is triggered; Wherein the steps of tracking the cursor position in the configuration page in real time and monitoring the cursor event to execute the corresponding configuration event based on the position of the cursor in the configuration page and the type of the cursor event when the cursor event is triggered include: when a cursor points to an equipment entry in an equipment list area of the configuration page, monitoring a cursor event triggered by the cursor; if a long-press event triggered by a cursor is detected, displaying equipment information corresponding to equipment entries at the equipment entries pointed by the cursor in an equipment list area; If a cursor triggering drag event is detected, responding to the drag event to enable the equipment entry to be an editable equipment element and moving to a designated position of the industrial map along with the cursor, so as to realize configuration of the equipment element at the designated position of the industrial map; the implementation configures the device elements at specified locations of the industrial map, comprising: when the device element is overlapped with the configured device element at the designated position of the industrial map, confirming whether the device element and the configured device element are combined devices or not; If yes, selecting to independently configure the equipment element at the designated position or configure the equipment element in combination with the configured equipment element according to the rotation gesture of the cursor; And if not, prohibiting the equipment element from being configured at the designated position.
- 2. The method for configuring an industrial map according to claim 1, wherein the generating an industrial map in a design area of a configuration page according to the map information comprises: Generating a scene map in a design area of the configuration page according to scene information in the map information; And constructing a plurality of equipment elements in the scene map according to the equipment information in the map information, and generating connection relations among the plurality of equipment elements.
- 3. The method according to claim 2, wherein the constructing a plurality of device elements in the scene map based on the device information in the map information and generating a connection relationship between the plurality of device elements includes: according to the attribute information and the position information of each device in the device information, constructing a device element adapting to the icon at the corresponding position of the scene map; And establishing corresponding connection relations among the plurality of equipment elements in the scene map according to the application information of each equipment in the equipment information.
- 4. The method of claim 1, wherein tracking the cursor position in the configuration page and listening for a cursor event in real time to perform a corresponding configuration event based on the position of the cursor in the configuration page and the type of cursor event when the cursor event is triggered, comprises: when a cursor is positioned on a pointing device element in the industrial map, monitoring a cursor event triggered by the cursor; if a cursor triggering long-press event is detected, displaying equipment information corresponding to the equipment element at the position of the cursor, which is pointed to the equipment element, in the industrial map; And if the cursor is detected to trigger a drag event, responding to the drag event to enable the equipment element to be in an editable state, and moving the equipment element to a designated position of the industrial map along with the cursor to realize the configuration of the equipment element at the designated position of the industrial map.
- 5. The method of claim 1, wherein, in said responding to said drag event causes said device entry to become an editable device element and move into a designated position of said industrial map following a cursor, When the cursor is detected not to be in the design area of the configuration page, displaying the equipment element moving along with the cursor as a model diagram of the corresponding equipment; and when the cursor is detected to be in the design area of the configuration page, displaying the device element moving along with the cursor as an element diagram of the corresponding device.
- 6. A system for configuring an industrial map, comprising: The information acquisition module is used for acquiring map information; The map loading module generates an industrial map in a design area of the configuration page according to the map information; the event response module is used for tracking the position of the cursor in the configuration page in real time and monitoring the cursor event so as to execute the corresponding configuration event based on the position of the cursor in the configuration page and the type of the cursor event when the cursor event is triggered; The system comprises an event response module, a device information processing module, a display module and a control module, wherein the event response module is used for monitoring a cursor event triggered by a cursor when the cursor points to a device entry in a device list area of the configuration page, displaying device information corresponding to the device entry at the device entry pointed by the cursor in the device list area if the cursor is detected to trigger a long-press event, responding to a dragging event to enable the device entry to become an editable device element and move to a designated position of the industrial map along with the cursor if the cursor is detected to trigger the dragging event, and realizing configuration of the device element at the designated position of the industrial map; The event response module is used for confirming whether the equipment element and the configured equipment element are combined equipment or not when the equipment element is overlapped with the configured equipment element at the designated position of the industrial map, if so, selecting to independently configure the equipment element at the designated position or configure the equipment element and the configured equipment element in a combined mode according to the rotation gesture of the cursor, and if not, prohibiting the equipment element from being configured at the designated position.
- 7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 5 when the computer program is executed by the processor.
- 8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
Description
Industrial map configuration method, system, equipment and storage medium Technical Field The invention relates to the technical field of software development, in particular to a configuration method, a system, equipment and a storage medium of an industrial map. Background The map is an indispensable component in enterprise application, and is widely applied to related application systems such as resource management, resource allocation, resource planning and the like in various industries. In the energy management system of the factory, the layout of the energy system in the factory in the energy management platform can be visually displayed as an industrial map based on the collection and monitoring of the field data of the factory, however, the industrial map displayed in the energy management platform can intuitively provide relevant information of the energy management of the factory for a user, but cannot meet the requirement that the customer performs equipment configuration operation on the industrial map based on the field condition. It is desirable to design a configuration method, system, apparatus and storage medium for an industrial map to solve the above-mentioned problems. Disclosure of Invention In view of the above drawbacks of the prior art, the present invention provides a method, a system, an apparatus, a storage medium, and a vehicle for configuring an industrial map, which are used for solving the technical problem that in the prior art, an industrial map visually displayed on an industrial management platform cannot respond to a user configuration operation, and it is difficult to satisfy a configuration requirement of a client on a field layout on the industrial map. To achieve the above and other related objects, the present invention provides a method for configuring an industrial map, comprising the steps of: Map information is acquired; Generating an industrial map in a design area of the configuration page according to the map information; and tracking the position of the cursor in the configuration page in real time and monitoring the cursor event so as to execute the corresponding configuration event based on the position of the cursor in the configuration page and the type of the cursor event when the cursor event is triggered. In an example of the present invention, the generating an industrial map in a design area of a configuration page according to the map information includes: and constructing a plurality of equipment elements in the scene map according to the equipment information in the map information, and generating connection relations among the plurality of equipment elements. In an example of the present invention, the constructing a plurality of device elements in the scene map according to the device information in the map information, and generating a connection relationship between the plurality of device elements, includes: according to the attribute information and the position information of each device in the device information, constructing a device element adapting to the icon at the corresponding position of the scene map; and establishing corresponding connection relations among the plurality of equipment elements in the scene map according to the application information of each equipment in the equipment information. In an example of the present invention, the tracking the cursor position in the configuration page and listening for the cursor event in real time to execute the corresponding configuration event based on the position of the cursor in the configuration page and the type of the cursor event when the cursor event triggers, includes: When a cursor points to an equipment word in an equipment list area of the configuration page, a cursor event triggered by the cursor is monitored, if the cursor is detected to trigger a long-press event, equipment information corresponding to the equipment word is displayed at the equipment word pointed by the cursor in the equipment list area, and if the cursor is detected to trigger a dragging event, the equipment word is changed into an editable equipment element and moves to a designated position of the industrial map along with the cursor in response to the dragging event, so that the equipment element is configured at the designated position of the industrial map. In an example of the present invention, the tracking the cursor position in the configuration page and listening for the cursor event in real time to execute the corresponding configuration event based on the position of the cursor in the configuration page and the type of the cursor event when the cursor event triggers, includes: when the cursor is positioned on a device element in the industrial map, a cursor event triggered by the cursor is monitored, if the cursor is detected to trigger a long-press event, device information corresponding to the device element is displayed on the position, where the cursor is positioned on the device elemen