Browse Source

批量归档控制数量

TonyKang 3 years ago
parent
commit
74368f8082
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app/public/report/js/rpt_archive.js

+ 5 - 1
app/public/report/js/rpt_archive.js

@@ -136,7 +136,11 @@ let rptArchiveObj = {
 
     batchArchive: function() {
         if (zTreeOprObj.checkedRptTplNodes && zTreeOprObj.checkedRptTplNodes.length > 0) {
-            indexDbOprObj.storeReportRequest(current_stage_id, zTreeOprObj.checkedRptTplNodes, indexDbOprObj.startRequestReport);
+            if (zTreeOprObj.checkedRptTplNodes.length <= 10) {
+                indexDbOprObj.storeReportRequest(current_stage_id, zTreeOprObj.checkedRptTplNodes, indexDbOprObj.startRequestReport);
+            } else {
+                alert('批量归档上限为10,请勾选10张以内');
+            }
         }
     },