瀏覽代碼

有交互报表归档

TonyKang 3 年之前
父節點
當前提交
99ca9dfb26
共有 2 個文件被更改,包括 11 次插入1 次删除
  1. 10 0
      app/public/report/js/rpt_custom.js
  2. 1 1
      app/public/report/js/rpt_main.js

+ 10 - 0
app/public/report/js/rpt_custom.js

@@ -419,6 +419,9 @@ const rptCustomObj = (function () {
             reloadReportData(result);
             $('#audit-select').modal('hide');
             rptArchiveObj.toggleBtn(true);
+            if (PAGE_SHOW.showArchive) {
+                rptArchiveObj.showArchivedItem(zTreeOprObj.currentNode);
+            }
         });
     };
 
@@ -507,6 +510,7 @@ const rptCustomObj = (function () {
         hintObj.hide();
         if (resolve) {
             resolve(data);
+            rptArchiveObj.toggleBtn(false);
         } else {
             postData('/report/cDefine', data, function (result) {
                 reloadReportData(result);
@@ -519,6 +523,9 @@ const rptCustomObj = (function () {
                 $('#gather-select-count').html(data[sGatherSelect].tenders.length);
                 $('#gather-select').modal('hide');
                 rptArchiveObj.toggleBtn(true);
+                if (PAGE_SHOW.showArchive) {
+                    rptArchiveObj.showArchivedItem(zTreeOprObj.currentNode);
+                }
             });
         }
     };
@@ -554,6 +561,9 @@ const rptCustomObj = (function () {
                 $('#stage-select-count').html(data[sStageSelect].stages.length);
                 $('#stage-select').modal('hide');
                 rptArchiveObj.toggleBtn(true);
+                if (PAGE_SHOW.showArchive) {
+                    rptArchiveObj.showArchivedItem(zTreeOprObj.currentNode);
+                }
             });
         }
     };

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

@@ -271,6 +271,7 @@ let zTreeOprObj = {
             params.closeWatermark = getCloseWatermark();
             params.custCfg = CUST_CFG;
 
+            rptArchiveObj.toggleBtn(false);
             const gather_select = customSelects.gather_select.find(function (x) {
                 return x.id === treeNode.refId;
             });
@@ -287,7 +288,6 @@ let zTreeOprObj = {
                 return;
             }
 
-
             rptArchiveObj.toggleBtn(true);
             me.requestNormalReport(params);
             me.countChkedRptTpl();