|
|
|
@ -101,6 +101,9 @@ export class LeftDomainComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
//选中 设备
|
|
|
|
|
selectFacility(event, item: FacilityInfoUIItem) { |
|
|
|
|
if (event.target.localName == 'img') { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if (this.selectFacilityId != item.getID()) { |
|
|
|
|
this.selectFacilityId = item.getID() |
|
|
|
|
FacilityInfoInSceneWindow.instance.selectFacilityItem(item); |
|
|
|
@ -128,7 +131,7 @@ export class LeftDomainComponent implements OnInit {
|
|
|
|
|
PlanComponent.instance.isShowLoading = true //打开遮罩
|
|
|
|
|
let institutionKey = `${PlanComponent.instance.companyData.id}` || "ceshi"; //单位id
|
|
|
|
|
let buildingKey = PlanComponent.instance.buildingUIItems.find(item => { return item.getBuildingID() == PlanComponent.instance.beforeOneBuildingID }) |
|
|
|
|
let url = DataManager.getResPath_facilityProperty(institutionKey, buildingKey.getBuildingID(), item.getType(), item.getID(), null) |
|
|
|
|
let url = DataManager.getResPath_facilityProperty(institutionKey, buildingKey? buildingKey.getBuildingID() : "building", item.getType(), item.getID(), null) |
|
|
|
|
ServeManager.instance.openFileSelect(file, url, (name: string, path: string) => { //上传
|
|
|
|
|
item.getPropertyData().img = ObjectsService.getFullPath(path + name) |
|
|
|
|
if (this.beforeFence === 5) { |
|
|
|
|