|
|
|
@ -219,7 +219,7 @@ export class UserComponent implements OnInit {
|
|
|
|
|
resolve(data) |
|
|
|
|
this.message.create('success', '创建成功!'); |
|
|
|
|
this.SkipCount = 0 |
|
|
|
|
this.getAllUsers()
|
|
|
|
|
this.getAllUsers() |
|
|
|
|
this.notification.blank( |
|
|
|
|
'用户' + data.result.userName + '创建成功', |
|
|
|
|
'当前密码为:' + data.result.newPassword, |
|
|
|
@ -266,7 +266,8 @@ export class UserComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//重置密码
|
|
|
|
|
newPassword: string |
|
|
|
|
isShowNewPassword: boolean |
|
|
|
|
newPasswordObj: any |
|
|
|
|
resetPassword(item) { |
|
|
|
|
// console.log(item)
|
|
|
|
|
this.modal.confirm({ |
|
|
|
@ -278,13 +279,13 @@ export class UserComponent implements OnInit {
|
|
|
|
|
userId: item.id |
|
|
|
|
} |
|
|
|
|
this.http.post('/api/services/app/User/ResetPassword', body).subscribe((data: any) => { |
|
|
|
|
// this.message.create('success', '重置成功!');
|
|
|
|
|
this.newPassword = data.result.newPassword |
|
|
|
|
this.isShowNewPassword = true |
|
|
|
|
let obj = { |
|
|
|
|
userName: item.userName, |
|
|
|
|
newPassword: data.result.newPassword |
|
|
|
|
} |
|
|
|
|
this.openNewPassword(obj) |
|
|
|
|
this.newPasswordObj = obj |
|
|
|
|
// this.openNewPassword(obj)
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
nzCancelText: '取消', |
|
|
|
@ -293,7 +294,9 @@ export class UserComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
close() { |
|
|
|
|
this.isShowNewPassword = false |
|
|
|
|
} |
|
|
|
|
openNewPassword(data) { |
|
|
|
|
this.notificationService.template(this.newPasswordtemplate, { nzData: data, nzDuration: 0, nzPlacement: 'top', nzClass: 'resetPassword' }); |
|
|
|
|
} |
|
|
|
@ -326,7 +329,7 @@ export class UserComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
copy() { |
|
|
|
|
this.handleCopyValue(this.newPassword) |
|
|
|
|
this.handleCopyValue(this.newPasswordObj.newPassword) |
|
|
|
|
.then(() => { |
|
|
|
|
this.message.create('success', '复制成功!'); |
|
|
|
|
}) |
|
|
|
|