|
@@ -61,6 +61,9 @@
|
|
],
|
|
],
|
|
onChange:(value)=>{
|
|
onChange:(value)=>{
|
|
console.log('immediate',value)
|
|
console.log('immediate',value)
|
|
|
|
+ setFieldsValue({
|
|
|
|
+ partId:'',
|
|
|
|
+ })
|
|
updateSchema({
|
|
updateSchema({
|
|
field: 'partId',
|
|
field: 'partId',
|
|
label: '备件类型',
|
|
label: '备件类型',
|
|
@@ -120,7 +123,7 @@
|
|
},
|
|
},
|
|
];
|
|
];
|
|
|
|
|
|
- const [registerForm, { validate, resetFields, clearValidate, updateSchema }] = useForm({
|
|
|
|
|
|
+ const [registerForm, { validate, resetFields, setFieldsValue, updateSchema }] = useForm({
|
|
labelWidth: 120,
|
|
labelWidth: 120,
|
|
schemas:schemas,
|
|
schemas:schemas,
|
|
showActionButtonGroup: false,
|
|
showActionButtonGroup: false,
|