From c2af958fd22802be79bd847c2396158c343bc867 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 28 Jul 2020 11:48:40 +0800 Subject: [PATCH 1/2] xx --- client/src/router/index.js | 41 +++++++++++++++---- client/src/views/employee/employee.vue | 13 ++++-- .../views/employee/employeedetailupdate.vue | 1 + .../src/views/implementrule/implementrule.vue | 6 +-- .../implementrule/implementrulecreate.vue | 2 + .../implementrule/implementruleupdate.vue | 12 ++++-- server/apps/application/__init__.py | 0 server/apps/application/admin.py | 3 ++ server/apps/application/apps.py | 5 +++ .../apps/application/migrations/__init__.py | 0 server/apps/application/models.py | 20 +++++++++ server/apps/application/tests.py | 3 ++ server/apps/application/views.py | 3 ++ .../migrations/0015_merge_20200727_0933.py | 14 +++++++ .../migrations/0016_employee_fields.py | 18 ++++++++ server/apps/employee/models.py | 5 +++ server/apps/employee/views.py | 8 ++-- server/apps/system/views.py | 4 +- 18 files changed, 134 insertions(+), 24 deletions(-) create mode 100644 server/apps/application/__init__.py create mode 100644 server/apps/application/admin.py create mode 100644 server/apps/application/apps.py create mode 100644 server/apps/application/migrations/__init__.py create mode 100644 server/apps/application/models.py create mode 100644 server/apps/application/tests.py create mode 100644 server/apps/application/views.py create mode 100644 server/apps/employee/migrations/0015_merge_20200727_0933.py create mode 100644 server/apps/employee/migrations/0016_employee_fields.py diff --git a/client/src/router/index.js b/client/src/router/index.js index de757bd..b150116 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -61,6 +61,27 @@ export const constantRoutes = [ * the routes that need to be dynamically loaded based on user perms */ export const asyncRoutes = [ + { + path: '/application', + component: Layout, + redirect: '/application/', + name: 'ApplicationManage', + meta: { title: '认证申请', icon: 'example'}, + children: [ + { + path: 'application', + name: 'Applicaion', + component: () => import('@/views/employee/employee'), + meta: { title: '申请受理', icon: 'example', perms: ['application_view'] } + }, + { + path: 'application2', + name: 'Applicaion2', + component: () => import('@/views/employee/train'), + meta: { title: '客户申请受理', icon: 'example', perms: ['application_accept'] } + }, + ] + }, { path: '/employee', component: Layout, @@ -81,12 +102,12 @@ export const asyncRoutes = [ meta: { title: '人员信息变更', icon: 'example', perms: ['employee_update'] }, hidden: true }, - { - path: 'qualification_', - name: 'Qualification_', - component: () => import('@/views/qualification/qualification_'), - meta: { title: '注册资格检索', icon: 'example', perms: ['qualification_view'] } - }, + // { + // path: 'qualification_', + // name: 'Qualification_', + // component: () => import('@/views/qualification/qualification_'), + // meta: { title: '注册资格检索', icon: 'example', perms: ['qualification_view'] } + // }, { path: 'train', name: 'Train', @@ -162,10 +183,16 @@ export const asyncRoutes = [ { path: 'enterprise', - name: 'enterprise', + name: 'Enterprise', component: () => import('@/views/enterprise/enterprise'), meta: { title: '组织信息', icon: 'example', perms: ['enterprise_manage'] } }, + { + path: 'enterprise2', + name: 'Enterprise2', + component: () => import('@/views/enterprise/enterprise'), + meta: { title: '组织信息2', icon: 'example', perms: ['enterprise_manage'] } + }, { path: 'enterprise/create', name: 'EnterpriseCreate', diff --git a/client/src/views/employee/employee.vue b/client/src/views/employee/employee.vue index 94dd698..2d114bd 100644 --- a/client/src/views/employee/employee.vue +++ b/client/src/views/employee/employee.vue @@ -33,7 +33,7 @@ - + @@ -79,10 +79,15 @@ - + - + + + +