浏览代码

批量归档失败问题

Tony Kang 1 年之前
父节点
当前提交
ab00b2fd14
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      app/public/report/js/rpt_archive.js

+ 6 - 4
app/public/report/js/rpt_archive.js

@@ -669,10 +669,12 @@ let rptArchiveObj = {
                 }
                 }
                 if (PAGE_SHOW.closeArchiveSignature) {
                 if (PAGE_SHOW.closeArchiveSignature) {
                     currentRptPageRst.items.forEach((pageItem, pageIdx) => {
                     currentRptPageRst.items.forEach((pageItem, pageIdx) => {
-                        txtSignCells[pageIdx].forEach((txtCell) => {
-                            pageItem.cells.push(txtCell);
-                        });
-                        txtSignCells[pageIdx] = null;
+                        if (txtSignCells[pageIdx]) {
+                            txtSignCells[pageIdx].forEach((txtCell) => {
+                                pageItem.cells.push(txtCell);
+                            });
+                            txtSignCells[pageIdx] = null;
+                        }
                     });
                     });
                     txtSignCells = null;
                     txtSignCells = null;
                 }
                 }