From f57cac888fba78982e3b46c1f45db0fbe16faa49 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期四, 13 三月 2025 09:23:39 +0800 Subject: [PATCH] 单点登录开发 --- src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue b/src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue index 48e5b68..c753f94 100644 --- a/src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue +++ b/src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue @@ -241,7 +241,6 @@ }, handleRemove(file) { this.$axios.delete(this.$api.personnel.deleteCNASFile + "?fileName=" + file.name).then(res => { - if (res.code === 201) return; this.$message.success('鍒犻櫎鎴愬姛锛�') let index = this.form.fileList.indexOf(fileName) if (index != -1) { @@ -250,9 +249,11 @@ }) }, download(row) { - let url = ''; - url = this.javaApi + '/img/' + row.systemFileName - this.$download.saveAs(url, row.fileName) + if (!row.systemFileName) { + this.$message.warning('鏆傛棤鏂囦欢') + return + } + this.$download.saveAs(row.systemFileName, row.fileName) } } } -- Gitblit v1.9.3