@cainiaofe/cn-ui-m
Version:
44 lines (43 loc) • 1.04 kB
TypeScript
/**
* 获取部门
*/
export declare function getDept(params: {
/** 当前值 */
value: string;
/** 是否mokelay中心化接入 */
mokelay?: boolean;
/** 自定义请求域名 */
host?: string;
/** 自定义请求路径 */
path?: string;
}): Promise<any[]>;
/**
* 获取子节点(父级部门获取子部门)
*/
export declare function getChildren(params: {
/** 当前值 */
value: string;
/** 是否mokelay中心化接入 */
mokelay?: boolean;
/** 自定义请求域名 */
host?: string;
/** 自定义请求路径 */
path?: string;
/** 最大层级 */
maxLevel?: number;
}): Promise<any[]>;
/**
* 搜索(按关键词查询部门)
*/
export declare function search(params: {
/** 搜索值 */
value: string;
/** 是否mokelay中心化接入 */
mokelay?: boolean;
/** 自定义请求域名 */
host?: string;
/** 自定义请求路径 */
path?: string;
/** 最大层级 */
maxLevel?: number;
}): Promise<any[]>;