系统集成文档搜索功能
This commit is contained in:
parent
c16aa923e2
commit
2f0fa7f407
|
|
@ -555,6 +555,20 @@ export const dynamicRoutes = [
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/documentSearch',
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
permissions: ['enterpriseLibrary:analysis:detail'],
|
||||
children: [
|
||||
{
|
||||
path: 'index',
|
||||
component: () => import('@/views/common/DocumentSearch'),
|
||||
name: 'DocumentSearch',
|
||||
meta: { title: '文档搜索', activeMenu: '/analysis', noCache: true }
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
// 防止连续点击多次路由报错
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
<el-button @click="handleAdd" v-hasPermi="['analysis:analysis:add']" class="add-btn"><i
|
||||
class="el-icon-plus"></i> 新建项目</el-button>
|
||||
<el-button @click="handleOnlyOffice">预览文档</el-button>
|
||||
<el-button @click="handleDocumentSearch">文档搜索功能</el-button>
|
||||
</template>
|
||||
<template slot="handle" slot-scope="{ data }">
|
||||
<el-button type="text" v-hasPermi="['enterpriseLibrary:analysis:detail']" class="action-btn"
|
||||
|
|
@ -32,11 +33,6 @@
|
|||
</template>
|
||||
</TableModel>
|
||||
</div>
|
||||
<!-- <el-dialog :visible.sync="showViewer" width="80%" append-to-body title="预览">
|
||||
<OnlyOfficeViewer :document-url="documentUrl" :document-title="documentTitle" :document-key="documentKey"
|
||||
:mode="mode" :type="type" @document-ready="handleDocumentReady" @app-ready="handleAppReady" @error="handleError"
|
||||
@initialized="handleInitialized" />
|
||||
</el-dialog> -->
|
||||
<!-- 新建项目 -->
|
||||
<AnalysisForm v-if="showAnalysisForm" :title="title" :row="row" @closeDialog="showAnalysisForm = false"
|
||||
:width="600" />
|
||||
|
|
@ -99,6 +95,11 @@ export default {
|
|||
name: 'TestOnlyOffice',
|
||||
})
|
||||
},
|
||||
handleDocumentSearch() {
|
||||
this.$router.push({
|
||||
name: 'DocumentSearch',
|
||||
})
|
||||
},
|
||||
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
<template>
|
||||
<div>
|
||||
<h1>文档搜索</h1>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'DocumentSearch',
|
||||
}
|
||||
</script>
|
||||
Loading…
Reference in New Issue