Browse Source

fixed: 兜底cell.Value的处理

Tony Kang 2 năm trước cách đây
mục cha
commit
9f97588fbb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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]];