From 6addcc862c2c8cef49c992018201db7608d6c1f6 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Wed, 3 Nov 2021 14:41:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B6=88=E6=81=AF=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/plan/plan.component.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); + } + }