step 17 : setting form TCP Server and TCP Client

This commit is contained in:
sindhu
2025-03-13 10:18:44 +07:00
parent 6ea2c3356c
commit c02d7544f3
2 changed files with 197 additions and 10 deletions

View File

@@ -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
}))
})