mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-04 17:14:21 +00:00
refactor(backend): 重构任务模块并优化菜单权限
- 移除系统模块中的任务相关代码 - 新增批量设置字典类型和数据状态的功能 - 更新菜单权限获取逻辑,增加对链接类型菜单的支持 - 调整任务模块到 monitor 监控模块下
This commit is contained in:
@@ -9,11 +9,11 @@ const RoleAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
getRoleDetail(id: number) {
|
||||
getRoleDetail(query: DetailType) {
|
||||
return request<ApiResponse<RoleTable>>({
|
||||
url: `/system/role/detail`,
|
||||
method: "get",
|
||||
params: id,
|
||||
params: query,
|
||||
});
|
||||
},
|
||||
|
||||
@@ -37,7 +37,7 @@ const RoleAPI = {
|
||||
return request<ApiResponse>({
|
||||
url: `/system/role/delete`,
|
||||
method: "delete",
|
||||
params: query,
|
||||
data: query,
|
||||
});
|
||||
},
|
||||
|
||||
@@ -57,11 +57,11 @@ const RoleAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
exportRole(body: any[]) {
|
||||
exportRole(query: TablePageQuery) {
|
||||
return request<ApiResponse>({
|
||||
url: `/system/role/export`,
|
||||
method: "post",
|
||||
data: body,
|
||||
data: query,
|
||||
responseType: "blob",
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user