Topological graph drawing method and device, computer equipment and storage medium
By providing the element area and drawing area of the topology diagram creation page in the BS architecture, users can easily and efficiently select and configure the primitives, solving the problem of inflexible topology diagram drawing in the existing technology, and achieving efficient online drawing of topology diagrams.
Patent Information
- Application Number
- CN202411535824.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-25
Smart Images

Figure CN119516028A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of topology drawing, and in particular to a topology drawing method, apparatus, computer equipment and storage medium. Background Art
[0002] With the acceleration of digital transformation of enterprises, more and more enterprises are beginning to realize the importance of graphical display of data and information. The digitalization of enterprises is also reflected in the digitization and convenience of equipment networks, which can check the status of equipment anytime and anywhere, interact with equipment, and realize remote monitoring and control of equipment. This real-time and high efficiency has important commercial value for industries that require rapid response and precise control, such as industrial automation and intelligent manufacturing.
[0003] Therefore, it is very important to draw and simulate the topology map of the equipment operation process. Most of the existing topology map drawing software is installed on the terminal in the form of application programs, which cannot quickly, efficiently and flexibly draw or edit the topology map according to the needs. Summary of the invention
[0004] Based on this, it is necessary to provide a topology drawing method, device, computer equipment and storage medium that can draw a topology map conveniently and efficiently in response to the above technical problems.
[0005] In a first aspect, the present application provides a topology drawing method, which is applied to a server in a browser and server BS architecture, comprising:
[0006] In response to a topology map creation instruction for a target topology map sent by a target user, a topology map creation page is displayed to the target user; wherein the topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes a plurality of candidate graphic elements;
[0007] Determine a target primitive according to the primitive selection operation of the target user on each candidate primitive in the primitive area, and place the target primitive in the drawing area;
[0008] According to the target user's primitive configuration operation on the target primitive in the drawing area, the target primitive is configured to complete the drawing of the target topology map.
[0009] In one of the embodiments, the target primitive includes a target connection primitive and at least two target device primitives, and the primitive configuration operation includes a connection configuration operation and a parameter configuration operation;
[0010] The configuring the target graphic element in the drawing area according to the graphic element configuration operation of the target user includes:
[0011] Determining connection configuration information between target device primitives according to the connection configuration operation of the target connection primitive by the target user;
[0012] Determining parameter configuration information of each target device graphic element according to the parameter configuration operation of each target device graphic element by the target user;
[0013] The target device primitive is configured according to the connection configuration information and the parameter configuration information.
[0014] In one embodiment, determining the connection configuration information between target device primitives according to the connection configuration operation of the target link primitive by the target user includes:
[0015] In response to the target user clicking the target connection primitive, a connection function menu of the target connection primitive is displayed to the target user; wherein the connection function menu includes a start primitive selection function, an end primitive selection function and a connection type selection function;
[0016] According to the connection configuration operation performed by the target user based on the connection function menu, connection configuration information between the target device graphics elements is determined.
[0017] In one of the embodiments, the connection configuration information includes a starting device primitive, an ending device primitive, and a primitive connection type;
[0018] The determining, according to the connection configuration operation performed by the target user based on the connection function menu, connection configuration information between the target device primitives includes:
[0019] In response to a click operation of the target user on the initial element selection function, displaying a first selection list including target device elements to the target user;
[0020] Using the target device primitive selected by the target user from the first selection list as the starting device primitive;
[0021] In response to a click operation performed by the target user on the ending element selection function, a second selection list including other device elements is displayed to the target user; wherein the other device elements are target device elements other than the starting device element in the target device elements;
[0022] Using other device primitives selected by the target user from the second selection list as ending device primitives;
[0023] The primitive connection type is determined according to the selection operation of the target user on the connection type selection function.
[0024] In one of the embodiments, determining the parameter configuration information of each target device primitive according to the parameter configuration operation of the target user on each target device primitive includes:
[0025] For each target device primitive, in response to a click operation of the target user on the target device primitive, displaying a parameter configuration interface of the target device primitive to the target user;
[0026] The parameter configuration information of the target device graphic element is determined according to the input operation performed by the target user on the parameter configuration interface.
[0027] In one embodiment, the method further comprises:
[0028] After receiving the topology map saving instruction, obtaining the saving mode carried in the topology map saving instruction;
[0029] If the saving mode is the lightweight data exchange format JSON, then the permission setting interface of the target topology map is displayed to the target user;
[0030] Determining the drawing permission information of the target topology map according to the input operation of the target user on the permission setting interface;
[0031] The drawing permission information is bound to the target topology map and stored.
[0032] In one embodiment, the method further comprises:
[0033] If an editing instruction of another user for the target topology map is identified, determining whether the other user has the drawing authority according to the drawing authority information bound to the target topology map;
[0034] When it is determined that the other users have the drawing authority, an editing interface of the target topology map is displayed to the other users so that the other users can collaboratively edit the target topology map.
[0035] In a second aspect, the present application further provides a topology drawing device, which is configured in a server in a BS architecture, including:
[0036] A page display module, configured to display a topology map creation page to a target user in response to a topology map creation instruction sent by a target user for a target topology map; wherein the topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes a plurality of candidate graphic elements;
[0037] A primitive placement module, used to determine a target primitive according to a primitive selection operation of the target user on each candidate primitive in the primitive area, and place the target primitive in the drawing area;
[0038] The topology drawing module is used to configure the target graphic element in the drawing area according to the graphic element configuration operation of the target user to complete the drawing of the target topology map.
[0039] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0040] In response to a topology map creation instruction for a target topology map sent by a target user, a topology map creation page is displayed to the target user; wherein the topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes a plurality of candidate graphic elements;
[0041] Determine a target primitive according to the primitive selection operation of the target user on each candidate primitive in the primitive area, and place the target primitive in the drawing area;
[0042] According to the target user's primitive configuration operation on the target primitive in the drawing area, the target primitive is configured to complete the drawing of the target topology map.
[0043] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0044] In response to a topology map creation instruction for a target topology map sent by a target user, a topology map creation page is displayed to the target user; wherein the topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes a plurality of candidate graphic elements;
[0045] Determine a target primitive according to the primitive selection operation of the target user on each candidate primitive in the primitive area, and place the target primitive in the drawing area;
[0046] According to the target user's primitive configuration operation on the target primitive in the drawing area, the target primitive is configured to complete the drawing of the target topology map.
[0047] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0048] In response to a topology map creation instruction for a target topology map sent by a target user, a topology map creation page is displayed to the target user; wherein the topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes a plurality of candidate graphic elements;
[0049] Determine a target primitive according to the primitive selection operation of the target user on each candidate primitive in the primitive area, and place the target primitive in the drawing area;
[0050] According to the target user's primitive configuration operation on the target primitive in the drawing area, the target primitive is configured to complete the drawing of the target topology map.
[0051] The above-mentioned topology drawing method, device, computer equipment and storage medium, in response to the topology creation instruction for the target topology sent by the target user, display the topology creation page to the target user; wherein the topology creation page includes a primitive area and a drawing area, and the primitive area includes multiple candidate primitives; according to the primitive selection operation of the target user on each candidate primitive in the primitive area, the target primitive is determined, and the target primitive is placed in the drawing area; according to the primitive configuration operation of the target user on the target primitive in the drawing area, the target primitive is configured to complete the drawing of the target topology. The above-mentioned scheme, by introducing the BS architecture, realizes the visual online drawing of the topology map without the need to install any software and plug-ins; at the same time, by setting the primitive area and the drawing area on the topology creation page, the target user is facilitated to draw the target topology map; further, by selecting and configuring the target primitives respectively, the drawing of the target topology map is completed, thereby improving the drawing efficiency of the target topology map. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] FIG1 is a diagram of an application environment of a method for drawing a topology map in one embodiment;
[0054] Figure 2A A schematic diagram of a process of drawing a topology map in one embodiment;
[0055] Figure 2B An example diagram of a topology map creation page in one embodiment;
[0056] Figure 3 A schematic diagram of a process of configuring a target graphic element in one embodiment;
[0057] Figure 4 A schematic diagram of a process for determining connection configuration information in an embodiment;
[0058] Figure 5 A schematic diagram of a process for determining connection configuration information in another embodiment;
[0059] Figure 6 A schematic diagram of a process for determining parameter configuration information in an embodiment;
[0060] Figure 7 A schematic diagram of a process for storing a target topology map in one embodiment;
[0061] Figure 8 A schematic diagram of a process of collaboratively editing a target topology map in one embodiment;
[0062] Fig. 9 A schematic diagram of a flow chart of a method for drawing a topology map in another embodiment;
[0063] Fig.10 A structural block diagram of a topology drawing device in one embodiment;
[0064] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0066] The topology drawing method provided in the embodiment of the present application can be applied to the application environment shown in FIG1. The browser 102 in the BS (Browser / Server) architecture is the most important application software of the client. The user accesses the application on the server 101 through the browser 102 to realize data interaction and processing. The user can access the graphics drawing component only through the browser.
[0067] In one embodiment, Figure 2A As shown, a method for drawing a topology map is provided, and the method is applied to the server in FIG1 as an example for explanation, and specifically includes the following steps:
[0068] S201 , in response to a topology map creation instruction for a target topology map sent by a target user, display a topology map creation page to the target user.
[0069] Among them, the target topology map is the topology map that needs to be created. For example, the target topology map can be a device topology map in the fields of electricity, network, industry, etc. The topology map creation instruction is an instruction used to instruct the server to create a new blank topology map. The topology map creation page is a page used to draw a topology map, which is presented in the form of a browser web page, that is, a browser of the BS architecture; in an embodiment of the present application, the topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes multiple candidate graphic elements. The graphic element area is used to display multiple candidate graphic elements, and the types of candidate graphic elements can be various, such as basic graphic elements (connection graphic elements, node graphic elements, and text graphic elements, etc.), equipment graphic elements, etc. Equipment graphic elements may include cooling equipment, air compressor equipment, thermal equipment, power equipment, network equipment, etc. Cooling equipment includes but is not limited to water machines, cooling pumps, freezing pumps, water distributors, cooling towers, etc. The drawing area is used to draw a topology map.
[0070] The equipment represented by the equipment graphic element is determined according to the actual application field and actual needs; for example, in the power field, the equipment graphic element may include cooling equipment graphic elements, air compressor equipment, thermal equipment, power equipment, network equipment, etc.
[0071] Optionally, the target user can open the graphics drawing component in the browser, click the New button, and enter the name and type of the new topology map to send a topology map creation instruction to the server. Further, after receiving the topology map creation instruction, the server creates a corresponding topology map creation page according to the name and type carried in the topology map creation instruction, and displays it in the browser to show it to the user.
[0072] S202, determining a target primitive according to the primitive selection operation of the target user on each candidate primitive in the primitive area, and placing the target primitive in the drawing area.
[0073] Among them, the primitive selection operation is an operation for selecting a candidate primitive, for example, it can be a click selection or a drag selection, and the specific selection method is subject to the actual setting and is not limited in the embodiment of the present application. The target primitive is the primitive selected by the target user. It is understandable that the target primitive can be a device primitive or a basic primitive (i.e., a line primitive, a node primitive, a text primitive, etc.).
[0074] Optionally, the target user selects the graphics required to draw the target topology map from the candidate graphics in the graphics area according to actual needs, and performs graphics selection operations on the required candidate graphics, such as clicking to select or dragging to select; further, the server identifies the candidate graphics selected by the target user as the target graphics, and places the target graphics in the drawing area for display.
[0075] like Figure 2BThe figure below shows an example of a topology map creation page. The left side is the element area, which displays candidate elements, and the right side is the drawing area, which is used to draw the topology map.
[0076] S203: According to the target user's configuration operation on the target graphic element in the drawing area, the target graphic element is configured to complete the drawing of the target topology map.
[0077] Among them, the graphic element configuration operation is an operation performed by the target user to configure the target graphic element. For example, the graphic element configuration operation can be a connection configuration operation performed on a connection graphic element, a parameter configuration operation performed on a device graphic element, a text editing operation performed on a text graphic element, etc.
[0078] Optionally, the target user may perform an element configuration operation on the target element according to preset parameter configuration rules and actual needs to configure each target element. After all target elements are configured, the drawing of the target topology map can be completed.
[0079] It should be noted that the target graphics elements involved in this application support event binding, can interact with the front-end and back-end, and implement deep business logic.
[0080] In the above-mentioned topology drawing method, in response to the topology creation instruction for the target topology sent by the target user, a topology creation page is displayed to the target user; wherein the topology creation page includes a primitive area and a drawing area, and the primitive area includes multiple candidate primitives; according to the primitive selection operation of the target user on each candidate primitive in the primitive area, the target primitive is determined, and the target primitive is placed in the drawing area; according to the primitive configuration operation of the target user on the target primitive in the drawing area, the target primitive is configured to complete the drawing of the target topology. The above-mentioned scheme, by introducing the BS architecture, realizes the visual online drawing of the topology map without the need to install any software or plug-ins; at the same time, by setting the primitive area and the drawing area on the topology creation page, the target user is facilitated in the drawing process of the target topology map; further, by selecting and configuring the target primitives respectively, the drawing of the target topology map is completed, thereby improving the drawing efficiency of the target topology map.
[0081] Optionally, the target primitive includes a target connection primitive and at least two target device primitives, and the primitive configuration operation includes a connection configuration operation and a parameter configuration operation; on this basis, in one embodiment, Figure 3 As shown, a method for configuring a target primitive is provided to refine the above S203, and specifically includes the following steps:
[0082] S301, determining connection configuration information of a target link primitive according to a connection configuration operation performed by a target user on a target link primitive.
[0083] The connection configuration operation is an operation for configuring the connection of the target connection primitive. The connection configuration information includes the connection information between the target device primitives connected to the target connection primitive. For example, the connection configuration information may include but is not limited to the starting device primitive, the ending device primitive, the primitive connection type, the line type, the line width, the color, the animation effect, etc.
[0084] Optionally, the target user can right-click or long press the target connection graph to activate the function menu of the target connection graph, and enter the relevant properties of the target connection graph in the function menu to complete the connection configuration operation of the target connection graph; further, after the target user completes the connection configuration operation of the target connection graph, the server can obtain the connection configuration information of the target connection graph.
[0085] S302: Determine parameter configuration information of each target device primitive according to the parameter configuration operation of each target device primitive by the target user.
[0086] The parameter configuration operation is an operation for performing parameter configuration on the target device primitive. The parameter configuration information is various parameter information of the device represented by the target device primitive, such as attribute parameters and working parameters of the device.
[0087] Optionally, the target user can right-click or long press the target device element to activate the function menu of the target device element, and enter the relevant parameters of the target device element in the function menu to complete the parameter configuration operation of the target device element; further, after the target user completes the parameter configuration operation of the target device element, the server can obtain the parameter configuration information of each target device element.
[0088] S303: Configure the target device primitive according to the connection configuration information and the parameter configuration information.
[0089] Optionally, each target device primitive is connected and the parameters of each target device primitive are configured according to the connection configuration information and the parameter configuration information.
[0090] In this embodiment, the richness of the primitives is increased by introducing target connection primitives and target device primitives; at the same time, by performing connection configuration operations on the target connection primitives and parameter configuration operations on each target device primitive according to the target, the connection configuration information of the target connection primitives and the parameter configuration information of each target device primitive are obtained, thereby ensuring the accuracy and convenience of configuring each target device.
[0091] Optionally, in one embodiment, Figure 4 As shown, a method for determining connection configuration information is provided, which specifically includes the following steps:
[0092] S401, in response to a target user's click operation on a target connection element, displaying a connection function menu of the target connection element to the target user.
[0093] Among them, the connection function menu is a menu for configuring the target connection element; in the embodiment of the present application, the connection function menu includes a starting element selection function, an ending element selection function and a connection type selection function.
[0094] Optionally, after the target user clicks on the target connection element, the server will display a connection function menu of the target connection element to the target user.
[0095] S402: Determine connection configuration information of a target connection graph element according to a connection configuration operation performed by a target user based on a connection function menu.
[0096] Optionally, the target user can select a corresponding function bar in the connection element menu to configure the target connection element, such as selecting the name, starting graphic, ending graphic, connection type, line type, line width, color, animation effect, etc. of the target connection element. Further, after the target user completes the connection configuration operation on the connection function menu, the server can obtain the connection configuration information of the target connection element according to the connection configuration operation of the target user.
[0097] It should be noted that if the target primitive also includes a text primitive or a node primitive, the target user also needs to configure the text primitive or the node primitive. Specifically, for a text primitive, the target user can click on the text primitive to activate the function menu for the text primitive, and can set the name, data binding field, border length, border width, stroke color, fill color, font color, font size, pointer direction and other parameters of the text primitive. For a node primitive, the target user can click on the node primitive to set the aggregation and dispersion of the node primitive.
[0098] In an embodiment of the present application, a connection function menu is introduced, and connection configuration information between target connection primitives is determined according to the connection configuration operation performed by the target user based on the connection function menu, thereby providing a convenient method for configuring target connection primitives.
[0099] Optionally, the connection configuration information includes a starting device primitive, an ending device primitive, and a primitive connection type; based on this, in one embodiment, Figure 5 As shown, a method for determining connection configuration information is provided to refine the above S402, specifically comprising the following steps:
[0100] S501 , in response to a click operation performed by a target user on a start element selection function, a first selection list including target device elements is displayed to the target user.
[0101] The first selection list is a list containing target device primitives for the target user to select a starting device primitive.
[0102] Optionally, the target user may click a start element selection function in a connection function menu based on the target connection element, and the server will display a first selection list containing target device elements to the target user.
[0103] S502: Use the target device primitive selected by the target user from the first selection list as the starting device primitive.
[0104] The starting device primitive is the starting device primitive to which the target connection primitive is connected.
[0105] Optionally, the target user clicks to select a desired target device primitive in the provided first selection list, and the server uses the target device primitive selected by the target user as the starting device primitive.
[0106] S503 , in response to a click operation performed by the target user on the ending element selection function, a second selection list including other device elements is displayed to the target user.
[0107] The second selection list is a list containing other device primitives for the target user to select the ending device primitive. The other device primitives are target device primitives other than the starting device primitive in the target device primitives.
[0108] Optionally, the target user can click on the end element selection function in the connection function menu based on the target connection element, and the server will display a second selection list containing other device elements to the target user.
[0109] S504: Use other device primitives selected by the target user from the second selection list as ending device primitives.
[0110] The end device primitive is the end device primitive to which the target connection primitive is connected.
[0111] Optionally, the target user clicks to select other required device primitives in the provided second selection list, and the server uses the other device primitives selected by the target user as the ending device primitives.
[0112] S505: Determine the primitive connection type according to the selection operation performed by the target user on the connection type selection function.
[0113] Among them, the connection type selection function is used for the user to select the primitive connection type of the target connection primitive, for example, the primitive connection type includes but is not limited to a bidirectional arrow, a unidirectional arrow, etc.
[0114] Optionally, the target user selects a primitive connection type for connecting the start device primitive and the end device primitive from supported candidate connection types in the provided connection type selection function. Further, the server uses the connection type selected by the target user as the primitive connection type.
[0115] In the embodiment of the present application, by introducing the starting primitive selection function, the ending primitive selection function and the connection type selection function, the configuration of the target connection primitive is realized, thereby providing a convenient and accurate method for configuring the target connection primitive.
[0116] Optionally, in one embodiment, Figure 6 As shown, a method for determining parameter configuration information of each target device primitive is provided, which specifically includes the following steps:
[0117] S601 : For each target device primitive, in response to a click operation of a target user on the target device primitive, display a parameter configuration interface of the target device primitive to the target user.
[0118] The parameter configuration interface is an interface for configuring the attribute parameters and working parameters of the target device graphic element.
[0119] Optionally, for each target device primitive, the target user may click on the target device primitive, and the server will display a parameter configuration interface of the target device primitive to the target user.
[0120] S602: Determine parameter configuration information of a target device graphic element according to an input operation performed by a target user on a parameter configuration interface.
[0121] Optionally, the target user may input corresponding parameter information in each parameter column in the parameter configuration interface, and the server may obtain the parameter configuration information of the target device graphic element according to the input operation of the target user.
[0122] For example, for cooling equipment graphics elements, the chiller graphics element is responsible for drawing the chiller equipment in the drawing area. The equipment name can be set, the real equipment number can be bound, and the background interface can be requested to display the equipment's real-time parameters such as cooling capacity, instantaneous power, and load rate. The cooling pump graphics element is responsible for drawing the cooling pump equipment in the drawing area. The equipment name can be set. The freezing pump graphics element is responsible for drawing the freezing pump equipment in the drawing area. The equipment name can be set. The water distributor graphics element is responsible for drawing the water distributor equipment in the drawing area. The equipment name can be set. The cooling tower graphics element is responsible for drawing the cooling tower equipment in the drawing area. The equipment name can be set.
[0123] In the embodiment of the present application, a parameter configuration interface is introduced, and parameter configuration information of a target device graphic element is determined according to an input operation performed by a target user on the parameter configuration interface, thereby ensuring the accuracy of the obtained parameter configuration information.
[0124] Optionally, after drawing the target topology map, the target user will save the target topology map. In the embodiment of the present application, multiple saving methods for saving the target topology map are provided. For example, normal saving, read-only saving, lightweight data exchange format (JavaScript Object Notation, JSON) saving, etc. In one embodiment, in order to facilitate multiple users to work together on the target topology map, such as Figure 7 As shown, a method for storing a target topology map is provided, which specifically includes the following steps:
[0125] S701, after receiving a topology map saving instruction, obtaining a saving mode carried in the topology map saving instruction.
[0126] The topology map saving instruction is used to instruct the server to save the target topology map; the topology map saving instruction carries the name of the target topology map, the saving method, etc.
[0127] Optionally, after the target user completes drawing the target topology map, he can click the Save button provided on the topology map creation page, enter the name of the target topology map in the pop-up Save Confirmation window, select the saving method, and click the Confirm button after completion. At this point, the server can receive the topology map saving instruction. Further, the server can obtain the saving method from the topology map saving instruction.
[0128] S702: If the saving method is the lightweight data exchange format JSON, a permission setting interface of the target topology map is displayed to the target user.
[0129] The permission setting interface is an interface for users to set the editable permissions of the target topology map.
[0130] Optionally, if the save mode is identified as JSON, a permission setting interface of the target topology map is displayed to the target user.
[0131] S703: Determine the drawing permission information of the target topology map according to the input operation of the target user on the permission setting interface.
[0132] The drawing permission information is information indicating the permission to edit the target topology map.
[0133] Optionally, there are many ways to display the permission setting interface, which are not limited in the embodiments of the present application. One method may be to display a password setting column in the permission setting interface for the password to be entered when editing the target topology map; another method may be to display an account name in the permission setting interface for verifying the user identity when editing the target topology map.
[0134] Optionally, the target user can set an editing password for the target topology map in the permission setting interface, or enter an account name that can edit the target topology map; further, the server generates drawing permission information for the target topology map based on the input content of the target user.
[0135] S704: Bind and store the drawing permission information and the target topology map.
[0136] It should be noted that, in order to ensure the security of the target topology map, the target topology map bound with the drawing permission information may be stored in encrypted form.
[0137] In the embodiment of the present application, by introducing the JSON storage method, collaborative operation on the target topology map is achieved, and the flexibility and convenience of the target topology map storage method are improved.
[0138] Optionally, based on the above embodiment, in one embodiment, as Figure 8 As shown, a method for collaboratively editing a target topology map is provided, which specifically includes the following steps:
[0139] S801: If an editing instruction of another user for a target topology map is identified, it is determined whether the other user has drawing authority according to drawing authority information bound to the target topology map.
[0140] The other users are users other than the target user. The editing instruction is an instruction for instructing the server to display an editing interface for editing the target topology map.
[0141] Optionally, after obtaining the target topology map, other users only have the permission to view the target topology map. When other users want to edit the target topology map, they need to click the edit button to trigger the editing instruction for the target topology map. The target user can enter the editing password in the pop-up verification window. The server compares the editing password in the drawing permission information bound to the target topology map with the editing password entered by the target user. If they are consistent, it means that the target user has the drawing permission; if they are inconsistent, it means that the target user does not have the drawing permission.
[0142] Alternatively, after recognizing an editing instruction for the target topology map, the server obtains the account name of other users and compares the account name in the drawing permission information bound to the target topology map with the account name of the target user. If they are consistent, it means that the target user has drawing permission; if they are inconsistent, it means that the target user does not have drawing permission.
[0143] S802: When it is determined that the other users have the drawing authority, an editing interface of the target topology map is displayed to the other users, so that the other users can collaboratively edit the target topology map.
[0144] Optionally, when it is determined that other users have drawing permissions, the editing interface of the target topology map can be displayed to other users so that other users can collaboratively edit the target topology map.
[0145] In the embodiment of the present application, by verifying the drawing permissions of other users, on the one hand, the security of the target topology map is guaranteed, and on the other hand, the drawing mode of the target topology map is enriched, thereby achieving collaborative drawing of the target topology map while ensuring security.
[0146] It should be noted that there are two ways to collaborate on the target topology map. One is collaborative drawing. The target topology map can be drawn by multiple people, multiple accounts, and multiple locations. Because the graphics drawing component is based on the browser, stored and read in JOSN format, the graphics drawing component is embedded in the business system page. You can draw it when you open the page, regardless of the location. As long as you have the permission, you can draw it. The last save will prevail. The other is collaborative use. The target device element in the target topology map can read the device information and remotely control it through the server. According to the personnel authority, the division of labor is divided into equipment administrators and equipment monitors. The equipment administrator is responsible for drawing the equipment topology structure, maintaining equipment parameters and upstream and downstream relationships of the equipment. The equipment monitor is responsible for monitoring the equipment parameter information and sending remote control equipment instructions, such as starting and stopping the equipment, adjusting the cooling temperature, and increasing the power.
[0147] Fig. 9 FIG. 1 is a flow chart of a method for drawing a topology map in another embodiment. Based on the above embodiment, this embodiment provides an optional example of a method for drawing a topology map. Fig. 9 The specific implementation process is as follows:
[0148] S901 , in response to a topology map creation instruction for a target topology map sent by a target user, display a topology map creation page to the target user.
[0149] The topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes a plurality of candidate graphic elements.
[0150] S902: Determine a target connection primitive and a target device primitive according to the primitive selection operation of the target user on each candidate primitive in the primitive area, and place the target connection primitive and the target device primitive in the drawing area.
[0151] S903 , in response to the target user's click operation on the target connection element, displaying a connection function menu of the target connection element to the target user.
[0152] Among them, the connection function menu includes a start element selection function, an end element selection function and a connection type selection function.
[0153] S904: Determine connection configuration information between target device graphics elements according to the connection configuration operation performed by the target user based on the connection function menu.
[0154] Optionally, in response to a click operation performed by the target user on the starting element selection function, a first selection list including target device elements is displayed to the target user; the target device element selected by the target user from the first selection list is used as the starting device element; in response to a click operation performed by the target user on the ending element selection function, a second selection list including other device elements is displayed to the target user; wherein the other device elements are target device elements other than the starting device element in the target device elements; the other device elements selected by the target user from the second selection list are used as the ending device elements; and the element connection type is determined according to the selection operation performed by the target user on the connection type selection function.
[0155] S905 , in response to the target user's click operation on each target device primitive, displaying a parameter configuration interface of each target device primitive to the target user.
[0156] S906: Determine parameter configuration information of each target device graphic element according to the input operation of the target user on each parameter configuration interface.
[0157] S907: Configure each target device element according to the connection configuration information and the parameter configuration information to complete drawing of the target topology map.
[0158] S908: After receiving the topology map saving instruction, obtain the saving mode carried in the topology map saving instruction.
[0159] S909: If the saving method is the lightweight data exchange format JSON, a permission setting interface of the target topology map is displayed to the target user.
[0160] S910: Determine drawing permission information of a target topology map according to an input operation of a target user on a permission setting interface.
[0161] S911, binding and storing the drawing permission information and the target topology map.
[0162] Optionally, if editing instructions from other users for the target topology map are identified, it is determined whether the other users have drawing permissions based on the drawing permission information bound to the target topology map; if it is determined that the other users have drawing permissions, the editing interface of the target topology map is displayed to the other users so that the other users can collaboratively edit the target topology map.
[0163] The specific process of S901-S911 above can refer to the description of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0164] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0165] Based on the same inventive concept, the embodiment of the present application also provides a topology drawing device for implementing the topology drawing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more topology drawing device embodiments provided below can refer to the limitations of the topology drawing method above, and will not be repeated here.
[0166] In one embodiment, Fig.10 As shown, a topology map drawing device 1000 is provided, comprising: a page display module 1010, a graphic element placement module 1020 and a topology map drawing module 1030, wherein:
[0167] The page display module 1010 is used to display a topology map creation page to the target user in response to a topology map creation instruction for a target topology map sent by the target user; wherein the topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes multiple candidate graphic elements.
[0168] The primitive placement module 1020 is used to determine the target primitive according to the primitive selection operation of the target user on each candidate primitive in the primitive area, and place the target primitive in the drawing area.
[0169] The topology drawing module 1030 is used to configure the target graphic element in the drawing area according to the graphic element configuration operation of the target user to complete the drawing of the target topology map.
[0170] In one embodiment, the target primitive includes a target connection primitive and at least two target device primitives, and the primitive configuration operation includes a connection configuration operation and a parameter configuration operation; the topology drawing module 1030 includes:
[0171] The first determining unit is used to determine the connection configuration information of the target link primitive according to the connection configuration operation of the target user on the target link primitive.
[0172] The second determining unit is used to determine parameter configuration information of each target device primitive according to the parameter configuration operation of each target device primitive by the target user.
[0173] The configuration unit is used to configure the target device primitive according to the connection configuration information and the parameter configuration information.
[0174] In one embodiment, the first determining unit includes:
[0175] The display slave unit is used to display the connection function menu of the target connection element to the target user in response to the target user's click operation on the target connection element; wherein the connection function menu includes a start element selection function, an end element selection function and a connection type selection function.
[0176] The slave unit is determined to determine the connection configuration information between the target connection graph elements according to the connection configuration operation performed by the target user based on the connection function menu.
[0177] In one embodiment, the connection configuration information includes a starting device primitive, an ending device primitive, and a primitive connection type; determining that the slave unit is specifically used for:
[0178] In response to a click operation performed by the target user on the start element selection function, a first selection list including target device elements is displayed to the target user; the target device element selected by the target user from the first selection list is used as the start device element; in response to a click operation performed by the target user on the end element selection function, a second selection list including other device elements is displayed to the target user; wherein the other device elements are target device elements other than the start device element in the target device elements; the other device elements selected by the target user from the second selection list are used as the end device elements; and the element connection type is determined according to the selection operation performed by the target user on the connection type selection function.
[0179] In one embodiment, the second determining unit is specifically configured to:
[0180] For each target device primitive, in response to a click operation of the target user on the target device primitive, a parameter configuration interface of the target device primitive is displayed to the target user; and according to the input operation of the target user on the parameter configuration interface, parameter configuration information of the target device primitive is determined.
[0181] In one embodiment, the topology map drawing device 1000 further includes:
[0182] The method acquisition module is used to acquire the saving method carried in the topology map saving instruction after receiving the topology map saving instruction.
[0183] The interface display module is used to display the permission setting interface of the target topology map to the target user if the saving method is the lightweight data exchange format JSON.
[0184] The information acquisition module is used to determine the drawing permission information of the target topology map according to the input operation of the target user on the permission setting interface.
[0185] The storage module is used to bind and store the drawing permission information with the target topology map.
[0186] In one embodiment, the storage module is specifically used for:
[0187] If editing instructions from other users for the target topology map are identified, it is determined whether the other users have drawing permissions based on the drawing permission information bound to the target topology map; if it is determined that the other users have drawing permissions, the editing interface of the target topology map is displayed to the other users so that the other users can collaboratively edit the target topology map.
[0188] The above-mentioned topology map drawing device, in response to the topology map creation instruction for the target topology map sent by the target user, displays the topology map creation page to the target user; wherein the topology map creation page includes a primitive area and a drawing area, and the primitive area includes multiple candidate primitives; according to the primitive selection operation of the target user on each candidate primitive in the primitive area, the target primitive is determined, and the target primitive is placed in the drawing area; according to the primitive configuration operation of the target user on the target primitive in the drawing area, the target primitive is configured to complete the drawing of the target topology map. The above-mentioned scheme, by introducing the BS architecture, realizes the visual online drawing of the topology map without the need to install any software and plug-ins; at the same time, by setting the primitive area and the drawing area on the topology map creation page, the target user is facilitated to draw the target topology map; further, by selecting and configuring the target primitives respectively, the drawing of the target topology map is completed, thereby improving the drawing efficiency of the target topology map.
[0189] Each module in the above-mentioned topology drawing device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0190] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.11As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for drawing a topology map is implemented.
[0191] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0192] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0193] In response to a topology map creation instruction for a target topology map sent by a target user, a topology map creation page is displayed to the target user; wherein the topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes a plurality of candidate graphic elements;
[0194] According to the target user's selection operation on each candidate element in the element area, a target element is determined, and the target element is placed in the drawing area;
[0195] According to the target user's configuration operation on the target element in the drawing area, the target element is configured to complete the drawing of the target topology map.
[0196] In one embodiment, the target primitive includes a target connection primitive and at least two target device primitives, and the primitive configuration operation includes a connection configuration operation and a parameter configuration operation; when the processor executes the computer program to configure the target primitive according to the primitive configuration operation of the target primitive in the drawing area by the target user, the processor further implements the following steps:
[0197] According to the connection configuration operation of the target connection element by the target user, the connection configuration information of the target connection element is determined; according to the parameter configuration operation of each target device element by the target user, the parameter configuration information of each target device element is determined; according to the connection configuration information and the parameter configuration information, the target device element is configured.
[0198] In one embodiment, when the processor executes the computer program to determine the connection configuration information of the target wiring primitive according to the connection configuration operation of the target user on the target wiring primitive, the processor further implements the following steps:
[0199] In response to the target user's click operation on the target connection element, a connection function menu of the target connection element is displayed to the target user; wherein the connection function menu includes a start element selection function, an end element selection function and a connection type selection function; according to the connection configuration operation performed by the target user based on the connection function menu, the connection configuration information between the target connection elements is determined.
[0200] In one embodiment, the connection configuration information includes a starting device primitive, an ending device primitive, and a primitive connection type; when the processor executes the computer program to determine the connection configuration information between each target device primitive according to the connection configuration operation performed by the target user based on the connection function menu, the processor further implements the following steps:
[0201] In response to a click operation performed by the target user on the start element selection function, a first selection list including target device elements is displayed to the target user; the target device element selected by the target user from the first selection list is used as the start device element; in response to a click operation performed by the target user on the end element selection function, a second selection list including other device elements is displayed to the target user; wherein the other device elements are target device elements other than the start device element in the target device elements; the other device elements selected by the target user from the second selection list are used as the end device elements; and the element connection type is determined according to the selection operation performed by the target user on the connection type selection function.
[0202] In one embodiment, when the processor executes the computer program to determine the parameter configuration information of each target device primitive according to the parameter configuration operation of the target user on each target device primitive, the processor further implements the following steps:
[0203] For each target device primitive, in response to a click operation of the target user on the target device primitive, a parameter configuration interface of the target device primitive is displayed to the target user; and according to the input operation of the target user on the parameter configuration interface, parameter configuration information of the target device primitive is determined.
[0204] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0205] After receiving a topology map saving instruction, obtain the saving method carried in the topology map saving instruction; if the saving method is the lightweight data exchange format JSON, display the permission setting interface of the target topology map to the target user; determine the drawing permission information of the target topology map according to the input operation of the target user on the permission setting interface; bind the drawing permission information with the target topology map for storage.
[0206] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0207] If editing instructions from other users for the target topology map are identified, it is determined whether the other users have drawing permissions based on the drawing permission information bound to the target topology map; if it is determined that the other users have drawing permissions, the editing interface of the target topology map is displayed to the other users so that the other users can collaboratively edit the target topology map.
[0208] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0209] In response to a topology map creation instruction for a target topology map sent by a target user, a topology map creation page is displayed to the target user; wherein the topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes a plurality of candidate graphic elements;
[0210] According to the target user's selection operation on each candidate element in the element area, a target element is determined, and the target element is placed in the drawing area;
[0211] According to the target user's configuration operation on the target element in the drawing area, the target element is configured to complete the drawing of the target topology map.
[0212] In one embodiment, the target primitive includes a target connection primitive and at least two target device primitives, and the primitive configuration operation includes a connection configuration operation and a parameter configuration operation; when the processor executes the computer program to configure the target primitive according to the primitive configuration operation of the target primitive in the drawing area by the target user, the processor further implements the following steps:
[0213] According to the connection configuration operation of the target connection element by the target user, the connection configuration information of the target connection element is determined; according to the parameter configuration operation of each target device element by the target user, the parameter configuration information of each target device element is determined; according to the connection configuration information and the parameter configuration information, the target device element is configured.
[0214] In one embodiment, when the processor executes the computer program to determine the connection configuration information of the target wiring primitive according to the connection configuration operation of the target user on the target wiring primitive, the processor further implements the following steps:
[0215] In response to the target user's click operation on the target connection element, a connection function menu of the target connection element is displayed to the target user; wherein the connection function menu includes a start element selection function, an end element selection function and a connection type selection function; according to the connection configuration operation performed by the target user based on the connection function menu, the connection configuration information between the target connection elements is determined.
[0216] In one embodiment, the connection configuration information includes a starting device primitive, an ending device primitive, and a primitive connection type; when the processor executes the computer program to determine the connection configuration information between each target device primitive according to the connection configuration operation performed by the target user based on the connection function menu, the processor further implements the following steps:
[0217] In response to a click operation performed by the target user on the start element selection function, a first selection list including target device elements is displayed to the target user; the target device element selected by the target user from the first selection list is used as the start device element; in response to a click operation performed by the target user on the end element selection function, a second selection list including other device elements is displayed to the target user; wherein the other device elements are target device elements other than the start device element in the target device elements; the other device elements selected by the target user from the second selection list are used as the end device elements; and the element connection type is determined according to the selection operation performed by the target user on the connection type selection function.
[0218] In one embodiment, when the processor executes the computer program to determine the parameter configuration information of each target device primitive according to the parameter configuration operation of the target user on each target device primitive, the processor further implements the following steps:
[0219] For each target device primitive, in response to a click operation of the target user on the target device primitive, a parameter configuration interface of the target device primitive is displayed to the target user; and according to the input operation of the target user on the parameter configuration interface, parameter configuration information of the target device primitive is determined.
[0220] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0221] After receiving a topology map saving instruction, obtain the saving method carried in the topology map saving instruction; if the saving method is the lightweight data exchange format JSON, display the permission setting interface of the target topology map to the target user; determine the drawing permission information of the target topology map according to the input operation of the target user on the permission setting interface; bind the drawing permission information with the target topology map for storage.
[0222] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0223] If editing instructions from other users for the target topology map are identified, it is determined whether the other users have drawing permissions based on the drawing permission information bound to the target topology map; if it is determined that the other users have drawing permissions, the editing interface of the target topology map is displayed to the other users so that the other users can collaboratively edit the target topology map.
[0224] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0225] In response to a topology map creation instruction for a target topology map sent by a target user, a topology map creation page is displayed to the target user; wherein the topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes a plurality of candidate graphic elements;
[0226] According to the target user's selection operation on each candidate element in the element area, a target element is determined, and the target element is placed in the drawing area;
[0227] According to the target user's configuration operation on the target element in the drawing area, the target element is configured to complete the drawing of the target topology map.
[0228] In one embodiment, the target primitive includes a target connection primitive and at least two target device primitives, and the primitive configuration operation includes a connection configuration operation and a parameter configuration operation; when the processor executes the computer program to configure the target primitive according to the primitive configuration operation of the target primitive in the drawing area by the target user, the processor further implements the following steps:
[0229] According to the connection configuration operation of the target connection element by the target user, the connection configuration information of the target connection element is determined; according to the parameter configuration operation of each target device element by the target user, the parameter configuration information of each target device element is determined; according to the connection configuration information and the parameter configuration information, the target device element is configured.
[0230] In one embodiment, when the processor executes the computer program to determine the connection configuration information of the target wiring primitive according to the connection configuration operation of the target user on the target wiring primitive, the processor further implements the following steps:
[0231] In response to the target user's click operation on the target connection element, a connection function menu of the target connection element is displayed to the target user; wherein the connection function menu includes a start element selection function, an end element selection function and a connection type selection function; according to the connection configuration operation performed by the target user based on the connection function menu, the connection configuration information between the target connection elements is determined.
[0232] In one embodiment, the connection configuration information includes a starting device primitive, an ending device primitive, and a primitive connection type; when the processor executes the computer program to determine the connection configuration information between each target device primitive according to the connection configuration operation performed by the target user based on the connection function menu, the processor further implements the following steps:
[0233] In response to a click operation performed by the target user on the start element selection function, a first selection list including target device elements is displayed to the target user; the target device element selected by the target user from the first selection list is used as the start device element; in response to a click operation performed by the target user on the end element selection function, a second selection list including other device elements is displayed to the target user; wherein the other device elements are target device elements other than the start device element in the target device elements; the other device elements selected by the target user from the second selection list are used as the end device elements; and the element connection type is determined according to the selection operation performed by the target user on the connection type selection function.
[0234] In one embodiment, when the processor executes the computer program to determine the parameter configuration information of each target device primitive according to the parameter configuration operation of the target user on each target device primitive, the processor further implements the following steps:
[0235] For each target device primitive, in response to a click operation of the target user on the target device primitive, a parameter configuration interface of the target device primitive is displayed to the target user; and according to the input operation of the target user on the parameter configuration interface, parameter configuration information of the target device primitive is determined.
[0236] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0237] After receiving a topology map saving instruction, obtain the saving method carried in the topology map saving instruction; if the saving method is the lightweight data exchange format JSON, display the permission setting interface of the target topology map to the target user; determine the drawing permission information of the target topology map according to the input operation of the target user on the permission setting interface; bind the drawing permission information with the target topology map for storage.
[0238] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0239] If editing instructions from other users for the target topology map are identified, it is determined whether the other users have drawing permissions based on the drawing permission information bound to the target topology map; if it is determined that the other users have drawing permissions, the editing interface of the target topology map is displayed to the other users so that the other users can collaboratively edit the target topology map.
[0240] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0241] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0242] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0243] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for drawing a topological map, characterized in that: Applied to a server in a browser and server BS architecture, the method comprises: In response to a topology map creation instruction for a target topology map sent by a target user, a topology map creation page is displayed to the target user; wherein the topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes a plurality of candidate graphic elements; Determine a target primitive according to the primitive selection operation of the target user on each candidate primitive in the primitive area, and place the target primitive in the drawing area; According to the target user's primitive configuration operation on the target primitive in the drawing area, the target primitive is configured to complete the drawing of the target topology map.
2. The method according to claim 1, characterized in that The target primitive includes a target connection primitive and at least two target device primitives, and the primitive configuration operation includes a connection configuration operation and a parameter configuration operation; The configuring the target graphic element in the drawing area according to the graphic element configuration operation of the target user includes: Determining connection configuration information of the target link primitive according to the connection configuration operation of the target user on the target link primitive; Determining parameter configuration information of each target device graphic element according to the parameter configuration operation of each target device graphic element by the target user; The target device primitive is configured according to the connection configuration information and the parameter configuration information.
3. The method according to claim 2, characterized in that The step of determining the connection configuration information of the target link primitive according to the connection configuration operation of the target user on the target link primitive comprises: In response to the target user clicking the target connection primitive, a connection function menu of the target connection primitive is displayed to the target user; wherein the connection function menu includes a start primitive selection function, an end primitive selection function and a connection type selection function; According to the connection configuration operation performed by the target user based on the connection function menu, connection configuration information between target connection primitives is determined.
4. The method according to claim 3, characterized in that The connection configuration information includes a starting device primitive, an ending device primitive, and a primitive connection type; The determining, according to the connection configuration operation performed by the target user based on the connection function menu, connection configuration information between the target device primitives includes: In response to a click operation of the target user on the initial element selection function, displaying a first selection list including target device elements to the target user; Using the target device primitive selected by the target user from the first selection list as the starting device primitive; In response to a click operation performed by the target user on the ending element selection function, a second selection list including other device elements is displayed to the target user; wherein the other device elements are target device elements other than the starting device element in the target device elements; Using other device primitives selected by the target user from the second selection list as ending device primitives; The primitive connection type is determined according to the selection operation of the target user on the connection type selection function.
5. The method according to claim 2, characterized in that: The step of determining parameter configuration information of each target device primitive according to the parameter configuration operation of the target user on each target device primitive comprises: For each target device primitive, in response to a click operation of the target user on the target device primitive, displaying a parameter configuration interface of the target device primitive to the target user; The parameter configuration information of the target device graphic element is determined according to the input operation performed by the target user on the parameter configuration interface.
6. The method according to claim 1, characterized in that The method further comprises: After receiving the topology map saving instruction, obtaining the saving mode carried in the topology map saving instruction; If the saving mode is the lightweight data exchange format JSON, then the permission setting interface of the target topology map is displayed to the target user; Determining the drawing permission information of the target topology map according to the input operation of the target user on the permission setting interface; The drawing permission information is bound to the target topology map and stored.
7. The method according to claim 6, characterized in that The method further comprises: If an editing instruction of another user for the target topology map is identified, determining whether the other user has the drawing authority according to the drawing authority information bound to the target topology map; When it is determined that the other users have the drawing authority, an editing interface of the target topology map is displayed to the other users so that the other users can collaboratively edit the target topology map.
8. A topology map drawing device, characterized in that: A server configured in a BS architecture, the device comprising: A page display module, configured to display a topology map creation page to a target user in response to a topology map creation instruction sent by a target user for a target topology map; wherein the topology map creation page includes a graphic element area and a drawing area, and the graphic element area includes a plurality of candidate graphic elements; A primitive placement module, used to determine a target primitive according to a primitive selection operation of the target user on each candidate primitive in the primitive area, and place the target primitive in the drawing area; The topology drawing module is used to configure the target graphic element in the drawing area according to the graphic element configuration operation of the target user to complete the drawing of the target topology map.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.