24 lines
936 B
TypeScript
24 lines
936 B
TypeScript
import type { RouteRecordRaw } from 'vue-router'
|
|
|
|
export const truckingRoutes = [
|
|
{
|
|
path: 'trucking',
|
|
name: 'trucking',
|
|
component: () => import('./pages/TruckAppointmentsView.vue'),
|
|
meta: { title: '拖车预约', description: '维护拖车预约及派车状态', permission: 'platform:firstleg:truck-appointment:list' },
|
|
},
|
|
{
|
|
path: 'trucking/new',
|
|
name: 'trucking-new',
|
|
component: () => import('./pages/TruckAppointmentCreateView.vue'),
|
|
meta: { title: '新增拖车预约', description: '创建拖车预约', permission: 'platform:firstleg:truck-appointment:create' },
|
|
},
|
|
{
|
|
path: 'trucking/:id',
|
|
name: 'trucking-detail',
|
|
component: () => import('./pages/TruckAppointmentDetailView.vue'),
|
|
props: true,
|
|
meta: { title: '拖车预约详情', description: '查看和编辑拖车预约', permission: 'platform:firstleg:truck-appointment:list' },
|
|
},
|
|
] satisfies RouteRecordRaw[]
|