feat: add employee workspace operations admin
This commit is contained in:
+113
-54
@@ -6,60 +6,119 @@ 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
|
||||
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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "/stores",
|
||||
name: "StoreManagement",
|
||||
component: () => import("@/views/stores/index.vue"),
|
||||
meta: {
|
||||
title: "门店管理",
|
||||
menuKey: "stores",
|
||||
permission: "store:view",
|
||||
keepAlive: true
|
||||
}
|
||||
{
|
||||
path: "/operations",
|
||||
name: "EmployeeWorkspaceOperations",
|
||||
component: Layout,
|
||||
redirect: "/announcements",
|
||||
meta: {
|
||||
icon: "ep/operation",
|
||||
title: "员工工作台运营",
|
||||
rank: 2
|
||||
},
|
||||
{
|
||||
path: "/roles",
|
||||
name: "RoleManagement",
|
||||
component: () => import("@/views/roles/index.vue"),
|
||||
meta: {
|
||||
title: "角色管理",
|
||||
menuKey: "roles",
|
||||
permission: "role:view",
|
||||
keepAlive: true
|
||||
children: [
|
||||
{
|
||||
path: "/announcements",
|
||||
name: "AnnouncementManagement",
|
||||
component: () => import("@/views/announcements/index.vue"),
|
||||
meta: {
|
||||
title: "公告管理",
|
||||
menuKey: "announcements",
|
||||
permission: "announcement:view",
|
||||
keepAlive: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "/tasks",
|
||||
name: "TaskManagement",
|
||||
component: () => import("@/views/tasks/index.vue"),
|
||||
meta: {
|
||||
title: "任务管理",
|
||||
menuKey: "tasks",
|
||||
permission: "task:view",
|
||||
keepAlive: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "/shifts",
|
||||
name: "ShiftManagement",
|
||||
component: () => import("@/views/shifts/index.vue"),
|
||||
meta: {
|
||||
title: "排班管理",
|
||||
menuKey: "shifts",
|
||||
permission: "shift:view",
|
||||
keepAlive: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "/credential-audits",
|
||||
name: "CredentialAuditManagement",
|
||||
component: () => import("@/views/credential-audits/index.vue"),
|
||||
meta: {
|
||||
title: "凭据审计",
|
||||
menuKey: "credential-audits",
|
||||
permission: "credential:audit: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;
|
||||
]
|
||||
}
|
||||
] satisfies RouteConfigsTable[];
|
||||
|
||||
Reference in New Issue
Block a user