Browse Source

数据筛选完善

dev
陈鹏飞 3 years ago
parent
commit
c1391ed071
  1. 6
      src/app/pages/left-domain/left-domain.component.ts

6
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
}
})

Loading…
Cancel
Save