mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 19:15:06 +08:00
perf: vxe
This commit is contained in:
@ -131,12 +131,12 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => {
|
||||
}
|
||||
const searchSchemaItem = {
|
||||
// 默认为 input
|
||||
span: 8,
|
||||
folding: searchSchema.length > 2,
|
||||
itemRender: itemRender,
|
||||
...schemaItem.search,
|
||||
field: schemaItem.field,
|
||||
title: schemaItem.search?.title || schemaItem.title
|
||||
title: schemaItem.search?.title || schemaItem.title,
|
||||
span: 8
|
||||
}
|
||||
// 删除不必要的字段
|
||||
delete searchSchemaItem.show
|
||||
|
@ -85,7 +85,7 @@ export const useVxeGrid = <T = any>(config?: UseVxeGridConfig<T>) => {
|
||||
props: { result: 'list', total: 'total' },
|
||||
ajax: {
|
||||
query: ({ page, form }) => {
|
||||
const queryParams = Object.assign({}, form)
|
||||
const queryParams = Object.assign({}, JSON.parse(JSON.stringify(form)))
|
||||
queryParams.pageSize = page.pageSize
|
||||
queryParams.pageNo = page.currentPage
|
||||
gridOptions.loading = false
|
||||
|
Reference in New Issue
Block a user