| 12345678910111213141516171819202122 |
- import { IS_DISABLED } from "@/types/common/constants"
- /* V4: 部门树结构 */
- export interface DeptTreeItem {
- id: number | null,
- deptName: string, // 部门名称
- parentId: number | null, // 上级部门 id
- orderNum: number | undefined, // 排序
- createdBy: number, // 创建人
- updatedBy: number, // 更新人
- createdAt: string, // 创建时间
- updatedAt: string, // 更新时间
- isDeleted: number, // 0-未删除。 大于 0-已删除
- tenantId: number, // 租户 ID
- userCount: number, // 组织下的用户数量
- }
- export type DeptTree = DeptTreeItem & { children: DeptTreeItem[] }
- export type addDeptProps = Pick<DeptTreeItem, 'parentId' | 'deptName' | 'orderNum'>
- export type editDeptProps = addDeptProps & {id?: DeptTreeItem['id']}
|