diff --git a/src/pages/Department/Card/DepartmentCard.vue b/src/pages/Department/Card/DepartmentCard.vue
index 21247ca5a..4b9fe419c 100644
--- a/src/pages/Department/Card/DepartmentCard.vue
+++ b/src/pages/Department/Card/DepartmentCard.vue
@@ -1,9 +1,9 @@
- import('src/pages/Department/Card/DepartmentCard.vue'),
+ redirect: { name: 'DepartmentSummary' },
+ meta: {
+ menu: [
+ 'DepartmentBasicData',
+ ]
+ },
+ children: [
+ {
+ path: 'summary',
+ name: 'DepartmentSummary',
+ meta: {
+ title: 'summary',
+ icon: 'launch',
+ },
+ component: () => import('src/pages/Department/Card/DepartmentSummary.vue'),
+ },
+ {
+ path: 'basic-data',
+ name: 'DepartmentBasicData',
+ meta: {
+ title: 'basicData',
+ icon: 'vn:settings',
+ },
+ component: () => import('src/pages/Department/Card/DepartmentBasicData.vue'),
+ },
+ ],
+};
+
export default {
- path: '/department',
name: 'Department',
+ path: '/department',
meta: {
title: 'department',
icon: 'vn:greuge',
moduleName: 'Department',
+ menu: [],
},
component: RouterView,
- redirect: { name: 'WorkerDepartment' },
- menus: {
- main: [],
- card: ['DepartmentBasicData'],
- },
+ redirect: { name: 'DepartmentMain' },
children: [
{
- name: 'DepartmentCard',
- path: 'department/:id',
- component: () => import('src/pages/Department/Card/DepartmentCard.vue'),
- redirect: { name: 'DepartmentSummary' },
- children: [
- {
- name: 'DepartmentSummary',
- path: 'summary',
- meta: {
- title: 'summary',
- icon: 'launch',
- },
- component: () =>
- import('src/pages/Department/Card/DepartmentSummary.vue'),
- },
- {
- name: 'DepartmentBasicData',
- path: 'basic-data',
- meta: {
- title: 'basicData',
- icon: 'vn:settings',
- },
- component: () =>
- import('src/pages/Department/Card/DepartmentBasicData.vue'),
- },
- ],
+ name: 'DepartmentMain',
+ path: '',
+ component: () => import('src/components/common/VnModule.vue'),
+ redirect: { name: 'DepartmentIndexMain' },
+ children: [departmentCard],
},
],
};