修改注册

This commit is contained in:
何童崇 2021-12-17 14:56:16 +08:00
parent c75f490b38
commit 9ef7811f57
1 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,7 @@ export default Form.create()(({ match, history, showNotification, form }) => {
const { getFieldDecorator, validateFields, setFieldsValue } = form;
const [cancelConfirmValue, setCancelConfirmValue] = useState(false);
const [submitConfirmValue, setSubmitConfirmValue] = useState(false);
const [expertRegisterValues,setExpertRegisterValues]=useState();
// form
const helper = useCallback(
@ -28,6 +29,8 @@ export default Form.create()(({ match, history, showNotification, form }) => {
form.validateFields((err, values) =>{
if(!err){
console.log('111',values);
setSubmitConfirmValue(true);
setExpertRegisterValues(values);
}
})
}
@ -315,7 +318,7 @@ export default Form.create()(({ match, history, showNotification, form }) => {
</table>
</div>
<div className='buts'>
<button className="but41_fill mr20" onClick={() => setSubmitConfirmValue(true)}>提交资料</button>
<button className="but41_fill mr20" onClick={() => expertRegisterSubmit(true)}>提交资料</button>
<Modal
title="提交资料"
visible={submitConfirmValue}