|
|
|
@ -79,7 +79,6 @@ const filterSearchSchema = (crudSchema: CrudSchema[]): FormSchema[] => {
|
|
|
|
for (let i = 0; i < length; i++) {
|
|
|
|
for (let i = 0; i < length; i++) {
|
|
|
|
const schemaItem = crudSchema[i]
|
|
|
|
const schemaItem = crudSchema[i]
|
|
|
|
// 判断是否隐藏
|
|
|
|
// 判断是否隐藏
|
|
|
|
if (!schemaItem?.search?.remove) {
|
|
|
|
|
|
|
|
const searchSchemaItem = {
|
|
|
|
const searchSchemaItem = {
|
|
|
|
component: schemaItem?.search?.component || 'Input',
|
|
|
|
component: schemaItem?.search?.component || 'Input',
|
|
|
|
...schemaItem.search,
|
|
|
|
...schemaItem.search,
|
|
|
|
@ -89,7 +88,6 @@ const filterSearchSchema = (crudSchema: CrudSchema[]): FormSchema[] => {
|
|
|
|
|
|
|
|
|
|
|
|
searchSchema.push(searchSchemaItem)
|
|
|
|
searchSchema.push(searchSchemaItem)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return searchSchema
|
|
|
|
return searchSchema
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -123,8 +121,6 @@ const filterFormSchema = (crudSchema: CrudSchema[]): FormSchema[] => {
|
|
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < length; i++) {
|
|
|
|
for (let i = 0; i < length; i++) {
|
|
|
|
const formItem = crudSchema[i]
|
|
|
|
const formItem = crudSchema[i]
|
|
|
|
// 判断是否隐藏
|
|
|
|
|
|
|
|
if (!formItem?.form?.remove) {
|
|
|
|
|
|
|
|
const formSchemaItem = {
|
|
|
|
const formSchemaItem = {
|
|
|
|
component: formItem?.form?.component || 'Input',
|
|
|
|
component: formItem?.form?.component || 'Input',
|
|
|
|
...formItem.form,
|
|
|
|
...formItem.form,
|
|
|
|
@ -134,7 +130,6 @@ const filterFormSchema = (crudSchema: CrudSchema[]): FormSchema[] => {
|
|
|
|
|
|
|
|
|
|
|
|
formSchema.push(formSchemaItem)
|
|
|
|
formSchema.push(formSchemaItem)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return formSchema
|
|
|
|
return formSchema
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|