From 4afb944c92aed7287cc4691fc9019f3b9faea1c0 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期二, 03 十一月 2026 16:04:37 +0800
Subject: [PATCH] 增加对pdf预览支持,统计分析对时间范围的限定要求
---
src/views/project/fund/officeExpenseApply/index.vue | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/src/views/project/fund/officeExpenseApply/index.vue b/src/views/project/fund/officeExpenseApply/index.vue
index 3c72b6b..507427d 100644
--- a/src/views/project/fund/officeExpenseApply/index.vue
+++ b/src/views/project/fund/officeExpenseApply/index.vue
@@ -2,6 +2,7 @@
<template>
<div class="app-container">
<el-form
+ class="opo-query-form"
:model="queryParams"
ref="queryForm"
:inline="true"
@@ -225,7 +226,7 @@
clearable
style="width: 100%"
v-model="form.applyTime"
- type="date"
+ type="date" format="yyyy-MM-dd"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="鐢宠鏃ユ湡"
>
@@ -1928,13 +1929,23 @@
if (response.code == 200) {
this.form.filename = file.raw.name;
this.$modal.msgSuccess(response.msg);
- this.fileList.push({ name: response.fileName, url: response.fileName });
+ // 2026-10-15锛氬垪琛ㄩ噷鐨� name 鐢ㄦ搷浣滀汉鐨勫師濮嬫枃浠跺悕锛屼笉瑕佺敤 response.fileName锛堥偅鏄瓨鍌ㄨ矾寰勶級銆�
+ // 淇濆瓨鏃跺彧鍥炲啓 url锛坒orm.annexbankcard 瀛樼殑鏄�楀彿鎷兼帴鐨� url锛夛紝鎵�浠ヨ繖閲屽彧褰卞搷涓婁紶妗嗙殑鏄剧ず銆�
+ this.fileList.push({ name: file.raw.name, url: response.fileName });
} else {
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