departmentSelector
部门选择器
参数 params
属性 |
类型 |
含义 |
默认 |
必须 |
APP版本 |
title |
string |
选择器标题 |
部门选择 |
否 |
|
max |
number |
最多可选数量, 不传或传0表示无限制 |
|
否 |
|
selected |
Array.<string> |
已选中的部门uuid |
|
否 |
|
selectedCode |
Array.<string> |
已选中的部门code |
|
否 |
|
返回 Promise<response>
Department
属性 |
类型 |
含义 |
APP版本 |
uuid |
string |
部门唯一Id |
|
showName |
string |
部门名称 |
|
description |
string |
部门描述 |
|
name |
string |
supOS当前部门编号 |
|
parent |
string |
supOS父部门编号 |
|
personsCount |
string |
部门所含员工数 |
|
layNo |
string |
部门层级 |
|
code |
string |
部门code |
|
示例
import { departmentSelector } from '@suplink/jssdk';
departmentSelector().then((res) => console.log(res))