|
|
|
@ -16,7 +16,7 @@ export class CanvasShareDataService {
|
|
|
|
|
|
|
|
|
|
// 总平面图/建筑 楼层
|
|
|
|
|
selectStorey: any = {area: '', details: ''}; // 选择当前 楼层 数据
|
|
|
|
|
originalcompanyBuildingData: any; // 单位/建筑 数据
|
|
|
|
|
// originalcompanyBuildingData: any; // 单位/建筑 数据
|
|
|
|
|
originaleveryStoreyData: any; // 总平面图/楼层/区域 楼层数据
|
|
|
|
|
// 总平面图/建筑 楼层
|
|
|
|
|
|
|
|
|
@ -87,8 +87,8 @@ export class CanvasShareDataService {
|
|
|
|
|
*/ |
|
|
|
|
public getCompanyAdjoinInfo(): CompanyAdjoinInfo[] { |
|
|
|
|
const list: CompanyAdjoinInfo[] = []; |
|
|
|
|
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => { |
|
|
|
|
const item = this.originalcompanyBuildingData.data[key]; |
|
|
|
|
Object.keys(this.originaleveryStoreyData.data).forEach((key) => { |
|
|
|
|
const item = this.originaleveryStoreyData.data[key]; |
|
|
|
|
if (item.Name === '毗邻') { |
|
|
|
|
const adjoin = new CompanyAdjoinInfo(); |
|
|
|
|
adjoin.AssetId = item.Id; |
|
|
|
@ -114,8 +114,8 @@ export class CanvasShareDataService {
|
|
|
|
|
*/ |
|
|
|
|
public getBuildingAdjoinInfo(): BuildingAdjoinInfo[] { |
|
|
|
|
const list: BuildingAdjoinInfo[] = []; |
|
|
|
|
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => { |
|
|
|
|
const item = this.originalcompanyBuildingData.data[key]; |
|
|
|
|
Object.keys(this.originaleveryStoreyData.data).forEach((key) => { |
|
|
|
|
const item = this.originaleveryStoreyData.data[key]; |
|
|
|
|
if (item.Name === '毗邻') { |
|
|
|
|
const adjoin = new BuildingAdjoinInfo(); |
|
|
|
|
adjoin.AssetId = item.Id; |
|
|
|
@ -141,8 +141,8 @@ export class CanvasShareDataService {
|
|
|
|
|
*/ |
|
|
|
|
public getCompanyImportantLocations(): CompanyImportantLocationInfo[] { |
|
|
|
|
const list: CompanyImportantLocationInfo[] = []; |
|
|
|
|
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => { |
|
|
|
|
const item = this.originalcompanyBuildingData.data[key]; |
|
|
|
|
Object.keys(this.originaleveryStoreyData.data).forEach((key) => { |
|
|
|
|
const item = this.originaleveryStoreyData.data[key]; |
|
|
|
|
if (item.Name === '重点部位') { |
|
|
|
|
const important = new CompanyImportantLocationInfo(); |
|
|
|
|
important.AssetId = item.Id; |
|
|
|
@ -174,8 +174,8 @@ export class CanvasShareDataService {
|
|
|
|
|
*/ |
|
|
|
|
public getBuildingImportantLocations(): BuildingImportantLocationInfo[] { |
|
|
|
|
const list: BuildingImportantLocationInfo[] = []; |
|
|
|
|
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => { |
|
|
|
|
const item = this.originalcompanyBuildingData.data[key]; |
|
|
|
|
Object.keys(this.originaleveryStoreyData.data).forEach((key) => { |
|
|
|
|
const item = this.originaleveryStoreyData.data[key]; |
|
|
|
|
if (item.Name === '重点部位') { |
|
|
|
|
const important = new BuildingImportantLocationInfo(); |
|
|
|
|
important.AssetId = item.Id; |
|
|
|
@ -207,8 +207,8 @@ export class CanvasShareDataService {
|
|
|
|
|
*/ |
|
|
|
|
public getAllCompanyFacilityAssetInfo(): CompanyFacilityAssetInfo[] { |
|
|
|
|
const list: CompanyFacilityAssetInfo[] = []; |
|
|
|
|
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => { |
|
|
|
|
const item = this.originalcompanyBuildingData.data[key]; |
|
|
|
|
Object.keys(this.originaleveryStoreyData.data).forEach((key) => { |
|
|
|
|
const item = this.originaleveryStoreyData.data[key]; |
|
|
|
|
if (this.facilityAssetsName.has(item.Name)) { |
|
|
|
|
const facility = new CompanyFacilityAssetInfo(); |
|
|
|
|
facility.CompanyId = sessionStorage.getItem('companyId'); |
|
|
|
@ -228,8 +228,8 @@ export class CanvasShareDataService {
|
|
|
|
|
*/ |
|
|
|
|
public getAllBuildingFacilityAssetInfo(): BuildingFacilityAssetInfo[] { |
|
|
|
|
const list: BuildingFacilityAssetInfo[] = []; |
|
|
|
|
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => { |
|
|
|
|
const item = this.originalcompanyBuildingData.data[key]; |
|
|
|
|
Object.keys(this.originaleveryStoreyData.data).forEach((key) => { |
|
|
|
|
const item = this.originaleveryStoreyData.data[key]; |
|
|
|
|
if (this.facilityAssetsName.has(item.Name)) { |
|
|
|
|
const facility = new BuildingFacilityAssetInfo(); |
|
|
|
|
facility.BuildingId = this.selectStorey.buildingId; |
|
|
|
|