From 9f6d0b4dc9132245a7d3b4c6fdc812b98965e8c6 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 4 Jun 2024 15:15:12 -0300 Subject: [PATCH] Remove roles --- src/router/modules/index.js | 2 - src/router/modules/role.js | 76 ------------------------------------- src/router/routes.js | 2 - 3 files changed, 80 deletions(-) delete mode 100644 src/router/modules/role.js diff --git a/src/router/modules/index.js b/src/router/modules/index.js index ca60c78d8..78d4d94cc 100644 --- a/src/router/modules/index.js +++ b/src/router/modules/index.js @@ -12,7 +12,6 @@ import Supplier from './Supplier'; import Travel from './travel'; import Order from './order'; import Department from './department'; -import Role from './role'; import Entry from './entry'; import roadmap from './roadmap'; import Parking from './parking'; @@ -37,7 +36,6 @@ export default [ Order, invoiceIn, Department, - Role, Entry, roadmap, Parking, diff --git a/src/router/modules/role.js b/src/router/modules/role.js deleted file mode 100644 index 6aab5f945..000000000 --- a/src/router/modules/role.js +++ /dev/null @@ -1,76 +0,0 @@ -import { RouterView } from 'vue-router'; - -export default { - path: '/role', - name: 'Role', - meta: { - title: 'role', - icon: 'vn:greuge', - moduleName: 'Role', - }, - component: RouterView, - redirect: { name: 'AccountRoles' }, - menus: { - main: [], - card: ['RoleBasicData', 'SubRoles', 'InheritedRoles', 'RoleLog'], - }, - children: [ - { - name: 'RoleCard', - path: '/role/:id', - component: () => import('src/pages/Account/Role/Card/RoleCard.vue'), - redirect: { name: 'RoleSummary' }, - children: [ - { - name: 'RoleSummary', - path: 'summary', - meta: { - title: 'summary', - icon: 'launch', - }, - component: () => - import('src/pages/Account/Role/Card/RoleSummary.vue'), - }, - { - name: 'RoleBasicData', - path: 'basic-data', - meta: { - title: 'basicData', - icon: 'vn:settings', - }, - component: () => - import('src/pages/Account/Role/Card/RoleBasicData.vue'), - }, - { - name: 'SubRoles', - path: 'sub-roles', - meta: { - title: 'subRoles', - icon: 'group', - }, - component: () => import('src/pages/Account/Role/Card/SubRoles.vue'), - }, - - { - name: 'InheritedRoles', - path: 'inherited-roles', - meta: { - title: 'inheritedRoles', - icon: 'account_tree', - }, - component: () => - import('src/pages/Account/Role/Card/InheritedRoles.vue'), - }, - { - name: 'RoleLog', - path: 'log', - meta: { - title: 'log', - icon: 'history', - }, - component: () => import('src/pages/Account/Role/Card/RoleLog.vue'), - }, - ], - }, - ], -}; diff --git a/src/router/routes.js b/src/router/routes.js index 60cc24a75..8ae50402b 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -10,7 +10,6 @@ import supplier from './modules/Supplier'; import route from './modules/route'; import travel from './modules/travel'; import department from './modules/department'; -import role from './modules/role'; import ItemType from './modules/itemType'; import shelving from 'src/router/modules/shelving'; import order from 'src/router/modules/order'; @@ -75,7 +74,6 @@ const routes = [ supplier, travel, department, - role, roadmap, entry, parking,