2025-11-03 16:50:34 +08:00
|
|
|
|
import type { FC } from "react";
|
2025-11-06 14:31:25 +08:00
|
|
|
|
import type { Params } from "../../../LeftTree/Department/Gwj";
|
2025-11-03 16:50:34 +08:00
|
|
|
|
import type { BasicSelectTreeProps } from "../../Basic";
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 组件属性
|
|
|
|
|
|
*/
|
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;
|
2025-11-19 17:38:56 +08:00
|
|
|
|
/** 查询当前登陆人部门还是所有企业部门,all 的话 isNeedCorpInfoId、isNeedParentId、params 不生效 */
|
|
|
|
|
|
searchType?: "current" | "all";
|
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;
|