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