UNPKG

ng-yunzai-mobile

Version:

1. 适配yunzai_uni_app_x

55 lines (54 loc) 2.07 kB
import { MatDialog } from '@angular/material/dialog'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { BaseClient } from '../../client/base.client'; import { TokenService } from "../../token/token.service"; export declare class YzSelectContactsService { dialog: MatDialog; private client; private http; private tokenService; constructor(dialog: MatDialog, client: BaseClient, http: HttpClient, tokenService: TokenService); /** * 选择人员 * @param option */ choosePeople(option: { includeClass?: boolean; includeHisClass?: boolean; count?: number; defaultContacts?: Array<any>; onlyStudent?: boolean; userTypes?: string; onOk?: (value: any) => void; }): void; /** * 查询部门树 * @param includeClass 是否包含班级 * @param includeHisClass 是否包含历史班级,只在includeClass=true时起作用 */ getDeptTree(includeClass: boolean, includeHisClass: boolean): Observable<Array<any>>; /** * 查询部门树->只选学生(系部+班级) * @param gradeId 年级id */ getDeptTreeOnlyStu(gradeId: string, includeClass: boolean, includeHisClass: boolean): Observable<Array<any>>; /** * 查询人员列表 * @param pageNum 当前页面 * @param pageSize 每页条数 * @param realName 姓名 * @param deptId 部门id * @param userTypes 用户类型1,2,3,4逗号拼接:查询普通部门的用户(不包括学生)传“1,4”;查询学生用户传“2,3”;查询所有用户不传 */ getBaseUser(pageNum: number, pageSize: number, realName: string, deptId: string, userTypes: string): Observable<Array<any>>; /** * 查询人员信息 * @param userIds[] 用户id数组,["aaa","bbb","ccc"] */ getUserByUserIds(userIds: any): Observable<Array<any>>; /** * 查询年级 */ getGrade(): Observable<Array<any>>; }