forked from Gitlink/forgeplus-react
修改注册
This commit is contained in:
parent
c75f490b38
commit
9ef7811f57
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue