salix-front/src/router/modules/travel.js

125 lines
4.4 KiB
JavaScript
Raw Normal View History

2023-11-25 22:02:26 +00:00
import { RouterView } from 'vue-router';
export default {
path: '/travel',
name: 'Travel',
meta: {
title: 'travel',
2023-12-11 11:56:27 +00:00
icon: 'local_airport',
2024-02-28 15:02:38 +00:00
moduleName: 'Travel',
2023-11-25 22:02:26 +00:00
},
component: RouterView,
redirect: { name: 'TravelMain' },
menus: {
2023-11-29 12:07:44 +00:00
main: ['TravelList', 'ExtraCommunity'],
2023-12-14 11:42:52 +00:00
card: ['TravelBasicData', 'TravelHistory', 'TravelThermographs'],
2023-11-25 22:02:26 +00:00
},
children: [
{
path: '',
name: 'TravelMain',
component: () => import('src/pages/Travel/TravelMain.vue'),
redirect: { name: 'TravelList' },
children: [
{
path: 'list',
name: 'TravelList',
meta: {
title: 'list',
icon: 'view_list',
},
component: () => import('src/pages/Travel/TravelList.vue'),
},
2023-11-29 12:07:44 +00:00
{
path: 'extra-community',
name: 'ExtraCommunity',
meta: {
title: 'extraCommunity',
2024-02-12 11:14:10 +00:00
icon: 'vn:shipment',
2023-11-29 12:07:44 +00:00
},
component: () => import('src/pages/Travel/ExtraCommunity.vue'),
},
2023-11-25 22:02:26 +00:00
{
path: 'create',
name: 'TravelCreate',
meta: {
2023-12-12 11:45:08 +00:00
title: 'travelCreate',
2023-11-25 22:02:26 +00:00
},
component: () => import('src/pages/Travel/TravelCreate.vue'),
},
],
},
{
name: 'TravelCard',
path: ':id',
component: () => import('src/pages/Travel/Card/TravelCard.vue'),
redirect: { name: 'TravelSummary' },
children: [
{
name: 'TravelSummary',
path: 'summary',
meta: {
title: 'summary',
},
component: () => import('src/pages/Travel/Card/TravelSummary.vue'),
},
2023-12-14 11:42:52 +00:00
{
name: 'TravelBasicData',
path: 'basic-data',
meta: {
title: 'basicData',
icon: 'vn:settings',
},
2024-01-18 14:19:23 +00:00
component: () => import('src/pages/Travel/Card/TravelBasicData.vue'),
2023-12-14 11:42:52 +00:00
},
{
name: 'TravelHistory',
path: 'history',
meta: {
title: 'history',
icon: 'history',
},
2024-01-18 14:19:23 +00:00
component: () => import('src/pages/Travel/Card/TravelLog.vue'),
2023-12-14 11:42:52 +00:00
},
{
name: 'TravelThermographs',
path: 'thermographs/:thermographId?',
2023-12-14 11:42:52 +00:00
meta: {
title: 'thermographs',
icon: 'vn:thermometer',
},
2024-01-22 14:22:22 +00:00
redirect: {
name: 'TravelThermographsIndex',
},
children: [
{
name: 'TravelThermographsIndex',
path: 'index',
component: () =>
import('src/pages/Travel/Card/TravelThermographs.vue'),
},
{
name: 'TravelThermographsCreate',
path: 'create',
props: { viewAction: 'create' },
component: () =>
import(
'src/pages/Travel/Card/TravelThermographsForm.vue'
),
},
{
name: 'TravelThermographsEdit',
path: 'edit',
props: { viewAction: 'edit' },
component: () =>
import(
'src/pages/Travel/Card/TravelThermographsForm.vue'
),
},
],
2023-12-14 11:42:52 +00:00
},
2023-11-25 22:02:26 +00:00
],
},
],
};