优化DepartmentLeftTreeProps的类型
parent
1ddfb614c1
commit
ca958c882f
|
|
@ -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;
|
||||
/** 查询的企业类型,默认current,current 接收 eqCorpinfoId 或者 eqParentId,all 不接受任何参数,inType 接收 inType 或者 enterpriseType */
|
||||
searchType?: "current" | "all" | "inType";
|
||||
params?: DepartmentSelectTreeProps["params"];
|
||||
/** 查询的企业类型 */
|
||||
searchType?: DepartmentSelectTreeProps["searchType"];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue