|
@@ -230,8 +230,12 @@
|
|
|
function exportPDF() {
|
|
|
//导出PDF
|
|
|
if (currentPageRst) {
|
|
|
- dynamicLoadJs('https://d2.smartcost.com.cn/cach/SmartSimsun-normal.js', 'normal', _getPdfFontCallback);
|
|
|
- dynamicLoadJs('https://d2.smartcost.com.cn/cach/SmartSimsun-bold.js', 'bold', _getPdfFontCallback);
|
|
|
+ if (pdfFont['SmartSimsun'].length === 2) {
|
|
|
+ JpcJsPDFHelper.outputAsPdf(currentPageRst, PAGE_SIZE, currentReportName, [], []);
|
|
|
+ } else {
|
|
|
+ dynamicLoadJs('https://d2.smartcost.com.cn/cach/SmartSimsun-normal.js', 'normal', _getPdfFontCallback);
|
|
|
+ dynamicLoadJs('https://d2.smartcost.com.cn/cach/SmartSimsun-bold.js', 'bold', _getPdfFontCallback);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|