From 2f0774358a91313dc7ed75888b3db27751d66707 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 08 八月 2025 09:55:59 +0800
Subject: [PATCH] 修改检验的下载和预览
---
src/components/do/b1-inspect-order-plan/Inspection.vue | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index 86f67e1..dcc3251 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -4510,9 +4510,11 @@
let url = "";
if (res.data.type == 1) {
url = this.javaApi + "/img/" + res.data.fileUrl;
+ url = url.replace(/#/g, "%23");
file.downloadIamge(url, row.fileName);
} else {
url = this.javaApi + "/word/" + res.data.fileUrl;
+ url = url.replace(/#/g, "%23");
const link = document.createElement("a");
link.href = url;
link.download = row.fileName;
@@ -4586,6 +4588,7 @@
} else {
this.currentFile.url = this.javaApi + "/word/" + row.fileUrl;
}
+ this.currentFile.url = this.currentFile.url.replace(/#/g, "%23");
this.lookFileVisible = true;
},
handleBack() {
--
Gitblit v1.9.3