Przeglądaj źródła

装载字体文件时加屏蔽

TonyKang 5 lat temu
rodzic
commit
1f1ca6316d
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      app/public/report/js/rpt_main.js

+ 2 - 0
app/public/report/js/rpt_main.js

@@ -583,6 +583,7 @@ let rptControlObj = {
         let me = rptControlObj;
         rptTplObj.pdfFont['SmartSimsun'].push(fontProperty);
         if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
+            $.bootstrapLoading.end();
             me.getPDFEx();
         }
     },
@@ -592,6 +593,7 @@ let rptControlObj = {
         if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
             me.getPDFEx();
         } else {
+            $.bootstrapLoading.start();
             dynamicLoadJs('/public/jspdf/SmartSimsun-normal.js',"normal", me.getPdfFontCallback);
             dynamicLoadJs('/public/jspdf/SmartSimsun-bold.js',"bold", me.getPdfFontCallback);
             // dynamicLoadJs('http://d2.smartcost.com.cn/cach/SmartSimsun-normal.js', "normal", me.getPdfFontCallback('normal'));