From fb9e5f2bfade8aa94d99907c7da53dc86170fccb Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期四, 13 三月 2025 17:32:59 +0800
Subject: [PATCH] 文件控制附件bug修复
---
src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue b/src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue
index 49004f4..1bea84b 100644
--- a/src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue
+++ b/src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue
@@ -177,7 +177,6 @@
this.tableLoading = true
getDeviceAcceptanceFileList({ acceptanceId: this.acceptanceId }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.tableData = res.data
}).catch(err => {
this.tableLoading = false
@@ -197,7 +196,7 @@
},
// 涓嬭浇
upload(row) {
- this.$download.downloadFileFromUrl(row.fileUrl, row.fileName)
+ this.$download.saveAs(row.fileUrl, row.fileName)
},
// 鍒犻櫎
delete(row) {
@@ -209,7 +208,6 @@
this.tableLoading = true
delDeviceAcceptanceFileList({ acceptanceFileId: row.acceptanceFileId }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.$message.success('鍒犻櫎鎴愬姛')
this.searchTableList()
}).catch(err => {
--
Gitblit v1.9.3