优化DepartmentSelectTree的类型

master
LiuJiaNan 2026-02-05 10:32:51 +08:00
parent 2706da1d35
commit b14a771cc9
1 changed files with 14 additions and 4 deletions

View File

@ -1,6 +1,16 @@
import type { FC } from "react"; import type { FC } from "react";
import type { BasicSelectTreeProps } from "../../Basic"; import type { BasicSelectTreeProps } from "../../Basic";
/**
* inType
*/
type InType = 0 | 1 | 2 | 3 | 4 | 5 | 6;
/**
* enterpriseType
*/
type EnterpriseType = 1 | 2 | 3;
/** /**
* *
*/ */
@ -9,10 +19,10 @@ export interface Params {
eqCorpinfoId?: string; eqCorpinfoId?: string;
/** 父级部门id */ /** 父级部门id */
eqParentId?: string; eqParentId?: string;
/** 企业类型 0-普通企业1-集团单位2-股份单位3-相关方企业4-货主单位5-驻港单位 6-物资中心 */ /** 企业类型 0-普通企业 1-集团单位 2-股份单位 3-相关方企业 4-货主单位 5-驻港单位 6-物资中心 */
inType?: number[]; inType?: InType[];
/** 企业类型 1:监管 2企业 3相关方 */ /** 企业类型 1-监管 2-企业 3-相关方 */
enterpriseType?: number[] | number; enterpriseType?: EnterpriseType | EnterpriseType[];
} }
/** /**