|
|
|
|
@ -21,6 +21,9 @@ const CollectAddressDetailPage = () => import('@/views/collect-address/CollectAd
|
|
|
|
|
const WorkerListPage = () => import('@/views/worker/WorkerListPage.vue')
|
|
|
|
|
const WorkerDetailPage = () => import('@/views/worker/WorkerDetailPage.vue')
|
|
|
|
|
const ProductionPage = () => import('@/views/production/ProductionPage.vue')
|
|
|
|
|
const MachineProductionPage = () => import('@/views/production/MachineProduction.vue')
|
|
|
|
|
const WorkerProductionPage = () => import('@/views/production/WorkerProduction.vue')
|
|
|
|
|
const ProgramProductionPage = () => import('@/views/production/ProgramProduction.vue')
|
|
|
|
|
const AlertPage = () => import('@/views/alert/AlertPage.vue')
|
|
|
|
|
const SettingsPage = () => import('@/views/settings/SettingsPage.vue')
|
|
|
|
|
const LogPage = () => import('@/views/log/LogPage.vue')
|
|
|
|
|
@ -49,7 +52,10 @@ const normalRoutes: RouteRecordRaw[] = [
|
|
|
|
|
{ path: 'collect-log', name: 'CollectLog', component: CollectLogPage, meta: { title: '采集日志' } },
|
|
|
|
|
{ path: 'worker', name: 'WorkerList', component: WorkerListPage, meta: { title: '员工管理' } },
|
|
|
|
|
{ path: 'worker/:id', name: 'WorkerDetail', component: WorkerDetailPage, meta: { title: '员工详情' } },
|
|
|
|
|
{ path: 'production', name: 'Production', component: ProductionPage, meta: { title: '产量报表' } },
|
|
|
|
|
{ path: 'production', redirect: '/production/machine' },
|
|
|
|
|
{ path: 'production/machine', name: 'MachineProduction', component: MachineProductionPage, meta: { title: '机床产量' } },
|
|
|
|
|
{ path: 'production/worker', name: 'WorkerProduction', component: WorkerProductionPage, meta: { title: '员工产量' } },
|
|
|
|
|
{ path: 'production/program', name: 'ProgramProduction', component: ProgramProductionPage, meta: { title: '程序产量' } },
|
|
|
|
|
{ path: 'alert', name: 'Alert', component: AlertPage, meta: { title: '告警中心' } },
|
|
|
|
|
{ path: 'settings', name: 'Settings', component: SettingsPage, meta: { title: '系统设置' } },
|
|
|
|
|
{ path: 'log', name: 'Log', component: LogPage, meta: { title: '操作日志' } },
|
|
|
|
|
|