|
@@ -1663,10 +1663,14 @@
|
|
|
},
|
|
|
//用户选择的布局id-需要切换到这个布局去
|
|
|
userSelectPlot(layoutObj){
|
|
|
+ if(!layoutObj){
|
|
|
+ console.warn("***userSelectPlot***数据错误")
|
|
|
+ return false
|
|
|
+ }
|
|
|
let spaceId = this.selectSpace.spaceId;
|
|
|
console.warn("***userSelectPlot***",spaceId,layoutObj)
|
|
|
this.changeSingleLayout(spaceId,layoutObj);
|
|
|
- this.updataLable();
|
|
|
+ this.updataLable(spaceId,layoutObj);
|
|
|
},
|
|
|
async goRoam1(spaceId){
|
|
|
if(this.overChange){
|
|
@@ -1759,19 +1763,22 @@
|
|
|
this.getHouseTypeSpaceWalls();
|
|
|
},
|
|
|
//更改空间显示名称 X空间 类型 根据布局所属类型来显示
|
|
|
- updataLable(){
|
|
|
+ updataLable(spaceId,layoutObj){
|
|
|
let list = this.arrFrunList;
|
|
|
- this.lableItem.forEach(lable=>{
|
|
|
- if(lable.spaceType==15){
|
|
|
- let layoutId = this.spaceList.find(it => it.spaceId == lable.spaceId).layoutId;
|
|
|
- let layout = list.find(it=>it.id == layoutId);
|
|
|
- if(layout){
|
|
|
- let name = spaceTypes[layout.type - 1];
|
|
|
- lable.text = name
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- console.warn("***updataLable***",this.lableItem)
|
|
|
+ let lable = this.lableItem.find(it=>it.spaceId == spaceId);
|
|
|
+ let name = spaceTypes[layoutObj.type - 1];
|
|
|
+ lable.text = name;
|
|
|
+ // this.lableItem.forEach(lable=>{
|
|
|
+ // if(lable.spaceType==15){
|
|
|
+ // let layoutId = this.spaceList.find(it => it.spaceId == lable.spaceId).layoutId;
|
|
|
+ // let layout = list.find(it=>it.id == layoutId);
|
|
|
+ // if(layout){
|
|
|
+ // let name = spaceTypes[layout.type - 1];
|
|
|
+ // lable.text = name
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ console.warn("***updataLable***",lable)
|
|
|
},
|
|
|
// 添加文字标签
|
|
|
addWordLabel(){
|