|
|
@@ -28,8 +28,10 @@ let rptTplObj = {
|
|
|
if (JpcJsPDFHelper.doc === null) {
|
|
|
JpcJsPDFHelper.initialize('p', 'pt', 'a4');
|
|
|
}
|
|
|
- dynamicLoadJs('/lib/jspdf/SmartSimsun-normal.js');
|
|
|
- dynamicLoadJs('/lib/jspdf/SmartSimsun-bold.js', me.pdfFontSimsunCallBack);
|
|
|
+ // dynamicLoadJs('/lib/jspdf/SmartSimsun-normal.js');
|
|
|
+ // dynamicLoadJs('/lib/jspdf/SmartSimsun-bold.js', me.pdfFontSimsunCallBack);
|
|
|
+ dynamicLoadJs('http://d2.smartcost.com.cn/cach/SmartSimsun-normal.js');
|
|
|
+ dynamicLoadJs('http://d2.smartcost.com.cn/cach/SmartSimsun-bold.js', me.pdfFontSimsunCallBack);
|
|
|
}
|
|
|
},
|
|
|
pdfFontSimsunCallBack: function() {
|
|
|
@@ -943,6 +945,21 @@ let rptControlObj = {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ getPdfFontCallback: function(fontProperty) {
|
|
|
+ rptTplObj.pdfFont['SmartSimsun'].push(fontProperty);
|
|
|
+ if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
|
|
|
+ me.getPDFEx();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getPDFPre: function () {
|
|
|
+ let me = rptControlObj;
|
|
|
+ if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
|
|
|
+ me.getPDFEx();
|
|
|
+ } else {
|
|
|
+ dynamicLoadJs('http://d2.smartcost.com.cn/cach/SmartSimsun-normal.js', me.getPdfFontCallback('normal'));
|
|
|
+ dynamicLoadJs('http://d2.smartcost.com.cn/cach/SmartSimsun-bold.js', me.getPdfFontCallback('bold'));
|
|
|
+ }
|
|
|
+ },
|
|
|
getPDFEx: function () {
|
|
|
let me = rptControlObj;
|
|
|
if (zTreeOprObj.checkedRptTplNodes && zTreeOprObj.checkedRptTplNodes.length > 0) {
|