| | |
| | | </template> |
| | | |
| | | <script> |
| | | import file from '@/utils/file'; |
| | | |
| | | import filePreview from '@/components/Preview/filePreview.vue'; |
| | | import limsTable from '@/components/Table/lims-table.vue' |
| | | import {getCurrentWorkFiles} from '@/api/cnas/process/method/methodVerification' |
| | |
| | | this.$message.warning('该人员已有任职授权记录,但尚未上传上岗证书文件') |
| | | return |
| | | } |
| | | let url = ''; |
| | | if (/\.(png|jpe?g|gif|bmp|webp)$/i.test(row.fileUrl || '')) { |
| | | url = this.javaApi + '/img/' + row.fileUrl |
| | | file.downloadIamge(url, row.fileName) |
| | | } else { |
| | | url = this.javaApi + '/word/' + row.fileUrl |
| | | const link = document.createElement('a'); |
| | | link.href = url; |
| | | link.download = row.fileName; |
| | | link.click(); |
| | | } |
| | | return this.$download.attachment({ fileUrl: row.fileUrl }, row.fileName) |
| | | }, |
| | | }, |
| | | }; |