Browse Source

修复归档bug

ellisran 10 tháng trước cách đây
mục cha
commit
8d74af6856
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/public/report/js/rpt_archive.js

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

@@ -105,6 +105,7 @@ let rptArchiveObj = {
         zTreeHelper.createTreeDirectly(TOP_TREE_NODES, rpt_prj_folder_setting, "rptTplTree", me);
         me.treeObj.expandAll(true);
         me.refreshNodes();
+        $('#iframe_made').html('<iframe src="/archive/pdf/show" class="border-0" height="100%" width="100%"></iframe>');
         rptArchiveObj._countChkedRptTpl();
         rptArchiveObj._buildeArchiveDateSelect();
         rptArchiveObj._iniArchiveItemForDeleteShow();
@@ -308,7 +309,6 @@ let rptArchiveObj = {
         targetDom.innerHTML = me.currentArchiveDateStr;
         let drpDom = $("#drpArchiveSelect");
         drpDom.empty();
-        $('#iframe_made').html('<iframe src="/archive/pdf/show" class="border-0" height="100%" width="100%"></iframe>');
         if (me.currentNode && me.currentArchiveUuid && me.currentArchiveDateStr) {
             for (let aItem of ARCHIVE_LIST) {
                 if (me.currentNode.refId === parseInt(aItem.rpt_id)) {