diff --git a/pc4mobx/hrmSalary/pages/reportView/components/reportContent.js b/pc4mobx/hrmSalary/pages/reportView/components/reportContent.js index 8db33b36..e0c3c2bf 100644 --- a/pc4mobx/hrmSalary/pages/reportView/components/reportContent.js +++ b/pc4mobx/hrmSalary/pages/reportView/components/reportContent.js @@ -86,7 +86,7 @@ class ReportContent extends Component { this.setState({ loading: true }); reportStatisticsReportGetData(payload).then(({ status, data }) => { this.setState({ loading: false }); - if (status) { + if (status && id === data.reportId) { const { countResult, columns, pageInfo: { list } } = data; this.setState({ countResult, diff --git a/pc4mobx/hrmSalary/pages/reportView/index.js b/pc4mobx/hrmSalary/pages/reportView/index.js index e16680a2..2031c1c5 100644 --- a/pc4mobx/hrmSalary/pages/reportView/index.js +++ b/pc4mobx/hrmSalary/pages/reportView/index.js @@ -135,9 +135,15 @@ class Index extends Component { this.setState({ - statisticalPayload: { visible: true, id: report.id, dimension: report.dimensionId } - })} + onClick={() => { + if (this.reportRef.state.loading) { + message.info(getLabel(111, "列表正在加载中,请稍后")) + } else { + this.setState({ + statisticalPayload: { visible: true, id: report.id, dimension: report.dimensionId } + }); + } + }} /> diff --git a/pc4mobx/hrmSalary/pages/salaryItem/systemSalaryItemModal.js b/pc4mobx/hrmSalary/pages/salaryItem/systemSalaryItemModal.js index ba12bf48..3530ee29 100644 --- a/pc4mobx/hrmSalary/pages/salaryItem/systemSalaryItemModal.js +++ b/pc4mobx/hrmSalary/pages/salaryItem/systemSalaryItemModal.js @@ -34,7 +34,15 @@ export default class SystemSalaryItemModal extends React.Component { if (status) { const { columns, list: dataSource, pageNum: current, pageSize, total } = data; this.setState({ - columns, dataSource, + columns: _.map(columns, item => { + return { + ...item, + render: (text) => { + return {text}; + } + }; + }), + dataSource, pageInfo: { ...pageInfo, current, pageSize, total } }); }