feat: refs #7119 update VehicleList and routing for RouteCard with nested components
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
a06696df01
commit
cc0c73a91a
|
@ -165,9 +165,8 @@ const columns = computed(() => [
|
||||||
<VnTable
|
<VnTable
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
data-key="VehicleList"
|
data-key="VehicleList"
|
||||||
url="Vehicles/filter"
|
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
redirect="vehicle"
|
redirect="route/vehicle"
|
||||||
:right-search="false"
|
:right-search="false"
|
||||||
:create="{
|
:create="{
|
||||||
urlCreate: 'Vehicles',
|
urlCreate: 'Vehicles',
|
||||||
|
|
|
@ -14,7 +14,7 @@ vehicle:
|
||||||
amountCooler: Amount cooler
|
amountCooler: Amount cooler
|
||||||
remove: Vehicle removed
|
remove: Vehicle removed
|
||||||
search: Search Vehicle
|
search: Search Vehicle
|
||||||
info: Search by id or number plate
|
searchInfo: Search by id or number plate
|
||||||
params:
|
params:
|
||||||
vehicleTypeFk: Type
|
vehicleTypeFk: Type
|
||||||
vehicleStateFk: State
|
vehicleStateFk: State
|
||||||
|
|
|
@ -14,7 +14,7 @@ vehicle:
|
||||||
nLeasing: Nº leasing
|
nLeasing: Nº leasing
|
||||||
remove: Vehículo eliminado
|
remove: Vehículo eliminado
|
||||||
search: Buscar Vehículo
|
search: Buscar Vehículo
|
||||||
searchinfo: Buscar por id o matrícula
|
searchInfo: Buscar por id o matrícula
|
||||||
params:
|
params:
|
||||||
vehicleTypeFk: Tipo
|
vehicleTypeFk: Tipo
|
||||||
vehicleStateFk: Estado
|
vehicleStateFk: Estado
|
||||||
|
|
|
@ -1,5 +1,53 @@
|
||||||
import { RouterView } from 'vue-router';
|
import { RouterView } from 'vue-router';
|
||||||
|
|
||||||
|
const routeCard = {
|
||||||
|
name: 'RouteCard',
|
||||||
|
path: ':id',
|
||||||
|
component: () => import('src/pages/Route/Card/RouteCard.vue'),
|
||||||
|
redirect: { name: 'RouteSummary' },
|
||||||
|
meta: {
|
||||||
|
menu: ['RouteBasicData', 'RouteTickets', 'RouteLog'],
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
name: 'RouteBasicData',
|
||||||
|
path: 'basic-data',
|
||||||
|
meta: {
|
||||||
|
title: 'basicData',
|
||||||
|
icon: 'vn:settings',
|
||||||
|
},
|
||||||
|
component: () => import('pages/Route/Card/RouteForm.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'RouteSummary',
|
||||||
|
path: 'summary',
|
||||||
|
meta: {
|
||||||
|
title: 'summary',
|
||||||
|
icon: 'open_in_new',
|
||||||
|
},
|
||||||
|
component: () => import('pages/Route/Card/RouteSummary.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'tickets',
|
||||||
|
name: 'RouteTickets',
|
||||||
|
meta: {
|
||||||
|
title: 'tickets',
|
||||||
|
icon: 'vn:ticket',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Route/RouteTickets.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'log',
|
||||||
|
name: 'RouteLog',
|
||||||
|
meta: {
|
||||||
|
title: 'log',
|
||||||
|
icon: 'vn:History',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Route/RouteLog.vue'),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
const vehicleCard = {
|
const vehicleCard = {
|
||||||
path: ':id',
|
path: ':id',
|
||||||
name: 'VehicleCard',
|
name: 'VehicleCard',
|
||||||
|
@ -148,49 +196,6 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
routeCard,
|
||||||
name: 'RouteCard',
|
|
||||||
path: ':id',
|
|
||||||
component: () => import('src/pages/Route/Card/RouteCard.vue'),
|
|
||||||
redirect: { name: 'RouteSummary' },
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
name: 'RouteBasicData',
|
|
||||||
path: 'basic-data',
|
|
||||||
meta: {
|
|
||||||
title: 'basicData',
|
|
||||||
icon: 'vn:settings',
|
|
||||||
},
|
|
||||||
component: () => import('pages/Route/Card/RouteForm.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'RouteSummary',
|
|
||||||
path: 'summary',
|
|
||||||
meta: {
|
|
||||||
title: 'summary',
|
|
||||||
icon: 'open_in_new',
|
|
||||||
},
|
|
||||||
component: () => import('pages/Route/Card/RouteSummary.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'tickets',
|
|
||||||
name: 'RouteTickets',
|
|
||||||
meta: {
|
|
||||||
title: 'tickets',
|
|
||||||
icon: 'vn:ticket',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Route/RouteTickets.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'log',
|
|
||||||
name: 'RouteLog',
|
|
||||||
meta: {
|
|
||||||
title: 'log',
|
|
||||||
icon: 'vn:History',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Route/RouteLog.vue'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue