ztxkutils 10.0.12 → 10.0.14

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.
@@ -213,10 +213,11 @@ function previewFile(fileUrl, fileId, otherOption) {
213
213
  titleName = suffixTitleName
214
214
  ? preTitleName + "." + suffixTitleName
215
215
  : preTitleName;
216
- window.open(_fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName) + officePreviewType ? "&officePreviewType=" + officePreviewType : '');
216
+ window.open(_fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName) + (officePreviewType ? "&officePreviewType=" + officePreviewType : ''));
217
217
  }
218
218
  else {
219
- window.open(fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + officePreviewType ? "&officePreviewType=" + officePreviewType : '');
219
+ window.open(fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token +
220
+ (officePreviewType ? "&officePreviewType=" + officePreviewType : ''));
220
221
  }
221
222
  }
222
223
  /**
@@ -278,10 +279,11 @@ function createOriginalUrl(fileUrl, fileId, otherOption) {
278
279
  titleName = suffixTitleName
279
280
  ? preTitleName + "." + suffixTitleName
280
281
  : preTitleName;
281
- return _fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName) + officePreviewType ? "&officePreviewType=" + officePreviewType : '';
282
+ return (_fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName) + (officePreviewType ? "&officePreviewType=" + officePreviewType : ''));
282
283
  }
283
284
  else {
284
- return _fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + officePreviewType ? "&officePreviewType=" + officePreviewType : '';
285
+ return (_fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token +
286
+ (officePreviewType ? "&officePreviewType=" + officePreviewType : ''));
285
287
  }
286
288
  }
287
289
  /**
package/dist/print.js CHANGED
@@ -392,7 +392,8 @@ function htmlToPdfNoCanvas(_a) {
392
392
  autoPaging: 'text',
393
393
  margin: [pageMarginY, pageMarginX, pageMarginY, pageMarginX],
394
394
  width: pageWidth,
395
- windowWidth: pageWidth,
395
+ // windowWidth: pageWidth,
396
+ windowWidth: 1050,
396
397
  callback: function (res) {
397
398
  // 添加呈现的HTML所需的页面(从第2页开始)
398
399
  // for (
@@ -498,7 +499,8 @@ function htmlToPdfNoCanvas(_a) {
498
499
  autoPaging: 'text',
499
500
  margin: [pageMarginY, pageMarginX, pageMarginY, pageMarginX],
500
501
  width: pageWidth_1,
501
- windowWidth: pageWidth_1,
502
+ // windowWidth: pageWidth,
503
+ windowWidth: 1050,
502
504
  callback: function (res) {
503
505
  // 添加呈现的HTML所需的页面(从第2页开始)
504
506
  // for (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "10.0.12",
3
+ "version": "10.0.14",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",