| | |
| | | <label>组织</label> |
| | | </div> |
| | | <div nz-form-control nz-col [nzSpan]="8" > |
| | | <!-- <input nz-input formControlName="organizationId" maxlength="20" placeholder="20字以内" /> --> |
| | | <nz-select style="width: 290px;" nzAllowClear [nzPlaceHolder]="'input search text'" [nzFilter]="true" nzShowSearch |
| | | <nz-select style="width: 290px;" nzAllowClear [nzPlaceHolder]="'input search text'" [nzFilter]="false" nzShowSearch |
| | | formControlName="organizationId" (nzSearchChange)="searchChange($event)" [nzNotFoundContent]="'无法找到'" > |
| | | <nz-option *ngFor="let option of searchOptions" [nzLabel]="option['name']" [nzValue]="option['id']"> </nz-option> |
| | | </nz-select> |
| | |
| | | expireTime: [this.account.expireTime], |
| | | id: [this.account.id]
|
| | | }); |
| | | this.searchOptions = this.account.organization ? [this.account.organization] : []; |
| | | } |
| | | |
| | | save() { |
| | |
| | | } |
| | | |
| | | searchChange(searchText) { |
| | | if (searchText) { |
| | | const query = encodeURI(searchText); |
| | | if (query) { |
| | | this.http.get(environment.SERVER_BASH_URL + '/organization/list/' + query).subscribe((res: any) => { |
| | | this.searchOptions = res.data; |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | } |