From 9c85942ffb7966e9fafeda449153863f401eda57 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Tue, 21 Oct 2025 15:06:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E5=BA=93=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 14 ++ .../personnel/components/PersonnelDetail.vue | 175 ++++++++++++++ .../personnel/components/PersonnelForm.vue | 2 +- .../components/child/BasicInfoDetail.vue | 168 +++++++++++++ .../components/child/OtherInfoDetail.vue | 94 ++++++++ .../child/QualificationInfoDetail.vue | 228 ++++++++++++++++++ .../enterpriseLibrary/personnel/index.vue | 11 +- 7 files changed, 688 insertions(+), 4 deletions(-) create mode 100644 src/views/enterpriseLibrary/personnel/components/PersonnelDetail.vue create mode 100644 src/views/enterpriseLibrary/personnel/components/child/BasicInfoDetail.vue create mode 100644 src/views/enterpriseLibrary/personnel/components/child/OtherInfoDetail.vue create mode 100644 src/views/enterpriseLibrary/personnel/components/child/QualificationInfoDetail.vue 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(''), + } + }) }, // 编辑