custom/路维光电(业务线)

This commit is contained in:
lys 2025-08-04 16:16:06 +08:00
parent b8f7d1e49a
commit e480e9d559
2 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,7 @@
.ant-table-bordered .ant-table-tbody > tr > td,
.ant-table-bordered .ant-table-thead > tr > th {
border-right: 1px solid #e9e9e9 !important;
border-bottom: 1px solid #e9e9e9 !important;
text-align: center;
}
}

View File

@ -58,14 +58,17 @@ class Report extends Component {
const payload = {
...pageInfo, ...form.getFormParams(), taxAgentIds: taxAgentIds ? taxAgentIds.split(",") : []
};
this.setState({ loading: true, payload });
reportData[reportType].list(payload).then(({ status, data }) => {
this.setState({ loading: false });
if (status) {
const { columns, pageInfo: result } = data;
const { list: dataSource, pageNum: current, pageSize, total } = result;
this.setState({
dataSource, pageInfo: { current, pageSize, total }, payload,
columns: this.traverseColumns(columns)
dataSource, pageInfo: { current, pageSize, total }, columns: this.traverseColumns(columns)
});
} else {
this.setState({ dataSource: [], pageInfo: { current: 1, pageSize: 10, total: 0 } });
}
});
};