This commit is contained in:
qsh
2024-07-30 18:55:30 +08:00
parent 60231e4005
commit 1e40357e51
8 changed files with 71 additions and 31 deletions

View File

@@ -157,6 +157,9 @@ const props = defineProps({
},
userOptions: {
type: Array
},
allUserOptions: {
type: Array
}
})
@@ -168,7 +171,7 @@ const formSchema = computed(() => {
it.componentProps['disabled'] = formType.value != 'create'
}
if (it.field == 'convertPeople') {
it.options = props.userOptions.map((it) => ({ ...it, name: it.nickname }))
it.options = props.allUserOptions.map((it) => ({ ...it, name: it.nickname }))
}
})
return [