|
@@ -531,12 +531,13 @@ let rptControlObj = {
|
|
|
},
|
|
|
getPDFPre: function () {
|
|
|
let me = rptControlObj;
|
|
|
- $.bootstrapLoading.start();
|
|
|
if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
|
|
|
+ $.bootstrapLoading.start();
|
|
|
me.getPDFEx();
|
|
|
} else {
|
|
|
// dynamicLoadJs('/lib/jspdf/SmartSimsun-normal.js',"normal", me.getPdfFontCallback);
|
|
|
// dynamicLoadJs('/lib/jspdf/SmartSimsun-bold.js',"bold", me.getPdfFontCallback);
|
|
|
+ $("#ini_PDF_Btn").trigger("click");
|
|
|
dynamicLoadJs('https://d2.smartcost.com.cn/cach/SmartSimsun-normal.js', 'normal', me.getPdfFontCallback);
|
|
|
dynamicLoadJs('https://d2.smartcost.com.cn/cach/SmartSimsun-bold.js', 'bold', me.getPdfFontCallback);
|
|
|
}
|
|
@@ -557,6 +558,10 @@ let rptControlObj = {
|
|
|
CommonAjax.postEx("report_api/getMultiReports", params, 30000, true,
|
|
|
function(result){
|
|
|
$.bootstrapLoading.end();
|
|
|
+ if ($('#ini_PDF_cover').is(':visible')) {
|
|
|
+ $("#ini_PDF_Btn_Cancel").trigger("click");
|
|
|
+ // $("#ini_PDF_cover").remove();
|
|
|
+ }
|
|
|
let pageSize = rptControlObj.getCurrentPageSize();
|
|
|
for (let idx = 0; idx < result.length; idx++) {
|
|
|
let pageData = result[idx];
|
|
@@ -565,11 +570,19 @@ let rptControlObj = {
|
|
|
},
|
|
|
function(failRst){
|
|
|
$.bootstrapLoading.end();
|
|
|
+ if ($('#ini_PDF_cover').is(':visible')) {
|
|
|
+ $("#ini_PDF_Btn_Cancel").trigger("click");
|
|
|
+ // $("#ini_PDF_cover").remove();
|
|
|
+ }
|
|
|
sessionStorage.currentPageData = null;
|
|
|
console.log(failRst);
|
|
|
},
|
|
|
function(exceptionRst){
|
|
|
$.bootstrapLoading.end();
|
|
|
+ if ($('#ini_PDF_cover').is(':visible')) {
|
|
|
+ $("#ini_PDF_Btn_Cancel").trigger("click");
|
|
|
+ // $("#ini_PDF_cover").remove();
|
|
|
+ }
|
|
|
sessionStorage.currentPageData = null;
|
|
|
console.log(exceptionRst);
|
|
|
}
|