feat: admin web dev
This commit is contained in:
@@ -93,7 +93,91 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
|
||||
// 动态路由,基于用户权限动态去加载
|
||||
export const dynamicRoutes: RouteRecordRaw[] = [
|
||||
|
||||
{
|
||||
path: '/inspection',
|
||||
component: Layout,
|
||||
redirect: 'noRedirect',
|
||||
name: 'Inspection',
|
||||
alwaysShow: true,
|
||||
meta: {
|
||||
title: 'AR巡检',
|
||||
icon: 'guide'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'device',
|
||||
component: () => import('@/views/inspection/device/index.vue'),
|
||||
name: 'ArDevice',
|
||||
meta: {
|
||||
title: '设备管理',
|
||||
icon: 'monitor'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'region',
|
||||
component: () => import('@/views/inspection/region/index.vue'),
|
||||
name: 'ArRegion',
|
||||
meta: {
|
||||
title: '区域管理',
|
||||
icon: 'location'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'point',
|
||||
component: () => import('@/views/inspection/point/index.vue'),
|
||||
name: 'ArPoint',
|
||||
meta: {
|
||||
title: '点位管理',
|
||||
icon: 'position'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'task',
|
||||
component: () => import('@/views/inspection/task/index.vue'),
|
||||
name: 'ArTask',
|
||||
meta: {
|
||||
title: '任务模板',
|
||||
icon: 'list'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'step',
|
||||
component: () => import('@/views/inspection/step/index.vue'),
|
||||
name: 'ArStep',
|
||||
meta: {
|
||||
title: '巡检步骤',
|
||||
icon: 'tree'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'stepMedia',
|
||||
component: () => import('@/views/inspection/stepMedia/index.vue'),
|
||||
name: 'ArStepMedia',
|
||||
meta: {
|
||||
title: '步骤媒体',
|
||||
icon: 'picture'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'execution',
|
||||
component: () => import('@/views/inspection/execution/index.vue'),
|
||||
name: 'ArExecution',
|
||||
meta: {
|
||||
title: '执行记录',
|
||||
icon: 'documentation'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'stepRecord',
|
||||
component: () => import('@/views/inspection/stepRecord/index.vue'),
|
||||
name: 'ArStepRecord',
|
||||
meta: {
|
||||
title: '步骤记录',
|
||||
icon: 'edit'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user