Browse Source

feat: user apitransfer

main
xingyu 2 years ago
parent
commit
a261242279
  1. 2
      src/components/Form/src/components/ApiTransfer.vue
  2. 6
      src/views/bpm/group/group.data.ts

2
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<Array<string>> },
value: { type: Array as PropType<Array<any>> },
api: {
type: Function as PropType<(arg?: Recordable) => Promise<TransferItem[]>>,
default: null

6
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'
}
},
{