From 1e4d700c9d85f2716e866bde7a9ca5f296f944e4 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 13 三月 2025 14:36:43 +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