diff --git a/src/app/canvas-share-data.service.ts b/src/app/canvas-share-data.service.ts index e03808c..bca405e 100644 --- a/src/app/canvas-share-data.service.ts +++ b/src/app/canvas-share-data.service.ts @@ -16,7 +16,7 @@ export class CanvasShareDataService { // 总平面图/建筑 楼层 selectStorey: any = {area: '', details: ''}; // 选择当前 楼层 数据 - // originalcompanyBuildingData: any; // 单位/建筑 数据 + originalcompanyBuildingData: any; // 单位/建筑 数据 originaleveryStoreyData: any; // 总平面图/楼层/区域 楼层数据 // 总平面图/建筑 楼层 diff --git a/src/app/working-area/working-area.component.ts b/src/app/working-area/working-area.component.ts index 523ecdb..55bd311 100644 --- a/src/app/working-area/working-area.component.ts +++ b/src/app/working-area/working-area.component.ts @@ -1129,7 +1129,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV private enterPaint(): void { this.previewLineSegment.visible = false; this.enterPaintEndButton.visible = false; + console.log(this.paintMode); switch (this.paintMode) { + case PaintMode.singlePointIcon: + break; case PaintMode.lineIcon: if (this.paintPoints.length >= 2) { this.emit('createIcon', this.paintingIcon); @@ -1172,10 +1175,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV const polygonIcon = new PolygonIcon(assetData, this); this.emit('createIcon', polygonIcon); } + break; case PaintMode.Pipeline: if (this.canvasData.selectTemplateData.name !== '水带') { this.emit('createIcon', this.paintingShape); - console.log("1"); this.paintingShape = null; } break;