From 4592b8abc17151e00facc83e9d6977476cfb3422 Mon Sep 17 00:00:00 2001 From: "adel.ka" Date: Mon, 1 Dec 2025 17:06:33 +0300 Subject: [PATCH] SUPPORT-9634: fix process --- .../component/button/UserManagementService.ts | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/frontend/src/ts/account_applications/component/button/UserManagementService.ts b/frontend/src/ts/account_applications/component/button/UserManagementService.ts index 2ae9e95f..2100d095 100644 --- a/frontend/src/ts/account_applications/component/button/UserManagementService.ts +++ b/frontend/src/ts/account_applications/component/button/UserManagementService.ts @@ -49,6 +49,7 @@ export class UserManagementService extends Behavior { private rpc: UserApplicationListRpcService; private authService: AuthorizationService; private statusUpdateService: StatusUpdateService; + private formJson; initialize() { super.initialize(); @@ -65,20 +66,19 @@ export class UserManagementService extends Behavior { return; } const kind = this.applicationKind.getValue(); - const formJson = this.collectData(); - const appNumber = formJson['appNumber']; - const accountId = formJson['accountId']; - const personId = formJson['idPerson']; - const login = formJson['login']; + const appNumber = this.formJson['appNumber']; + const accountId = this.formJson['accountId']; + const personId = this.formJson['idPerson']; + const login = this.formJson['login']; let request; switch (kind) { case ApplicationKind.CREATE_USER: let createData = new CreateAccountData(); - createData.account = this.populateDto(new Account(), formJson); - createData.person = this.populateDto(new Person(), formJson); + createData.account = this.populateDto(new Account(), this.formJson); + createData.person = this.populateDto(new Person(), this.formJson); let roles = new Roles(); - roles.add = formJson['rolesList'].map(id => { + roles.add = this.formJson['rolesList'].map(id => { let role = new Role(); role.id = id; return role; @@ -93,8 +93,8 @@ export class UserManagementService extends Behavior { let editPersonData = new EditPersonData(); editPersonData.accountId = accountId; editPersonData.personId = personId; - editPersonData.organizationId = formJson['idDomain']; - editPersonData.personData = this.populateDto(new Person(), formJson); + editPersonData.organizationId = this.formJson['idDomain']; + editPersonData.personData = this.populateDto(new Person(), this.formJson); request = new ProcessRequest(); request.data = editPersonData; request.processKey = ProcessKey.EDIT_PERSON; @@ -102,7 +102,7 @@ export class UserManagementService extends Behavior { break; case ApplicationKind.EDIT_USER_ACCOUNT: let editAccountData = new EditAccountData(); - let account = this.populateDto(new Account(), formJson); + let account = this.populateDto(new Account(), this.formJson); editAccountData.account = account; editAccountData.accountId = accountId; request = new ProcessRequest(); @@ -112,7 +112,7 @@ export class UserManagementService extends Behavior { break; case ApplicationKind.EDIT_USER_ROLES: let editRolesAccount = new EditRolesAccount(); - let rolesList = formJson['rolesList']; + let rolesList = this.formJson['rolesList']; editRolesAccount.accountId = accountId; let roles2 = new Roles(); roles2.add = rolesList.map(id => { @@ -144,7 +144,7 @@ export class UserManagementService extends Behavior { break; case ApplicationKind.UNBLOCK_USER: let unblockingData = new UnblockingData(); - let blockedRegion = formJson['blockedRegion']; + let blockedRegion = this.formJson['blockedRegion']; switch (blockedRegion) { case BlockedRegion.ACCOUNT: @@ -187,6 +187,7 @@ export class UserManagementService extends Behavior { @Visible() public allowSendToErvu(): void { + this.formJson = this.collectData(); this.sendToErvu = true; }