管理后台左侧列表调整
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
export const HQ_PERMISSION_CATALOG = [
|
||||
{ key: 'dashboard', label: '概览' },
|
||||
{ key: 'users', label: '用户管理' },
|
||||
{ key: 'wechat_bindings', label: '微信绑定' },
|
||||
{ key: 'products', label: '商品管理' },
|
||||
{ key: 'orders', label: '订单管理' },
|
||||
{ key: 'stores', label: '门店管理' },
|
||||
{ key: 'partners', label: '开城管理' },
|
||||
{ key: 'benefit', label: '好客权益' },
|
||||
{ key: 'deliveries', label: '配送单' },
|
||||
{ key: 'tickets', label: '工单中心' },
|
||||
{ key: 'resources', label: 'OSS 资源库' },
|
||||
{ key: 'logs', label: '日志' },
|
||||
{ key: 'hq_permissions', label: '权限分配' },
|
||||
{ key: 'hq_accounts', label: 'HQ 账户' },
|
||||
] as const;
|
||||
|
||||
export type HqPermissionKey = (typeof HQ_PERMISSION_CATALOG)[number]['key'];
|
||||
|
||||
export const HQ_ADMIN_ROLES = [
|
||||
{ value: 'SUPER_ADMIN', label: '超级管理员' },
|
||||
{ value: 'OPS', label: '运营' },
|
||||
{ value: 'FINANCE', label: '财务' },
|
||||
{ value: 'CUSTOMER_SERVICE', label: '客服' },
|
||||
] as const;
|
||||
|
||||
export const HQ_ROLE_DEFAULT_PERMISSIONS: Record<string, HqPermissionKey[]> = {
|
||||
SUPER_ADMIN: HQ_PERMISSION_CATALOG.map((p) => p.key),
|
||||
OPS: [
|
||||
'dashboard',
|
||||
'users',
|
||||
'wechat_bindings',
|
||||
'products',
|
||||
'orders',
|
||||
'stores',
|
||||
'partners',
|
||||
'benefit',
|
||||
'deliveries',
|
||||
'tickets',
|
||||
'resources',
|
||||
'logs',
|
||||
],
|
||||
FINANCE: ['dashboard', 'orders', 'stores', 'partners', 'benefit', 'logs'],
|
||||
CUSTOMER_SERVICE: ['dashboard', 'users', 'orders', 'tickets', 'logs'],
|
||||
};
|
||||
@@ -13,3 +13,4 @@ export * from './user-log';
|
||||
export * from './store-log';
|
||||
export * from './partner-log';
|
||||
export * from './promo';
|
||||
export * from './hq-permissions';
|
||||
|
||||
Reference in New Issue
Block a user