| | |
| | | }, |
| | | 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` })) : [] |
| | | }); |
| | | |
| | | }) |
| | |
| | | }, |
| | | fileList: fileList, |
| | | onDownload: (file) => { |
| | | Fetch.attachmentDownload(file.id) |
| | | console.log(file) |
| | | Fetch.attachmentDownload(file.uid) |
| | | .then(res => { |
| | | message.success("下载成功!"); |
| | | }); |
| | |
| | | </div> |
| | | { |
| | | |
| | | savedate ? |
| | | savedate.status ? |
| | | <div style={{ display: 'flex', justifyContent: 'center' }}> |
| | | <Button style={{ marginLeft: '15px', width: '150px' }} onClick={this.cancle}>返回</Button> |
| | | </div> |