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/travelexpenseapply/index.vue |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/views/project/travelexpenseapply/index.vue b/src/views/project/travelexpenseapply/index.vue
index aebd6af..9d63316 100644
--- a/src/views/project/travelexpenseapply/index.vue
+++ b/src/views/project/travelexpenseapply/index.vue
@@ -1,6 +1,7 @@
 <template>
   <div class="app-container">
-    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+    <el-form
+      class="opo-query-form" :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
       <el-row>
         <!--
         <el-col :span="6">
@@ -1264,8 +1265,16 @@
       console.log("涓婃姤", e);
     },
 
-    // 涓嬭浇鏂囦欢
+    // 棰勮/涓嬭浇鏂囦欢
     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