| | |
| | | import AddUnPass from "@/views/business/unpass/components/addUnPass.vue"; |
| | | import { |
| | | checkSubmitPlan, |
| | | doInsOrder, |
| | | doInsOrder, downFile, |
| | | getInsProductUnqualifiedRetest, |
| | | search, selectUserCondition, |
| | | submitPlan, |
| | |
| | | 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 => { |
| | | |
| | | }) |