From 5be9ffccddc755c7a5ed51131dc297b87a41c373 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Thu, 12 Jan 2023 17:10:45 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E5=88=9B=E5=BB=BA=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=AF=86=E7=A0=81=E6=98=BE=E7=A4=BA=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/system-management/user/user.component.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/system-management/user/user.component.ts b/src/app/system-management/user/user.component.ts index 5f715e0..518a9ae 100644 --- a/src/app/system-management/user/user.component.ts +++ b/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)