From c1391ed07141a90508c2c49b3e205ea5a5d0401c Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Thu, 11 Nov 2021 15:32:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=AD=9B=E9=80=89=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/left-domain/left-domain.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/pages/left-domain/left-domain.component.ts b/src/app/pages/left-domain/left-domain.component.ts index 0265ae2..cf9afca 100644 --- a/src/app/pages/left-domain/left-domain.component.ts +++ b/src/app/pages/left-domain/left-domain.component.ts @@ -39,7 +39,11 @@ export class LeftDomainComponent implements OnInit { handleFacility() { let list: FacilityInfoUIItem[] = [] FacilityInfoInSceneWindow.instance.facilityInfoUIItemes.forEach(item=>{ - if (this.beforeFence === 3) { //消防设施 + if (this.beforeFence === 1) { //加油机 + item.getType() === "JY_JYJ"? list.push(item) : null + } else if (this.beforeFence === 2) { //油罐设备 + item.getType() === "JY_YG"? list.push(item) : null + } else if (this.beforeFence === 3) { //消防设施 (item.getType()).slice(0,3) === "XF_"? list.push(item) : null } })