zmdms-webui 0.0.108 → 0.0.110
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.
|
@@ -251,7 +251,7 @@ var UploadList = function (props, ref) {
|
|
|
251
251
|
onClick: function (e) {
|
|
252
252
|
onBatchDownloadHandle(e.key);
|
|
253
253
|
},
|
|
254
|
-
}, placement: "bottomLeft" }, { children: jsx(ButtonCom, __assign({ type: "primary" }, { children: "\u6279\u91CF\u4E0B\u8F7D" })) }))) : null, customRenderBtn, showTable ? (jsx(UploadTable, { dataSource: uploadTableData, action: fileAction, headers: fileHeaders, data: fileData, method: method, setInnerFileList: setInnerFileList, isPublic: isPublic, API_BASEURL: API_BASEURL, FILE_API_BASEURL: FILE_API_BASEURL, maxPreviewSize: maxPreviewSize, isPreview: isPreview, isDelete: isDelete, isDownload: isDownload, ref: tableRef })) : null, isImage && (jsx(ModalComponent, __assign({ ref: modalRef, footer: null, width: "520px" }, { children: jsx("div", __assign({ style: {
|
|
254
|
+
}, placement: "bottomLeft" }, { children: jsx(ButtonCom, __assign({ type: "primary" }, { children: "\u6279\u91CF\u4E0B\u8F7D" })) }))) : null, customRenderBtn, showTable ? (jsx(UploadTable, { dataSource: uploadTableData, action: fileAction, headers: fileHeaders, data: fileData, method: method, setInnerFileList: setInnerFileList, isPublic: isPublic, API_BASEURL: API_BASEURL, FILE_API_BASEURL: FILE_API_BASEURL, maxPreviewSize: maxPreviewSize, isPreview: isPreview, isDelete: isDelete, isDownload: isDownload, ref: tableRef, listType: listType })) : null, isImage && (jsx(ModalComponent, __assign({ ref: modalRef, footer: null, width: "520px" }, { children: jsx("div", __assign({ style: {
|
|
255
255
|
textAlign: "center",
|
|
256
256
|
} }, { children: jsx("img", { src: imgSrc, alt: "\u9884\u89C8", style: {
|
|
257
257
|
maxWidth: "400px",
|
|
@@ -11,11 +11,11 @@ import OperationBtn from '../operationbtn/operationBtn.js';
|
|
|
11
11
|
import { Progress, message } from 'antd';
|
|
12
12
|
|
|
13
13
|
var UploadTable = function (_a, ref) {
|
|
14
|
-
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;
|
|
14
|
+
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, listType = _a.listType;
|
|
15
15
|
var _d = useState(false), loading = _d[0], setLoading = _d[1];
|
|
16
16
|
var _e = useState(), checked = _e[0], setChecked = _e[1];
|
|
17
|
-
var isDownloadBoolean = isDownload;
|
|
18
|
-
var isDeleteBoolean = isDelete && !isPreview;
|
|
17
|
+
var isDownloadBoolean = isDownload && listType !== "text";
|
|
18
|
+
var isDeleteBoolean = isDelete && !isPreview && listType !== "text";
|
|
19
19
|
var operationCallback = function (type, record, index) { return __awaiter(void 0, void 0, void 0, function () {
|
|
20
20
|
var attachId, attachName, _a, endCallback, err_1;
|
|
21
21
|
return __generator(this, function (_b) {
|