Browse Source

优化交互&修复双指平移问题等

zjs_project 1 year ago
parent
commit
8c642ce5fa

+ 1 - 1
src/components/newBottomCom/viewCareful/viewCareful.vue

@@ -153,7 +153,7 @@
 					clkId: 'clk_2cmina_23080405', //点击ID
 					clkName: 'zoomin_clk', //点击前往的页面名称
 					clkParams: {
-						locusName: this.curHouseObj.houseType + "·" + this.curHouseObj.houseArea + " " + this.curHouseObj.note,
+						locusName: this.curHouseObj.houseType + "·" + this.$parent.$parent.fixedArea + " " + this.curHouseObj.note,
 						locusValue:this.carefulList[index].name + "面积由" + parseFloat(item.area).toFixed(1)
 						+ "㎡调整为"+ value + "㎡",
 					}

+ 5 - 3
src/mixins/loadModel.js

@@ -170,8 +170,10 @@ export default {
 				}
 			}
 			console.warn("重新加载布局", arrFrunList,this.spaceList,this.gltfLayouts,allowSpaceId);
-			arrFrunList.forEach(signel => {
-				let spaceId = this.spaceList.find(it => it.layoutId == signel.id).spaceId;
+			//每个空间都处理下,确保空间不遗漏,arrFrunList遍历,如果不同空间使用同一个布局,会出现只处理第一个空间
+			this.spaceList.forEach(space=>{
+				let spaceId = space.spaceId;
+				let signel = arrFrunList.find(it => it.id == space.layoutId);
 				if(allowSpaceId.includes(spaceId)){//只加载允许的空间的布局,其他不加载
 					let md = JSON.parse(signel.modelJson); //获取布局里面的模型信息
 					//遍历模型信息,获取模型列表
@@ -195,7 +197,7 @@ export default {
 						}
 					}
 				}
-			})
+			});
 			// 处理删除模型时,其他空间引用了该模型时的重新载入处理
 			// if(this.lastFrunList && this.lastFrunList.length>0){
 			// 	let spaceIds = tmpSpaceList.map(it=>it.spaceId);