From 58192a194d0667ebb880a16cbde36363fdc1d535 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 07 三月 2025 15:03:59 +0800 Subject: [PATCH] 删除无用代码 修改前端下载方法 --- src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue b/src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue index 3c6a5bd..a209069 100644 --- a/src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue +++ b/src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue @@ -94,7 +94,6 @@ this.tableLoading = true getSuperviseDetailCorrectFileList({ superviseDetailsCorrectId: this.info.superviseDetailsCorrectId }).then(res => { this.tableLoading = false - if (res.code === 201) return this.tableData = res.data }).catch(err => { this.tableLoading = false @@ -111,21 +110,13 @@ }, // 涓嬭浇 upload(row) { - let url = ''; - if (row.type == 1) { - url = this.javaApi + '/img/' + row.fileUrl - this.$download.saveAs(url, row.fileName); - } else { - url = this.javaApi + '/word/' + row.fileUrl - this.$download.saveAs(url, row.fileName); - } + this.$download.saveAs(row.fileUrl, row.fileName); }, // 鍒犻櫎 delete(row) { this.tableLoading = true delSuperviseDetailCorrectFile({ superviseDetailsCorrectFileId: row.superviseDetailsCorrectFileId }).then(res => { this.tableLoading = false - if (res.code === 201) return this.$message.success('鍒犻櫎鎴愬姛') this.searchTableList() }).catch(err => { -- Gitblit v1.9.3