薪资账套添加人员删除人员列表分页报错的bug
This commit is contained in:
parent
20e6c3aa7e
commit
b52a734e03
|
|
@ -15,11 +15,6 @@ export default class SlideRefereUser extends React.Component {
|
|||
selectedRowKeys: [],
|
||||
searchValue: ""
|
||||
};
|
||||
this.pageInfo = {
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
total: 0
|
||||
};
|
||||
}
|
||||
|
||||
handleTabClick(tab) {
|
||||
|
|
@ -80,20 +75,23 @@ export default class SlideRefereUser extends React.Component {
|
|||
includeType,
|
||||
salarySobId,
|
||||
getLedgerPersonRangeInclude,
|
||||
getLedgerPersonRangeExclude
|
||||
getLedgerPersonRangeExclude,
|
||||
userTableStore
|
||||
}
|
||||
} = this.props;
|
||||
if (includeType == 1) {
|
||||
getLedgerPersonRangeInclude({
|
||||
salarySobId: salarySobId,
|
||||
targetName: value,
|
||||
...this.pageInfo
|
||||
current: userTableStore.pageNum,
|
||||
pageSize: userTableStore.pageSize,
|
||||
});
|
||||
} else {
|
||||
getLedgerPersonRangeExclude({
|
||||
salarySobId: salarySobId,
|
||||
targetName: value,
|
||||
...this.pageInfo
|
||||
current: userTableStore.pageNum,
|
||||
pageSize: userTableStore.pageSize,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
@ -104,7 +102,7 @@ export default class SlideRefereUser extends React.Component {
|
|||
loading,
|
||||
includeType,
|
||||
salarySobId,
|
||||
userTableStore,
|
||||
userTableStore,setUserTableStore,
|
||||
addUserModalVisible,
|
||||
setAddUserModalVisible,
|
||||
baseInfoRequest,
|
||||
|
|
@ -183,34 +181,40 @@ export default class SlideRefereUser extends React.Component {
|
|||
pagination={{
|
||||
total: userTableStore.total,
|
||||
current: userTableStore.pageNum,
|
||||
pageSize: userTableStore.pageSize,
|
||||
showTotal: total => `共 ${total} 条`,
|
||||
showQuickJumper: true,
|
||||
showSizeChanger: true,
|
||||
pageSizeOptions: ["10", "20", "50", "100"],
|
||||
onShowSizeChange: (current, pageSize) => {
|
||||
this.pageInfo = { ...this.pageInfo, current, pageSize };
|
||||
setUserTableStore({...userTableStore, pageNum: current, pageSize})
|
||||
if (includeType == 1) {
|
||||
getLedgerPersonRangeInclude({
|
||||
salarySobId: salarySobId,
|
||||
...this.pageInfo
|
||||
current,
|
||||
pageSize
|
||||
});
|
||||
} else {
|
||||
getLedgerPersonRangeExclude({
|
||||
salarySobId: salarySobId,
|
||||
...this.pageInfo
|
||||
current,
|
||||
pageSize
|
||||
});
|
||||
}
|
||||
},
|
||||
onChange: current => {
|
||||
this.pageInfo = { ...this.pageInfo, current };
|
||||
setUserTableStore({ ...userTableStore, pageNum: current })
|
||||
if (includeType == 1) {
|
||||
getLedgerPersonRangeInclude({
|
||||
salarySobId: salarySobId,
|
||||
...this.pageInfo
|
||||
current,
|
||||
pageSize: userTableStore.pageSize
|
||||
});
|
||||
} else {
|
||||
getLedgerPersonRangeExclude({
|
||||
salarySobId: salarySobId,
|
||||
...this.pageInfo
|
||||
current,
|
||||
pageSize: userTableStore.pageSize
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue