F1-5b: 壳层菜单挂系统管理入口(sys-admin 四页,F2 接权限裁剪)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,21 @@ export function collectLeaves(items: MenuItem[], breadcrumb: string[] = []): Men
|
|||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 系统管理(现代层标准页,F1-5 入库 sys_page_schema,不在老菜单表里)。
|
||||||
|
// F1 阶段对所有登录用户可见;F2 接入模块授权后改为按权限下发。
|
||||||
|
const SYS_ADMIN_ROOT: MenuRoot = {
|
||||||
|
id: 'SYS_ADMIN',
|
||||||
|
name: '系统管理',
|
||||||
|
seq: 999,
|
||||||
|
children: [
|
||||||
|
{ id: 'sys-admin-user', name: '用户查询', seq: 1, templateId: 'sys-admin-user', children: [] },
|
||||||
|
{ id: 'sys-admin-role', name: '角色与成员', seq: 2, templateId: 'sys-admin-role', children: [] },
|
||||||
|
{ id: 'sys-admin-menu', name: '菜单总览', seq: 3, templateId: 'sys-admin-menu', children: [] },
|
||||||
|
{ id: 'sys-admin-filterrule', name: '数据权限规则', seq: 4, templateId: 'sys-admin-filterrule', children: [] },
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
export async function fetchMenu(): Promise<MenuResponse> {
|
export async function fetchMenu(): Promise<MenuResponse> {
|
||||||
const resp = await http.get<MenuResponse>('/api/menu');
|
const resp = await http.get<MenuResponse>('/api/menu');
|
||||||
return resp.data;
|
return { roots: [...resp.data.roots, SYS_ADMIN_ROOT] };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user