employeeSelector

人员选择器

参数 params

属性 类型 含义 默认 必须 APP版本
type number 选择器类型, 1: 无组织架构选人 | 2: 有组织架构选人 1
title string 选择器标题 人员选择
max number 最多可选数量, 不传或传0表示无限制
selected Array.<string> 已选中的人员staffCode

返回 Promise<response>

属性 类型 含义 APP版本
code string 200:成功 | 404:失败
msg string 响应信息
data Array.<Employee> 响应数据

Employee

属性 类型 含义 APP版本
staffCode string 员工唯一Id
phone string 电话
staffName string 员工名字
timeZone string 时区
email string 邮件地址
username string 账号名
gender string 性别, 0: 女 | 1: 男
portrail string 头像
imUserJid string 对应的IM账号
depts string 部门列表
userId number 员工Id

示例

import { employeeSelector } from '@suplink/jssdk';

employeeSelector().then((res) => console.log(res))