diff --git a/src/app/pages/plan/plan.component.ts b/src/app/pages/plan/plan.component.ts index 163312e..d84cc07 100644 --- a/src/app/pages/plan/plan.component.ts +++ b/src/app/pages/plan/plan.component.ts @@ -16,6 +16,7 @@ import { FacilityUIItem } from 'src/app/babylon/view/facility-window/facility-ui import { FacilityWindow } from 'src/app/babylon/view/facility-window/facility-window'; import { FacilityInfoUIItem } from 'src/app/babylon/view/facilityinfoinscene-window/facilityinfo-ui-item'; import { EventManager } from '@angular/platform-browser'; +import { NzMessageService } from 'ng-zorro-antd/message'; @@ -26,7 +27,7 @@ import { EventManager } from '@angular/platform-browser'; }) export class PlanComponent implements OnInit { - constructor(private element: ElementRef, private buildingBISrv: BuildingBasicInfosService, private objectsSrv: ObjectsService, private eventManager: EventManager) { } + constructor(private element: ElementRef, private buildingBISrv: BuildingBasicInfosService, private objectsSrv: ObjectsService, private eventManager: EventManager, private message: NzMessageService) { } static instance: PlanComponent; public game: Game = new Game(); @@ -256,6 +257,11 @@ export class PlanComponent implements OnInit { ToolbarWindow.instance.onBtnSave(); } + //通用 消息通知栏 + openSnackBar(title: string) { + this.message.info(title); + } + }