|
@@ -836,12 +836,15 @@ export default {
|
|
|
dimension(arr) {
|
|
|
console.log('dimensiondimensiondimensiondimension', arr);
|
|
|
arr.map((item, index) => {
|
|
|
- debugger;
|
|
|
if (item.children) {
|
|
|
this.dimension(item.children);
|
|
|
- } else if (item.type == 'room' && !this.rowDetail.treeData.includes(Number(item.value))) {
|
|
|
+ } else if (item.type == 'room' && item.value == 9733) {
|
|
|
+ // && !this.rowDetail.treeData.includes(Number(item.value))
|
|
|
console.log('roomroomroomroom', arr);
|
|
|
arr = arr.splice(index, 1);
|
|
|
+ // arr = arr.filter((item) => {
|
|
|
+ // return this.rowDetail.treeData.includes(Number(item.value));
|
|
|
+ // });
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -855,8 +858,11 @@ export default {
|
|
|
.get('/sc-community/assets/tree/community/find', { buildingType: this.buildingType })
|
|
|
.then(({ status, data, msg }) => {
|
|
|
if (status === 0 && data) {
|
|
|
- this.dimension(data);
|
|
|
+ let da = this.dimension(data);
|
|
|
this.houseData = data;
|
|
|
+ console.log('====================================');
|
|
|
+ console.log('da=', da);
|
|
|
+ console.log('====================================');
|
|
|
}
|
|
|
console.log('获取房间', this.rowDetail.treeData);
|
|
|
});
|