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 SensorDetailInfo from '../monitoring/sensor/DetailInfo';
|
||||||
import SensorDetailItems from '../monitoring/sensor/DetailItems';
|
import SensorDetailItems from '../monitoring/sensor/DetailItems';
|
||||||
import SensorItemTree from '../monitoring/sensor/ItemTree';
|
import SensorItemTree from '../monitoring/sensor/ItemTree';
|
||||||
|
import HistoryView from '../../views/history/List';
|
||||||
|
|
||||||
export interface Props extends RouteComponentProps<any> {
|
export interface Props extends RouteComponentProps<any> {
|
||||||
}
|
}
|
||||||
|
@ -27,7 +28,7 @@ class SensorDetailLayout extends React.Component<Props, State> {
|
||||||
|
|
||||||
public render(): JSX.Element {
|
public render(): JSX.Element {
|
||||||
const sub = [
|
const sub = [
|
||||||
{
|
{
|
||||||
'name': 'Info',
|
'name': 'Info',
|
||||||
'path': this.state.currUrl,
|
'path': this.state.currUrl,
|
||||||
},
|
},
|
||||||
|
@ -39,6 +40,10 @@ class SensorDetailLayout extends React.Component<Props, State> {
|
||||||
'name': 'Setup',
|
'name': 'Setup',
|
||||||
'path': this.state.currUrl + '/setup',
|
'path': this.state.currUrl + '/setup',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'name': 'History',
|
||||||
|
'path': this.state.currUrl + '/history',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
return (
|
return (
|
||||||
<Container fluid>
|
<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}/:id/setup`} component={SensorSetup} />
|
||||||
<Route exact={true} path={`${this.props.match.url}/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/tree`} component={SensorItemTree} />
|
||||||
|
<Route exact={true} path={`${this.props.match.url}/:id/history`} component={HistoryView} />
|
||||||
</Switch>
|
</Switch>
|
||||||
</Segment>
|
</Segment>
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user