From 79ba63b0b79339d49de02257eb73ef39c772a321 Mon Sep 17 00:00:00 2001
From: Mr Ke <kelq@hugeinfo.com.cn>
Date: Sat, 16 May 2020 13:46:09 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/huge/frontEnd/hugeOA
---
src/components/page/DocumentDetailPage/index.jsx | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/components/page/DocumentDetailPage/index.jsx b/src/components/page/DocumentDetailPage/index.jsx
index 24bc71a..184a6dd 100644
--- a/src/components/page/DocumentDetailPage/index.jsx
+++ b/src/components/page/DocumentDetailPage/index.jsx
@@ -58,7 +58,7 @@
documentType: res.documentType || 'DT00002'
},
loading: false,
- fileList: res.attachmentList && res.attachmentList.map((a) => ({ ...a, key: a.id, uid: a.id, name: a.fileName + '.' + a.suffix, })) || []
+ fileList: res.attachmentList && res.attachmentList.map((a) => ({ ...a, key: a.id, uid: a.id, name: a.fileName + '.' + a.suffix, status: 'done' })) || []
});
});
}
@@ -136,6 +136,14 @@
header: {
Authorization: window.localStorage.getItem('token')
},
+ showUploadList: {
+ showDownloadIcon: true,
+ showRemoveIcon: false,
+ showPreviewIcon: true
+ },
+ onDownload: (file) => {
+ console.log('file', file)
+ },
onChange: ({ file, fileList }) => {
fileList = fileList.slice(-2);
fileList = fileList.map(file => {
@@ -151,7 +159,6 @@
onPreview: (file) => {
window.open(file.url);
},
- showUploadList: { showPreviewIcon: true, showDownloadIcon: true, showRemoveIcon: false }
};
return (
--
Gitblit v1.8.0