新增产量报表3个子路由:机床产量/员工产量/程序产量,/production 重定向到 /production/machine

main
haoliang 1 month ago
parent 5f9176ece0
commit c439cd5c46

@ -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: '操作日志' } },

@ -0,0 +1,16 @@
<template>
<div class="machine-production">
<h2>机床产量</h2>
<p>机床维度产量统计页面待实现</p>
</div>
</template>
<script setup lang="ts">
// -
</script>
<style scoped>
.machine-production {
padding: 20px;
}
</style>

@ -0,0 +1,16 @@
<template>
<div class="program-production">
<h2>程序产量</h2>
<p>NC程序维度产量统计页面待实现</p>
</div>
</template>
<script setup lang="ts">
// NC -
</script>
<style scoped>
.program-production {
padding: 20px;
}
</style>

@ -0,0 +1,16 @@
<template>
<div class="worker-production">
<h2>员工产量</h2>
<p>员工维度产量统计页面待实现</p>
</div>
</template>
<script setup lang="ts">
// -
</script>
<style scoped>
.worker-production {
padding: 20px;
}
</style>
Loading…
Cancel
Save