diff --git a/src/components/Form/src/components/ApiTransfer.vue b/src/components/Form/src/components/ApiTransfer.vue index 668b020e..9e5d1ace 100644 --- a/src/components/Form/src/components/ApiTransfer.vue +++ b/src/components/Form/src/components/ApiTransfer.vue @@ -20,7 +20,7 @@ import { propTypes } from '@/utils/propTypes' import { TransferDirection, TransferItem } from 'ant-design-vue/lib/transfer' const props = defineProps({ - value: { type: Array as PropType> }, + value: { type: Array as PropType> }, api: { type: Function as PropType<(arg?: Recordable) => Promise>, default: null diff --git a/src/views/bpm/group/group.data.ts b/src/views/bpm/group/group.data.ts index f61f4e1c..6b4937b1 100644 --- a/src/views/bpm/group/group.data.ts +++ b/src/views/bpm/group/group.data.ts @@ -115,12 +115,12 @@ export const formSchema: FormSchema[] = [ label: '成员', field: 'memberUserIds', required: true, - component: 'ApiSelect', + component: 'ApiTransfer', componentProps: { api: () => getListSimpleUsers(), + showSearch: true, labelField: 'nickname', - valueField: 'id', - mode: 'multiple' + valueField: 'id' } }, {