浏览代码

处理预览页面出错问题

TonyKang 5 年之前
父节点
当前提交
4488de51d1
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/reports/rpt_component/jpc_ex.js

+ 4 - 0
app/reports/rpt_component/jpc_ex.js

@@ -280,6 +280,8 @@ JpcExSrv.prototype.createNew = function() {
             if (pageMergeBorder) {
                 rstPage[JV.PROP_PAGE_MERGE_BORDER] = pageMergeBorder;
             }
+            rstPage[JV.PROP_SIGNATURE_CELLS] = [];
+            rstPage[JV.PROP_SIGNATURE_DATE_CELLS] = [];
             rst.items.push(rstPage);
             // 2.
             if (bands[JV.BAND_PROP_MERGE_BAND]) {
@@ -393,6 +395,8 @@ JpcExSrv.prototype.createNew = function() {
                     rst[JV.PROP_PAGE_MERGE_BORDER] = pageMergeBorder;
                 }
             }
+        } else {
+            console.log('no page result was found!');
         }
         return rst;
     };