|
@@ -189,6 +189,13 @@
|
|
|
fieldMapToTime: [],
|
|
|
},
|
|
|
beforeFetch: (params) => {
|
|
|
+ if (params['gradeId']) {
|
|
|
+ // console.log('params', params);
|
|
|
+ searchInfo.treeId = '';
|
|
|
+ searchInfo.treeType = '';
|
|
|
+ delete params['treeId'];
|
|
|
+ delete params['treeType'];
|
|
|
+ }
|
|
|
return { ...params, FormId: formIdComputedRef.value, PK: 'id' };
|
|
|
},
|
|
|
useSearchForm: true,
|
|
@@ -221,9 +228,11 @@
|
|
|
function handleDelete(record: Recordable) {
|
|
|
deleteList([record.id]);
|
|
|
}
|
|
|
- const handleChange = (data) => {
|
|
|
+ const handleChange = async (data) => {
|
|
|
searchInfo.treeId = data.id;
|
|
|
searchInfo.treeType = data.type;
|
|
|
+
|
|
|
+ await getForm().setFieldsValue({ gradeId: '' });
|
|
|
reload();
|
|
|
};
|
|
|
function deleteList(ids) {
|