fengxiang
2018-07-05 1bf1750a2c2cafdbd7413fe18d16915a7f71ff52
设备保存bug修复
2 files modified
4 ■■■■ changed files
src/app/routes/devices/basic-info/device-edit/device-edit.component.html 2 ●●● patch | view | raw | blame | history
src/app/routes/devices/basic-info/device-edit/device-edit.component.ts 2 ●●● patch | view | raw | blame | history
src/app/routes/devices/basic-info/device-edit/device-edit.component.html
@@ -117,7 +117,7 @@
          </nz-select>
          &nbsp;
        <button nz-button type="button" (click)="close()">关闭</button>
        <button nz-button [nzType]="'primary'" [nzLoading]="isSaving">
        <button nz-button [nzType]="'primary'" (click)="save(null,validateForm.value,validateForm.valid)" [nzLoading]="isSaving">
          <span>
            保存
            <span *ngIf="isSaving">中</span>
src/app/routes/devices/basic-info/device-edit/device-edit.component.ts
@@ -115,7 +115,7 @@
     this.subject.destroy();
   }
   save($event, value, valid) {
    $event.preventDefault();
    const _prevent =  !!$event ? $event.preventDefault() : null ;
    if (valid) {
      this.isSaving = true;
      this.data = value;