Explorar o código

装载字体文件时加屏蔽

TonyKang %!s(int64=5) %!d(string=hai) anos
pai
achega
1f1ca6316d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;
         let me = rptControlObj;
         rptTplObj.pdfFont['SmartSimsun'].push(fontProperty);
         rptTplObj.pdfFont['SmartSimsun'].push(fontProperty);
         if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
         if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
+            $.bootstrapLoading.end();
             me.getPDFEx();
             me.getPDFEx();
         }
         }
     },
     },
@@ -592,6 +593,7 @@ let rptControlObj = {
         if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
         if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
             me.getPDFEx();
             me.getPDFEx();
         } else {
         } else {
+            $.bootstrapLoading.start();
             dynamicLoadJs('/public/jspdf/SmartSimsun-normal.js',"normal", me.getPdfFontCallback);
             dynamicLoadJs('/public/jspdf/SmartSimsun-normal.js',"normal", me.getPdfFontCallback);
             dynamicLoadJs('/public/jspdf/SmartSimsun-bold.js',"bold", 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'));
             // dynamicLoadJs('http://d2.smartcost.com.cn/cach/SmartSimsun-normal.js', "normal", me.getPdfFontCallback('normal'));