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:
zhangtao
2025-09-15 00:19:11 +08:00
parent 1f7c934e41
commit e159b31e62
47 changed files with 2543 additions and 2206 deletions
+4 -2
View File
@@ -2,8 +2,8 @@ import request from "@/utils/request";
const DeptAPI = {
getDeptList(query?: DeptPageQuery) {
return request<ApiResponse<PageResult<DeptTable[]>>>({
url: `/system/dept/list`,
return request<ApiResponse<DeptTable[]>>({
url: `/system/dept/tree`,
method: "get",
params: query,
});
@@ -65,6 +65,7 @@ export interface DeptTable {
id?: number;
name?: string;
order?: number;
code?: string;
parent_id?: number;
parent_name?: string;
status?: boolean;
@@ -79,6 +80,7 @@ export interface DeptForm {
id?: number;
name?: string;
order?: number;
code?: string;
parent_id?: number;
status?: boolean;
description?: string;
+3 -3
View File
@@ -2,8 +2,8 @@ import request from "@/utils/request";
const MenuAPI = {
getMenuList(query?: MenuPageQuery) {
return request<ApiResponse<PageResult<MenuTable[]>>>({
url: `/system/menu/list`,
return request<ApiResponse<MenuTable[]>>({
url: `/system/menu/tree`,
method: "get",
params: query,
});
@@ -51,7 +51,7 @@ const MenuAPI = {
export default MenuAPI;
export interface MenuPageQuery extends PageQuery {
export interface MenuPageQuery {
name?: string;
status?: boolean;
/** 开始时间 */
+2
View File
@@ -82,6 +82,7 @@ export interface RoleTable {
id: number;
name: string;
order?: number;
code?: string;
data_scope?: number;
status?: boolean;
menus?: permissionMenuType[];
@@ -96,6 +97,7 @@ export interface RoleForm {
id?: number;
name?: string;
order?: number;
code?: string;
status?: boolean;
description?: string;
created_at?: string;