From 12ac097b47740d35632282496e9905133e3dbada Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 15 Nov 2022 20:12:32 +0800 Subject: [PATCH] perf: vxe --- yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts | 2 +- .../src/views/system/operatelog/operatelog.data.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts b/yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts index 460959f1e..240a11d7b 100644 --- a/yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts +++ b/yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts @@ -114,7 +114,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { const searchSchema: VxeFormItemProps[] = [] eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => { // 判断是否显示 - if (schemaItem?.isSearch) { + if (schemaItem?.isSearch || schemaItem.search?.show) { let itemRenderName = schemaItem?.search?.itemRender?.name || '$input' const options: any[] = [] let itemRender: FormItemRenderOptions = { diff --git a/yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts b/yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts index b359b1446..fe8955634 100644 --- a/yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts @@ -65,6 +65,7 @@ const crudSchemas = reactive({ formatter: 'formatDate', isForm: false, search: { + show: true, itemRender: { name: 'XDataTimePicker' }