From 2d55ed180fddd028bf4f839345bf0ef4d2f032e7 Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期五, 07 三月 2025 13:34:31 +0800 Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev --- src/views/CNAS/resourceDemand/device/component/calibration.vue | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/src/views/CNAS/resourceDemand/device/component/calibration.vue b/src/views/CNAS/resourceDemand/device/component/calibration.vue index df025bd..10954a3 100644 --- a/src/views/CNAS/resourceDemand/device/component/calibration.vue +++ b/src/views/CNAS/resourceDemand/device/component/calibration.vue @@ -416,16 +416,7 @@ }) }, handleAttachmentClick(row) { - let state = /\.(jpg|jpeg|png|gif)$/i.test(row.systemFileName) - if (state) { - let url = this.javaApi + '/img/' + row.systemFileName; - this.$download.saveAs(url, row.systemFileName) - this.$message.success('涓嬭浇鎴愬姛') - } else { - const url = this.javaApi + '/word/' + row.systemFileName - this.$download.saveAs(url, row.systemFileName) - this.$message.success('涓嬭浇鎴愬姛') - } + this.$download.downloadFileFromUrl(row.systemFileName, row.systemFileName) }, //瀵煎嚭 handleDown() { @@ -437,7 +428,6 @@ this.outLoading = false const blob = new Blob([res], { type: 'application/octet-stream' }); this.$download.saveAs(blob, '璁惧鏍″噯.xlsx') - this.$message.success('瀵煎嚭鎴愬姛') }) }, deleteFile() { -- Gitblit v1.9.3