ztxkui 10.0.88 → 10.0.89

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.
@@ -26,6 +26,7 @@ import AttachOperation from './AttachOperation';
26
26
  import CompareResult from './CompareResult';
27
27
  import { fileBatchDownload, preCanDownload, nextDownload, sealFileBatchDownload, } from '../../../Upload/utils';
28
28
  import ZtxkContext from '../../../utils/ZtxkContext';
29
+ import { encodeFileIdByDownload } from 'ztxkutils/dist/fileOperation';
29
30
  var DetailTable = function (_a) {
30
31
  var _b;
31
32
  var needQj = _a.needQj, needQys = _a.needQys, records = _a.records, qunjSeal = _a.qunjSeal, electronicSeal = _a.electronicSealIdList, ZT_API_BASEURL = _a.ZT_API_BASEURL, ZT_FILE_BASEURL = _a.ZT_FILE_BASEURL, token = _a.token, viewSealPageFn = _a.viewSealPageFn, contractId = _a.contractId, electronicList = _a.electronicList, sealList = _a.sealList, querySealStatus = _a.querySealStatus, showContranctNum = _a.showContranctNum, request = _a.request, needSaveTemplate = _a.needSaveTemplate, batchDownloadZipName = _a.batchDownloadZipName, docAttachMap = _a.docAttachMap, isNotFileType = _a.isNotFileType, openContractTemplateModalHandle = _a.openContractTemplateModalHandle, refreshCode = _a.refreshCode, _c = _a.otherColumns, otherColumns = _c === void 0 ? [] : _c, organizationId = _a.organizationId;
@@ -41,6 +42,9 @@ var DetailTable = function (_a) {
41
42
  if (downWaterConfig === null || downWaterConfig === void 0 ? void 0 : downWaterConfig.api) {
42
43
  apiUrl = (downWaterConfig === null || downWaterConfig === void 0 ? void 0 : downWaterConfig.api) + "/" + (_record === null || _record === void 0 ? void 0 : _record.attachId) + "?Zmdms-Auth=bearer " + token + "&addWaterMark=true&watermarkOrganizationType=12&watermarkOrganizationId=" + organizationId;
43
44
  }
45
+ if (downWaterConfig === null || downWaterConfig === void 0 ? void 0 : downWaterConfig.saasApi) {
46
+ apiUrl = (downWaterConfig === null || downWaterConfig === void 0 ? void 0 : downWaterConfig.saasApi) + "/" + encodeFileIdByDownload(_record === null || _record === void 0 ? void 0 : _record.attachId) + "?Zmdms-Auth=bearer " + token + "&addWaterMark=true&waterMarkCode=" + organizationId;
47
+ }
44
48
  xhr_1.open('GET', ZT_API_BASEURL + "/api" + apiUrl, true);
45
49
  xhr_1.responseType = 'blob';
46
50
  xhr_1.onload = function () {
@@ -18,6 +18,8 @@ export interface IZtxkConfig {
18
18
  /** 下载水印版接口地址 /zmdms-scm-system/seal/download-watermark-attach */
19
19
  api: string;
20
20
  isPdf?: boolean /** 是否转为pdf格式 */;
21
+ /** 下载水印版本接口地址 产品化版本 */
22
+ saasApi?: string;
21
23
  };
22
24
  }
23
25
  declare const ZtxkContext: React.Context<IZtxkConfig>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "10.0.88",
3
+ "version": "10.0.89",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",
@@ -30,7 +30,7 @@
30
30
  "react-to-print": "^2.14.7",
31
31
  "react-window": "^1.8.9",
32
32
  "virtuallist-antd": "^0.7.6",
33
- "ztxkutils": "10.0.11"
33
+ "ztxkutils": "20.0.4"
34
34
  },
35
35
  "scripts": {
36
36
  "analyze": "source-map-explorer 'dist/static/js/*.js'",