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