a611045db2
数字人内容库支持角色、世界书和预设管理;账号实验中心覆盖生命周期、指定用户、分组解释、漏斗和审计;更新星港品牌与默认导航,保留原兼容路由。
128 lines
3.3 KiB
TypeScript
128 lines
3.3 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: "权限管理",
|
|
showLink: false,
|
|
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
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: "/operations",
|
|
name: "EmployeeWorkspaceOperations",
|
|
component: Layout,
|
|
redirect: "/announcements",
|
|
meta: {
|
|
icon: "ep/operation",
|
|
title: "员工工作台运营",
|
|
showLink: false,
|
|
rank: 2
|
|
},
|
|
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
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] satisfies RouteConfigsTable[];
|