custom/汇通建设

This commit is contained in:
lys 2024-11-22 14:27:06 +08:00
parent da31fe5740
commit d754b587cd
1 changed files with 3 additions and 5 deletions

View File

@ -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() {