|
@@ -91,15 +91,16 @@ export default {
|
|
|
|
|
|
this.furnHandle(this.arrFrunList,[]);
|
|
|
},
|
|
|
+
|
|
|
loadLastSpaceModel(){
|
|
|
if(!this.changeSpaces || this.changeSpaces.length==0){
|
|
|
return false;
|
|
|
}
|
|
|
- let layoutIds = this.changeSpaces.map(it=>it.layoutId);
|
|
|
+ let spaceIds = this.changeSpaces.map(it=>it.spaceId);
|
|
|
+ let layoutIds = this.spaceList.filter(item=>spaceIds.includes(item.spaceId)).map(it=>it.layoutId);
|
|
|
let list = this.arrFrunList.filter(item=>{
|
|
|
return !layoutIds.includes(item.id)
|
|
|
})
|
|
|
- let spaceIds = this.changeSpaces.map(it=>it.spaceId);
|
|
|
let spaceList = this.spaceList.filter(item=>{
|
|
|
return !spaceIds.includes(item.spaceId)
|
|
|
})
|
|
@@ -1164,7 +1165,7 @@ export default {
|
|
|
return resolve()
|
|
|
}
|
|
|
console.log("找出最合适的布局", layoutObj)
|
|
|
- console.log("更新空间的布局ID=", spaceObj.layoutId)
|
|
|
+ console.log("更新空间的布局ID=", spaceObj.layoutId,'=>',layoutObj.id)
|
|
|
|
|
|
|
|
|
|