From c831b41b61f220d9886d30b8ef049b8a764b8679 Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Thu, 27 Jan 2022 15:51:02 +0800 Subject: [PATCH 1/2] renyuan --- hb_client/src/api/srm.js | 9 + hb_client/src/router/index.js | 10 +- hb_client/src/views/personnel/attendance.vue | 182 +++++++++++++++++++ hb_client/src/views/personnel/user.vue | 22 +-- hb_client/src/views/personnel/userupdate.vue | 159 ++++++++++++---- hb_client/src/views/system/user.vue | 4 +- 6 files changed, 327 insertions(+), 59 deletions(-) create mode 100644 hb_client/src/views/personnel/attendance.vue diff --git a/hb_client/src/api/srm.js b/hb_client/src/api/srm.js index ea41540..ea364db 100644 --- a/hb_client/src/api/srm.js +++ b/hb_client/src/api/srm.js @@ -15,3 +15,12 @@ export function getProcessYield(data) { data }) } +//到岗统计 +export function getatwork(data) { + return request({ + url: '/srm/at_work/', + method: 'post', + data + }) +} + diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index 29004a4..eb72c9b 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -418,12 +418,12 @@ export const asyncRoutes = [ meta: { title: '人员列表', icon: 'example', perms: ['user_manage'] } }, { - path: 'personnel', - name: 'personnel', - component: () => import('@/views/personnel/user'), - meta: { title: '考勤列表', icon: 'example', perms: ['user_manage'] } + path: 'attendance', + name: 'attendance', + component: () => import('@/views/personnel/attendance'), + meta: { title: '考勤列表', icon: 'example', perms: ['attendance_manage'] } } ,{ - path: 'userupdate', + path: 'userupdate/:id', name: 'userupdate', component: () => import('@/views/personnel/userupdate'), meta: { title: '人员信息详情', icon: 'employee', perms: ['employee_detail'] }, diff --git a/hb_client/src/views/personnel/attendance.vue b/hb_client/src/views/personnel/attendance.vue new file mode 100644 index 0000000..e986619 --- /dev/null +++ b/hb_client/src/views/personnel/attendance.vue @@ -0,0 +1,182 @@ + + + diff --git a/hb_client/src/views/personnel/user.vue b/hb_client/src/views/personnel/user.vue index 8af611c..c1d4197 100644 --- a/hb_client/src/views/personnel/user.vue +++ b/hb_client/src/views/personnel/user.vue @@ -2,9 +2,7 @@
-
- 用户 -
+
@@ -179,8 +177,7 @@ export default { }, created() { this.getList(); - this.getOrgAll(); - this.getRoleAll(); + }, methods: { checkPermission, @@ -212,18 +209,7 @@ export default { this.listLoading = false; }); }, - getOrgAll() { - this.treeLoding = true; - getOrgAll().then(response => { - this.orgData = genTree(response.data); - this.treeLoding = false; - }); - }, - getRoleAll() { - getRoleAll().then(response => { - this.roles = genTree(response.data); - }); - }, + resetFilter() { this.listQuery = { page: 1, diff --git a/hb_client/src/views/personnel/userupdate.vue b/hb_client/src/views/personnel/userupdate.vue index bba0d14..3afc0d2 100644 --- a/hb_client/src/views/personnel/userupdate.vue +++ b/hb_client/src/views/personnel/userupdate.vue @@ -1,24 +1,56 @@