import { RouterView } from 'vue-router'; export default { path: '/shelving', name: 'Shelving', meta: { title: 'shelving', icon: 'vn:inventory', moduleName: 'Shelving', }, component: RouterView, redirect: { name: 'ShelvingMain' }, menus: { main: ['ShelvingList', 'ParkingList'], card: ['ShelvingBasicData', 'ShelvingLog'], }, children: [ { path: '', name: 'ShelvingMain', component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'ShelvingList' }, children: [ { path: 'list', name: 'ShelvingList', meta: { title: 'shelvingList', icon: 'view_list', }, component: () => import('src/pages/Shelving/ShelvingList.vue'), }, { path: 'create', name: 'ShelvingCreate', meta: { title: 'shelvingCreate', icon: 'add', }, component: () => import('src/pages/Shelving/Card/ShelvingForm.vue'), }, { path: '/parking', redirect: { name: 'ParkingList' }, children: [ { path: 'list', name: 'ParkingList', meta: { title: 'parkingList', icon: 'view_list', }, component: () => import('src/pages/Parking/ParkingList.vue'), }, ], }, ], }, { name: 'ShelvingLayout', path: ':id', component: () => import('pages/Shelving/Card/ShelvingCard.vue'), redirect: { name: 'ShelvingSummary' }, children: [ { name: 'ShelvingSummary', path: 'summary', meta: { title: 'summary', }, component: () => import('pages/Shelving/Card/ShelvingSummary.vue'), }, { name: 'ShelvingBasicData', path: 'basic-data', meta: { title: 'basicData', icon: 'vn:settings', }, component: () => import('pages/Shelving/Card/ShelvingForm.vue'), }, { name: 'ShelvingLog', path: 'log', meta: { title: 'log', icon: 'history', }, component: () => import('src/pages/Shelving/Card/ShelvingLog.vue'), }, ], }, ], };