优化DepartmentLeftTreeProps的类型

master
LiuJiaNan 2026-02-07 16:31:28 +08:00
parent 1ddfb614c1
commit ca958c882f
1 changed files with 4 additions and 17 deletions

View File

@ -1,28 +1,15 @@
import type { FC } from "react";
import type { BasicLeftTreeProps } from "../../Basic";
/**
*
*/
export interface Params {
/** 企业id */
eqCorpinfoId?: string;
/** 父级部门id */
eqParentId?: string;
/** 企业类型 */
inType?: number[];
/** 企业类型 */
enterpriseType?: number[] | number;
}
import type { DepartmentSelectTreeProps } from "../../../SelectTree/Department/Gwj";
/**
*
*/
export interface DepartmentLeftTreeProps extends Omit<BasicLeftTreeProps, "treeData" | "nameKey" | "idKey" | "childrenKey"> {
/** 请求参数 */
params?: Params;
/** 查询的企业类型默认currentcurrent 接收 eqCorpinfoId 或者 eqParentIdall 不接受任何参数inType 接收 inType 或者 enterpriseType */
searchType?: "current" | "all" | "inType";
params?: DepartmentSelectTreeProps["params"];
/** 查询的企业类型 */
searchType?: DepartmentSelectTreeProps["searchType"];
}
/**