diff --git a/pc4mobx/hrmSalary/pages/declareOnlineComparison/index.js b/pc4mobx/hrmSalary/pages/declareOnlineComparison/index.js index 9a5b9560..71ae95c5 100644 --- a/pc4mobx/hrmSalary/pages/declareOnlineComparison/index.js +++ b/pc4mobx/hrmSalary/pages/declareOnlineComparison/index.js @@ -67,6 +67,7 @@ class Index extends Component { return _.map(_.filter(toJS(declareTableStore.columns), (item) => (item.display === "true" && showColumns.includes(item["dataIndex"]))), o => ({ dataIndex: o.dataIndex, title: o.title, width: 150, render: (text, record) => { + if (!record[o["dataIndex"]]) return ; return Object.prototype.toString.call(record[o["dataIndex"]]) === "[object String]" ? {text} :