diff options
Diffstat (limited to 'sdnr/wt/odlux/apps/performanceHistoryApp/src/components/receiveLevel.tsx')
-rw-r--r-- | sdnr/wt/odlux/apps/performanceHistoryApp/src/components/receiveLevel.tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/receiveLevel.tsx b/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/receiveLevel.tsx index 9992f5bd8..55bc39860 100644 --- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/receiveLevel.tsx +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/receiveLevel.tsx @@ -23,7 +23,7 @@ import { MaterialTable, ColumnType, ColumnModel, MaterialTableCtorType } from '. import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore'; import connect, { Connect, IDispatcher } from '../../../../framework/src/flux/connect'; -import { ReceiveLevelDataType } from '../models/receiveLevelDataType'; +import { ReceiveLevelDataType,ReceiveLevelDatabaseDataType } from '../models/receiveLevelDataType'; import { IDataSet, IDataSetsObject } from '../models/chartTypes'; import { createReceiveLevelProperties, createReceiveLevelActions } from '../handlers/receiveLevelHandler'; import { lineChart, sortDataByTimeStamp } from '../utils/chartUtils'; @@ -55,9 +55,9 @@ class ReceiveLevelComponent extends React.Component<ReceiveLevelComponentProps>{ const receiveLevelColumns: ColumnModel<ReceiveLevelDataType>[] = [ { property: "radioSignalId", title: "Radio signal", type: ColumnType.text }, { property: "scannerId", title: "Scanner ID", type: ColumnType.text }, - { property: "utcTimeStamp", title: "End Time", type: ColumnType.text, disableFilter: true }, + { property: "timeStamp", title: "End Time", type: ColumnType.text }, { - property: "suspectIntervalFlag", title: "Suspect Interval", type: ColumnType.custom, customControl: ({ rowData }) => { + property: "suspectIntervalFlag", title: "Suspect Interval", customControl: ({ rowData }) => { const suspectIntervalFlag = rowData["suspectIntervalFlag"].toString(); return <div >{suspectIntervalFlag} </div> } @@ -114,10 +114,13 @@ class ReceiveLevelComponent extends React.Component<ReceiveLevelComponentProps>{ }]; _rows.forEach(row => { + row.rxLevelMin = row.performanceData.rxLevelMin; + row.rxLevelAvg = row.performanceData.rxLevelAvg; + row.rxLevelMax = row.performanceData.rxLevelMax; datasets.forEach(ds => { ds.data.push({ - x: row["utcTimeStamp" as keyof ReceiveLevelDataType] as string, - y: row[ds.name as keyof ReceiveLevelDataType] as string + x: row["timeStamp" as keyof ReceiveLevelDataType] as string, + y: row.performanceData[ds.name as keyof ReceiveLevelDatabaseDataType] as string }); }); }); |