From a6cdc43d699044409e06c78583a2337ccaa3b96e Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期三, 04 十一月 2026 14:41:27 +0800
Subject: [PATCH] 器官回款机构搜索
---
src/views/project/fund/officeExpenseApply/index.vue | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/views/project/fund/officeExpenseApply/index.vue b/src/views/project/fund/officeExpenseApply/index.vue
index dc6fc04..507427d 100644
--- a/src/views/project/fund/officeExpenseApply/index.vue
+++ b/src/views/project/fund/officeExpenseApply/index.vue
@@ -1936,8 +1936,16 @@
console.log(response.msg);
}
},
- // 涓嬭浇鏂囦欢
+ // 棰勮/涓嬭浇鏂囦欢
downFile(item) {
+ const ext = String(item.name || "")
+ .split(".")
+ .pop()
+ .toLowerCase();
+ if (["pdf", "jpg", "jpeg", "png", "gif", "bmp", "webp"].includes(ext)) {
+ this.$previewFile([{ name: item.name, url: item.url }]);
+ return;
+ }
const url = process.env.VUE_APP_BASE_API + item.url;
var a = document.createElement("a");
var event = new MouseEvent("click");
--
Gitblit v1.9.3