diff --git a/src/router/index.js b/src/router/index.js index 91dde3d..8bb46ed 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -162,80 +162,7 @@ export const dynamicRoutes = [ } ] }, - /* 档案管理详情数据 */ - { - path: '/archivesManagement/fileManager/file-data', - component: Layout, - hidden: true, - permissions: ['file:manage:set'], - children: [ - { - path: 'index', - component: () => import('@/views/archivesManagement/fileManager/file-data'), - name: 'FileData', - meta: { title: '档案管理数据', activeMenu: '/archivesManagement/fileManager', noCache: true } - } - ] - }, - /* 档案移交申请详情 */ - { - path: '/archivesManagement/filesTransfer/apply/apply-detail-data', - component: Layout, - hidden: true, - permissions: ['transfer:apply:query'], - children: [ - { - path: 'index', - component: () => import('@/views/filesTransfer/detail-data'), - name: 'DetailData', - meta: { title: '申请详情', activeMenu: '/archivesManagement/filesTransfer/apply', noCache: true } - } - ] - }, - /* 档案移交审核详情 */ - { - path: '/archivesManagement/filesTransfer/audit/audit-detail-data', - component: Layout, - hidden: true, - permissions: ['transfer:apply:query'], - children: [ - { - path: 'index2', - component: () => import('@/views/filesTransfer/detail-data'), - name: 'DetailData2', - meta: { title: '审核详情', activeMenu: '/archivesManagement/filesTransfer/audit', noCache: true } - } - ] - }, - { - path: '/archivesManagement/filesTransfer/record/record-detail-data', - component: Layout, - hidden: true, - permissions: ['transfer:apply:query'], - children: [ - { - path: 'index', - component: () => import('@/views/filesTransfer/record/components/data-detail'), - name: 'RecordDetail', - meta: { title: '移交详情', activeMenu: '/archivesManagement/filesTransfer/record', noCache: true } - } - ] - }, - { - path: '/archivesManagement/filesTransfer/accept/accept-detail-data', - component: Layout, - hidden: true, - permissions: ['transfer:apply:query'], - children: [ - { - path: 'index', - component: () => import('@/views/filesTransfer/record/components/data-detail'), - name: 'RecordDetail2', - meta: { title: '接收详情', activeMenu: '/archivesManagement/filesTransfer/accept', noCache: true } - } - ] - }, { path: '/enterpriseForm', component: Layout, @@ -291,6 +218,20 @@ export const dynamicRoutes = [ meta: { title: '人员库', activeMenu: '/enterpriseLibrary/personnel', noCache: true } } ] + }, + { + path: '/personnelForm/', + component: Layout, + hidden: true, + permissions: ['enterpriseLibrary:personnel:add'], + children: [ + { + path: 'index', + component: () => import('@/views/enterpriseLibrary/personnel/components/PersonnelForm'), + name: 'PersonnelForm', + meta: { title: '新增人员', activeMenu: '/enterpriseLibrary/personnel', noCache: true } + } + ] } ] diff --git a/src/views/enterpriseLibrary/personnel/components/PersonnelForm.vue b/src/views/enterpriseLibrary/personnel/components/PersonnelForm.vue new file mode 100644 index 0000000..ae4bc29 --- /dev/null +++ b/src/views/enterpriseLibrary/personnel/components/PersonnelForm.vue @@ -0,0 +1,175 @@ + + + + + 返回 + 保存 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/enterpriseLibrary/personnel/components/child/BasicInfo.vue b/src/views/enterpriseLibrary/personnel/components/child/BasicInfo.vue new file mode 100644 index 0000000..57c4df0 --- /dev/null +++ b/src/views/enterpriseLibrary/personnel/components/child/BasicInfo.vue @@ -0,0 +1,168 @@ + + + + + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/enterpriseLibrary/personnel/components/child/OtherInfo.vue b/src/views/enterpriseLibrary/personnel/components/child/OtherInfo.vue new file mode 100644 index 0000000..188590d --- /dev/null +++ b/src/views/enterpriseLibrary/personnel/components/child/OtherInfo.vue @@ -0,0 +1,94 @@ + + + + + 其他信息 + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/enterpriseLibrary/personnel/components/child/QualificationInfo.vue b/src/views/enterpriseLibrary/personnel/components/child/QualificationInfo.vue new file mode 100644 index 0000000..a1a66d9 --- /dev/null +++ b/src/views/enterpriseLibrary/personnel/components/child/QualificationInfo.vue @@ -0,0 +1,228 @@ + + + + + 资质信息 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/enterpriseLibrary/personnel/index.vue b/src/views/enterpriseLibrary/personnel/index.vue index 6dd371d..4efc817 100644 --- a/src/views/enterpriseLibrary/personnel/index.vue +++ b/src/views/enterpriseLibrary/personnel/index.vue @@ -92,6 +92,7 @@ import EnterpriseDetail from '@/assets/enterpriseLibrary/enterprise/enterprise-detail.png'; import EnterpriseEdit from '@/assets/enterpriseLibrary/enterprise/enterprise-edit.png'; import EnterpriseDelete from '@/assets/enterpriseLibrary/enterprise/enterprise-delete.png'; +import { encryptWithSM4 } from '@/utils/sm' export default { name: 'Personnel', data() { @@ -221,6 +222,13 @@ export default { handleAdd() { console.log('新增人员') this.$message.info('新增人员功能') + this.$router.push({ + name: 'PersonnelForm', + query: { + type: encryptWithSM4('add'), + id: encryptWithSM4(''), + } + }) }, // 详情