From bc4fb103c5f2de231617f38db9a8f0b849c1e097 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 13 三月 2025 09:56:50 +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