import React from 'react'; import { connect } from 'react-redux'; import router from 'umi/router'; import styles from './index.less'; @connect(({ dogGroup }) => ({ dogGroup })) class DogBreed extends React.PureComponent { componentWillMount = () => { this.props.dispatch({ type: 'dogGroup/getFciDogAll', payload: {}, }); }; componentDidMount = () => {}; componentWillUnmount = () => {}; onChange = () => e => { let value = e.target.value; this.props.dispatch({ type: 'dogGroup/getResultList', payload: { value, }, }); }; goDetail = typeNo => { router.push(`/breed/detail?typeNo=${typeNo}`); }; render() { const { value, resultList } = this.props.dogGroup; return (