From e5d4f8ecea9d070721b27df757a01e64e49d53fa Mon Sep 17 00:00:00 2001 From: Luba Kaysina Date: Fri, 22 Jul 2022 14:14:09 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB?= =?UTF-8?q?=D0=B0=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20=D1=81=D0=BE=D0=B7?= =?UTF-8?q?=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=82=D0=B5=D1=80=D0=BC=D0=B8?= =?UTF-8?q?=D0=BD=D0=B0=D0=BB=D0=B0=20=D0=BD=D0=B0=20createTerminal,=20?= =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BB=D0=B0=20=D0=B8=D0=B7=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=86=D0=B5=D1=85=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/terminals/terminals.component.html | 8 ++++---- src/app/pages/terminals/terminals.component.ts | 8 ++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/app/pages/terminals/terminals.component.html b/src/app/pages/terminals/terminals.component.html index b634672..724adff 100644 --- a/src/app/pages/terminals/terminals.component.html +++ b/src/app/pages/terminals/terminals.component.html @@ -50,7 +50,7 @@ Введите ID точки заказа: - + + - +
diff --git a/src/app/pages/terminals/terminals.component.ts b/src/app/pages/terminals/terminals.component.ts index 39078d8..0914eb2 100644 --- a/src/app/pages/terminals/terminals.component.ts +++ b/src/app/pages/terminals/terminals.component.ts @@ -119,7 +119,7 @@ export class TerminalsComponent implements OnInit { "client_id": this.choose, "terminal_id": this.jsonRpcService.changeId, "address": address, - "areas": this.chooseArea, + "areas": [1,2,3], "public_id": public_id } }, RpcService.authService, false) @@ -174,10 +174,14 @@ export class TerminalsComponent implements OnInit { registerTerminal2() { let public_id = document.getElementsByTagName("input")[0].value + let address = document.getElementsByTagName("input")[1].value this.jsonRpcService.rpc2({ - method: 'registerTerminal', + method: 'createTerminal', params: { + "client_id": this.jsonRpcService.ClientChoose, "public_id": public_id, + "address": address, + "areas": [1,2,3] } }, RpcService.authService, false) .subscribe({