为了账号安全,请及时绑定邮箱和手机立即绑定

Modal确认回调后不自动消失

Modal确认回调后不自动消失

隔江千里 2018-11-13 21:20:56
<nz-modal [(nzVisible)]="isShow" [nzTitle]="title" [nzContent]="modalContent" [nzFooter]="modalFooter" (nzOnCancel)="handleCancel()"><ng-template #modalContent><div  class="content"></div></ng-template><ng-template #modalFooter><button nz-button [nzType]="'primary'" (click)="handleOk()" [nzLoading]="isLoading">确定</button> <button nz-button [nzType]="'default'" (click)="handleCancel()">取消</button></ng-template></nz-modal>ts里得内容:public isShow = false;public isLoading = false;// 取消public handleCancel() {this.isShow = false;}// 确定public handleOk() {this.isLoading = true;this.param['name'] = this.inputValuethis.roleManagementService.addModifyDepartment(this.param).subscribe((res: any) => {  if (res.status === 0) {      console.log(res.data)   } else {       console.log(res.data)   }  this.isLoading = false;  this.isShow = false; });}
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 1142 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号