修改DepartmentSelectTree参数

master
LiuJiaNan 2026-01-13 08:46:29 +08:00
parent 6ce8908c5a
commit 0e328cfa43
2 changed files with 6 additions and 4 deletions

View File

@ -10,7 +10,9 @@ export interface Params {
/** 父级部门id */
eqParentId?: string;
/** 企业类型 */
corpinfoTypeList?: number[];
inType?: number[];
/** 企业类型 */
enterpriseType?: number[];
}
/**
@ -25,8 +27,8 @@ export interface DepartmentSelectTreeProps extends Omit<BasicSelectTreeProps, "t
isNeedCorpInfoId?: boolean;
/** 是否需要父级部门id默认 false */
isNeedParentId?: boolean;
/** 查询当前登陆人部门还是所有企业部门 */
searchType?: "current" | "all" | "company";
/** 查询的企业类型默认currentcurrent 接收 eqCorpinfoId 或者 eqParentIdall 不接受任何参数inType 接收 inType 或者 enterpriseType */
searchType?: "current" | "all" | "inType";
}
/**

View File

@ -33,7 +33,7 @@ function DepartmentSelectTree(props) {
requestUrl = "/basicInfo/department/listTree";
if (searchType === "all")
requestUrl = "/basicInfo/department/listAllTree";
if (searchType === "company")
if (searchType === "inType")
requestUrl = "/basicInfo/department/listAllTreeByCorpType";
const { data } = await request(requestUrl, "post", params);