ztxkui 3.3.0 → 3.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -80,7 +80,7 @@ var PrintContainer = function (_a) {
|
|
|
80
80
|
}, [keywordList]);
|
|
81
81
|
// 根据流程id 部门id获取印章信息 跟 关键字信息
|
|
82
82
|
useEffect(function () {
|
|
83
|
-
if (deptId && flowId) {
|
|
83
|
+
if (deptId && flowId && request) {
|
|
84
84
|
request({
|
|
85
85
|
url: '/api/zmdms-resource/flowdeptseal/page',
|
|
86
86
|
method: 'GET',
|
|
@@ -131,7 +131,7 @@ var PrintContainer = function (_a) {
|
|
|
131
131
|
}, [deptId, flowId, request]);
|
|
132
132
|
// 根据附件id 下载文件资源 这个是解决中文乱码问题得字体包
|
|
133
133
|
useEffect(function () {
|
|
134
|
-
if (fileId) {
|
|
134
|
+
if (fileId && request) {
|
|
135
135
|
loadFontTTFPromise = downloadFontTTF({
|
|
136
136
|
fileId: fileId,
|
|
137
137
|
request: request,
|
|
@@ -276,7 +276,9 @@ var PrintContainer = function (_a) {
|
|
|
276
276
|
dom: containerRef.current,
|
|
277
277
|
isShowPage: isAddExportPage,
|
|
278
278
|
fileBinary: fontTTF,
|
|
279
|
-
pdfOption: {
|
|
279
|
+
pdfOption: {
|
|
280
|
+
pageFormat: [1000, 1000],
|
|
281
|
+
},
|
|
280
282
|
})
|
|
281
283
|
.then(function (option) {
|
|
282
284
|
var pdfBase64 = option.pdfBase64;
|
|
@@ -413,7 +415,9 @@ var PrintContainer = function (_a) {
|
|
|
413
415
|
dom: containerRef.current,
|
|
414
416
|
isShowPage: isAddExportPage,
|
|
415
417
|
fileBinary: fontTTF,
|
|
416
|
-
pdfOption: {
|
|
418
|
+
pdfOption: {
|
|
419
|
+
pageFormat: [1000, 1000],
|
|
420
|
+
},
|
|
417
421
|
})
|
|
418
422
|
.then(function (option) {
|
|
419
423
|
var pdfBase64 = option.pdfBase64;
|