diff --git a/src/app/system-management/user/user.component.ts b/src/app/system-management/user/user.component.ts index ddaf885..8369a09 100644 --- a/src/app/system-management/user/user.component.ts +++ b/src/app/system-management/user/user.component.ts @@ -1,5 +1,6 @@ import { Component, OnInit, TemplateRef, ViewContainerRef } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; +import { NzFormatEmitEvent, NzTreeComponent, NzTreeNodeOptions } from 'ng-zorro-antd/tree'; import { NzModalService } from 'ng-zorro-antd/modal'; import { AdduserComponent } from './adduser/adduser.component'; import { NzMessageService } from 'ng-zorro-antd/message'; @@ -24,18 +25,22 @@ export class UserComponent implements OnInit { this.getAllRoles() this.getAllOrganization() } - - + nzSelectedKeys: any[] = [] + defaultExpandedKeys = []; + searchValue = ''; + nzExpandAll = false; + totalCount: string //获取所有用户 usersLIst: any = [] usersNum: string - + OrganizaiotnId getAllUsers() { let params = { Keyword: this.validateForm.value.search ? this.validateForm.value.search : '', SkipCount: String(this.SkipCount), - MaxResultCount: String(this.MaxResultCount) + MaxResultCount: String(this.MaxResultCount), + // OrganizaiotnId:this.OrganizaiotnId } this.http.get('/api/services/app/User/GetAll', { params: params @@ -99,7 +104,10 @@ export class UserComponent implements OnInit { } this.getAllUsers() } - + nzClick(event: NzFormatEmitEvent){ + console.log(event); + + } //新增用户 addUser(): void { const modal = this.modal.create({