|
|
@ -67,6 +67,7 @@ interface AllSchemas { |
|
|
|
formSchema: FormSchema[] |
|
|
|
detailSchema: DescriptionsSchema[] |
|
|
|
tableFormColumns: TableFormColumn[] |
|
|
|
tableMainColumns:TableColumn[] |
|
|
|
} |
|
|
|
|
|
|
|
const { t } = useI18n() |
|
|
@ -83,15 +84,18 @@ export const useCrudSchemas = ( |
|
|
|
tableColumns: [], |
|
|
|
formSchema: [], |
|
|
|
detailSchema: [], |
|
|
|
tableFormColumns:[] |
|
|
|
tableFormColumns:[], |
|
|
|
tableMainColumns:[], |
|
|
|
}) |
|
|
|
|
|
|
|
const searchSchema = filterSearchSchema(crudSchema, allSchemas) |
|
|
|
allSchemas.searchSchema = searchSchema || [] |
|
|
|
|
|
|
|
|
|
|
|
const tableColumns = filterTableSchema(crudSchema) |
|
|
|
allSchemas.tableColumns = tableColumns || [] |
|
|
|
|
|
|
|
allSchemas.tableMainColumns = tableColumns.filter(item=>!item.hiddenInMain) || [] |
|
|
|
|
|
|
|
const formSchema = filterFormSchema(crudSchema, allSchemas) |
|
|
|
allSchemas.formSchema = formSchema |
|
|
|
|
|
|
|