diff --git a/src/assets/enterpriseLibrary/enterpriseKnowledgeIcon.png b/src/assets/enterpriseLibrary/enterpriseKnowledgeIcon.png new file mode 100644 index 0000000..fda4593 Binary files /dev/null and b/src/assets/enterpriseLibrary/enterpriseKnowledgeIcon.png differ diff --git a/src/router/index.js b/src/router/index.js index 59f73a0..066f3c1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -207,7 +207,7 @@ export const dynamicRoutes = [ } ] }, - + { path: '/archivesManagement/filesTransfer/record/record-detail-data', component: Layout, @@ -263,6 +263,20 @@ export const dynamicRoutes = [ meta: { title: '主体信息详情', activeMenu: '/enterpriseLibrary/enterprise', noCache: true } } ] + }, + { + path: '/EnterpriseKnowledge', + component: Layout, + hidden: true, + permissions: ['enterpriseLibrary:enterprise:EnterpriseKnowledge'], + children: [ + { + path: 'index', + component: () => import('@/views/enterpriseLibrary/enterprise/components/EnterpriseKnowledge'), + name: 'EnterpriseKnowledge', + meta: { title: '企业知识库', activeMenu: '/enterpriseLibrary/enterprise', noCache: true } + } + ] } @@ -284,5 +298,5 @@ export default new Router({ mode: 'history', // 去掉url中的# scrollBehavior: () => ({ y: 0 }), routes: constantRoutes, - base: process.env.VUE_APP_ENV === 'production'? '/smart-archiving': '' + base: process.env.VUE_APP_ENV === 'production' ? '/smart-archiving' : '' }) diff --git a/src/views/enterpriseLibrary/enterprise/components/EnterpriseKnowledge.vue b/src/views/enterpriseLibrary/enterprise/components/EnterpriseKnowledge.vue new file mode 100644 index 0000000..5264290 --- /dev/null +++ b/src/views/enterpriseLibrary/enterprise/components/EnterpriseKnowledge.vue @@ -0,0 +1,306 @@ + + + + + \ No newline at end of file diff --git a/src/views/enterpriseLibrary/enterprise/components/child/BasicInfoDetail.vue b/src/views/enterpriseLibrary/enterprise/components/child/BasicInfoDetail.vue index c9a10f4..c1417c8 100644 --- a/src/views/enterpriseLibrary/enterprise/components/child/BasicInfoDetail.vue +++ b/src/views/enterpriseLibrary/enterprise/components/child/BasicInfoDetail.vue @@ -75,13 +75,10 @@ export default { residence: '', businessScope: '', fileList: [], - showPhoto: false } }, methods: { - openPhoto() { - this.showPhoto = true - } + }, } diff --git a/src/views/enterpriseLibrary/enterprise/index.vue b/src/views/enterpriseLibrary/enterprise/index.vue index d606eca..31e2079 100644 --- a/src/views/enterpriseLibrary/enterprise/index.vue +++ b/src/views/enterpriseLibrary/enterprise/index.vue @@ -85,7 +85,7 @@
-
+
企业知识库 企业知识库
@@ -256,6 +256,17 @@ export default { } }) }, + // 企业知识库 + handleEnterpriseKnowledge(enterprise){ + this.$router.push({ + name: 'EnterpriseKnowledge', + query: { + type: encryptWithSM4('knowledge'), + id: encryptWithSM4(enterprise.id ?? '0'), + } + }) + + }, // 详情 handleDetail(enterprise){ this.$router.push({ @@ -265,7 +276,6 @@ export default { id: encryptWithSM4(enterprise.id ?? '0'), } }) - }, // 分页大小改变