import type { Route } from '@/global' const Layout = () => import('@/layouts/index.vue') const routes: Route.recordRaw[] = [ // 首页 { path: '/dashboard', component: Layout, redirect: '/tdashboard', name: 'TDashboard', meta: { title: '首页', icon: 'icon-map', auth: '/dashboard' }, children: [ { path: '/tdashboard', component: () => import('@/views/map/map.vue'), name: 'TDashboardPage', meta: { title: '首页', icon: 'icon-map', sidebar: false, breadcrumb: false, activeMenu: '/dashboard', auth: '/dashboard' } } ] }, // 远程监管 { path: '/ycjg', component: Layout, redirect: '/ssjk/page', name: 'ycjg', meta: { title: '远程监管', icon: 'icon-yc', auth: '/monitor' }, children: [ { path: '/ssjk', component: Layout, redirect: '/ssjk/page', name: 'ssjk', meta: { title: '实时监控', icon: 'icon-camera', auth: '/realTime' }, children: [ { path: 'page', name: 'page', component: () => // import('@/views/ycjg/ssjk/index-noPlugin-single.vue'), // SDK单路 // import('@/views/ycjg/ssjk/index-noPlugin.vue'), // SDK4路 // import('@/views/ycjg/ssjk/index-isc-single.vue'), // isc import('@/views/ycjg/ssjk/index-media-single.vue'), // 商流媒体单路 // import('@/views/ycjg/ssjk/index.vue'), // 国 meta: { title: '实时监控', auth: '/realTime', sidebar: false, breadcrumb: false, activeMenu: '/ssjk' } }, { path: 'control', name: 'control', // component: () => import('@/views/ycjg/ssjk/control-noPlugin.vue'), // 商 // component: () => import('@/views/ycjg/ssjk/control-isc.vue'), // isc component: () => import('@/views/ycjg/ssjk/control-media.vue'), // 流媒体 // component: () => import('@/views/ycjg/ssjk/control.vue'), // 国 meta: { title: '实时监控', auth: '/realTime', sidebar: false, breadcrumb: false, breadHide: true, activeMenu: '/ssjk' } } ] }, // { // path: '/aqbb', // component: Layout, // redirect: '/aqbb/list', // name: 'aqbb', // meta: { // title: '安全播报', // icon: 'icon-bb', // auth: '/broadcast', // }, // children: [ // { // path: 'list', // name: 'list', // component: () => import('@/views/ycjg/aqbb/list.vue'), // meta: { // title: '安全播报', // auth: '/broadcast', // sidebar: false, // breadcrumb: false, // activeMenu: '/aqbb', // }, // }, // ], // }, { path: '/cjhf', component: Layout, redirect: '/cjhf/home', name: 'cjhf', meta: { title: '场景回放', icon: 'icon-hf', auth: '/playback' }, children: [ { path: 'home', name: 'home', // component: () => import('@/views/ycjg/sjhf/index.vue'), // SDK // component: () => import('@/views/ycjg/sjhf/index-isc.vue'), // isc component: () => import('@/views/ycjg/sjhf/index-media.vue'), // 流媒体 meta: { title: '场景回放', auth: '/playback', sidebar: false, breadcrumb: false, activeMenu: '/cjhf' } } ] }, { path: '/sbgl', component: Layout, redirect: '/sbgl/device', name: 'sbgl', meta: { title: '设备管理', icon: 'icon-device', auth: '/device' }, children: [ { path: 'device', name: 'device', component: () => import('@/views/ycjg/sbgl/listDevice.vue'), meta: { title: '设备管理', auth: '/device', sidebar: false, breadcrumb: false, activeMenu: '/sbgl' } } ] }, { path: '/fzsq', component: Layout, redirect: '/fzsq/list', name: 'fzsq', meta: { title: '分组授权', icon: 'icon-sq', auth: '/empower' }, children: [ { path: 'list', name: 'list', component: () => import('@/views/ycjg/fzsq/list.vue'), meta: { title: '分组授权', auth: '/empower', sidebar: false, breadcrumb: false, activeMenu: '/fzsq' } } ] }, { path: '/sjtj', component: Layout, redirect: '/sjtj/statistics', name: 'Sjtj', meta: { title: '数据统计', icon: 'icon-line', auth: '/statistics' }, children: [ { path: 'statistics', name: 'statistics', component: () => import('@/views/ycjg/sjtj/statistics.vue'), meta: { title: '数据统计', auth: '/statistics', sidebar: false, breadcrumb: false, activeMenu: '/sjtj' } } ] } ] }, // 预警分析 // 系统设置 { 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' } } ] } ] } ] export default routes