| | |
| | | downFile({ |
| | | id: row.id, |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | let url = ''; |
| | | if (res.data.type == 1) { |
| | | url = this.javaApi + '/img/' + res.data.fileUrl |
| | | this.$download.saveAs(url, row.fileName); |
| | | } else { |
| | | url = this.javaApi + '/word/' + res.data.fileUrl |
| | | this.$download.saveAs(url, row.fileName); |
| | | } |
| | | } |
| | | this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName); |
| | | }).catch(error => { |
| | | |
| | | }) |
| | | }, |
| | | // 下载报告 |
| | | download(row) { |
| | | let url = this.javaApi + '/word/' + row.urlS ? row.urlS : row.url; |
| | | let url = row.urlS ? row.urlS : row.url; |
| | | if (url) { |
| | | this.$download.saveAs(url, this.downLoadInfo.fileName); |
| | | this.$download.downloadFileFromUrl(url, this.downLoadInfo.fileName); |
| | | } |
| | | }, |
| | | // 撤销 |
| | |
| | | userId: this.distributeData.userId, |
| | | sonLaboratory: this.distributeData.sonLaboratory, |
| | | }).then(res => { |
| | | if (res.code === 201) { |
| | | this.upLoad = false |
| | | return |
| | | } |
| | | this.$message.success('修改成功') |
| | | this.upLoad = false |
| | | this.issuedDialogVisible = false |