From c439cd5c4607a99ad2306e5e46f088384de46577 Mon Sep 17 00:00:00 2001 From: haoliang <821644@qq.com> Date: Wed, 13 May 2026 12:36:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=A7=E9=87=8F=E6=8A=A5?= =?UTF-8?q?=E8=A1=A83=E4=B8=AA=E5=AD=90=E8=B7=AF=E7=94=B1=EF=BC=9A?= =?UTF-8?q?=E6=9C=BA=E5=BA=8A=E4=BA=A7=E9=87=8F/=E5=91=98=E5=B7=A5?= =?UTF-8?q?=E4=BA=A7=E9=87=8F/=E7=A8=8B=E5=BA=8F=E4=BA=A7=E9=87=8F?= =?UTF-8?q?=EF=BC=8C/production=20=E9=87=8D=E5=AE=9A=E5=90=91=E5=88=B0=20/?= =?UTF-8?q?production/machine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/router/index.ts | 8 +++++++- .../src/views/production/MachineProduction.vue | 16 ++++++++++++++++ .../src/views/production/ProgramProduction.vue | 16 ++++++++++++++++ .../src/views/production/WorkerProduction.vue | 16 ++++++++++++++++ 4 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 frontend/src/views/production/MachineProduction.vue create mode 100644 frontend/src/views/production/ProgramProduction.vue create mode 100644 frontend/src/views/production/WorkerProduction.vue 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 @@ + + + + +