diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 9477dba..7a4d95c 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -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: '操作日志' } }, diff --git a/frontend/src/views/production/MachineProduction.vue b/frontend/src/views/production/MachineProduction.vue new file mode 100644 index 0000000..7b245c3 --- /dev/null +++ b/frontend/src/views/production/MachineProduction.vue @@ -0,0 +1,16 @@ + + + + + diff --git a/frontend/src/views/production/ProgramProduction.vue b/frontend/src/views/production/ProgramProduction.vue new file mode 100644 index 0000000..efac37e --- /dev/null +++ b/frontend/src/views/production/ProgramProduction.vue @@ -0,0 +1,16 @@ + + + + + diff --git a/frontend/src/views/production/WorkerProduction.vue b/frontend/src/views/production/WorkerProduction.vue new file mode 100644 index 0000000..5e171b9 --- /dev/null +++ b/frontend/src/views/production/WorkerProduction.vue @@ -0,0 +1,16 @@ + + + + +