Commit 6cfd3a15a9bc57fc200f07d3bf6016cca557aa15

Authored by xingyu
1 parent d0fb7d3d

feat: dict add all options

yudao-ui-admin-vue3/src/hooks/web/useCrudSchemas.ts
... ... @@ -80,6 +80,8 @@ const filterSearchSchema = (crudSchema: CrudSchema[]): FormSchema[] => {
80 80 const options: ComponentOptions[] = []
81 81 let comonentProps = {}
82 82 if (schemaItem.dictType) {
  83 + const allOptions: ComponentOptions = { label: '全部', value: '' }
  84 + options.push(allOptions)
83 85 getIntDictOptions(schemaItem.dictType).forEach((dict) => {
84 86 options.push(dict)
85 87 })
... ...