| | |
| | | }, |
| | | // end |
| | | handleAttachmentClick(row) { |
| | | // 模拟下载附件 |
| | | const imageUrl = this.javaApi + '/img/' + row.systemFileName; // 图片 URL |
| | | file.downloadIamge(imageUrl, row.fileName) |
| | | // downloadImage(imageUrl, row.fileName); |
| | | return this.$download.attachment({ fileUrl: row.systemFileName }, row.fileName) |
| | | }, |
| | | // 添加核查记录 |
| | | add(type) { |
| | |
| | | } |
| | | } |
| | | |
| | | function downloadImage(url, name) { |
| | | const link = document.createElement('a'); |
| | | link.href = url; |
| | | link.download = name; // 文件名 |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .dialog-content { |