소스 검색

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]];