From 6b8aee9539765949712c72dd8bd02dc232c54a3a Mon Sep 17 00:00:00 2001 From: Dixsie Wolmers Date: Fri, 14 May 2021 11:14:33 -0500 Subject: Add hardware status power supply missing properties Adds efficiency percent, identify LED, manufacturer, hardware type, health and spare part number. Adds section divider in expanded row. Signed-off-by: Dixsie Wolmers Change-Id: I74e146a233f5d3dda849db11e937cb9dea5bcbd7 --- src/store/modules/Health/PowerSupplyStore.js | 12 +++- .../HardwareStatusTablePowerSupplies.vue | 67 +++++++++++++++------- 2 files changed, 56 insertions(+), 23 deletions(-) diff --git a/src/store/modules/Health/PowerSupplyStore.js b/src/store/modules/Health/PowerSupplyStore.js index cc82f2ef..f7be2809 100644 --- a/src/store/modules/Health/PowerSupplyStore.js +++ b/src/store/modules/Health/PowerSupplyStore.js @@ -14,13 +14,16 @@ const PowerSupplyStore = { const { EfficiencyPercent, FirmwareVersion, - IndicatorLED, + LocationIndicatorActive, MemberId, + Manufacturer, Model, + Name, PartNumber, PowerInputWatts, SerialNumber, - Status, + SparePartNumber, + Status = {}, } = powerSupply; return { id: MemberId, @@ -29,9 +32,12 @@ const PowerSupplyStore = { serialNumber: SerialNumber, efficiencyPercent: EfficiencyPercent, firmwareVersion: FirmwareVersion, - indicatorLed: IndicatorLED, + identifyLed: LocationIndicatorActive, + manufacturer: Manufacturer, model: Model, powerInputWatts: PowerInputWatts, + name: Name, + sparePartNumber: SparePartNumber, statusState: Status.State, }; }); diff --git a/src/views/Health/HardwareStatus/HardwareStatusTablePowerSupplies.vue b/src/views/Health/HardwareStatus/HardwareStatusTablePowerSupplies.vue index d313197d..a3d07655 100644 --- a/src/views/Health/HardwareStatus/HardwareStatusTablePowerSupplies.vue +++ b/src/views/Health/HardwareStatus/HardwareStatusTablePowerSupplies.vue @@ -55,28 +55,56 @@
- -
{{ $t('pageHardwareStatus.table.efficiencyPercent') }}:
-
{{ tableFormatter(item.efficiencyPercent) }}
- -
{{ $t('pageHardwareStatus.table.firmwareVersion') }}:
-
{{ tableFormatter(item.firmwareVersion) }}
- -
{{ $t('pageHardwareStatus.table.indicatorLed') }}:
-
{{ tableFormatter(item.indicatorLed) }}
+ +
{{ $t('pageHardwareStatus.table.name') }}:
+
{{ tableFormatter(item.name) }}
+ +
{{ $t('pageHardwareStatus.table.partNumber') }}:
+
{{ tableFormatter(item.partNumber) }}
+ +
{{ $t('pageHardwareStatus.table.serialNumber') }}:
+
{{ tableFormatter(item.serialNumber) }}
+ +
{{ $t('pageHardwareStatus.table.sparePartNumber') }}:
+
{{ tableFormatter(item.sparePartNumber) }}
+ +
{{ $t('pageHardwareStatus.table.model') }}:
+
{{ tableFormatter(item.model) }}
- -
{{ $t('pageHardwareStatus.table.model') }}:
-
{{ tableFormatter(item.model) }}
- -
{{ $t('pageHardwareStatus.table.powerInputWatts') }}:
-
{{ tableFormatter(item.powerInputWatts) }}
{{ $t('pageHardwareStatus.table.statusState') }}:
{{ tableFormatter(item.statusState) }}
+ +
+ {{ $t('pageHardwareStatus.table.statusHealthRollup') }}: +
+
{{ tableFormatter(item.statusHealth) }}
+ +
{{ $t('pageHardwareStatus.table.efficiencyPercent') }}:
+
{{ tableFormatter(item.efficiencyPercent) }}
+ +
{{ $t('pageHardwareStatus.table.powerInputWatts') }}:
+
{{ tableFormatter(item.powerInputWatts) }}
+
+
+
+
+ + +
+ +
{{ $t('pageHardwareStatus.table.manufacturer') }}:
+
{{ tableFormatter(item.manufacturer) }}
+
+
+ +
+ +
{{ $t('pageHardwareStatus.table.firmwareVersion') }}:
+
{{ tableFormatter(item.firmwareVersion) }}
@@ -133,16 +161,15 @@ export default { tdClass: 'text-nowrap', }, { - key: 'partNumber', - label: this.$t('pageHardwareStatus.table.partNumber'), + key: 'locationNumber', + label: this.$t('pageHardwareStatus.table.locationNumber'), formatter: this.tableFormatter, sortable: true, }, { - key: 'serialNumber', - label: this.$t('pageHardwareStatus.table.serialNumber'), + key: 'identifyLed', + label: this.$t('pageHardwareStatus.table.identifyLed'), formatter: this.tableFormatter, - sortable: true, }, ], searchFilter: searchFilter, -- cgit v1.2.3