Pārlūkot izejas kodu

优化 + code sync

TonyKang 5 gadi atpakaļ
vecāks
revīzija
a0d6e303c7
1 mainītis faili ar 7 papildinājumiem un 1 dzēšanām
  1. 7 1
      web/building_saas/report/js/rpt_main.js

+ 7 - 1
web/building_saas/report/js/rpt_main.js

@@ -1025,7 +1025,13 @@ let rptControlObj = {
         let me = rptControlObj;
         rptTplObj.pdfFont['SmartSimsun'].push(fontProperty);
         if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
-            me.getPDFEx();
+            if ($('#ini_PDF_cover').is(':visible')) {
+                $("#ini_PDF_Btn_Cancel").trigger("click");
+            }
+            setTimeout(function(){
+                me.getPDFEx();
+            }, 10);
+            // me.getPDFEx();
         }
     },
     getPDFPre: function () {