Переглянути джерело

fixed: 兜底cell.Value的处理

Tony Kang 2 роки тому
батько
коміт
9f97588fbb
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/reports/rpt_component/jpc_flow_tab.js

+ 1 - 1
app/reports/rpt_component/jpc_flow_tab.js

@@ -977,7 +977,7 @@ JpcFlowTabSrv.prototype.createNew = function() {
         // 另:要考虑紧密输出情况,需要重新拆分数据
         const _splitValues = function(oCell) {
             // JpcFieldHelper.setValue(data_field, theRecIdx, value);
-            const values = oCell.Value.split('|');
+            const values = (typeof oCell.Value === 'string') ? oCell.Value.split('|') : [oCell.Value];
             let font = oCell[JV.PROP_FONT];
             if (typeof oCell[JV.PROP_FONT] === 'string') {
                 font = fonts[oCell[JV.PROP_FONT]];