Newer
Older
jh-business-system / src / router / modules / system.ts
dutingting 6 days ago 6 KB 委托单完成、证书管理90%
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: 'none',
        },
      },
      {
        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: 'process/list',
        name: 'ProcessList',
        component: () => import('@/views/system/process/process.vue'),
        meta: {
          title: '流程管理',
          icon: 'ep:key',
          auth: '/sys/process',
        },
      },
      {
        path: '/process/edit',
        name: 'ProcessListEdit',
        component: () => import('@/views/system/process/editProcess.vue'),
        meta: {
          title: '流程管理',
          icon: 'ep:key',
          auth: '/sys/process',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/process/list',
        },
      },
      {
        path: '/process/detail',
        name: 'ProcessListDetail',
        component: () => import('@/views/system/process/detailProcess.vue'),
        meta: {
          title: '流程管理',
          icon: 'ep:key',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/process/list',
        },
      },
      {
        path: '/process/add',
        name: 'ProcessListAdd',
        component: () => import('@/views/system/process/addProcess.vue'),
        meta: {
          title: '流程管理',
          icon: 'ep:key',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/process/list',
        },
      },
      {
        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: 'moduleType',
        name: 'ModuleTypeList',
        component: () => import('@/views/system/baseInfo/moduleType/list.vue'),
        meta: {
          title: '模块名称类型管理',
          icon: 'ep:key',
          auth: '/sys/baseInfo/moduleType',
        },
      },
      {
        path: 'moduleType/:type/:id?',
        name: 'ModuleTypeDetail',
        component: () =>
          import('@/views/system/baseInfo/moduleType/detail.vue'),
        meta: {
          title: '模块名称类型管理',
          icon: 'ep:key',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/baseInfo/moduleType',
        },
      },
      {
        path: 'templateRegister',
        name: 'TemplateRegister',
        component: () =>
          import('@/views/system/baseInfo/templateRegister/list.vue'),
        meta: {
          title: '文件模板注册管理',
          icon: 'ep:key',
          auth: '/sys/baseInfo/templateRegister',
        },
      },
      {
        path: 'templateRegister/:type/:id?',
        name: 'TemplateRegisterDetail',
        component: () =>
          import('@/views/system/baseInfo/templateRegister/detail.vue'),
        meta: {
          title: '文件模板注册管理',
          icon: 'ep:key',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/baseInfo/templateRegister',
        },
      },
      // {
      //   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