Browse Source

[新增]创建用户密码显示框

beijing
邵佳豪 2 years ago
parent
commit
5be9ffccdd
  1. 8
      src/app/system-management/user/user.component.ts

8
src/app/system-management/user/user.component.ts

@ -211,11 +211,17 @@ export class UserComponent implements OnInit {
phoneNumber: instance.validateForm.value.phonenum,
isActive: true
}
this.http.post(this.addUrl, body).subscribe(data => {
this.http.post(this.addUrl, body).subscribe((data: any) => {
resolve(data)
this.message.create('success', '创建成功!');
this.SkipCount = 0
this.getAllUsers()
// console.log('创建成功', data)
this.notification.blank(
'用户' + data.result.userName + '创建成功',
'当前密码为:' + data.result.password,
{ nzDuration: 0, nzPlacement: 'top', nzClass: 'resetPassword' }
);
return true
}, err => {
resolve(err)

Loading…
Cancel
Save