Newer
Older
safe_production_front / src / router / modules / system.ts
dutingting 22 days ago 6 KB 审批功能开发
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')

const routes: Route.recordRaw[] = [
  // // 系统设置
  // {
  //   path: '/system',
  //   component: Layout,
  //   redirect: '/area/list',
  //   name: 'System',
  //   meta: {
  //     title: '系统设置',
  //     icon: 'ep:key',
  //     auth: '/system',
  //   },
  //   children: [
  {
    path: '/area',
    component: Layout,
    redirect: '/area/list',
    name: 'AreaManage',
    meta: {
      title: '区域管理',
      icon: 'ep:key',
      auth: '/sys/area',
    },
    children: [
      {
        path: 'list',
        name: 'AreaList',
        component: () => import('@/views/system/area/listArea.vue'),
        meta: {
          title: '区域管理',
          auth: '/sys/area',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/area',
        },
      },
    ],
  },
  {
    path: '/resource',
    component: Layout,
    redirect: '/resource/list',
    name: 'ResourceManage',
    meta: {
      title: '资源管理',
      icon: 'ep:key',
      auth: '/sys/resource',
    },
    children: [
      {
        path: 'list',
        name: 'ResourceList',
        component: () => import('@/views/system/resource/listResource.vue'),
        meta: {
          title: '资源管理',
          auth: '/sys/resource',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/resource',
        },
      },
    ],
  },
  {
    path: '/dept',
    component: Layout,
    redirect: '/dept/list',
    name: 'DeptManage',
    meta: {
      title: '组织管理',
      icon: 'ep:key',
      auth: '/sys/dept',
    },
    children: [
      {
        path: 'list',
        name: 'DeptList',
        component: () => import('@/views/system/dept/listDept.vue'),
        meta: {
          title: '组织管理',
          auth: '/sys/dept',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/dept',
        },
      },
    ],
  },
  {
    path: '/role',
    component: Layout,
    redirect: '/role/list',
    name: 'RoleManage',
    meta: {
      title: '角色管理',
      icon: 'ep:key',
      auth: '/sys/role',
    },
    children: [
      {
        path: 'list',
        name: 'RoleList',
        component: () => import('@/views/system/role/listRole.vue'),
        meta: {
          title: '角色管理',
          auth: '/sys/role',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/role',
        },
      },
    ],
  },
  {
    path: '/user',
    component: Layout,
    redirect: '/user/list',
    name: 'UserManage',
    meta: {
      title: '用户管理',
      icon: 'ep:key',
      auth: '/sys/mgr',
    },
    children: [
      {
        path: 'list',
        name: 'UserList',
        component: () => import('@/views/system/user/listUser.vue'),
        meta: {
          title: '用户管理',
          auth: '/sys/mgr',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/user',
        },
      },
    ],
  },
  {
    path: '/dict',
    component: Layout,
    redirect: '/dict/list',
    name: 'DictManage',
    meta: {
      title: '字典管理',
      icon: 'ep:key',
      auth: '/sys/dict',
    },
    children: [
      {
        path: 'list',
        name: 'DictList',
        component: () => import('@/views/system/dict/listDict.vue'),
        meta: {
          title: '字典管理',
          auth: '/sys/dict',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/dict',
        },
      },
    ],
  },
  {
    path: '/businessLog',
    component: Layout,
    redirect: '/businessLog/list',
    name: 'BusinessLog',
    meta: {
      title: '业务日志',
      icon: 'ep:key',
      auth: '/sys/log/biz/list',
    },
    children: [
      {
        path: 'list',
        name: 'BusinessList',
        component: () => import('@/views/system/log/listLog.vue'),
        meta: {
          title: '业务日志',
          auth: '/sys/log/biz/list',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/businessLog',
        },
      },
    ],
  },
  {
    path: '/error',
    component: Layout,
    redirect: '/error/list',
    name: 'ErrorLog',
    meta: {
      title: '异常日志',
      icon: 'ep:key',
      auth: '/sys/log/error/list',
    },
    children: [
      {
        path: 'list',
        name: 'ErrorList',
        component: () => import('@/views/system/log/listErrorLog.vue'),
        meta: {
          title: '异常日志',
          auth: '/sys/log/error/list',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/error',
        },
      },
    ],
  },
  {
    path: '/loginDiary',
    component: Layout,
    redirect: '/loginDiary/list',
    name: 'loginDiaryLog',
    meta: {
      title: '登录日志',
      icon: 'ep:key',
      auth: '/sys/loginLog',
    },
    children: [
      {
        path: 'list',
        name: 'loginDiaryList',
        component: () => import('@/views/system/log/loginLog.vue'),
        meta: {
          title: '登录日志',
          auth: '/sys/loginLog',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/loginDiary',
        },
      },
    ],
  },
  {
    path: '/bsConfig',
    component: Layout,
    redirect: '/bsConfig/index',
    name: 'BsConfig',
    meta: {
      title: '大屏配置',
      icon: 'ep:key',
      auth: '/sys/bsConfig',
    },
    children: [
      {
        path: 'index',
        name: 'BsConfigIndex',
        component: () => import('@/views/system/bsConfig/index.vue'),
        meta: {
          title: '大屏配置',
          auth: '/sys/bsConfig',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/bsConfig',
        },
      },
    ],
  },
  {
    path: '/multiTenant',
    component: Layout,
    redirect: '/multiTenant/index',
    name: 'MultiTenant',
    meta: {
      title: '租户管理',
      icon: 'ep:key',
      auth: '/sys/multiTenant',
    },
    children: [
      {
        path: 'index',
        name: 'MultiTenantIndex',
        component: () => import('@/views/system/multiTenant/index.vue'),
        meta: {
          title: '租户管理',
          auth: '/sys/multiTenant',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/bsConfig',
        },
      },
    ],
  },
  {
    path: '/approval',
    component: Layout,
    redirect: '/approval/index',
    name: 'SysApproval',
    meta: {
      title: '操作审批',
      icon: 'ep:key',
      auth: '/sys/approval',
    },
    children: [
      {
        path: 'index',
        name: 'SysApprovalIndex',
        component: () => import('@/views/system/approval/index.vue'),
        meta: {
          title: '操作审批',
          auth: '/sys/approval',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/approval',
        },
      },
    ],
  },
  // ],
  // },
]

export default routes