diff options
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/modules/Health/FanStore.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/store/modules/Health/FanStore.js b/src/store/modules/Health/FanStore.js index b4a4189a..fca1f326 100644 --- a/src/store/modules/Health/FanStore.js +++ b/src/store/modules/Health/FanStore.js @@ -11,12 +11,27 @@ const FanStore = { mutations: { setFanInfo: (state, data) => { state.fans = data.map((fan) => { - const { MemberId, Status = {}, PartNumber, SerialNumber } = fan; + const { + IndicatorLED, + Location, + MemberId, + Name, + Reading, + ReadingUnits, + Status = {}, + PartNumber, + SerialNumber, + } = fan; return { id: MemberId, health: Status.Health, partNumber: PartNumber, serialNumber: SerialNumber, + healthRollup: Status.HealthRollup, + identifyLed: IndicatorLED, + locationNumber: Location, + name: Name, + speed: Reading + ' ' + ReadingUnits, statusState: Status.State, }; }); |