LXXXY преди 5 години
родител
ревизия
ff08b1efc9
променени са 1 файла, в които са добавени 13 реда и са изтрити 7 реда
  1. 13 7
      src/components/point/report/objectInstance.vue

+ 13 - 7
src/components/point/report/objectInstance.vue

@@ -145,23 +145,29 @@ export default {
         that.views[key].scene = null;
         that.scenes[key] = null;
         //类型
-        if (typecode == 'Eq' || typecode == 'Ec')
+        if (typecode == 'Eq' || typecode == 'Ec') {
           that.scenes[key] = new LocationPointScene();
-        else if (typecode == 'Sp')
+        }
+        else if (typecode == 'Sp') {
           that.scenes[key] = new DivideFloorScene();
-        else
+        }
+        else {
           that.scenes[key] = null;
+        }
         if (res2.Content[0].StructureInfo && res2.Content[0].StructureInfo.FloorMap) {
           //获取数据,并加载canvas
           that.scenes[key].loadUrl(`/image-service/common/file_get?systemId=revit&key=${res2.Content[0].StructureInfo.FloorMap}`).then(() => {
             that.views[key].scene = that.scenes[key];
             that.scenes[key].isSpaceSelectable = false;
-            if (typecode == 'Eq' || typecode == 'Ec')
+            if (typecode == 'Eq' || typecode == 'Ec') {
               that.scenes[key].addMarker(options);
-            else if (typecode == 'Sp')
+            }
+            else if (typecode == 'Sp') {
               that.scenes[key].addZone(options);
-            else
-              ;
+            }
+            else {
+
+            }
             that.views[key].fitSceneToView();
           })
         }