Преглед на файлове

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

luoxu5 преди 4 години
родител
ревизия
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

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

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
  {
33
  {
34
    path: '/videoSurveillance',
34
    path: '/videoSurveillance',
35
    component: Layout,
35
    component: Layout,
36
    meta: { icon: 'home' },
36
    meta: { icon: 'video' },
37
    children: [
37
    children: [
38
      {
38
      {
39
        name: 'videoSurveillance',
39
        name: 'videoSurveillance',
40
        path: '',
40
        path: '',
41
        component: () => import(/* webpackChunkName: "videoSurveillance" */ './modules/videoSurveillance'),
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
  }, {
77
  }, {
65
    path: '/workorder',
78
    path: '/workorder',
66
    component: Layout,
79
    component: Layout,
67
    meta: { icon: 'home' },
80
    meta: { icon: 'calendar-outline' },
68
    children: [
81
    children: [
69
      {
82
      {
70
        name: 'workorder',
83
        name: 'workorder',
71
        path: '',
84
        path: '',
72
        component: () => import(/* webpackChunkName: "workorder" */ './modules/workorder'),
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
      {
95
      {
83
        name: 'ai_alarm',
96
        name: 'ai_alarm',
84
        path: '',
97
        path: '',
85
        component: () => import(/* webpackChunkName: "sys_attendance" */ './modules/aialarm/index.vue'),
98
        component: () => import(/* webpackChunkName: "alarm" */ './modules/aialarm/index.vue'),
86
        meta: { title: 'AI报警', icon: 'bell' }
99
        meta: { title: 'AI报警', icon: 'bell' }
87
      }
100
      }
88
    ]
101
    ]
102
      {
115
      {
103
        name: 'sys_task',
116
        name: 'sys_task',
104
        path: 'assignment',
117
        path: 'assignment',
105
        component: () => import(/* webpackChunkName: "sys_attendance" */ './modules/system/assignment'),
118
        component: () => import(/* webpackChunkName: "sys__task" */ './modules/system/assignment'),
106
        meta: { title: 'AI任务' }
119
        meta: { title: 'AI任务' }
107
      },
120
      },
108
      {
121
      {
120
    ]
133
    ]
121
  },
134
  },
122
  {
135
  {
123
    path: '/access',
136
    path: '/userRights',
124
    component: Layout,
137
    component: Layout,
125
    meta: { icon: 'home' },
138
    meta: { title: '用户权限', icon: 'lock' },
139
    redirect: '/userRights/usermana',
126
    children: [
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
    path: '*',
157
    path: '*',
136
    hidden: true,
158
    hidden: true,
137
    component: {
159
    component: {