Browse Source

修改bug 编辑平面图按钮 隐藏bug

haojianlong 4 years ago
parent
commit
f1fb850a08

+ 2 - 2
package.json

@@ -22,8 +22,8 @@
     "@saga-web/base": "2.1.9",
     "@saga-web/cad-engine": "2.0.548",
     "@saga-web/draw": "2.1.75",
-    "@saga-web/graphy": "2.1.42",
-    "@saga-web/topology": "1.0.41",
+    "@saga-web/graphy": "2.1.45",
+    "@saga-web/topology": "1.0.53",
     "axios": "^0.18.0",
     "echarts": "^4.1.0",
     "el-cascader-multi": "^1.1.8",

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

@@ -86,13 +86,10 @@ export default {
           Width: 100,
           Height: 50
         },
-        Pos:{},
-        AnchorList: [{ FaceType: 0, Pos: {} }, { FaceType: 1, Pos: {} }, { FaceType: 2, Pos: {} }, { FaceType: 3, Pos: {} }]
+        Pos: {},
+        AnchorList: [{ Pos: { X: 0, Y: -25 } },{ Pos: { X: 0, Y: 25 } },{ Pos: { X: -50, Y: 0 } },{ Pos: { X: 50, Y: 0} }]
       }
       this.scene.createItem(equipdata)
-      this.scene.grabItem.moveable = true
-      console.log(this.scene)
-      console.log(this.view)
     },
     drawline() {
       this.scene.isLining = true;

+ 1 - 1
src/views/ready/buildfloor/drawGraphy/drawFloor.vue

@@ -143,7 +143,7 @@ export default {
           }
         });
         this.drawMainScene.addAllShade(this.shadeList);
-        this.$emit('changeSign', this.shadeList.length > 0);
+        this.$emit('changeSign', res.Content.length > 1);
       });
     },
     // 清空平面图