1.1.1 • Published 4 years ago

@aligov/components-department-select v1.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

部门选择

@aligov/components-department-select

部门选择

API

参数名说明必填类型默认值备注
value部门 oidstring
onChange部门选择变更触发函数(oid: strihg, devCoding: string, name: string) => void
latestValue最近使用的部门IPartOrgData[]
onRemoveLatestItem移除一个最近使用的部门(item: IPartOrgData) => void
onClearLatest清除最近使用的部门Function
queryService查询组织树的服务any => Promise<any>Call(/operation/org/getOrgTreeByOid)
orgKeyqueryService 查询时的组织 id 的参数名stringOid
style样式{}
selectPropsselect组件的props{}{}

当默认的查询服务不符合使用需要时,可替换 queryServiceorgKey

只有提供里 latestValue、onRemoveLatestItem 以及 onClear 属性才会启用最近使用的部门功能

IPartOrgData

org,至少包括以下属性

  • oid: org id (注意,不是数据库里的常规自增 id,而是类似 code 的概念)
  • devCoding
  • name