Browse Source

业务空间轮廓线更新问题

haojianlong 4 years ago
parent
commit
16aa6cd166
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/components/business_space/newGraphy/graphy.vue

+ 6 - 3
src/components/business_space/newGraphy/graphy.vue

@@ -451,7 +451,7 @@ export default {
             this.view._needDraw = true;
             this.fit();
           } catch (err) {
-            console.log(err,'------------');
+            console.log(err, '------------');
             console.log(this)
           }
           this.canvasLoading = false;
@@ -855,7 +855,7 @@ export default {
       }
       let pa = {
         content: [space],
-        projection: ['state']
+        // projection: ['state']
       }
       zoneUpdate(pa, res => {
         this.curZoneItem.isInfected = false;
@@ -1181,7 +1181,10 @@ export default {
       zoneObj.floorId = this.buildFloor[1];
       let pa = {
         content: [zoneObj],
-        projection: ['bimLocation', 'classCode', 'outline', 'height', 'buildingId', 'floorId']
+        // projection: ['bimLocation', 'classCode', 'outline', 'height', 'buildingId', 'floorId']
+      }
+      if (!zoneObj.outline) {
+        pa.nullItems = ['outline']
       }
       zoneUpdate(pa, res => {
         zoneUpdateOutline(pa, res => { console.log(res) })