泛微薪资核算iframe表格

This commit is contained in:
黎永顺 2023-04-18 16:24:07 +08:00
parent 978a248cf3
commit f07ab61eac
1 changed files with 4 additions and 4 deletions

View File

@ -61,12 +61,12 @@ export const exceptStr = (str) => {
}
};
export const paginationFun = (tableListPageObj, sizeChange, onChange) => {
export const paginationFun = (tableListPageObj, sizeChange, onChange, i18n = {}) => {
return {
current: tableListPageObj.pageNum,
pageSize: tableListPageObj.size,
total: tableListPageObj.total,
showTotal: (total) => `${total}`,
showTotal: total => `${i18n["共"] ? i18n["共"] : "共"} ${total} ${i18n["条"] ? i18n["条"] : "条"}`,
showQuickJumper: true,
showSizeChanger: true,
pageSizeOptions: ["10", "20", "50", "100"],
@ -76,8 +76,8 @@ export const paginationFun = (tableListPageObj, sizeChange, onChange) => {
onChange({
pageNum: page,
size,
total,
total
});
},
}
};
};