Browse Source

修改无数据 默认高度0

haojianlong 5 years ago
parent
commit
29cab5a924
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/business_space/dataUtil/index.vue

+ 3 - 3
src/views/business_space/dataUtil/index.vue

@@ -55,7 +55,7 @@ export default {
           "Name": "网络分区",
           "Rel_type": "3",
           "Code": "NetworkZone"
-        }, 
+        },
         {
           "Code": "AirConditioningZone",
           "Name": "空调分区",
@@ -75,7 +75,7 @@ export default {
           "Name": "生活给水分区",
           "Rel_type": "7",
           "Code": "DomesticWaterSupplyZone"
-        }, 
+        },
         {
           "Code": "FireZone",
           "Name": "防火分区",
@@ -600,7 +600,7 @@ export default {
         }
         if (this.sourceIdToOutline[this.allSiListMap[key]]) {
           obj.Outline = this.sourceIdToOutline[this.allSiListMap[key]];
-          obj.Height = this.sourceIdToHeight[this.allSiListMap[key]];
+          obj.Height = this.sourceIdToHeight[this.allSiListMap[key]] || 0;
           pa.data.Content.push(obj);
         }
       }