系统管理/部门管理角色管理用户管理

This commit is contained in:
Teo
2025-07-11 19:16:57 +08:00
parent 4a0962b117
commit 748464b44a
13 changed files with 243 additions and 81 deletions

View File

@ -1,6 +1,6 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import {DeptForm, DeptQuery, DeptTreeVO, DeptVO} from './types';
import { DeptForm, DeptQuery, DeptTreeVO, DeptVO } from './types';
// 查询部门列表
export const listDept = (query?: DeptQuery) => {
@ -11,6 +11,13 @@ export const listDept = (query?: DeptQuery) => {
});
};
export const getDeptList = () => {
return request({
url: '/project/project/listNoDept',
method: 'get'
});
};
/**
* 通过deptIds查询部门
* @param deptIds

View File

@ -5,6 +5,8 @@ export interface DeptQuery extends PageQuery {
deptName?: string;
deptCategory?: string;
status?: number;
isSubset?: string;
isShow?: string;
}
/**
@ -16,6 +18,7 @@ export interface DeptVO extends BaseEntity {
parentId: number | string;
children: DeptVO[];
deptId: number | string;
projectList: any[];
deptName: string;
deptCategory: string;
orderNum: number;
@ -48,10 +51,13 @@ export interface DeptForm {
parentId?: number | string;
children?: DeptForm[];
deptId?: number | string;
projectId?: number | string;
deptName?: string;
deptCategory?: string;
orderNum?: number;
leader?: string;
isSubset?: string;
isShow?: string;
phone?: string;
email?: string;
status?: string;