From ec511e31e01a195bfea5145f9e7e929a68cd9f7e Mon Sep 17 00:00:00 2001 From: liuwh <hugeinfo123> Date: Wed, 25 Mar 2020 01:05:55 +0800 Subject: [PATCH] 提交 --- SunshineIns/src/page/ApplyForEdit.jsx | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SunshineIns/src/page/ApplyForEdit.jsx b/SunshineIns/src/page/ApplyForEdit.jsx index 7a102bd..66dbb56 100644 --- a/SunshineIns/src/page/ApplyForEdit.jsx +++ b/SunshineIns/src/page/ApplyForEdit.jsx @@ -69,7 +69,7 @@ }, disabled: res.status ? true : false, loading: false, - fileList: res.list ? res.list.map((item, index) => ({ uid: index, id: item.id, name: item.name, status: 'done', url: domain + `/api/v1/attachment/download/${item.id}?online=false` })) : [] + fileList: res.list ? res.list.map((item, index) => ({ uid: item.uid, id: item.uid, name: item.name, status: 'done', url: domain + `/api/v1/attachment/download/${item.uid}?online=false` })) : [] }); }) @@ -242,7 +242,8 @@ }, fileList: fileList, onDownload: (file) => { - Fetch.attachmentDownload(file.id) + console.log(file) + Fetch.attachmentDownload(file.uid) .then(res => { message.success("下载成功!"); }); @@ -294,7 +295,7 @@ </div> { - savedate ? + savedate.status ? <div style={{ display: 'flex', justifyContent: 'center' }}> <Button style={{ marginLeft: '15px', width: '150px' }} onClick={this.cancle}>返回</Button> </div> -- Gitblit v1.8.0