|
@@ -60,15 +60,27 @@
|
|
|
},
|
|
|
],
|
|
|
onChange:(value)=>{
|
|
|
- updateSchema([{
|
|
|
+ console.log('immediate',value)
|
|
|
+ updateSchema({
|
|
|
field: 'partId',
|
|
|
+ label: '备件类型',
|
|
|
+ component: 'ApiSelect',
|
|
|
+ required:true,
|
|
|
componentProps:{
|
|
|
+ filterOption: onFilterOption,
|
|
|
+ showSearch:true,
|
|
|
+ api:partAllList,
|
|
|
+ numberToString: true,
|
|
|
+ labelField: 'partName',
|
|
|
+ valueField: 'partId',
|
|
|
+ immediate: true,
|
|
|
+ listHeight:120,
|
|
|
disabled:false,
|
|
|
params: {
|
|
|
cameraType: value,
|
|
|
},
|
|
|
},
|
|
|
- }])
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
colProps: {
|
|
@@ -108,7 +120,7 @@
|
|
|
},
|
|
|
];
|
|
|
|
|
|
- const [registerForm, { validate, resetFields, setFieldsValue, updateSchema }] = useForm({
|
|
|
+ const [registerForm, { validate, resetFields, clearValidate, updateSchema }] = useForm({
|
|
|
labelWidth: 120,
|
|
|
schemas:schemas,
|
|
|
showActionButtonGroup: false,
|