|
@@ -468,6 +468,38 @@ export class UsersManagementComponent implements OnInit {
|
468
|
468
|
this.delModal = false;
|
469
|
469
|
}
|
470
|
470
|
|
|
471
|
+ // ==================重置密码start====================
|
|
472
|
+ // 重置密码
|
|
473
|
+ resetModal: boolean = false; //删除模态框
|
|
474
|
+ resetPwd(data) {
|
|
475
|
+ this.coopId = data.id;
|
|
476
|
+ this.resetModal = true;
|
|
477
|
+ }
|
|
478
|
+ // 确认重置密码
|
|
479
|
+ confirmReset() {
|
|
480
|
+ this.btnLoading = true;
|
|
481
|
+ this.mainService
|
|
482
|
+ .resetpwd(this.coopId)
|
|
483
|
+ .subscribe((data) => {
|
|
484
|
+ this.btnLoading = false;
|
|
485
|
+ this.hideResetModal();
|
|
486
|
+ if (data["status"] == 200) {
|
|
487
|
+ this.showPromptModal("重置密码", true, "");
|
|
488
|
+ } else {
|
|
489
|
+ this.showPromptModal("重置密码", false, data["msg"]);
|
|
490
|
+ }
|
|
491
|
+ });
|
|
492
|
+ }
|
|
493
|
+ // 取消
|
|
494
|
+ cancelReset() {
|
|
495
|
+ this.resetModal = false;
|
|
496
|
+ }
|
|
497
|
+ // 关闭删除模态框
|
|
498
|
+ hideResetModal() {
|
|
499
|
+ this.resetModal = false;
|
|
500
|
+ }
|
|
501
|
+ // ==================重置密码end====================
|
|
502
|
+
|
471
|
503
|
// 展示信息提示框(con:提示信息,success:操作是否成功,promptInfo:操作结果提示信息)
|
472
|
504
|
showPromptModal(con, success, promptInfo?) {
|
473
|
505
|
this.promptModalShow = false;
|