|
@@ -1665,7 +1665,8 @@
|
|
|
userSelectPlot(layoutObj){
|
|
|
let spaceId = this.selectSpace.spaceId;
|
|
|
console.warn("***userSelectPlot***",spaceId,layoutObj)
|
|
|
- this.changeSingleLayout(spaceId,layoutObj)
|
|
|
+ this.changeSingleLayout(spaceId,layoutObj);
|
|
|
+ this.updataLable();
|
|
|
},
|
|
|
async goRoam1(spaceId){
|
|
|
if(this.overChange){
|
|
@@ -1757,6 +1758,21 @@
|
|
|
// 绘制墙体
|
|
|
this.getHouseTypeSpaceWalls();
|
|
|
},
|
|
|
+ //更改空间显示名称 X空间 类型 根据布局所属类型来显示
|
|
|
+ updataLable(){
|
|
|
+ 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)
|
|
|
+ },
|
|
|
// 添加文字标签
|
|
|
addWordLabel(){
|
|
|
if(!this.gltfSpaces || this.gltfSpaces.length <= 0){
|
|
@@ -1769,6 +1785,13 @@
|
|
|
if(cube.spaceName && !cube.isSizeLock){
|
|
|
let spaceIndex = this.spaceList.filter(it=>it.spaceName && !it.isSizeLock).findIndex(item=>item.spaceId==cube.spaceId);
|
|
|
let name = spaceTypes[cube.spaceType - 1];
|
|
|
+ if(cube.spaceType==15){ //更改空间显示名称 X空间 类型 根据布局所属类型来显示
|
|
|
+ let layoutId = this.spaceList.find(it => it.spaceId == cube.spaceId).layoutId;
|
|
|
+ let layout = this.arrFrunList.find(it=>it.id == layoutId);
|
|
|
+ if(layout){
|
|
|
+ name = spaceTypes[layout.type - 1];
|
|
|
+ }
|
|
|
+ }
|
|
|
this.lableItem.push(
|
|
|
{
|
|
|
text:name,
|