diff --git a/src/app/working-area/working-area.component.ts b/src/app/working-area/working-area.component.ts index 7aff1b1..18a35f5 100644 --- a/src/app/working-area/working-area.component.ts +++ b/src/app/working-area/working-area.component.ts @@ -513,6 +513,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV this.processinghiddenData(); } this.createFloorShape(this.canvasData.originaleveryStoreyData.data); + console.log(this.canvasData.selectStorey); this.createNodeShape(this.canvasData.selectPanelPoint.Data); } /** @@ -520,7 +521,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV */ public processinghiddenData() { for (let key in this.canvasData.originaleveryStoreyData.data){ - if (this.canvasData.hiddenBasicInfoFacilities.indexOf(key)) { + if (this.canvasData.hiddenBasicInfoFacilities.indexOf(key)!==-1) { delete this.canvasData.originaleveryStoreyData.data[key]; } } @@ -967,7 +968,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV /** * 刷新背景图 */ - public async refreshBackgroundImage(imageUrl:string,imageAngle:number): Promise { + public async refreshBackgroundImage(imageUrl:string = this.canvasData.selectStorey.imageUrl,imageAngle:number = this.canvasData.selectStorey.imageAngle): Promise { if (!imageUrl) { this.backgroundImage.visible = false; } else {