|
@ -1221,17 +1221,16 @@ export default { |
|
|
this.selTreeObj = obj; |
|
|
this.selTreeObj = obj; |
|
|
await nextTick(1000); |
|
|
await nextTick(1000); |
|
|
this.$nextTick(async ()=>{ |
|
|
this.$nextTick(async ()=>{ |
|
|
if(obj.level === "building" || obj.level === "neighborHood"){ |
|
|
if(obj.level === "building" || obj.level === "neighborHood"|| obj.level === "grid"){ |
|
|
const gridNode = this.traverseTree([node]); |
|
|
const gridNode = this.traverseTree([node]); |
|
|
const gridResult = gridNode.find(item => item.level === 'grid'); |
|
|
const gridResult = gridNode.find(item => item.level === 'grid'); |
|
|
const neighborHoodResult = gridNode.find(item => item.level === "neighborHood"); |
|
|
const neighborHoodResult = gridNode.find(item => item.level === "neighborHood"); |
|
|
const buildingResult = gridNode.find(item => item.level === "building"); |
|
|
const buildingResult = gridNode.find(item => item.level === "building"); |
|
|
|
|
|
|
|
|
const gridId = gridResult ? gridResult.id : null; |
|
|
const gridId = gridResult ? gridResult.id : null; |
|
|
const neighborHoodId = neighborHoodResult ? neighborHoodResult.id : null; |
|
|
const neighborHoodId = neighborHoodResult ? neighborHoodResult.id : null; |
|
|
const buildingId = buildingResult ? buildingResult.id : null; |
|
|
const buildingId = buildingResult ? buildingResult.id : null; |
|
|
if (gridId) { |
|
|
if (gridId) { |
|
|
await this.$EventBus.$emit('handleClickResiTree', { type: 'agency', id: gridId }); |
|
|
await this.$EventBus.$emit('handleClickResiTree', { type: 'grid', id: gridId }); |
|
|
} |
|
|
} |
|
|
await nextTick(500); |
|
|
await nextTick(500); |
|
|
if (neighborHoodId) { |
|
|
if (neighborHoodId) { |
|
|