|
|
|
@ -81,14 +81,20 @@ export class CanvasShareDataService {
|
|
|
|
|
const returnData = this.allDisposalNode.find(item => item.id === parentId); |
|
|
|
|
return returnData; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 更新建筑数据 |
|
|
|
|
*/ |
|
|
|
|
public updateBuildingData() { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 获取单位毗邻信息 |
|
|
|
|
*/ |
|
|
|
|
public getCompanyAdjoinInfo(): CompanyAdjoinInfo[] { |
|
|
|
|
const list: CompanyAdjoinInfo[] = []; |
|
|
|
|
Object.keys(this.originaleveryStoreyData.data).forEach((key) => { |
|
|
|
|
const item = this.originaleveryStoreyData.data[key]; |
|
|
|
|
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => { |
|
|
|
|
const item = this.originalcompanyBuildingData.data[key]; |
|
|
|
|
if (item.Name === '毗邻') { |
|
|
|
|
const adjoin = new CompanyAdjoinInfo(); |
|
|
|
|
adjoin.AssetId = item.Id; |
|
|
|
@ -114,8 +120,8 @@ export class CanvasShareDataService {
|
|
|
|
|
*/ |
|
|
|
|
public getBuildingAdjoinInfo(): BuildingAdjoinInfo[] { |
|
|
|
|
const list: BuildingAdjoinInfo[] = []; |
|
|
|
|
Object.keys(this.originaleveryStoreyData.data).forEach((key) => { |
|
|
|
|
const item = this.originaleveryStoreyData.data[key]; |
|
|
|
|
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => { |
|
|
|
|
const item = this.originalcompanyBuildingData.data[key]; |
|
|
|
|
if (item.Name === '毗邻') { |
|
|
|
|
const adjoin = new BuildingAdjoinInfo(); |
|
|
|
|
adjoin.AssetId = item.Id; |
|
|
|
@ -141,8 +147,8 @@ export class CanvasShareDataService {
|
|
|
|
|
*/ |
|
|
|
|
public getCompanyImportantLocations(): CompanyImportantLocationInfo[] { |
|
|
|
|
const list: CompanyImportantLocationInfo[] = []; |
|
|
|
|
Object.keys(this.originaleveryStoreyData.data).forEach((key) => { |
|
|
|
|
const item = this.originaleveryStoreyData.data[key]; |
|
|
|
|
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => { |
|
|
|
|
const item = this.originalcompanyBuildingData.data[key]; |
|
|
|
|
if (item.Name === '重点部位') { |
|
|
|
|
const important = new CompanyImportantLocationInfo(); |
|
|
|
|
important.AssetId = item.Id; |
|
|
|
@ -174,8 +180,8 @@ export class CanvasShareDataService {
|
|
|
|
|
*/ |
|
|
|
|
public getBuildingImportantLocations(): BuildingImportantLocationInfo[] { |
|
|
|
|
const list: BuildingImportantLocationInfo[] = []; |
|
|
|
|
Object.keys(this.originaleveryStoreyData.data).forEach((key) => { |
|
|
|
|
const item = this.originaleveryStoreyData.data[key]; |
|
|
|
|
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => { |
|
|
|
|
const item = this.originalcompanyBuildingData.data[key]; |
|
|
|
|
if (item.Name === '重点部位') { |
|
|
|
|
const important = new BuildingImportantLocationInfo(); |
|
|
|
|
important.AssetId = item.Id; |
|
|
|
@ -207,8 +213,8 @@ export class CanvasShareDataService {
|
|
|
|
|
*/ |
|
|
|
|
public getAllCompanyFacilityAssetInfo(): CompanyFacilityAssetInfo[] { |
|
|
|
|
const list: CompanyFacilityAssetInfo[] = []; |
|
|
|
|
Object.keys(this.originaleveryStoreyData.data).forEach((key) => { |
|
|
|
|
const item = this.originaleveryStoreyData.data[key]; |
|
|
|
|
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => { |
|
|
|
|
const item = this.originalcompanyBuildingData.data[key]; |
|
|
|
|
if (this.facilityAssetsName.has(item.Name)) { |
|
|
|
|
const facility = new CompanyFacilityAssetInfo(); |
|
|
|
|
facility.CompanyId = sessionStorage.getItem('companyId'); |
|
|
|
@ -228,8 +234,8 @@ export class CanvasShareDataService {
|
|
|
|
|
*/ |
|
|
|
|
public getAllBuildingFacilityAssetInfo(): BuildingFacilityAssetInfo[] { |
|
|
|
|
const list: BuildingFacilityAssetInfo[] = []; |
|
|
|
|
Object.keys(this.originaleveryStoreyData.data).forEach((key) => { |
|
|
|
|
const item = this.originaleveryStoreyData.data[key]; |
|
|
|
|
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => { |
|
|
|
|
const item = this.originalcompanyBuildingData.data[key]; |
|
|
|
|
if (this.facilityAssetsName.has(item.Name)) { |
|
|
|
|
const facility = new BuildingFacilityAssetInfo(); |
|
|
|
|
facility.BuildingId = this.selectStorey.buildingId; |
|
|
|
|