diff --git a/src/executor/tools/editModal/formSelectModal.tsx b/src/executor/tools/editModal/formSelectModal.tsx index 81e0303675a8b3b858862b172a5fc73c609fbd62..6844f86ef78158648ff97a86d4b21be6fce21531 100644 --- a/src/executor/tools/editModal/formSelectModal.tsx +++ b/src/executor/tools/editModal/formSelectModal.tsx @@ -12,6 +12,7 @@ import useMenuUpdate from '@/hooks/useMenuUpdate'; import { Controller } from '@/ts/controller'; import * as config from '../../open/form/config'; import { MenuItemType } from 'typings/globelType'; +import { userFormatFilter } from '@/utils/tools'; interface IFormSelectProps { form: schema.XForm; fields: model.FieldModel[]; @@ -77,6 +78,7 @@ const FormSelectModal = ({ new CustomStore({ key: 'id', async load(loadOptions: any) { + loadOptions.filter = await userFormatFilter(loadOptions.filter, metaForm); loadOptions.filter = metaForm.parseFilter(loadOptions.filter); loadOptions.userData = []; if (selectMenu?.item?.value) { @@ -180,6 +182,7 @@ const FormSelectModal = ({ new CustomStore({ key: 'id', async load(loadOptions: any) { + loadOptions.filter = await userFormatFilter(loadOptions.filter, metaForm); loadOptions.filter = metaForm.parseFilter(loadOptions.filter); loadOptions.userData = []; const res = await metaForm.loadThing(loadOptions);