|
|
|
@ -88,14 +88,27 @@ export class LeftDomainComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.FacilityList = list |
|
|
|
|
console.log(this.FacilityList[0].getPropertyData()) |
|
|
|
|
this.selectFacilityId = null |
|
|
|
|
if (this.beforeFence === 1 || this.beforeFence === 2 || this.beforeFence === 7) { //加油机/油罐设备/阀门
|
|
|
|
|
if (this.beforeFence === 1 || this.beforeFence === 7) { //加油机/阀门
|
|
|
|
|
this.FacilityList.forEach(item => { |
|
|
|
|
window.setTimeout(()=>{ |
|
|
|
|
this.textInput(item) |
|
|
|
|
},0) |
|
|
|
|
}) |
|
|
|
|
} else if (this.beforeFence === 2) { //油罐设备
|
|
|
|
|
this.FacilityList.forEach(item => { |
|
|
|
|
window.setTimeout(()=>{ |
|
|
|
|
this.textInput(item) |
|
|
|
|
},0) |
|
|
|
|
}) |
|
|
|
|
PlanComponent.instance.tankFarm.isHave = false; |
|
|
|
|
this.FacilityList.forEach(item => { |
|
|
|
|
if (item.getPropertyData().tankFarm != undefined) { |
|
|
|
|
PlanComponent.instance.tankFarm.isHave = true |
|
|
|
|
PlanComponent.instance.tankFarm.content = item.getPropertyData().tankFarm |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} else if (this.beforeFence === 3) { //消防设施
|
|
|
|
|
this.handleTreeData(this.FacilityList) |
|
|
|
|
} else if (this.beforeFence === 5 || this.beforeFence === 6) { //初始化 Viewer
|
|
|
|
|