Compare commits

...

2 Commits

Author SHA1 Message Date
Javier Segarra 69ab8726c5 feat #7261 i18n
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-25 15:05:34 +02:00
Javier Segarra bfa3bec144 feat #7261 New route 2024-04-25 15:05:24 +02:00
6 changed files with 118 additions and 5 deletions

View File

@ -1117,6 +1117,10 @@ item:
pageTitles: pageTitles:
items: Items items: Items
list: List list: List
monitor:
pageTitles:
monitors: Monitors
list: List
diary: Diary diary: Diary
tags: Tags tags: Tags
fixedPrice: Fixed prices fixedPrice: Fixed prices

View File

@ -1116,6 +1116,10 @@ item:
pageTitles: pageTitles:
items: Artículos items: Artículos
list: Listado list: Listado
monitor:
pageTitles:
monitors: Monitores
list: Listado
diary: Histórico diary: Histórico
tags: Etiquetas tags: Etiquetas
fixedPrice: Precios fijados fixedPrice: Precios fijados

View File

@ -15,6 +15,7 @@ import Department from './department';
import Entry from './entry'; import Entry from './entry';
import roadmap from './roadmap'; import roadmap from './roadmap';
import Parking from './parking'; import Parking from './parking';
import Monitor from './monitor';
export default [ export default [
Item, Item,
@ -34,4 +35,5 @@ export default [
Entry, Entry,
roadmap, roadmap,
Parking, Parking,
Monitor,
]; ];

View File

@ -0,0 +1,100 @@
import { RouterView } from 'vue-router';
export default {
path: '/monitor',
name: 'Monitor',
meta: {
title: 'monitors',
icon: 'grid_view',
moduleName: 'Monitor',
},
component: RouterView,
redirect: { name: 'MonitorMain' },
menus: {
main: ['MonitorList', 'MonitorTypeList', 'MonitorCounter'],
card: [],
},
children: [
{
path: '/monitor',
name: 'MonitorMain',
component: () => import('src/pages/Monitor/MonitorMain.vue'),
redirect: { name: 'MonitorList' },
children: [
{
path: 'list',
name: 'MonitorList',
meta: {
title: 'monitorsList',
icon: 'vn:grid_view',
},
component: () => import('src/pages/Monitor/MonitorList.vue'),
},
{
path: 'create',
name: 'MonitorCreate',
meta: {
title: 'monitorCreate',
icon: 'create',
},
component: () => import('src/pages/Monitor/MonitorCreate.vue'),
},
{
path: ':id/edit',
name: 'MonitorEdit',
meta: {
title: 'monitorEdit',
icon: 'edit',
},
component: () => import('src/pages/Monitor/MonitorCreate.vue'),
},
{
path: 'counter',
name: 'MonitorCounter',
meta: {
title: 'monitorCounter',
icon: 'add_circle',
},
component: () => import('src/pages/Monitor/MonitorCounter.vue'),
},
],
},
{
path: '/monitor/type',
name: 'MonitorTypeMain',
component: () => import('src/pages/Monitor/MonitorMain.vue'),
redirect: { name: 'MonitorTypeList' },
children: [
{
path: 'list',
name: 'MonitorTypeList',
meta: {
title: 'typesList',
icon: 'view_list',
},
component: () => import('src/pages/Monitor/Type/MonitorTypeList.vue'),
},
{
path: 'create',
name: 'MonitorTypeCreate',
meta: {
title: 'typeCreate',
icon: 'create',
},
component: () =>
import('src/pages/Monitor/Type/MonitorTypeCreate.vue'),
},
{
path: ':id/edit',
name: 'MonitorTypeEdit',
meta: {
title: 'typeEdit',
icon: 'edit',
},
component: () =>
import('src/pages/Monitor/Type/MonitorTypeCreate.vue'),
},
],
},
],
};

View File

@ -10,11 +10,12 @@ import supplier from './modules/Supplier';
import route from './modules/route'; import route from './modules/route';
import travel from './modules/travel'; import travel from './modules/travel';
import department from './modules/department'; import department from './modules/department';
import shelving from 'src/router/modules/shelving'; import shelving from './modules/shelving';
import order from 'src/router/modules/order'; import order from './modules/order';
import entry from 'src/router/modules/entry'; import entry from './modules/entry';
import roadmap from 'src/router/modules/roadmap'; import roadmap from './modules/roadmap';
import parking from 'src/router/modules/parking'; import parking from './modules/parking';
import monitor from './modules/monitor';
const routes = [ const routes = [
{ {
@ -71,6 +72,7 @@ const routes = [
roadmap, roadmap,
entry, entry,
parking, parking,
monitor,
{ {
path: '/:catchAll(.*)*', path: '/:catchAll(.*)*',
name: 'NotFound', name: 'NotFound',

View File

@ -21,6 +21,7 @@ export const useNavigationStore = defineStore('navigationStore', () => {
'ticket', 'ticket',
'worker', 'worker',
'wagon', 'wagon',
'monitor',
]; ];
const pinnedModules = ref([]); const pinnedModules = ref([]);
const role = useRole(); const role = useRole();