fix: refs #8316 redirections
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2025-01-24 10:02:23 +01:00
parent 221dda174a
commit c6f613c5e5
3 changed files with 54 additions and 47 deletions

View File

@ -47,7 +47,7 @@ function exprBuilder(param, value) {
exprBuilder,
}"
>
<template #rightMenu>
<template #advanced-menu>
<ParkingFilter data-key="ParkingList" />
</template>
<template #body>

View File

@ -45,15 +45,13 @@ function exprBuilder(param, value) {
exprBuilder,
}"
>
<template #rightMenu>
<template #advanced-menu>
<ShelvingFilter data-key="ShelvingList" />
</template>
<template #body>
<QPage class="column items-center q-pa-md">
<div class="vn-card-list">
<VnPaginate
:data-key="dataKey"
>
<VnPaginate :data-key="dataKey">
<template #body="{ rows }">
<CardList
v-for="row of rows"

View File

@ -39,6 +39,41 @@ const parkingCard = {
],
};
const shelvingCard = {
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'),
},
],
};
export default {
path: '/shelving',
name: 'Shelving',
@ -58,16 +93,24 @@ export default {
path: '',
name: 'ShelvingMain',
component: () => import('src/components/common/VnModule.vue'),
redirect: { name: 'ShelvingList' },
redirect: { name: 'ShelvingSection' },
children: [
{
path: 'list',
name: 'ShelvingList',
meta: {
title: 'list',
icon: 'view_list',
},
path: '',
name: 'ShelvingSection',
redirect: { name: 'ShelvingList' },
component: () => import('src/pages/Shelving/ShelvingList.vue'),
children: [
{
path: 'list',
name: 'ShelvingList',
meta: {
title: 'list',
icon: 'view_list',
},
},
shelvingCard,
],
},
{
path: 'create',
@ -97,39 +140,5 @@ export default {
},
],
},
{
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'),
},
],
},
],
};