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