device.js 1.15 KB
Newer Older
冯超鹏's avatar
冯超鹏 committed
1 2 3 4 5 6
import Layout from '@/layout';

const deviceRoutes = {
  path: '/device',
  component: Layout,
  redirect: '/device/index',
冯超鹏's avatar
冯超鹏 committed
7
  name: 'Devices',
冯超鹏's avatar
冯超鹏 committed
8 9
  alwaysShow: true,
  meta: {
冯超鹏's avatar
冯超鹏 committed
10
    title: '设备管理',
冯超鹏's avatar
冯超鹏 committed
11
    icon: 'device',
12
    permissions: ['view menu admindevice'],
冯超鹏's avatar
冯超鹏 committed
13 14 15 16 17 18
  },
  children: [
    {
      path: 'device',
      component: () => import('@/views/device/index'),
      name: 'Device',
Administrator's avatar
Administrator committed
19 20 21 22 23 24 25
      meta: { title: '设备列表', icon: 'devicelist', permissions: ['manage device'] },
    },
    {
      path: 'categories',
      component: () => import('@/views/device/categories'),
      name: 'Categories',
      meta: { title: '设备分类', icon: 'tree-table', permissions: ['manage categories'] },
冯超鹏's avatar
冯超鹏 committed
26
    },
冯超鹏's avatar
冯超鹏 committed
27 28 29 30
    {
      path: 'DeviceStutus',
      component: () => import('@/views/device/devicedtutus'),
      name: 'DeviceStutus',
冯超鹏's avatar
冯超鹏 committed
31
      meta: { title: '设备废纸篓', icon: 'devicestutus', permissions: ['manage user'] },
冯超鹏's avatar
冯超鹏 committed
32
    },
冯超鹏's avatar
冯超鹏 committed
33 34 35 36 37 38
    {
      path: 'addDevice',
      component: () => import('@/views/device/addDevice'),
      name: 'addDevice',
      meta: { title: '添加设备', icon: 'deviceadd', permissions: ['manage user'] },
    },
冯超鹏's avatar
冯超鹏 committed
39 40 41
  ],
};
export default deviceRoutes;