Bläddra i källkod

考勤管理菜单

duy 2 år sedan
förälder
incheckning
46a113e439

+ 18 - 0
src/router/menus.js

@@ -124,6 +124,24 @@ export default [
             },
         ]
     },
+    {
+        source: 'home-3',
+        name: '考勤管理',
+        code: 'attendance',
+        children: [
+            {
+                source: 'home-3',
+                name: '出差管理',
+                code: 'attendance-business-trip',
+            },
+            {
+                source: 'home-3',
+                name: '考勤统计',
+                code: 'attendance-statistic',
+            },
+          
+        ]
+    },
     {
         source: 'home-3',
         name: '人资管理',

+ 27 - 0
src/router/modules/base.js

@@ -282,6 +282,33 @@ export default [
             },
         ],
     },
+    {
+        path: '/attendance',
+        name: 'attendance',
+        redirect: '/attendance/business-trip',
+        meta: {title: '考勤管理'},
+        component: Layout,
+        children: [
+            {
+                path: '/attendance/business-trip',
+                name: 'attendance-business-trip',
+                meta: {title: '出差管理'},
+                component: () => import('~src/views//attendance/business-trip/index.vue')
+            },
+            {
+                path: '/attendance/business-trip-info',
+                name: 'attendance-business-trip-info',
+                meta: {title: '出差管理信息'},
+                component: () => import('~src/views//attendance/business-trip/info.vue')
+            },
+            {
+                path: '/attendance/statistic',
+                name: 'attendance-statistic',
+                meta: {title: '考勤统计'},
+                component: () => import('~src/views//attendance/statistic.vue')
+            },
+        ],
+    },
     {
         path: '/user',
         name: 'user',

+ 4 - 0
src/router/modules/token.js

@@ -50,4 +50,8 @@ export default [
     'people-salary',
     'people-entry',
     'people-dimission',
+    'attendance',
+    'attendance-business-trip',
+    'attendance-business-trip-info',
+    'attendance-statistic',
 ]

+ 10 - 0
src/views/attendance/business-trip/index.vue

@@ -0,0 +1,10 @@
+<!--  -->
+<template>
+  <div ></div>
+</template>
+
+<script setup>
+import {ref, watch} from  'vue'
+</script>
+<style lang='scss' scoped>
+</style>

+ 10 - 0
src/views/attendance/business-trip/info.vue

@@ -0,0 +1,10 @@
+<!--  -->
+<template>
+  <div ></div>
+</template>
+
+<script setup>
+import {ref, watch} from  'vue'
+</script>
+<style lang='scss' scoped>
+</style>

+ 10 - 0
src/views/attendance/statistic.vue

@@ -0,0 +1,10 @@
+<!--  -->
+<template>
+  <div ></div>
+</template>
+
+<script setup>
+import {ref, watch} from  'vue'
+</script>
+<style lang='scss' scoped>
+</style>