From ed5e8c70544a0f74adf13c7b99dadda6ef3579ef Mon Sep 17 00:00:00 2001 From: geek Date: Mon, 17 Jul 2017 14:07:11 +0900 Subject: [PATCH] discovery --- src/ts/containers/test/DiscoveryDetails.tsx | 13 ++++++++----- src/ts/containers/test/DiscoveryTable.tsx | 10 +++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/ts/containers/test/DiscoveryDetails.tsx b/src/ts/containers/test/DiscoveryDetails.tsx index 0cef0c5..a1ecc3e 100644 --- a/src/ts/containers/test/DiscoveryDetails.tsx +++ b/src/ts/containers/test/DiscoveryDetails.tsx @@ -16,6 +16,8 @@ export class DiscoveryDetails extends React.Component { }; } + + componentWillMount() { this.probeTemp = { @@ -29,7 +31,8 @@ export class DiscoveryDetails extends React.Component { "host": { "ip": "192.168.1.103", "mac": "44:8a:5b:44:8c:e8", - "os": "Ubuntu 17.04" + "os": "Ubuntu 17.04", + "name": "?????" }, "createAt": "2017-07-12", "probeKey": "AGBLKDFJ2452ASDGFL2KWJLKSDJ", @@ -57,10 +60,10 @@ export class DiscoveryDetails extends React.Component { render() { return ( -
Discovery Details
- -
- +
Discovery Details
+ +
+ Change your password Enter email address. diff --git a/src/ts/containers/test/DiscoveryTable.tsx b/src/ts/containers/test/DiscoveryTable.tsx index bd306fe..220abb4 100644 --- a/src/ts/containers/test/DiscoveryTable.tsx +++ b/src/ts/containers/test/DiscoveryTable.tsx @@ -42,31 +42,31 @@ export class DiscoveryTable extends React.Component { let value: string = data.value; switch (data.tabIndex) { - case '0':{ + case '1':{ this.setState({ startIp: value, }); break; } - case '1':{ + case '2':{ this.setState({ endIP: value, }); break; } - case '2':{ + case '3':{ this.setState({ excludeIp: value, }); break; } - case '3':{ + case '4':{ this.setState({ startPort: value, }); break; } - case '4':{ + case '5':{ this.setState({ endPort: value, });