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