|
/**
* @file 本文件为路由对象实现
* @author PRD UX R&D Dept.
*/
import Layout from '@/layout'
/**
* constantRoutes
* a base page that does not have permission requirements
* all roles can be accessed
*/
export const constantRoutes = [
{
path: '/',
component: Layout,
redirect: '/attendance/report',
hidden: true
},
{
name: 'dashboard',
path: '/dashboard',
component: () => import(/* webpackChunkName: "dashboard" */ './modules/dashboard'),
meta: { title: '首页', icon: 'home' },
children: [
{
name: 'dashboardch',
path: '',
meta: { title: '首页', icon: 'home' }
}
]
},
{
path: '/videoSurveillance',
component: Layout,
meta: { title: '视频监控', icon: 'video' },
children: [
{
name: 'videoSurveillance',
path: '',
component: () => import(/* webpackChunkName: "videoSurveillance" */ './modules/videoSurveillance'),
meta: { title: '视频监控', icon: 'video' }
},
{
path: '/videoSurveillance/distinguishRecord',
component: () => import(/* webpackChunkName: "videoSurveillance" */ './modules/videoSurveillance/distinguishRecord'),
meta: { title: '识别记录', icon: 'video' },
hidden: true
}
]
},
{
path: '/access',
component: Layout,
meta: { icon: 'file-solution-outline' },
children: [
{
name: 'access',
path: '',
component: () => import(/* webpackChunkName: "sys_attendance" */ './modules/access/index.vue'),
meta: { title: '进出记录', icon: 'file-solution-outline' }
}
]
},
{
path: '/attendance',
component: Layout,
meta: { title: '考勤报表', icon: 'calendar' },
redirect: '/attendance/report',
children: [
{
name: 'report',
path: 'report',
component: () => import(/* webpackChunkName: "report" */ './modules/attendance/report'),
meta: { title: '考勤报表' }
}, {
name: 'abnormal',
path: 'abnormal',
component: () => import(/* webpackChunkName: "abnormal" */ './modules/attendance/abnormal'),
meta: { title: '异常考勤' }
}
]
}, {
path: '/workorder',
component: Layout,
meta: { icon: 'calendar-outline' },
children: [
{
name: 'workorder',
path: '',
component: () => import(/* webpackChunkName: "workorder" */ './modules/workorder'),
meta: { title: '假勤管理', icon: 'calendar-outline' }
}
]
},
{
path: '/alarm',
component: Layout,
meta: { icon: 'bell' },
children: [
{
name: 'ai_alarm',
path: '',
component: () => import(/* webpackChunkName: "alarm" */ './modules/aialarm/index.vue'),
meta: { title: 'AI报警', icon: 'bell', unconfirmedCount: 10, confirmedCount: 100 }
}
]
}, {
path: '/system',
component: Layout,
meta: { title: '系统配置', icon: 'setting' },
alwaysShow: true,
redirect: 'attendance',
children: [
{
name: 'sys_devicemana',
path: 'devicemana',
component: () => import(/* webpackChunkName: "sys_devicemana" */ './modules/system/devicemana'),
meta: { title: '设备管理' }
},
{
name: 'sys_task',
path: 'assignment',
component: () => import(/* webpackChunkName: "sys__task" */ './modules/system/assignment'),
meta: { title: 'AI任务' }
},
{
name: 'sys_monitor',
path: 'monitor',
component: () => import(/* webpackChunkName: "sys_monitor" */ './modules/system/monitor'),
meta: { title: '监控布局' }
},
{
name: 'sys_attendance',
path: 'attendance',
component: () => import(/* webpackChunkName: "sys_attendance" */ './modules/system/attendance'),
meta: { title: '考勤配置' }
}
]
},
{
path: '/usermana',
component: Layout,
meta: { icon: 'lock' },
children: [
{
name: 'usermana',
path: '',
component: () => import(/* webpackChunkName: "user_rights" */ './modules/usermana'),
meta: { title: '用户管理', icon: 'lock' }
}
]
},
{
path: '*',
hidden: true,
component: {
template: '<div>not found</div>'
}
}
]
/**
* asyncRoutes
* the routes that need to be dynamically loaded based on user roles
*/
export const asyncRoutes = []
export default constantRoutes.concat(asyncRoutes)
|