mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
feat(monitor): 添加任务管理模块
- 在 README 中添加了 Celery 任务管理的说明 - 在系统菜单中添加了任务管理相关菜单项 - 添加了任务管理的路由和权限 - 引入了 croniter 库用于处理 cron 表达式
This commit is contained in:
@@ -950,5 +950,73 @@
|
||||
"hidden": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"id": 57,
|
||||
"name": "任务管理",
|
||||
"type": 2,
|
||||
"icon": null,
|
||||
"order": 4,
|
||||
"permission": "monitor:task:query",
|
||||
"route_name": "Task",
|
||||
"route_path": "/monitor/task",
|
||||
"component_path": "monitor/task/index",
|
||||
"parent_id": 36,
|
||||
"available": true,
|
||||
"cache": true,
|
||||
"hidden": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"id": 58,
|
||||
"name": "任务创建",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
"permission": "monitor:task:create",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"parent_id": 57,
|
||||
"available": true,
|
||||
"cache": true,
|
||||
"hidden": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"id": 59,
|
||||
"name": "任务取消-重试",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 2,
|
||||
"permission": "monitor:task:update",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"parent_id": 57,
|
||||
"available": true,
|
||||
"cache": true,
|
||||
"hidden": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"id": 60,
|
||||
"name": "任务删除",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 3,
|
||||
"permission": "monitor:task:delete",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"parent_id": 57,
|
||||
"available": true,
|
||||
"cache": true,
|
||||
"hidden": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
}
|
||||
]
|
||||
@@ -223,6 +223,22 @@
|
||||
"role_id": 1,
|
||||
"menu_id": 56
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 57
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 58
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 59
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 60
|
||||
},
|
||||
{
|
||||
"role_id": 2,
|
||||
"menu_id": 1
|
||||
|
||||
Reference in New Issue
Block a user