Browse Source

修改图闪bug

haojianlong 5 years ago
parent
commit
ecbbd2d6fc

+ 1 - 1
src/components/business_space/newGraphy/graphy.vue

@@ -729,7 +729,7 @@ export default {
     },
     // 清除canvas
     clearGraphy() {
-      if (this.view && this.view.scene) {
+      if (this.view) {
         this.view.scene = null;
         return
       }

+ 2 - 3
src/views/ledger/spacelist/index.vue

@@ -112,7 +112,7 @@ export default {
         children: "Floor"
       },
       floorToMap: {}, //楼层及其对应的模型图
-      FloorMap: "", //当前选中的楼层对象
+      FloorMap: {}, //当前选中的楼层对象
       buildFloorSelectd: ['all'], //当前所选的建筑楼层
       childBackParam: {}
     };
@@ -196,12 +196,11 @@ export default {
     },
     //修改所选建筑楼层
     changeCascader(val) {
-          console.log(this.buildFloorSelectd);
-          console.log(1111111111111111111);
       this.buildFloorSelectd = val;
       // 如果选择的是全部或者未明确
       if (val.indexOf('noKnow') > -1 || val.indexOf('all') > -1) {
         this.isMyTab = 2;
+        this.FloorMap = {}
       } else {
         // 选择的是具体某个楼层
         if (!this.floorToMap[val[1]].StructureInfo || !this.floorToMap[val[1]].StructureInfo.FloorMap) {