Sfoglia il codice sorgente

[FE]修改菜单路由顺序和图标,增加用户权限菜单

luoxu5 4 anni fa
parent
commit
5ad7fa1239

+ 0 - 0
security-protection-platform/.aid/mock/userRights.js


+ 0 - 0
security-protection-platform/src/api/userRights/index.js


+ 12 - 0
security-protection-platform/src/modules/userRights/organizationmana/index.vue

@ -0,0 +1,12 @@
1
<template>
2
  <div>组织管理页面</div>
3
</template>
4
5
<script>
6
export default {
7
8
}
9
</script>
10
11
<style>
12
</style>

+ 12 - 0
security-protection-platform/src/modules/userRights/usermana/index.vue

@ -0,0 +1,12 @@
1
<template>
2
  <div>123</div>
3
</template>
4
5
<script>
6
export default {
7
8
}
9
</script>
10
11
<style>
12
</style>

+ 35 - 13
security-protection-platform/src/routes.js

@ -33,13 +33,26 @@ export const constantRoutes = [
33 33
  {
34 34
    path: '/videoSurveillance',
35 35
    component: Layout,
36
    meta: { icon: 'home' },
36
    meta: { icon: 'video' },
37 37
    children: [
38 38
      {
39 39
        name: 'videoSurveillance',
40 40
        path: '',
41 41
        component: () => import(/* webpackChunkName: "videoSurveillance" */ './modules/videoSurveillance'),
42
        meta: { title: '视频监控', icon: 'home' }
42
        meta: { title: '视频监控', icon: 'video' }
43
      }
44
    ]
45
  },
46
  {
47
    path: '/access',
48
    component: Layout,
49
    meta: { icon: 'file-solution-outline' },
50
    children: [
51
      {
52
        name: 'access',
53
        path: '',
54
        component: () => import(/* webpackChunkName: "sys_attendance" */ './modules/access/index.vue'),
55
        meta: { title: '进出记录', icon: 'file-solution-outline' }
43 56
      }
44 57
    ]
45 58
  },
@ -64,13 +77,13 @@ export const constantRoutes = [
64 77
  }, {
65 78
    path: '/workorder',
66 79
    component: Layout,
67
    meta: { icon: 'home' },
80
    meta: { icon: 'calendar-outline' },
68 81
    children: [
69 82
      {
70 83
        name: 'workorder',
71 84
        path: '',
72 85
        component: () => import(/* webpackChunkName: "workorder" */ './modules/workorder'),
73
        meta: { title: '假勤管理', icon: 'home' }
86
        meta: { title: '假勤管理', icon: 'calendar-outline' }
74 87
      }
75 88
    ]
76 89
  },
@ -82,7 +95,7 @@ export const constantRoutes = [
82 95
      {
83 96
        name: 'ai_alarm',
84 97
        path: '',
85
        component: () => import(/* webpackChunkName: "sys_attendance" */ './modules/aialarm/index.vue'),
98
        component: () => import(/* webpackChunkName: "alarm" */ './modules/aialarm/index.vue'),
86 99
        meta: { title: 'AI报警', icon: 'bell' }
87 100
      }
88 101
    ]
@ -102,7 +115,7 @@ export const constantRoutes = [
102 115
      {
103 116
        name: 'sys_task',
104 117
        path: 'assignment',
105
        component: () => import(/* webpackChunkName: "sys_attendance" */ './modules/system/assignment'),
118
        component: () => import(/* webpackChunkName: "sys__task" */ './modules/system/assignment'),
106 119
        meta: { title: 'AI任务' }
107 120
      },
108 121
      {
@ -120,18 +133,27 @@ export const constantRoutes = [
120 133
    ]
121 134
  },
122 135
  {
123
    path: '/access',
136
    path: '/userRights',
124 137
    component: Layout,
125
    meta: { icon: 'home' },
138
    meta: { title: '用户权限', icon: 'lock' },
139
    redirect: '/userRights/usermana',
126 140
    children: [
127 141
      {
128
        name: 'access',
129
        path: '',
130
        component: () => import(/* webpackChunkName: "sys_attendance" */ './modules/access/index.vue'),
131
        meta: { title: '进出记录', icon: 'home' }
142
        name: 'organizationmana',
143
        path: 'organizationmana',
144
        component: () => import(/* webpackChunkName: "user_rights" */ './modules/userRights/organizationmana'),
145
        meta: { title: '组织管理' }
146
      },
147
      {
148
        name: 'usermana',
149
        path: 'usermana',
150
        component: () => import(/* webpackChunkName: "user_rights" */ './modules/userRights/usermana'),
151
        meta: { title: '用户管理' }
132 152
      }
153
133 154
    ]
134
  }, {
155
  },
156
  {
135 157
    path: '*',
136 158
    hidden: true,
137 159
    component: {