浏览代码

更新包 解决顶楼无图问题 和 红谷广场无法fit问题

haojianlong 4 年之前
父节点
当前提交
6522b2147b
共有 2 个文件被更改,包括 13 次插入12 次删除
  1. 3 3
      package.json
  2. 10 9
      src/components/baseEditer.vue

+ 3 - 3
package.json

@@ -9,10 +9,10 @@
   },
   "dependencies": {
     "@saga-web/base": "2.1.27",
-    "@saga-web/big": "1.0.111",
+    "@saga-web/big": "1.0.112",
     "@saga-web/draw": "2.1.107",
-    "@saga-web/feng-map": "1.0.44",
-    "@saga-web/graph": "2.1.124",
+    "@saga-web/feng-map": "1.0.45",
+    "@saga-web/graph": "2.1.125",
     "ant-design-vue": "^1.6.0",
     "core-js": "^3.6.4",
     "element-ui": "^2.13.2",

+ 10 - 9
src/components/baseEditer.vue

@@ -257,10 +257,12 @@ export default {
         this.fParser.casementList.forEach(t => this.scene.addItem(t));
         this.fParser.pList = [];
         res.PList.forEach(t => {
-          const item = new SCircleItem(null, t);
-          this.fParser.pList.push(item);
-          this.scene.fidToItem[t.SourceId] = item;
-          this.scene.addItem(item);
+          if (t.Pos.X >= 0 && t.Pos.Y <= 0) {
+            const item = new SCircleItem(null, t);
+            this.fParser.pList.push(item);
+            this.scene.fidToItem[t.SourceId] = item;
+            this.scene.addItem(item);
+          }
         });
         this.view.scene = this.scene;
         this.readGraph();
@@ -352,12 +354,11 @@ export default {
           });
         }
 
-        if(this.urlMsg.projectId==1000384 && this.urlMsg.FloorID =='f2'){
-                  console.log('对河南红谷滩兼容');
-        }else{
+        // if(this.urlMsg.projectId==1000384 && this.urlMsg.FloorID =='f2'){
+        //           console.log('对河南红谷滩兼容');
+        // }else{
         this.view.fitSceneToView();
-        }
-
+        // }
         // 设置初始化缩放比例
         this.initScale = this.view.scale;
         this.view.maxScale = this.initScale * 10;