feature/2.9.42310.01-社保档案操作日志

This commit is contained in:
黎永顺 2023-10-23 18:28:29 +08:00
parent 510e46045e
commit 967d0bacd1
1 changed files with 3 additions and 4 deletions

View File

@ -43,10 +43,10 @@ class Index extends Component {
}
}
getAdjustHistoryList = () => {
getAdjustHistoryList = (extra = {}) => {
const { pageInfo } = this.state;
const { archivesStore: { logForm } } = this.props;
const payload = { ...pageInfo, ...logForm.getFormParams() };
const payload = { ...pageInfo, ...logForm.getFormParams(), ...extra };
this.setState({ loading: true });
getAdjustHistoryList(payload).then(({ status, data }) => {
this.setState({ loading: false });
@ -65,7 +65,6 @@ class Index extends Component {
}).catch(() => this.setState({ loading: false }));
};
render() {
const { loading, dataSource, columns, pageInfo, conditions } = this.state;
const { archivesStore: { logForm } } = this.props;
@ -103,7 +102,7 @@ class Index extends Component {
}}
>
<div className="logDialogContent">
{getLogSearchsForm(logForm, conditions, () => this.getAdjustHistoryList())}
{getLogSearchsForm(logForm, conditions, () => this.getAdjustHistoryList({ current: 1 }))}
<WeaTable
columns={columns} dataSource={dataSource}
loading={loading} className="logTable"