From 4fe6c5ac4bc2b7fa9c9c71bb52d9df3e8b13bd7c Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期二, 15 七月 2025 10:11:45 +0800
Subject: [PATCH] 修改

---
 src/views/build/conpanyFunctionConsult/industryTemplate/index.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/views/build/conpanyFunctionConsult/industryTemplate/index.vue b/src/views/build/conpanyFunctionConsult/industryTemplate/index.vue
index 56fe630..b13c007 100644
--- a/src/views/build/conpanyFunctionConsult/industryTemplate/index.vue
+++ b/src/views/build/conpanyFunctionConsult/industryTemplate/index.vue
@@ -30,6 +30,9 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="文件记录:" >
+          <el-input v-model.trim="data.queryParams.templateName"  placeholder="请输入"></el-input>
+        </el-form-item>
         <el-form-item label="分类:" >
           <el-input v-model.trim="data.queryParams.type"  placeholder="请输入"></el-input>
         </el-form-item>
@@ -141,7 +144,8 @@
     pageSize: 10,
     companyId: null,
     industryType: null,
-    type: ''
+    type: '',
+    templateName: ''
   },
   total: 0,
   dataList: [],
@@ -185,8 +189,8 @@
 })
 const openFile = async(path)=>{
   const ext = path.split('.').pop().toLowerCase();
-  if (ext === 'doc') {
-    ElMessageBox.confirm('暂不支持线上预览.doc文件,是否下载查看?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
+  if (ext === 'doc' || ext === 'xls' || ext === 'xlsx') {
+    ElMessageBox.confirm('暂不支持线上预览文件,是否下载查看?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
       window.open(`${import.meta.env.VITE_APP_BASE_API}/${path}`, '_blank');
     }).catch(() => {
       console.log('取消预览')
@@ -343,7 +347,8 @@
       pageSize: 10,
       companyId: null,
       industryType: null,
-      type: ''
+      type: '',
+      templateName: ''
     }
     await getCompanyList()
   }else {
@@ -352,7 +357,8 @@
       pageSize: 10,
       companyId: data.queryParams.companyId,
       industryType: null,
-      type: ''
+      type: '',
+      templateName: ''
     }
   }
   await getList()

--
Gitblit v1.9.2