mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
feat(menu): 优化仪表盘菜单结构并添加子菜单
- 移除仪表盘菜单的 permission 和 component_path 属性 - 添加工作台和分析页作为仪表盘的子菜单 - 更新菜单项的路由和权限设置 - 在系统角色菜单中添加新菜单项的权限
This commit is contained in:
@@ -5,15 +5,15 @@
|
||||
"type": 1,
|
||||
"icon": "DashboardOutlined",
|
||||
"order": 1,
|
||||
"permission": "dashboard:workplace:query",
|
||||
"permission": "",
|
||||
"route_name": "Dashboard",
|
||||
"route_path": "/dashboard",
|
||||
"component_path": "dashboard/workplace",
|
||||
"component_path": null,
|
||||
"parent_id": null,
|
||||
"available": true,
|
||||
"cache": true,
|
||||
"hidden": false,
|
||||
"redirect": null,
|
||||
"redirect": "/dashboard/workplace",
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
@@ -1205,5 +1205,39 @@
|
||||
"hidden": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"id": 72,
|
||||
"name": "工作台",
|
||||
"type": 2,
|
||||
"icon": "",
|
||||
"order": 1,
|
||||
"permission": "dashboard:workplace:query",
|
||||
"route_name": "Workplace",
|
||||
"route_path": "/dashboard/workplace",
|
||||
"component_path": "dashboard/workplace",
|
||||
"parent_id": 1,
|
||||
"available": true,
|
||||
"cache": true,
|
||||
"hidden": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"id": 73,
|
||||
"name": "分析页",
|
||||
"type": 2,
|
||||
"icon": "",
|
||||
"order": 2,
|
||||
"permission": "dashboard:analysis:query",
|
||||
"route_name": "Analysis",
|
||||
"route_path": "/dashboard/analysis",
|
||||
"component_path": "dashboard/analysis",
|
||||
"parent_id": 1,
|
||||
"available": true,
|
||||
"cache": true,
|
||||
"hidden": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
}
|
||||
]
|
||||
@@ -283,6 +283,14 @@
|
||||
"role_id": 1,
|
||||
"menu_id": 71
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 72
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 73
|
||||
},
|
||||
{
|
||||
"role_id": 2,
|
||||
"menu_id": 1
|
||||
|
||||
Reference in New Issue
Block a user