|
@@ -2,6 +2,7 @@
|
|
|
const config = require('@/services/urlConfig.js');
|
|
|
import modelData from '@/static/layoutModelData.js';
|
|
|
import globlShowModel from '@/static/globlShowModel.js';
|
|
|
+import spaceTypes from '@/static/spaceTypesIE.js';
|
|
|
// import requestConfig from '@/services/requestConfig.js';
|
|
|
import { DRACOLoader } from 'three/addons/loaders/DRACOLoader.js';
|
|
|
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
|
|
@@ -65,6 +66,22 @@ export default {
|
|
|
element.spaceWallInfo = spaceWallInfo;
|
|
|
}
|
|
|
},
|
|
|
+ //更改空间显示名称 X空间 类型 根据布局所属类型来显示
|
|
|
+ updataLableList(list){
|
|
|
+ // 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
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 批量获取空间模型信息
|
|
|
async getOverallArrangementDetailsList(type=1) {
|
|
|
// 设置空间数组的墙体信息
|
|
@@ -93,6 +110,7 @@ export default {
|
|
|
this.promise_list = [];
|
|
|
this.arrFrunList = res.list;
|
|
|
this.gltfLayouts = []; //模型列表,所有空间里面的每个模型(家具)对应一条记录
|
|
|
+ this.updataLableList(res.list)
|
|
|
// 通过默认布局
|
|
|
this.furnHandle(this.arrFrunList,[]);
|
|
|
},
|