소스 검색

feat: dict add all options

xingyu 2 년 전
부모
커밋
6cfd3a15a9
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      yudao-ui-admin-vue3/src/hooks/web/useCrudSchemas.ts

+ 2 - 0
yudao-ui-admin-vue3/src/hooks/web/useCrudSchemas.ts

@@ -80,6 +80,8 @@ const filterSearchSchema = (crudSchema: CrudSchema[]): FormSchema[] => {
       const options: ComponentOptions[] = []
       let comonentProps = {}
       if (schemaItem.dictType) {
+        const allOptions: ComponentOptions = { label: '全部', value: '' }
+        options.push(allOptions)
         getIntDictOptions(schemaItem.dictType).forEach((dict) => {
           options.push(dict)
         })