crawlerVender
This commit is contained in:
parent
43681525e1
commit
4e9d0cbcc8
|
@ -17,6 +17,7 @@ import * as CrawlerReadAllByTargetActions from '@overflow/meta/redux/action/craw
|
|||
import * as CrawlerAuthInputsActions from '@overflow/meta/redux/action/crawler_auth_inputs';
|
||||
|
||||
import * as asyncRequestActions from '@overflow/commons/redux/action/asyncRequest';
|
||||
import MetaInfraType from '../api/model/MetaInfraType';
|
||||
|
||||
// FIXME::....
|
||||
|
||||
|
@ -37,6 +38,10 @@ export function mapDispatchToProps(dispatch: Dispatch<any>): CrawlerSelectorDisp
|
|||
dispatch(asyncRequestActions.request('MetaCrawlerInputItemService',
|
||||
'readAllByMetaCrawler', CrawlerAuthInputsActions.REQUEST, JSON.stringify(crawler)));
|
||||
},
|
||||
onCrawlerReadAllByInfraType: (infraType: MetaInfraType) => {
|
||||
dispatch(asyncRequestActions.request('MetaInfraVendorService', 'readAllByMetaInfraType',
|
||||
CrawlerReadAllByTargetActions.REQUEST, JSON.stringify(infraType)));
|
||||
},
|
||||
// onCheckCrawlerAuth: (authInfo: string) => {
|
||||
// // dispatch(ReadActions.request(id));
|
||||
// },
|
||||
|
|
|
@ -13,6 +13,7 @@ import Target from '@overflow/target/api/model/Target';
|
|||
import SensorRegistInfo from '@overflow/sensor/api/model/SensorRegistInfo';
|
||||
|
||||
import * as Utils from '@overflow/commons/util/Utils';
|
||||
import MetaInfraType from '../../api/model/MetaInfraType';
|
||||
|
||||
export interface CrawlerSelectorStateProps {
|
||||
metaCralwerList?: MetaCrawler[];
|
||||
|
@ -26,7 +27,7 @@ export interface CrawlerSelectorStateProps {
|
|||
export interface CrawlerSelectorDispatchProps {
|
||||
onCrawlerReadAllByTarget?(target: Target): void;
|
||||
onCrawlerReadAllByMetaCrawler?(crawler: MetaCrawler): void;
|
||||
|
||||
onCrawlerReadAllByInfraType?(infraType: MetaInfraType):void;
|
||||
}
|
||||
|
||||
export type CrawlerSelectorProps = CrawlerSelectorStateProps & CrawlerSelectorDispatchProps;
|
||||
|
@ -55,8 +56,13 @@ export class CrawlerSelector extends React.Component<CrawlerSelectorProps, Crawl
|
|||
target = { id: this.props.targetId };
|
||||
}
|
||||
this.selectOptions = [];
|
||||
this.props.onCrawlerReadAllByTarget(target);
|
||||
// this.props.onCrawlerReadAllByTarget(target);
|
||||
|
||||
let ddddd = this.props.getSensor().infra.infraType;
|
||||
console.log('##########################################');
|
||||
console.log(ddddd);
|
||||
console.log('##########################################');
|
||||
this.props.onCrawlerReadAllByInfraType(ddddd);
|
||||
}
|
||||
|
||||
// public componentWillMount(): void {
|
||||
|
|
Loading…
Reference in New Issue
Block a user