From ae758169516975eb9b7572841e450c3ed77bcb06 Mon Sep 17 00:00:00 2001 From: Sipachev Igor Date: Fri, 18 Mar 2022 14:25:36 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B8=D0=BD=D1=82=D0=B5?= =?UTF-8?q?=D0=B3=D1=80=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BB=20ria?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popup/src/classes/DTO/Registers.ts | 1 + popup/src/components/mocks/script.ts | 14 ++++++++++++++ popup/src/components/mocks/template.html | 20 ++++++++++---------- 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/popup/src/classes/DTO/Registers.ts b/popup/src/classes/DTO/Registers.ts index ed627b4..82fe35b 100644 --- a/popup/src/classes/DTO/Registers.ts +++ b/popup/src/classes/DTO/Registers.ts @@ -1,4 +1,5 @@ export class Registers { xtee_mta = '' + ria = '' xtee_pension = '' } diff --git a/popup/src/components/mocks/script.ts b/popup/src/components/mocks/script.ts index a607f45..4cfbe41 100644 --- a/popup/src/components/mocks/script.ts +++ b/popup/src/components/mocks/script.ts @@ -53,6 +53,20 @@ export default class Mocks extends Vue { }) } + onRiaChanged () { + if (this.register2Id.ria === 'undefined') { + return + } + httpClient.changeMockValueConfiguration({ + id: this.register2Id.ria, + value: this.registers.ria + }) + .then((data: any) => { + console.log('updateMock') + console.log(data) + }) + } + saveMocks () { const mockConfigurations: MockConfiguration[] = [] for (const serviceCode in this.registers) { diff --git a/popup/src/components/mocks/template.html b/popup/src/components/mocks/template.html index 29ddc6c..927bc29 100644 --- a/popup/src/components/mocks/template.html +++ b/popup/src/components/mocks/template.html @@ -1,14 +1,4 @@
- - - - - - - - - - +