| | |
| | | </nz-select> |
| | | |
| | | <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> |
| | |
| | | this.subject.destroy(); |
| | | } |
| | | save($event, value, valid) { |
| | | $event.preventDefault(); |
| | | const _prevent = !!$event ? $event.preventDefault() : null ; |
| | | if (valid) { |
| | | this.isSaving = true; |
| | | this.data = value; |