2025-11-03 16:50:34 +08:00
|
|
|
|
import type { FC } from "react";
|
|
|
|
|
|
import type { BasicSelectTreeProps } from "../../Basic";
|
|
|
|
|
|
|
2026-01-07 15:35:29 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 请求参数
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface Params {
|
|
|
|
|
|
/** 企业id */
|
|
|
|
|
|
eqCorpinfoId?: string;
|
|
|
|
|
|
/** 父级部门id */
|
|
|
|
|
|
eqParentId?: string;
|
|
|
|
|
|
/** 企业类型 */
|
|
|
|
|
|
corpinfoTypeList?: number[];
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-03 16:50:34 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 组件属性
|
|
|
|
|
|
*/
|
2025-11-08 12:07:29 +08:00
|
|
|
|
export interface DepartmentSelectTreeProps extends Omit<BasicSelectTreeProps, "treeData" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
|
2025-11-03 16:50:34 +08:00
|
|
|
|
/** 请求参数 */
|
2025-11-04 08:39:32 +08:00
|
|
|
|
params?: Params;
|
2025-11-06 14:31:25 +08:00
|
|
|
|
/** 占位符,默认"部门" */
|
2025-11-06 09:38:23 +08:00
|
|
|
|
placeholder?: string;
|
|
|
|
|
|
/** 是否需要企业id,默认 false */
|
|
|
|
|
|
isNeedCorpInfoId?: boolean;
|
|
|
|
|
|
/** 是否需要父级部门id,默认 false */
|
|
|
|
|
|
isNeedParentId?: boolean;
|
2026-01-07 15:35:29 +08:00
|
|
|
|
/** 查询当前登陆人部门还是所有企业部门 */
|
|
|
|
|
|
searchType?: "current" | "all" | "company";
|
2025-11-03 16:50:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2025-11-06 14:31:25 +08:00
|
|
|
|
* 部门下拉树组件(港务局版本)
|
2025-11-03 16:50:34 +08:00
|
|
|
|
*/
|
|
|
|
|
|
declare const DepartmentSelectTree: FC<DepartmentSelectTreeProps>;
|
|
|
|
|
|
|
|
|
|
|
|
export default DepartmentSelectTree;
|