xufenglei
2018-06-21 9cd223e02abde85ba740ae8117e02f254c329167
优化
3 files modified
12 ■■■■ changed files
src/app/routes/reports/demo/demo.component.ts 2 ●●● patch | view | raw | blame | history
src/app/routes/systems/account/account-edit/account-edit.component.html 2 ●●● patch | view | raw | blame | history
src/app/routes/systems/account/account-edit/account-edit.component.ts 8 ●●●●● patch | view | raw | blame | history
src/app/routes/reports/demo/demo.component.ts
@@ -168,7 +168,7 @@
          });
         break;
      case 1:
        this.areacodeService.getAreas(option.value).subscribe(
        this.areacodeService.getAreas(option.value,false).subscribe(
          (res: {label: string, value: string}[]) => {
            event.resolve(res);
          }); 
src/app/routes/systems/account/account-edit/account-edit.component.html
@@ -39,7 +39,7 @@
        </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>
src/app/routes/systems/account/account-edit/account-edit.component.ts
@@ -3,6 +3,8 @@
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',
@@ -35,6 +37,12 @@
      id: [account.id]
    });
    this.searchOptions = account.organization ? [account.organization] : [];
    $(document).keydown(function(event) {
      switch (event.keyCode) {
        case 13: return false;
      }
    });
  }
  save() {