import React from 'react'; import { Modal, Spin } from 'antd'; import DemandForm from '@/account/achievement/achievementForm'; import DemandDetaiel from '@/account/achievement/achievementDetails'; 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() { let data = this.props.data || {auditStatus:0}; return (
{data.auditStatus=='1'||data.auditStatus=='2'? : }
); } } export default DemandDesc;