优化DepartmentSelectTree
parent
575fd8243f
commit
fa39577d88
|
|
@ -12,7 +12,7 @@ export interface Params {
|
|||
/** 企业类型 */
|
||||
inType?: number[];
|
||||
/** 企业类型 */
|
||||
enterpriseType?: number[];
|
||||
enterpriseType?: number[] | number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -56,6 +56,9 @@ function DepartmentSelectTree(props) {
|
|||
requestUrl = "/basicInfo/department/listAllTreeByCorpType";
|
||||
actualParams.eqCorpinfoId = undefined;
|
||||
actualParams.eqParentId = undefined;
|
||||
if (actualParams.enterpriseType && !Array.isArray(actualParams.enterpriseType)) {
|
||||
actualParams.enterpriseType = [actualParams.enterpriseType];
|
||||
}
|
||||
}
|
||||
|
||||
const { data } = await request(requestUrl, "post", actualParams);
|
||||
|
|
|
|||
Loading…
Reference in New Issue