diff --git a/src/ts/@overflow/meta/react/components/CrawlerSelector.tsx b/src/ts/@overflow/meta/react/components/CrawlerSelector.tsx index a49bff4..92e7085 100644 --- a/src/ts/@overflow/meta/react/components/CrawlerSelector.tsx +++ b/src/ts/@overflow/meta/react/components/CrawlerSelector.tsx @@ -12,6 +12,8 @@ import MetaCrawlerInputItem from '@overflow/meta/api/model/MetaCrawlerInputItem' import Target from '@overflow/target/api/model/Target'; import SensorRegistInfo from '@overflow/sensor/api/model/SensorRegistInfo'; +import * as Utils from '@overflow/commons/util/Utils'; + export interface CrawlerSelectorStateProps { metaCralwerList?: MetaCrawler[]; targetId?: number; @@ -110,29 +112,67 @@ export class CrawlerSelector extends React.Component = new Array(); - return ( - - - -
-
-
- - - -
- ); + for(let index: number = 0 ; index < this.props.metaCralwerList.length; ++index) { + let crawler: MetaCrawler = this.props.metaCralwerList[index]; + + elems.push( + + {index + 1} + {crawler.name} + {crawler.description} + {Utils.date2date(crawler.createDate)} + , + ); + + } + + return elems; + + // this.convertCrawler(); + // console.log(this.selectOptions); + + // return ( + // + // + // + //
+ //
+ //
+ // + // + // + //
+ // ); } public render(): JSX.Element { @@ -144,7 +184,21 @@ export class CrawlerSelector extends React.Component
- {this.props.metaCralwerList ? this.renderCrawler() : ''} + {/* {this.props.metaCralwerList ? this.renderCrawler() : ''} */} + + + + No. + Name + Description + Created at + + + + + {this.renderCrawler()} + +
); diff --git a/src/ts/@overflow/sensor/react/SensorConfigTargetSelect.tsx b/src/ts/@overflow/sensor/react/SensorConfigTargetSelect.tsx index 53cdd18..6f14a8a 100644 --- a/src/ts/@overflow/sensor/react/SensorConfigTargetSelect.tsx +++ b/src/ts/@overflow/sensor/react/SensorConfigTargetSelect.tsx @@ -2,7 +2,7 @@ import { connect, Dispatch } from 'react-redux'; import { SensorConfigTargetSelect, Props as SensorConfigTargetSelectStateProps, - State as SensorConfigTargetSelectDispatchProps, + DispatchProps as SensorConfigTargetSelectDispatchProps, } from './components/SensorConfigTargetSelect'; // import State from '../redux/state/ReadAllByTarget'; import { push as routerPush } from 'react-router-redux';