zmdms-webui 1.3.6 → 1.3.7

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.
@@ -9,8 +9,8 @@ import { MAX_PREVIEW_SIZE } from '../config/constant.js';
9
9
  import { message } from 'antd';
10
10
 
11
11
  var ButtonPreview = function (props) {
12
- var attachId = props.attachId, attachName = props.attachName, attachSize = props.attachSize, attachList = props.attachList; props.isPublic; props.FILE_BASEURL; props.onClick; var resetProps = __rest(props, ["attachId", "attachName", "attachSize", "attachList", "isPublic", "FILE_BASEURL", "onClick"]);
13
- var apiBaseUrl = useBaseContext().apiBaseUrl;
12
+ var attachId = props.attachId, attachName = props.attachName, attachSize = props.attachSize, attachList = props.attachList; props.isPublic; var FILE_BASEURL = props.FILE_BASEURL; props.onClick; var resetProps = __rest(props, ["attachId", "attachName", "attachSize", "attachList", "isPublic", "FILE_BASEURL", "onClick"]);
13
+ var fileBaseUrl = useBaseContext().fileBaseUrl;
14
14
  var onClickHandle = function (e) { return __awaiter(void 0, void 0, void 0, function () {
15
15
  return __generator(this, function (_a) {
16
16
  if (attachId) {
@@ -19,7 +19,7 @@ var ButtonPreview = function (props) {
19
19
  }
20
20
  else {
21
21
  previewFile(attachId, attachName, {
22
- API_BASEURL: apiBaseUrl,
22
+ API_BASEURL: FILE_BASEURL || fileBaseUrl,
23
23
  fileList: attachList,
24
24
  });
25
25
  }
@@ -12,7 +12,7 @@ import OperationBtn from '../operationbtn/operationBtn.js';
12
12
  import { Progress, message } from 'antd';
13
13
 
14
14
  var UploadTable = function (_a, ref) {
15
- var dataSource = _a.dataSource, action = _a.action, headers = _a.headers, data = _a.data, method = _a.method, setInnerFileList = _a.setInnerFileList, isPublic = _a.isPublic, _b = _a.API_BASEURL, API_BASEURL = _b === void 0 ? "" : _b; _a.FILE_API_BASEURL; var maxPreviewSize = _a.maxPreviewSize, isPreview = _a.isPreview, isDelete = _a.isDelete, isDownload = _a.isDownload; _a.listType; var tableColumns = _a.tableColumns;
15
+ var dataSource = _a.dataSource, action = _a.action, headers = _a.headers, data = _a.data, method = _a.method, setInnerFileList = _a.setInnerFileList, isPublic = _a.isPublic, _b = _a.API_BASEURL, API_BASEURL = _b === void 0 ? "" : _b, _c = _a.FILE_API_BASEURL, FILE_API_BASEURL = _c === void 0 ? "" : _c, maxPreviewSize = _a.maxPreviewSize, isPreview = _a.isPreview, isDelete = _a.isDelete, isDownload = _a.isDownload; _a.listType; var tableColumns = _a.tableColumns;
16
16
  var _d = useState(false), loading = _d[0], setLoading = _d[1];
17
17
  var _e = useState(), checked = _e[0], setChecked = _e[1];
18
18
  var isDownloadSingleBoolean = isDownload;
@@ -69,7 +69,7 @@ var UploadTable = function (_a, ref) {
69
69
  case 6:
70
70
  toPreviewFile(record, {
71
71
  maxPreviewSize: maxPreviewSize,
72
- FILE_API_BASEURL: API_BASEURL,
72
+ FILE_API_BASEURL: FILE_API_BASEURL,
73
73
  uploadTableData: dataSource,
74
74
  });
75
75
  return [3 /*break*/, 8];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-webui",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "private": false,
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",