sensor history
This commit is contained in:
parent
cfce2f36a3
commit
5dd9b8668c
|
@ -9,6 +9,7 @@ import SensorSetup from '../monitoring/sensor/Setup';
|
|||
import SensorDetailInfo from '../monitoring/sensor/DetailInfo';
|
||||
import SensorDetailItems from '../monitoring/sensor/DetailItems';
|
||||
import SensorItemTree from '../monitoring/sensor/ItemTree';
|
||||
import HistoryView from '../../views/history/List';
|
||||
|
||||
export interface Props extends RouteComponentProps<any> {
|
||||
}
|
||||
|
@ -39,6 +40,10 @@ class SensorDetailLayout extends React.Component<Props, State> {
|
|||
'name': 'Setup',
|
||||
'path': this.state.currUrl + '/setup',
|
||||
},
|
||||
{
|
||||
'name': 'History',
|
||||
'path': this.state.currUrl + '/history',
|
||||
},
|
||||
];
|
||||
return (
|
||||
<Container fluid>
|
||||
|
@ -56,6 +61,7 @@ class SensorDetailLayout extends React.Component<Props, State> {
|
|||
<Route exact={true} path={`${this.props.match.url}/:id/setup`} component={SensorSetup} />
|
||||
<Route exact={true} path={`${this.props.match.url}/setup`} component={SensorSetup} />
|
||||
<Route exact={true} path={`${this.props.match.url}/:id/tree`} component={SensorItemTree} />
|
||||
<Route exact={true} path={`${this.props.match.url}/:id/history`} component={HistoryView} />
|
||||
</Switch>
|
||||
</Segment>
|
||||
<Footer />
|
||||
|
|
Loading…
Reference in New Issue
Block a user