feat:对接部门管理,优化菜单管理,共用handleTree方法

This commit is contained in:
AN
2025-04-13 13:22:12 +08:00
parent 73cfa34796
commit 375ffa1578
19 changed files with 667 additions and 165 deletions

View File

@ -31,4 +31,16 @@ declare namespace CommonType {
/** The res error code */
type ErrorCode = '401' | '403' | '404' | 'default';
/** 构造树型结构数据的配置选项 */
type TreeConfig = {
/** id字段名 */
idField: string;
/** 父节点字段名 */
parentIdField?: string;
/** 子节点字段名 */
childrenField?: string;
/** 过滤函数 */
filterFn?: (node: any) => boolean;
};
}