From c02d7544f307f4399c49a086917cead26dd11d2f Mon Sep 17 00:00:00 2001 From: sindhu Date: Thu, 13 Mar 2025 10:18:44 +0700 Subject: [PATCH] step 17 : setting form TCP Server and TCP Client --- v1/js/settings.js | 29 ++++++++ v1/settings.html | 178 +++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 197 insertions(+), 10 deletions(-) diff --git a/v1/js/settings.js b/v1/js/settings.js index a7287c3..79e8c6b 100644 --- a/v1/js/settings.js +++ b/v1/js/settings.js @@ -9,6 +9,8 @@ document.addEventListener('alpine:init', () => { namaInterface: '', idInstrument: -1, namaInstrument: '', + // idJenis 2 ketambahan server + server: '', }, dataSetting: [ { @@ -104,6 +106,24 @@ document.addEventListener('alpine:init', () => { ], // 1. Inisialisasi End // 2. Fungsi Start + closeDialog() { + this.openJenis = false; + this.openInterface = false; + this.openInstrument = false; + this.selectedJenis = { + idJenis: -1, + namaJenis: 'Jenis' + }; + this.selectedInterface = { + idInterface: -1, + namaInterface: 'Interface' + }; + this.selectedInstrument = { + idInstrument: -1, + namaInstrument: 'Instrument' + } + this.showDialogAdd = false + }, onChangeJenis(item) { this.openJenis = false; this.selectedJenis = item; @@ -114,8 +134,17 @@ document.addEventListener('alpine:init', () => { namaInterface: '', idInstrument: -1, namaInstrument: '', + server: '', }; }, + onChangeInterface(item) { + this.openInterface = false; + this.selectedInterface = item; + }, + onChangeInstrument(item) { + this.openInstrument = false; + this.selectedInstrument = item; + }, // 2. Fungsi End })) }) \ No newline at end of file diff --git a/v1/settings.html b/v1/settings.html index 10249c5..f4c2b2a 100644 --- a/v1/settings.html +++ b/v1/settings.html @@ -169,13 +169,11 @@
-


+ -
-
+ + + +
@@ -232,8 +390,8 @@
- +