From 9ccfd089b6cac9f8ba0cb7cadfee01857a715f0d Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期六, 12 十月 2024 10:34:43 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 web/src/views/modules/taskReliability/RBD-edit-img.vue |   68 +++++++++++++++++-----------------
 1 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/web/src/views/modules/taskReliability/RBD-edit-img.vue b/web/src/views/modules/taskReliability/RBD-edit-img.vue
index 925aada..b92bdab 100644
--- a/web/src/views/modules/taskReliability/RBD-edit-img.vue
+++ b/web/src/views/modules/taskReliability/RBD-edit-img.vue
@@ -260,7 +260,7 @@
                         "r": 4,
                         "magnet": true,
                         "stroke": "#5F95FF",
-                        "strokeWidth": 1,
+
                         "fill": "#fff",
                         "style": {
                           "visibility": "hidden"
@@ -1969,10 +1969,36 @@
 
         const leftConnectNode = this.createConnectNode(x, y + 87)
         const alignCenterDashedBox = this.createDashedBox(x + 209, y + 87)
-        const rightConnectNode = this.createBridgeNode(x + 530, y + 87)
-
         const leftBottomDashedBox = this.createDashedBox(x + 40, y + 160)
         const rightBottomDashedBox = this.createDashedBox(x + 380, y + 160)
+        let edgeTop = this.graph.addEdge({
+          source: {cell: leftTopDashedBox},
+          target: {cell: rightTopDashedBox},
+          router: {
+            name: 'manhattan',
+            args: {
+              startDirections: ['right'], // 浠庝笅鏂瑰紑濮�
+              endDirections: ['left'],      // 鍚戝乏鏂圭粨鏉�
+            },
+          },
+          connector: {name: 'rounded'},
+          zIndex: -1
+        })
+        let edgeBottom = this.graph.addEdge({
+          source: {cell: leftBottomDashedBox},
+          target: {cell: rightBottomDashedBox},
+          router: {
+            name: 'manhattan',
+            args: {
+              startDirections: ['right'], // 浠庝笅鏂瑰紑濮�
+              endDirections: ['left'],      // 鍚戝乏鏂圭粨鏉�
+            },
+          },
+          connector: {name: 'rounded'},
+          zIndex: -1
+        })
+
+        const rightConnectNode = this.createBridgeNode(x + 530, y + 87, leftConnectNode.id, edgeTop.id, edgeBottom.id)
 
         rightConnectNode.setData({startNodeId: leftConnectNode.id})
         leftConnectNode.setData({endNodeId: rightConnectNode.id})
@@ -2008,33 +2034,6 @@
             name: 'manhattan',
             args: {
               startDirections: ['top', 'bottom'], // 浠庝笅鏂瑰紑濮�
-              endDirections: ['left'],      // 鍚戝乏鏂圭粨鏉�
-            },
-          },
-          connector: {name: 'rounded'},
-          zIndex: -1
-        })
-
-        let edgeTop = this.graph.addEdge({
-          source: {cell: leftTopDashedBox},
-          target: {cell: rightTopDashedBox},
-          router: {
-            name: 'manhattan',
-            args: {
-              startDirections: ['right'], // 浠庝笅鏂瑰紑濮�
-              endDirections: ['left'],      // 鍚戝乏鏂圭粨鏉�
-            },
-          },
-          connector: {name: 'rounded'},
-          zIndex: -1
-        })
-        let edgeBottom = this.graph.addEdge({
-          source: {cell: leftBottomDashedBox},
-          target: {cell: rightBottomDashedBox},
-          router: {
-            name: 'manhattan',
-            args: {
-              startDirections: ['right'], // 浠庝笅鏂瑰紑濮�
               endDirections: ['left'],      // 鍚戝乏鏂圭粨鏉�
             },
           },
@@ -2169,18 +2168,19 @@
         connectNode.position(x, y - connectNode.size().height / 2)
         return connectNode
       },
-      createBridgeNode(x, y) {
-        const connectId = getUUID().toString()
+      createBridgeNode(x, y, connectId, edgeTopId, edgeBottomId) {
         const dragNodeId = getUUID().toString()
         let bridgeNode = this.graph.addNode({
           shape: 'image',
           width: 30,
           height: 30,
-          id: connectId,
+          id: dragNodeId,
           data: {
             isSelfCreated: true,
             type: 'imageNodes',
-            endNodeId: dragNodeId,
+            startNodeId: connectId,
+            edgeTopId: edgeTopId,
+            edgeBottomId: edgeBottomId,
             dataId: '',
             nodeType: 'bridge',
             nodeTypeExt: '',

--
Gitblit v1.9.1