|
|
|
@ -150,6 +150,8 @@ export class EdituserComponent implements OnInit {
|
|
|
|
|
isLoading = false; |
|
|
|
|
//确定
|
|
|
|
|
async ok() { |
|
|
|
|
// console.log(this.validateForm);
|
|
|
|
|
// return;
|
|
|
|
|
this.isLoading = true; |
|
|
|
|
if (this.validateForm.valid) { |
|
|
|
|
return await new Promise((resolve) => { |
|
|
|
@ -170,12 +172,12 @@ export class EdituserComponent implements OnInit {
|
|
|
|
|
]; |
|
|
|
|
let body = { |
|
|
|
|
id: this.data.id, |
|
|
|
|
userName: this.validateForm.value.account, |
|
|
|
|
name: this.validateForm.value.name, |
|
|
|
|
organizationUnitId: this.validateForm.value.organization, |
|
|
|
|
userName: this.validateForm.controls.account.value, |
|
|
|
|
name: this.validateForm.controls.name.value, |
|
|
|
|
organizationUnitId: this.validateForm.controls.organization.value, |
|
|
|
|
roleNames: roleNames, |
|
|
|
|
phoneNumber: this.validateForm.value.phonenum, |
|
|
|
|
note: this.validateForm.value.note, |
|
|
|
|
phoneNumber: this.validateForm.controls.phonenum.value, |
|
|
|
|
note: this.validateForm.controls.note.value, |
|
|
|
|
isActive: true, |
|
|
|
|
}; |
|
|
|
|
this.http.put(this.editUrl, body).subscribe( |
|
|
|
|