修改DepartmentSelectTree参数
parent
6ce8908c5a
commit
0e328cfa43
|
|
@ -10,7 +10,9 @@ export interface Params {
|
||||||
/** 父级部门id */
|
/** 父级部门id */
|
||||||
eqParentId?: string;
|
eqParentId?: string;
|
||||||
/** 企业类型 */
|
/** 企业类型 */
|
||||||
corpinfoTypeList?: number[];
|
inType?: number[];
|
||||||
|
/** 企业类型 */
|
||||||
|
enterpriseType?: number[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -25,8 +27,8 @@ export interface DepartmentSelectTreeProps extends Omit<BasicSelectTreeProps, "t
|
||||||
isNeedCorpInfoId?: boolean;
|
isNeedCorpInfoId?: boolean;
|
||||||
/** 是否需要父级部门id,默认 false */
|
/** 是否需要父级部门id,默认 false */
|
||||||
isNeedParentId?: boolean;
|
isNeedParentId?: boolean;
|
||||||
/** 查询当前登陆人部门还是所有企业部门 */
|
/** 查询的企业类型,默认current,current 接收 eqCorpinfoId 或者 eqParentId,all 不接受任何参数,inType 接收 inType 或者 enterpriseType */
|
||||||
searchType?: "current" | "all" | "company";
|
searchType?: "current" | "all" | "inType";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ function DepartmentSelectTree(props) {
|
||||||
requestUrl = "/basicInfo/department/listTree";
|
requestUrl = "/basicInfo/department/listTree";
|
||||||
if (searchType === "all")
|
if (searchType === "all")
|
||||||
requestUrl = "/basicInfo/department/listAllTree";
|
requestUrl = "/basicInfo/department/listAllTree";
|
||||||
if (searchType === "company")
|
if (searchType === "inType")
|
||||||
requestUrl = "/basicInfo/department/listAllTreeByCorpType";
|
requestUrl = "/basicInfo/department/listAllTreeByCorpType";
|
||||||
|
|
||||||
const { data } = await request(requestUrl, "post", params);
|
const { data } = await request(requestUrl, "post", params);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue