import React from 'react'; import { Modal } from 'antd'; import AuthDetaiel from '@/administration/authentication/authDetaiel'; class DemandDesc extends React.Component { constructor(props) { super(props); this.state = { loading: false, pictureUrl: [], showState:false }; } handleCancel() { this.setState({ visible: false, }); this.props.closeDesc(false, false); } handOk() { this.setState({ visible: false, }); this.props.closeDesc(false, true); } componentWillReceiveProps(nextProps) { this.state.visible = nextProps.showDesc; } render() { return (
{this.state.visible ?
:
}
); } } export default DemandDesc;