release/2.19.1.2501.01
This commit is contained in:
parent
51d9c58888
commit
854a49b018
|
|
@ -32,10 +32,10 @@ class PayrollPartTable extends Component {
|
|||
}
|
||||
|
||||
componentWillReceiveProps(nextProps, nextContext) {
|
||||
if (nextProps.visible !== this.props.visible) {
|
||||
nextProps.visible && this.sendRangeList(nextProps);
|
||||
this.setState({ selectedRowKeys: [] });
|
||||
}
|
||||
if (nextProps.visible !== this.props.visible && nextProps.visible) this.sendRangeList(nextProps);
|
||||
if (nextProps.visible !== this.props.visible && !nextProps.visible) this.setState({
|
||||
selectedRowKeys: [], pageInfo: { current: 1, pageSize: 10, total: 0 }
|
||||
});
|
||||
}
|
||||
|
||||
sendRangeList = (props) => {
|
||||
|
|
@ -52,9 +52,9 @@ class PayrollPartTable extends Component {
|
|||
sendRangeList(payload).then(({ status, data }) => {
|
||||
this.setState({ loading: { ...loading, query: false } });
|
||||
if (status) {
|
||||
const { pageNum: current, pageSize, total, columns, list: dataSource } = data;
|
||||
const { pageNum: current, total, columns, list: dataSource } = data;
|
||||
this.setState({
|
||||
pageInfo: { ...pageInfo, current, pageSize, total },
|
||||
pageInfo: { ...pageInfo, current, total },
|
||||
dataSource: _.map(dataSource, it => ({
|
||||
...it,
|
||||
includeObj: _.map(it.includeObj, child => child.targetName || child.targetTypeName).join(","),
|
||||
|
|
@ -125,8 +125,7 @@ class PayrollPartTable extends Component {
|
|||
onChange: current => {
|
||||
this.setState({
|
||||
pageInfo: { ...pageInfo, current }
|
||||
}, () => {
|
||||
});
|
||||
}, () => this.sendRangeList({ grantType, salarySendId }));
|
||||
}
|
||||
};
|
||||
const rowSelection = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue