|
@@ -1023,7 +1023,12 @@ let rptControlObj = {
|
|
|
},
|
|
},
|
|
|
_hidePdfIniPage: function () {
|
|
_hidePdfIniPage: function () {
|
|
|
if ($('#ini_PDF_cover').is(':visible')) {
|
|
if ($('#ini_PDF_cover').is(':visible')) {
|
|
|
- $("#ini_PDF_Btn_Cancel").trigger("click");
|
|
|
|
|
|
|
+ // $("#ini_PDF_Btn_Cancel").trigger("click");
|
|
|
|
|
+ // 因在Z+可能会有冲突,所以暴力关闭初始化PDF页面!
|
|
|
|
|
+ $('#ini_PDF_cover').remove();
|
|
|
|
|
+ if ($("div.modal-backdrop.fade.show")) {
|
|
|
|
|
+ $('div.modal-backdrop.fade.show').remove();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
getPdfFontCallback: function(fontProperty) {
|
|
getPdfFontCallback: function(fontProperty) {
|
|
@@ -1031,16 +1036,9 @@ let rptControlObj = {
|
|
|
rptTplObj.pdfFont['SmartSimsun'].push(fontProperty);
|
|
rptTplObj.pdfFont['SmartSimsun'].push(fontProperty);
|
|
|
if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
|
|
if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
|
|
|
me._hidePdfIniPage();
|
|
me._hidePdfIniPage();
|
|
|
- $.bootstrapLoading.end();
|
|
|
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
|
- if (!$('#ini_PDF_cover').is(':visible')) {
|
|
|
|
|
- me.getPDFEx();
|
|
|
|
|
- } else {
|
|
|
|
|
- setTimeout(function() {
|
|
|
|
|
- me.getPDFEx();
|
|
|
|
|
- }, 2000);
|
|
|
|
|
- }
|
|
|
|
|
- }, 1000); // 1000毫秒足够关闭PDF初始化page了,另:不能直接把me.getPDFEx()作为函数放进来,否则容易冲突
|
|
|
|
|
|
|
+ me.getPDFEx();
|
|
|
|
|
+ }, 50); // 50毫秒足够关闭PDF初始化page了
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
getPDFPre: function () {
|
|
getPDFPre: function () {
|