Explorar o código

处理预览页面出错问题

TonyKang %!s(int64=5) %!d(string=hai) anos
pai
achega
4488de51d1
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;
     };