From 5b5c6374749159db03a14ee645760327930bbb28 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期一, 13 十月 2025 14:46:41 +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