|
@@ -84,7 +84,7 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
|
|
|
})
|
|
|
|
|
|
const onMount = () => {
|
|
|
- console.log(defaultFormData)
|
|
|
+ // console.log(defaultFormData)
|
|
|
|
|
|
form.setValues({ ...defaultFormData })
|
|
|
delay(80).then(() => {
|
|
@@ -92,10 +92,10 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
|
|
|
enum: accountTypeList.map(item => item.value),
|
|
|
enumNames: accountTypeList.map(item => item.label)
|
|
|
})
|
|
|
- // form.setSchemaByPath('institution', {
|
|
|
- // enum: organizationList.map(item => item.value),
|
|
|
- // enumNames: organizationList.map(item => item.label)
|
|
|
- // })
|
|
|
+ form.setSchemaByPath('institution', {
|
|
|
+ enum: organizationList.map(item => item.value),
|
|
|
+ enumNames: organizationList.map(item => item.label)
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
|