66 lines
1.6 KiB
TypeScript
66 lines
1.6 KiB
TypeScript
const Layout = () => import("@/layout/index.vue");
|
|
|
|
/**
|
|
* 权限管理业务菜单。
|
|
*
|
|
* 子页面都是静态路由,菜单展示顺序由这里的 children 决定;
|
|
* 默认访问该模块时进入员工管理,保证和登录/登出后的主工作流一致。
|
|
*/
|
|
export default {
|
|
path: "/access",
|
|
name: "AccessManagement",
|
|
component: Layout,
|
|
redirect: "/employees",
|
|
meta: {
|
|
icon: "ep/user-filled",
|
|
title: "权限管理",
|
|
rank: 1
|
|
},
|
|
children: [
|
|
{
|
|
path: "/stores",
|
|
name: "StoreManagement",
|
|
component: () => import("@/views/stores/index.vue"),
|
|
meta: {
|
|
title: "门店管理",
|
|
menuKey: "stores",
|
|
permission: "store:view",
|
|
keepAlive: true
|
|
}
|
|
},
|
|
{
|
|
path: "/roles",
|
|
name: "RoleManagement",
|
|
component: () => import("@/views/roles/index.vue"),
|
|
meta: {
|
|
title: "角色管理",
|
|
menuKey: "roles",
|
|
permission: "role:view",
|
|
keepAlive: true
|
|
}
|
|
},
|
|
{
|
|
path: "/employees",
|
|
name: "EmployeeManagement",
|
|
component: () => import("@/views/employees/index.vue"),
|
|
meta: {
|
|
title: "员工管理",
|
|
menuKey: "employees",
|
|
permission: ["employee:view:all", "employee:view:store"],
|
|
keepAlive: true
|
|
}
|
|
},
|
|
{
|
|
path: "/permissions",
|
|
name: "PermissionPolicies",
|
|
component: () => import("@/views/permissions/index.vue"),
|
|
meta: {
|
|
title: "权限策略",
|
|
menuKey: "permissions",
|
|
permission: "permission:view",
|
|
keepAlive: true
|
|
}
|
|
}
|
|
]
|
|
} satisfies RouteConfigsTable;
|