diff --git a/src/router/index.js b/src/router/index.js index 8bb46ed..ba44004 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -232,6 +232,20 @@ export const dynamicRoutes = [ meta: { title: '新增人员', activeMenu: '/enterpriseLibrary/personnel', noCache: true } } ] + }, + { + path: '/personnelDetail/', + component: Layout, + hidden: true, + permissions: ['enterpriseLibrary:personnel:detail'], + children: [ + { + path: 'index', + component: () => import('@/views/enterpriseLibrary/personnel/components/PersonnelDetail'), + name: 'PersonnelDetail', + meta: { title: '人员详情', activeMenu: '/enterpriseLibrary/personnel', noCache: true } + } + ] } ] diff --git a/src/views/enterpriseLibrary/personnel/components/PersonnelDetail.vue b/src/views/enterpriseLibrary/personnel/components/PersonnelDetail.vue new file mode 100644 index 0000000..a7a39d1 --- /dev/null +++ b/src/views/enterpriseLibrary/personnel/components/PersonnelDetail.vue @@ -0,0 +1,175 @@ + + + + + 返回 + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/enterpriseLibrary/personnel/components/PersonnelForm.vue b/src/views/enterpriseLibrary/personnel/components/PersonnelForm.vue index ae4bc29..a22d9f8 100644 --- a/src/views/enterpriseLibrary/personnel/components/PersonnelForm.vue +++ b/src/views/enterpriseLibrary/personnel/components/PersonnelForm.vue @@ -1,4 +1,4 @@ - + diff --git a/src/views/enterpriseLibrary/personnel/components/child/BasicInfoDetail.vue b/src/views/enterpriseLibrary/personnel/components/child/BasicInfoDetail.vue new file mode 100644 index 0000000..431c119 --- /dev/null +++ b/src/views/enterpriseLibrary/personnel/components/child/BasicInfoDetail.vue @@ -0,0 +1,168 @@ + + + + + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/enterpriseLibrary/personnel/components/child/OtherInfoDetail.vue b/src/views/enterpriseLibrary/personnel/components/child/OtherInfoDetail.vue new file mode 100644 index 0000000..574c6f2 --- /dev/null +++ b/src/views/enterpriseLibrary/personnel/components/child/OtherInfoDetail.vue @@ -0,0 +1,94 @@ + + + + + 其他信息 + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/enterpriseLibrary/personnel/components/child/QualificationInfoDetail.vue b/src/views/enterpriseLibrary/personnel/components/child/QualificationInfoDetail.vue new file mode 100644 index 0000000..d31b890 --- /dev/null +++ b/src/views/enterpriseLibrary/personnel/components/child/QualificationInfoDetail.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 178ef87..64e3fa2 100644 --- a/src/views/enterpriseLibrary/personnel/index.vue +++ b/src/views/enterpriseLibrary/personnel/index.vue @@ -229,10 +229,15 @@ export default { }) }, - // 详情 + // 人员详情 handleDetail(personnel) { - console.log('查看详情', personnel) - this.$message.info(`查看${personnel.name}的详情`) + this.$router.push({ + name: 'PersonnelDetail', + query: { + type: encryptWithSM4('detail'), + id: encryptWithSM4(''), + } + }) }, // 编辑