wgl 4 лет назад
Родитель
Сommit
fc4b100a0e

+ 54 - 27
src/projects/business/router/houseKeeper.js

@@ -212,36 +212,63 @@ const routesHouseKeeper = [
 					//考勤审批
 					{
 						path: 'attendance',
-						name: 'HouseKeeperAdminAttendance',
-						component: () => import('../views/HouseKeeper/Admin/Attendance.vue'),
-						meta: {
-							requireAuth: false,
-							role: [],
-							title: '考勤审批',
-						}
-					},
-					//添加人员
-					{
-						path: 'addPerson',
-						name: 'HouseKeeperAdminAddPerson',
-						component: () => import('../views/HouseKeeper/Admin/AddPerson.vue'),
-						meta: {
-							requireAuth: false,
-							role: [],
-							title: '添加人员',
-						}
+						component: () => import('../views/Layout.vue'),
+						children: [
+							//考勤审批列表
+							{
+								path: 'list',
+								name: 'HouseKeeperAdminAttendanceList',
+								component: () => import('../views/HouseKeeper/Admin/Attendance/List.vue'),
+								meta: {
+									requireAuth: false,
+									role: [],
+									title: '考勤审批列表',
+								}
+							},
+							//考勤审批详情
+							{
+								path: 'info',
+								name: 'HouseKeeperAdminAttendanceInfo',
+								component: () => import('../views/HouseKeeper/Admin/Attendance/Info.vue'),
+								meta: {
+									requireAuth: false,
+									role: [],
+									title: '考勤审批详情',
+								}
+							},
+						]
 					},
-					//添加人员选择设备
+
+					//人员
 					{
-						path: 'addPersonDevice',
-						name: 'HouseKeeperAdminAddPersonDevice',
-						component: () => import('../views/HouseKeeper/Admin/AddPersonDevice.vue'),
-						meta: {
-							requireAuth: false,
-							role: [],
-							title: '添加人员选择设备',
-						}
+						path: 'person',
+						component: () => import('../views/Layout.vue'),
+						children: [
+							//添加人员
+							{
+								path: 'add',
+								name: 'HouseKeeperAdminPersonAdd',
+								component: () => import('../views/HouseKeeper/Admin/Person/Add.vue'),
+								meta: {
+									requireAuth: false,
+									role: [],
+									title: '添加人员',
+								}
+							},
+							//添加人员选择设备
+							{
+								path: 'device',
+								name: 'HouseKeeperAdminPersonDevice',
+								component: () => import('../views/HouseKeeper/Admin/Person/Device.vue'),
+								meta: {
+									requireAuth: false,
+									role: [],
+									title: '添加人员选择设备',
+								}
+							},
+						]
 					},
+
 					//健康
 					{
 						path: 'health',

+ 0 - 0
src/projects/business/views/HouseKeeper/Admin/AddPerson.vue → src/projects/business/views/HouseKeeper/Admin/Attendance/Info.vue


+ 0 - 0
src/projects/business/views/HouseKeeper/Admin/AddPersonDevice.vue → src/projects/business/views/HouseKeeper/Admin/Attendance/List.vue


+ 0 - 0
src/projects/business/views/HouseKeeper/Admin/Attendance.vue → src/projects/business/views/HouseKeeper/Admin/Person/Add.vue


+ 8 - 0
src/projects/business/views/HouseKeeper/Admin/Person/Device.vue

@@ -0,0 +1,8 @@
+<template>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>