Excel 文档查看

This commit is contained in:
cwchen 2025-11-12 16:31:45 +08:00
parent 6cef01b811
commit f608409698
3 changed files with 33 additions and 0 deletions

View File

@ -583,6 +583,20 @@ export const dynamicRoutes = [
}
]
},
{
path: '/documentExcel',
component: Layout,
hidden: true,
permissions: ['enterpriseLibrary:analysis:detail'],
children: [
{
path: 'index',
component: () => import('@/views/common/DocumentExcel'),
name: 'DocumentExcel',
meta: { title: 'Excel文档查看', activeMenu: '/analysis', noCache: true }
}
]
},
]
// 防止连续点击多次路由报错

View File

@ -13,6 +13,7 @@
<el-button @click="handleOnlyOffice">预览文档</el-button>
<el-button @click="handleDocumentSearch">文档搜索功能</el-button>
<el-button @click="handleDocumentSearchWord">Word文档搜索功能</el-button>
<el-button @click="handleDocumentExcel">Excel文档查看</el-button>
</template>
<template slot="handle" slot-scope="{ data }">
<el-button type="text" v-hasPermi="['enterpriseLibrary:analysis:detail']" class="action-btn"
@ -106,6 +107,11 @@ export default {
name: 'DocumentSearchWord',
})
},
handleDocumentExcel() {
this.$router.push({
name: 'DocumentExcel',
})
},
/** 新增按钮操作 */
handleAdd() {

View File

@ -0,0 +1,13 @@
<template>
<div>Excel文档查看</div>
</template>
<script>
export default {
}
</script>
<style>
</style>