Explorar o código

更改空间显示名称 X空间 类型 根据布局所属类型来显示

zjs_project hai 1 ano
pai
achega
84230af8b8
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/pages/webgl_rxdz_houseList/webgl_rxdz_houseList.vue

+ 7 - 0
src/pages/webgl_rxdz_houseList/webgl_rxdz_houseList.vue

@@ -188,6 +188,13 @@
 							    const {centerX, centerY} = element;
 							    element.centerX = centerY;
 							    element.centerY = centerX;
+								//默认布局和实际默认布局对不上时的处理方案
+								if(element.layouts.length > 1){
+									let layout = element.layouts.find(it=>it.isDefault==true);
+									if(layout){
+										element.layoutId = layout.layoutId;
+									}
+								}
 							}
 							item.houseJson = JSON.stringify(spaceList);
 							console.log("户型详情列表: ", spaceList);