custom/汇通建设
This commit is contained in:
parent
da31fe5740
commit
d754b587cd
|
|
@ -25,7 +25,7 @@ class Index extends Component {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
pageInfo: { current: 1, pageSize: 10, total: 0 }, loading: false, showSearchAd: false,
|
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") }
|
query: { billMonth: moment(new Date()).format("YYYY-MM") }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -77,7 +77,7 @@ class Index extends Component {
|
||||||
const { columns, pageInfo: result } = data;
|
const { columns, pageInfo: result } = data;
|
||||||
const { list: dataSource, pageNum: current, pageSize, total } = result;
|
const { list: dataSource, pageNum: current, pageSize, total } = result;
|
||||||
this.setState({
|
this.setState({
|
||||||
pageInfo: { ...pageInfo, current, pageSize, total }, dataSource,
|
pageInfo: { ...pageInfo, current, pageSize, total }, dataSource, payload,
|
||||||
sumDataSource: updateSum ? sumRow : this.state.sumDataSource,
|
sumDataSource: updateSum ? sumRow : this.state.sumDataSource,
|
||||||
columns: _.map(columns, o => ({ title: o.text, dataIndex: o.column, width: o.width, ellipsis: true }))
|
columns: _.map(columns, o => ({ title: o.text, dataIndex: o.column, width: o.width, ellipsis: true }))
|
||||||
}, () => this.postMessageToChild({
|
}, () => this.postMessageToChild({
|
||||||
|
|
@ -89,10 +89,8 @@ class Index extends Component {
|
||||||
}).catch(() => this.setState({ loading: false }));
|
}).catch(() => this.setState({ loading: false }));
|
||||||
};
|
};
|
||||||
handleExport = () => {
|
handleExport = () => {
|
||||||
const { HTStore: { queryForm } } = this.props;
|
|
||||||
const payload = { ...queryForm.getFormParams() };
|
|
||||||
WeaLoadingGlobal.start();
|
WeaLoadingGlobal.start();
|
||||||
const promise = API.exportHtCommonList(payload);
|
const promise = API.exportHtCommonList(this.state.payload);
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue