| | |
| | | }); |
| | | break; |
| | | case 1: |
| | | this.areacodeService.getAreas(option.value).subscribe( |
| | | this.areacodeService.getAreas(option.value,false).subscribe( |
| | | (res: {label: string, value: string}[]) => { |
| | | event.resolve(res); |
| | | }); |
| | |
| | | </div> |
| | | <div nz-form-control nz-col [nzSpan]="8" nzHasFeedback> |
| | | <nz-select style="width: 290px;" nzAllowClear [nzPlaceHolder]="'input search text'" [nzFilter]="false" nzShowSearch |
| | | formControlName="organizationId" (nzSearchChange)="searchChange($event)" [nzNotFoundContent]="'无法找到'" > |
| | | formControlName="organizationId" (nzSearchChange)="searchChange($event)" [nzNotFoundContent]="'无法找到'" required> |
| | | <nz-option *ngFor="let option of searchOptions" [nzLabel]="option['name']" [nzValue]="option['id']"> </nz-option> |
| | | </nz-select> |
| | | </div> |
| | |
| | | import {HttpClient} from '@angular/common/http'; |
| | | import {environment} from '../../../../../environments/environment'; |
| | | import {FormGroup, FormBuilder, FormControl, Validators} from '@angular/forms'; |
| | | import * as $ from 'jquery'; |
| | | |
| | | |
| | | @Component({ |
| | | selector: 'app-account-edit', |
| | |
| | | id: [account.id]
|
| | | }); |
| | | this.searchOptions = account.organization ? [account.organization] : []; |
| | | |
| | | $(document).keydown(function(event) { |
| | | switch (event.keyCode) { |
| | | case 13: return false; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | save() { |