Browse Source

拓扑图

haojianlong 4 years ago
parent
commit
5b94dcfb3c
2 changed files with 6 additions and 5 deletions
  1. 1 1
      package.json
  2. 5 4
      src/views/business_space/dataUtil/topology.vue

+ 1 - 1
package.json

@@ -23,7 +23,7 @@
     "@saga-web/cad-engine": "2.0.548",
     "@saga-web/draw": "2.1.75",
     "@saga-web/graphy": "2.1.42",
-    "@saga-web/topology": "1.0.10",
+    "@saga-web/topology": "1.0.41",
     "axios": "^0.18.0",
     "echarts": "^4.1.0",
     "el-cascader-multi": "^1.1.8",

+ 5 - 4
src/views/business_space/dataUtil/topology.vue

@@ -83,17 +83,18 @@ export default {
       let equipdata = {
         ID: this.uuid(),
         Size: {
-          Width: 200,
-          Height: 100
+          Width: 100,
+          Height: 50
         },
-        AnchorList: [{ Pos: { X: 0, Y: 0 }, FaceType: 0 }]
+        Pos:{},
+        AnchorList: [{ FaceType: 0, Pos: {} }, { FaceType: 1, Pos: {} }, { FaceType: 2, Pos: {} }, { FaceType: 3, Pos: {} }]
       }
       this.scene.createItem(equipdata)
       this.scene.grabItem.moveable = true
       console.log(this.scene)
       console.log(this.view)
     },
-    drawline(){
+    drawline() {
       this.scene.isLining = true;
     },
     uuid(len, radix) {