Pārlūkot izejas kodu

设备锚点功能修改

haojianlong 3 gadi atpakaļ
vecāks
revīzija
14e7c62628

+ 1 - 1
package.json

@@ -19,7 +19,7 @@
     "@persagy-web/big": "2.2.61",
     "@persagy-web/draw": "2.2.17",
     "@persagy-web/graph": "2.2.52",
-    "@persagy-web/big-edit": "2.2.44",
+    "@persagy-web/big-edit": "2.2.45",
     "@persagy-web/edit": "2.2.36",
     "@types/uuid": "^8.0.0",
     "ant-design-vue": "^1.6.5",

+ 1 - 0
src/components/editview/baseTopoEditer.vue

@@ -551,6 +551,7 @@ export default {
         };
         if (equipAnchor[item.classCode]) {
           data.anchorList = equipAnchor[item.classCode];
+          data.properties.isNewAnchor = true;
         }
         parse.addNode(data);
       });

+ 5 - 5
src/components/editview/equipAnchor.js

@@ -10,18 +10,18 @@
 
 // }
 export const equipAnchor = {
-  "WSSTSP": [
+  "WSSTSP": [ // 潜污泵-B2
     {
       id: '',
       pos: {
-        x: 50,
+        x: 0.2,
         y: 0
       }
     },
     {
       id: '',
       pos: {
-        x: -50,
+        x: -0.2,
         y: 0
       }
     },
@@ -29,14 +29,14 @@ export const equipAnchor = {
       id: '',
       pos: {
         x: 0,
-        y: 50
+        y: 0.2
       }
     },
     {
       id: '',
       pos: {
         x: 0,
-        y: -50
+        y: -0.2
       }
     },
   ],