From 4be37ad2688f22ae20ecd402fd24218324bf8196 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Tue, 4 Mar 2025 11:22:31 +0700 Subject: [PATCH] feat: add route report and dashboard --- src/layouts/DrawerComponent.vue | 4 ++-- src/router/routes.ts | 32 +++++++++++++++++++++----------- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/layouts/DrawerComponent.vue b/src/layouts/DrawerComponent.vue index 4a3928f0..5e07ca3a 100644 --- a/src/layouts/DrawerComponent.vue +++ b/src/layouts/DrawerComponent.vue @@ -172,8 +172,8 @@ onMounted(async () => { label: 'menu.overall', icon: 'mdi-monitor-dashboard', children: [ - { label: 'report', route: '' }, - { label: 'dashboard', route: '' }, + { label: 'report', route: '/report' }, + { label: 'dashboard', route: '/dash-board' }, ], }, ]; diff --git a/src/router/routes.ts b/src/router/routes.ts index 785f6601..6d752495 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -75,16 +75,16 @@ const routes: RouteRecordRaw[] = [ name: 'productAndService', component: () => import('pages/04_product-service/MainPage.vue'), }, - { - path: '/quotation', - name: 'Quotation', - component: () => import('pages/05_quotation/MainPage.vue'), - }, { path: '/workflow', name: 'Workflow', component: () => import('pages/04_flow-managment/MainPage.vue'), }, + { + path: '/quotation', + name: 'Quotation', + component: () => import('pages/05_quotation/MainPage.vue'), + }, { path: '/document-management', name: 'document-management', @@ -105,15 +105,20 @@ const routes: RouteRecordRaw[] = [ name: 'TaskOrder', component: () => import('pages/09_task-order/MainPage.vue'), }, + { + path: '/invoice', + name: '/Invoice', + component: () => import('pages/10_invoice/MainPage.vue'), + }, { path: '/credit-note', name: 'CreditNote', component: () => import('pages/11_credit-note/MainPage.vue'), }, { - path: '/invoice', - name: '/Invoice', - component: () => import('pages/10_invoice/MainPage.vue'), + path: '/debit-note', + name: 'debitNote', + component: () => import('pages/12_debit-note/MainPage.vue'), }, { path: '/receipt', @@ -121,9 +126,14 @@ const routes: RouteRecordRaw[] = [ component: () => import('pages/13_receipt/MainPage.vue'), }, { - path: '/debit-note', - name: 'debitNote', - component: () => import('pages/12_debit-note/MainPage.vue'), + path: '/report', + name: 'report', + component: () => import('pages/14_report/MainPage.vue'), + }, + { + path: '/dash-board', + name: 'dashBoard', + component: () => import('pages/15_dash-board/MainPage.vue'), }, ], },