const [LeaveRegister, { reload: reloadList, getForm }] = useTable({
api: useLeaveList,
columns: tablecolumns,
formConfig: {
schemas: searchSchemas,
showAdvancedButton: false,
labelWidth: 100,
fieldMapToTime: [['applyDay', ['applyTimeIn', 'applyTimeOut']]],
},
fetchSetting: {
pageField: 'pageNum',
},
//开启搜索
useSearchForm: true,
showIndexColumn: false,
bordered: true,
});
第一次搜索pageNum是1,搜索结果正确,点击下一页pageNum是2,然后fieldMapToTime并没有生效,有没有大佬遇到过这个bug
|