Newer
Older
jh-business-system / src / router / modules / system.ts
dutingting 27 days ago 3 KB jh计量管理系统框架搭建
import type { Route } from '@/global'

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

const routes: Route.recordRaw[] = [
  {
    path: '/system',
    component: Layout,
    redirect: '/system/area',
    name: 'System',
    meta: {
      title: '系统设置',
      icon: 'ep:key',
      auth: '/system',
    },
    children: [
      {
        path: 'dict',
        name: 'Dict',
        component: () => import('@/views/system/baseInfo/dict/listDict.vue'),
        meta: {
          title: '字典管理',
          icon: 'ep:key',
          auth: '/sys/dict',
        },
      },
      {
        path: 'autograph',
        name: 'logAutograph',
        component: () => import('@/views/system/baseInfo/autograph/autograph.vue'),
        meta: {
          title: '签名管理',
          icon: 'ep:key',
          auth: '/sys/baseInfo/autograph',
        },
      },
      {
        path: 'resourceList',
        name: 'ResourceList',
        component: () => import('@/views/system/resource/listResource.vue'),
        meta: {
          title: '资源管理',
          auth: '/sys/resource',
          icon: 'ep:key',
        },
      },
      {
        path: 'deptList',
        name: 'DeptList',
        component: () => import('@/views/system/dept/listDept.vue'),
        meta: {
          title: '组织管理',
          auth: '/sys/dept',
          icon: 'ep:key',
        },
      },
      {
        path: 'areaList',
        name: 'AreaList',
        component: () => import('@/views/system/area/listArea.vue'),
        meta: {
          title: '区域管理',
          auth: '/sys/area',
          icon: 'ep:key',
        },
      },
      {
        path: 'roleList',
        name: 'RoleList',
        component: () => import('@/views/system/role/listRole.vue'),
        meta: {
          title: '角色管理',
          auth: '/sys/role',
          icon: 'ep:key',
        },
      },
      {
        path: 'userList',
        name: 'UserList',
        component: () => import('@/views/system/user/listUser.vue'),
        meta: {
          title: '用户管理',
          auth: '/sys/mgr',
          icon: 'ep:key',
        },
      },
      {
        path: 'businessLog',
        name: 'BusinessLog',
        component: () => import('@/views/system/log/listLog.vue'),
        meta: {
          title: '业务日志',
          icon: 'ep:key',
          auth: '/sys/log/biz/list',
        },
      },
      {
        path: 'error',
        name: 'ErrorLog',
        component: () => import('@/views/system/log/listErrorLog.vue'),
        meta: {
          title: '异常日志',
          icon: 'ep:key',
          auth: '/sys/log/error/list',
        },
      },
      {
        path: 'loginDiary',
        name: 'LoginDiaryLog',
        component: () => import('@/views/system/log/LoginLog.vue'),
        meta: {
          title: '登录日志',
          icon: 'ep:key',
          auth: '/sys/loginLog',
        },
      },
      {
        path: 'list',
        name: 'noticeList',
        component: () => import('@/views/system/notice/noteList.vue'),
        meta: {
          title: '通知公告',
          auth: '/sys/notice/list',
          icon: 'ep:key',
        },
      },
      {
        path: 'configuration',
        name: 'Configuration',
        component: () => import('@/views/system/file/fileConfiguration/configuration.vue'),
        meta: {
          title: '文件配置管理',
          icon: 'ep:key',
          auth: '/sys/file/configuration',
        },
      },
      {
        path: 'template',
        name: 'Template',
        component: () => import('@/views/system/file/template/document.vue'),
        meta: {
          title: '文件模板管理',
          icon: 'ep:key',
          auth: '/sys/file/document',
        },
      },
    ],
  },
]

export default routes