feature/业务线管理
This commit is contained in:
parent
62708e104a
commit
88a419491a
|
|
@ -71,6 +71,7 @@ export const exceptStr = (str) => {
|
|||
};
|
||||
|
||||
export const paginationFun = (tableListPageObj, sizeChange, onChange, i18n = {}) => {
|
||||
const pageSizeOptions= tableListPageObj?.pageSizeOptions || ["10", "20", "50", "100"];
|
||||
return {
|
||||
current: tableListPageObj.pageNum || tableListPageObj.current,
|
||||
pageSize: tableListPageObj.size || tableListPageObj.pageSize,
|
||||
|
|
@ -78,7 +79,7 @@ export const paginationFun = (tableListPageObj, sizeChange, onChange, i18n = {})
|
|||
showTotal: total => `${i18n["共"] ? i18n["共"] : "共"} ${total} ${i18n["条"] ? i18n["条"] : "条"}`,
|
||||
showQuickJumper: true,
|
||||
showSizeChanger: true,
|
||||
pageSizeOptions: ["10", "20", "50", "100"],
|
||||
pageSizeOptions,
|
||||
onShowSizeChange: (page, size) => {
|
||||
const { total } = tableListPageObj;
|
||||
sizeChange({
|
||||
|
|
|
|||
Loading…
Reference in New Issue