Commit 6cfd3a15a9bc57fc200f07d3bf6016cca557aa15
1 parent
d0fb7d3d
feat: dict add all options
Showing
1 changed file
with
2 additions
and
0 deletions
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 | }) | ... | ... |