diff --git a/pc4mobx/hrmSalary/pages/custom-pages/huitong/socialSecurityReport/index.js b/pc4mobx/hrmSalary/pages/custom-pages/huitong/socialSecurityReport/index.js index 90d424ea..4e5b1e76 100644 --- a/pc4mobx/hrmSalary/pages/custom-pages/huitong/socialSecurityReport/index.js +++ b/pc4mobx/hrmSalary/pages/custom-pages/huitong/socialSecurityReport/index.js @@ -25,7 +25,7 @@ class Index extends Component { super(props); this.state = { pageInfo: { current: 1, pageSize: 10, total: 0 }, loading: false, showSearchAd: false, - dataSource: [], columns: [], conditions: [], sumDataSource: {}, + dataSource: [], columns: [], conditions: [], sumDataSource: {}, payload: {}, query: { billMonth: moment(new Date()).format("YYYY-MM") } }; } @@ -77,7 +77,7 @@ class Index extends Component { const { columns, pageInfo: result } = data; const { list: dataSource, pageNum: current, pageSize, total } = result; this.setState({ - pageInfo: { ...pageInfo, current, pageSize, total }, dataSource, + pageInfo: { ...pageInfo, current, pageSize, total }, dataSource, payload, sumDataSource: updateSum ? sumRow : this.state.sumDataSource, columns: _.map(columns, o => ({ title: o.text, dataIndex: o.column, width: o.width, ellipsis: true })) }, () => this.postMessageToChild({ @@ -89,10 +89,8 @@ class Index extends Component { }).catch(() => this.setState({ loading: false })); }; handleExport = () => { - const { HTStore: { queryForm } } = this.props; - const payload = { ...queryForm.getFormParams() }; WeaLoadingGlobal.start(); - const promise = API.exportHtCommonList(payload); + const promise = API.exportHtCommonList(this.state.payload); }; render() {