import type { Route } from '@/global' const Layout = () => import('@/layouts/index.vue') const routes: Route.recordRaw[] = [ // 首页看板 { path: '/testeddashboard', component: Layout, redirect: '/tdashboard', name: 'TDashboard', meta: { title: '首页看板', icon: 'ep:key', auth: '/dashboard', }, children: [ { path: '/tdashboard', component: () => import('@/views/home/index.vue'), name: 'TDashboardPage', meta: { title: '首页看板', icon: 'ep:key', sidebar: false, breadcrumb: false, activeMenu: '/testeddashboard', auth: '/dashboard', }, }, ], }, // 考核规则管理 { path: '/examine', component: Layout, redirect: '/examine/grade', name: 'Examine', meta: { title: '考核规则管理', icon: 'ep:key', auth: '/examine', }, children: [ { path: '/grade', component: Layout, redirect: '/grade/gradelist', name: 'GradeeManage', meta: { title: '考核等级评定', icon: 'ep:key', auth: '/examine/grade', }, children: [ { path: 'gradelist', name: 'GradeeList', component: () => import('@/views/rule/grade/index.vue'), meta: { title: '考核等级评定', auth: '/examine/grade', sidebar: false, breadcrumb: false, activeMenu: '/grade', }, }, ], }, { path: '/proxy', component: Layout, redirect: '/proxy/proxylist', name: 'ProxyManage', meta: { title: '考核指标管理', icon: 'ep:key', auth: '/examine/proxy', }, children: [ { path: 'proxylist', name: 'ProxyList', component: () => import('@/views/rule/proxy/index.vue'), meta: { title: '考核指标管理', auth: '/examine/proxy', sidebar: false, breadcrumb: false, activeMenu: '/proxy', }, }, ], }, { path: '/programme', component: Layout, redirect: '/programme/programmelist', name: 'ProgrammeManage', meta: { title: '考核方案管理', icon: 'ep:key', auth: '/examine/programme', }, children: [ { path: 'programmelist', name: ' ProgrammeList', component: () => import('@/views/rule/programme/index.vue'), meta: { title: '考核方案管理', auth: '/examine/programme', sidebar: false, breadcrumb: false, activeMenu: '/programme', }, }, ], }, ], }, // 考核填报 { path: '/filling', component: Layout, redirect: '/filling/treat', name: 'Filling', meta: { title: '考核填报', icon: 'ep:key', auth: '/filling', }, children: [ { path: '/treat', component: Layout, redirect: '/treat/treatlist', name: 'TreatManage', meta: { title: '待填报考核结果', icon: 'ep:key', auth: '/filling/treat', }, children: [ { path: 'treatlist', name: 'Treatlist', component: () => import('@/views/flling/treat/index.vue'), meta: { title: '待填报考核结果', auth: '/filling/treat', sidebar: false, breadcrumb: false, activeMenu: '/treat', }, }, ], }, { path: '/already', component: Layout, redirect: '/already/alreadylist', name: 'AlreadyManage', meta: { title: '已填报考核结果', icon: 'ep:key', auth: '/filling/already', }, children: [ { path: 'alreadylist', name: 'AlreadyList', component: () => import('@/views/flling/already/index.vue'), meta: { title: '已填报考核结果', auth: '/filling/already', sidebar: false, breadcrumb: false, activeMenu: '/already', }, }, ], }, ], }, // 问效考核结果 { path: '/efficiency', component: Layout, redirect: '/efficiency/deptresult', name: 'Efficiency', meta: { title: '问效考核结果', icon: 'ep:key', auth: '/efficiency', }, children: [ { path: '/deptresult', component: Layout, redirect: '/deptresult/deptlist', name: 'DeptMangeResult', meta: { title: '部门考核结果', icon: 'ep:key', auth: '/efficiency/deptresult', }, children: [ { path: 'deptlist', name: 'DeptResultList', component: () => import('@/views/efficiency/dept/index.vue'), meta: { title: '部门考核结果', auth: '/efficiency/deptresult', sidebar: false, breadcrumb: false, activeMenu: '/deptresult', }, }, ], }, { path: '/analysis', component: Layout, redirect: '/analysis/analysislist', name: 'AnalysisResultManage', meta: { title: '考核统计分析', icon: 'ep:key', auth: '/efficiency/analysis', }, children: [ { path: 'analysislist', name: 'AnalysisResultList', component: () => import('@/views/efficiency/analysis/index.vue'), meta: { title: '考核统计分析', auth: '/efficiency/analysis', sidebar: false, breadcrumb: false, activeMenu: '/analysis', }, }, ], }, ], }, // 指标态势分析 { path: '/proxy', component: Layout, redirect: '/proxy/list', name: 'Proxy', meta: { title: '指标态势分析', icon: 'ep:key', auth: '/proxy', }, children: [ { path: '/list', component: Layout, redirect: '/list/resultlist', name: 'ResultManage', meta: { title: '预警结果列表', icon: 'ep:key', auth: '/proxy/list', }, children: [ { path: 'resultlist', name: 'ResultList', component: () => import('@/views/proxy/list/index.vue'), meta: { title: '预警结果列表', auth: '/proxy/list', sidebar: false, breadcrumb: false, activeMenu: '/list', }, }, ], }, { path: '/analysiss', component: Layout, redirect: '/analysiss/analysislist', name: 'AanalysisManage', meta: { title: '预警统计分析', icon: 'ep:key', auth: '/proxy/analysiss', }, children: [ { path: 'analysislist', name: 'AnalysisList', component: () => import('@/views/proxy/analysis/index.vue'), meta: { title: '预警统计分析', auth: '/proxy/analysiss', sidebar: false, breadcrumb: false, activeMenu: '/analysiss', }, }, ], }, ], }, // 系统设置 { path: '/system', component: Layout, redirect: '/system/label', 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', }, }, ], }, ], }, ] export default routes