From 26d942c20aee78b4346385375a00856782575357 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Sat, 27 Nov 2021 14:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/plan/plan.component.html | 5 +---- src/app/pages/plan/plan.component.ts | 27 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/app/pages/plan/plan.component.html b/src/app/pages/plan/plan.component.html index 51e3786..b8d62e3 100644 --- a/src/app/pages/plan/plan.component.html +++ b/src/app/pages/plan/plan.component.html @@ -7,10 +7,7 @@
diff --git a/src/app/pages/plan/plan.component.ts b/src/app/pages/plan/plan.component.ts index efa6323..10b3eb5 100644 --- a/src/app/pages/plan/plan.component.ts +++ b/src/app/pages/plan/plan.component.ts @@ -27,6 +27,8 @@ import { AllMarkPlanData, MarkNodeData, MarkPlanData } from 'src/app/babylon/mod import { DataManager, ResType } from 'src/app/babylon/controller/data-manager'; import { EventManager as babylonEventManager } from 'src/app/babylon/controller/event-manager/event-manager'; import { Event_GetAllMarkPlanData } from 'src/app/babylon/controller/event-manager/events/event-get-markplandata-success'; +import { FacilityInfoInSceneWindow } from 'src/app/babylon/view/facilityinfoinscene-window/facilityinfoinscene-window'; +import { FacilityType } from 'src/app/babylon/model/data/model-data/model-data-facility'; @@ -122,6 +124,7 @@ export class PlanComponent implements OnInit { modelInit(InsList) { } allFence: string[] = ["基本信息", "加油机", "油罐设备", "消防设施", "安全疏散", "输油管线", "油气回收", "应急预案"]; //头部 功能栏 + baseInfoMarks: baseInfoMark[] = [new baseInfoMark("毗邻"), new baseInfoMark("区域"), new baseInfoMark("图片"), new baseInfoMark("点位")] //基本信息 设备筛选list selectFence: number = -1; //选中 头部功能栏 isShowChildComponent: boolean = false; //是否 显示左侧子组件 @ViewChild('leftDomain') leftDomain: LeftDomainComponent; //子组件引用 @@ -154,6 +157,7 @@ export class PlanComponent implements OnInit { this.selectFence = type this.isShowChildComponent = true buildingWindow.changeJYZInfoModel(fenceType, true) + if (type === 0) { this.baseInfoMarks.forEach(item=>{ item.isShow = true }) } //初始化基本信息 设备显隐 } } else { //取消选中 this.selectFence = -1 @@ -188,6 +192,21 @@ export class PlanComponent implements OnInit { return fenceType } + //基本信息 设备筛选显隐 + toggleBaseInfoMark(event, item: baseInfoMark) { + let type + if (item.markerName === "毗邻") { + type = FacilityType.PL + } else if (item.markerName === "区域") { + type = FacilityType.QY + } else if (item.markerName === "图片") { + type = FacilityType.TPBZ + } else if (item.markerName === "点位") { + type = FacilityType.DWBZ + } + FacilityInfoInSceneWindow.instance.showFacilityByType(type, event) + } + //子组件 创建预案/保存 noticeChildComponent(type: boolean) { if (this.isShowChildComponent && this.leftDomain) { @@ -787,3 +806,11 @@ export class modelBuilding { name: string = ""; modelType: BuildingType = BuildingType.Normal; } +//基本信息 设备筛选 +export class baseInfoMark{ + markerName: string; + isShow: boolean = true; + constructor(markerName: string) { + this.markerName = markerName + } +}