Kaynağa Gözat

批量归档按钮

TonyKang 3 yıl önce
ebeveyn
işleme
7ba78464fc
2 değiştirilmiş dosya ile 6 ekleme ve 5 silme
  1. 5 5
      app/public/report/js/rpt_main.js
  2. 1 0
      app/view/report/index.ejs

+ 5 - 5
app/public/report/js/rpt_main.js

@@ -85,11 +85,11 @@ let zTreeOprObj = {
             $("#export_div").find("span").each(function(cIdx,elementSpan){
                 elementSpan.innerText = cnt;
             });
-            if (cnt) {
-                $('#btnBatchArchiveRpt').removeAttr('disabled');
-            } else {
-                $('#btnBatchArchiveRpt').attr('disabled', '');
-            }
+            // if (cnt) {
+            //     $('#btnBatchArchiveRpt').removeAttr('disabled');
+            // } else {
+            //     $('#btnBatchArchiveRpt').attr('disabled', '');
+            // }
         }
     },
     getReportTemplateTree: function() {

+ 1 - 0
app/view/report/index.ejs

@@ -576,6 +576,7 @@
                 zTreeOprObj.refreshNodes();
                 //还有必要触发报表刷新!
                 zTreeOprObj.onClick(null, null, zTreeOprObj.currentNode);
+                zTreeOprObj.countChkedRptTpl();
                 //console.log(ARCHIVE_LIST);
             }, function(err){
                 $.bootstrapLoading.end();