This commit is contained in:
snoop 2017-07-17 14:51:21 +09:00
commit 9688937838
2 changed files with 13 additions and 10 deletions

View File

@ -16,6 +16,8 @@ export class DiscoveryDetails extends React.Component<any, any> {
};
}
componentWillMount() {
this.probeTemp =
{
@ -29,7 +31,8 @@ export class DiscoveryDetails extends React.Component<any, any> {
"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",

View File

@ -42,31 +42,31 @@ export class DiscoveryTable extends React.Component<any, any> {
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,
});