diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js index f08ea50e..af81b93f 100644 --- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js +++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js @@ -208,8 +208,14 @@ class EditCalcTable extends Component { acctResultList(payload).then(({ status, data }) => { this.setState({ loading: false }); if (status) { - const { columns, pageInfo: list } = data; + let { columns, pageInfo: list } = data; const { list: dataSource, pageNum: current, pageSize, total } = list; + columns = _.map(columns, o => { + if (o.column === "username" || o.column === "departmentName") { + return { ...o, width: "210" }; + } + return o; + }); this.setState({ pageInfo: { ...pageInfo, current, pageSize, total } }, () => { const { pageInfo, selectedRowKeys } = this.state; const sumRowlistUrl = this.props.showTotalCell ? "/api/bs/hrmsalary/salaryacct/acctresult/sum" : ""; @@ -287,4 +293,4 @@ const traverse = (arr, calcDetail) => { }; } }); -}; +}; \ No newline at end of file