mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
feat: Add role code to system_role.json and update system_users.json creator_id to null
fix: Refactor initialize.py to handle nested children data during initialization feat: Implement tree structure traversal functions in common_util.py chore: Update requirements.txt to specify sqlalchemy-crud-plus version and add rich refactor: Change API endpoints in dept.ts and menu.ts to return tree structure feat: Add code field to role, dept, and menu interfaces in respective TypeScript files fix: Update dept and role Vue components to display and handle code field docs: Add comprehensive project documentation for FastAPI Vue3 Admin
This commit is contained in:
@@ -1,9 +1,58 @@
|
||||
[
|
||||
{
|
||||
"name": "集团总公司",
|
||||
"code": "GROUP001",
|
||||
"order": 1,
|
||||
"status": true,
|
||||
"parent_id": null,
|
||||
"description": "集团总公司"
|
||||
"description": "集团总公司",
|
||||
"children": [
|
||||
{
|
||||
"name": "北京分公司",
|
||||
"code": "BJ001",
|
||||
"order": 1,
|
||||
"status": true,
|
||||
"description": "北京分公司",
|
||||
"children": [
|
||||
{
|
||||
"name": "技术部",
|
||||
"code": "TECH001",
|
||||
"order": 1,
|
||||
"status": true,
|
||||
"description": "技术部"
|
||||
},
|
||||
{
|
||||
"name": "销售部",
|
||||
"code": "SALES001",
|
||||
"order": 2,
|
||||
"status": true,
|
||||
"description": "销售部"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "上海分公司",
|
||||
"code": "SH001",
|
||||
"order": 2,
|
||||
"status": true,
|
||||
"description": "上海分公司",
|
||||
"children": [
|
||||
{
|
||||
"name": "市场部",
|
||||
"code": "MARKET001",
|
||||
"order": 1,
|
||||
"status": true,
|
||||
"description": "市场部"
|
||||
},
|
||||
{
|
||||
"name": "人事部",
|
||||
"code": "HR001",
|
||||
"order": 2,
|
||||
"status": true,
|
||||
"description": "人事部"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
+1940
-1998
File diff suppressed because it is too large
Load Diff
@@ -2,6 +2,7 @@
|
||||
{
|
||||
"name": "管理员角色",
|
||||
"data_scope": 4,
|
||||
"code": "ADMIN",
|
||||
"status": true,
|
||||
"order": 1,
|
||||
"description": "管理员",
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"last_login": null,
|
||||
"dept_id": 1,
|
||||
"description": "管理员",
|
||||
"creator_id": 1
|
||||
"creator_id": null
|
||||
},
|
||||
{
|
||||
"username": "demo",
|
||||
|
||||
Reference in New Issue
Block a user