|
|
@ -206,12 +206,17 @@ export class LeftDomainComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//获取设备 数量
|
|
|
|
//获取设备 数量
|
|
|
|
getFacilityNum(type: string): number { |
|
|
|
getFacilityNum(type: string): string { |
|
|
|
let num = 0 |
|
|
|
let num = 0 |
|
|
|
this.FacilityList.forEach(item => { |
|
|
|
this.FacilityList.forEach(item => { |
|
|
|
item.getType().includes(type) ? num = num + 1 : null |
|
|
|
item.getType().includes(type) ? num = num + 1 : null |
|
|
|
}) |
|
|
|
}) |
|
|
|
return num |
|
|
|
let unit = type === 'XF_MHQ'? '具' : ConfigManager.getFacilityNumUnit(FacilityType[type]) |
|
|
|
|
|
|
|
let facilityNum = `${num}${unit}` |
|
|
|
|
|
|
|
if (type === FacilityType.XF_XFS) { |
|
|
|
|
|
|
|
facilityNum = `${num*2}${unit}` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return facilityNum |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//点击tree节点
|
|
|
|
//点击tree节点
|
|
|
|