|
@@ -910,14 +910,6 @@ export default {
|
|
|
},
|
|
|
filterPeopleName(array) {
|
|
|
var that = this;
|
|
|
- // array.map((item) => {
|
|
|
- // if (item.children && item.children.length > 0) {
|
|
|
- // that.filterName(item.children);
|
|
|
- // that.houseNames.push(item.name);
|
|
|
- // } else if (item.type == 'room') {
|
|
|
- // that.houseNames.push(item.name);
|
|
|
- // }
|
|
|
- // });
|
|
|
array.map((item) => {
|
|
|
if (item.children) {
|
|
|
that.filterPeopleName(item.children);
|
|
@@ -982,6 +974,9 @@ export default {
|
|
|
console.log('选中的社区', arr);
|
|
|
this.houseData = arr;
|
|
|
this.dimension(this.houseData);
|
|
|
+ console.log('====================================');
|
|
|
+ console.log('houseData', this.houseData);
|
|
|
+ console.log('====================================');
|
|
|
this.filterName(this.houseData);
|
|
|
let h = [...new Set(this.houseNames)];
|
|
|
this.houseDataNames = this.houseNames.toString();
|