diff --git a/app/Views/v2/dialog_sample.php b/app/Views/v2/dialog_sample.php index 160fae4..e18a0b2 100644 --- a/app/Views/v2/dialog_sample.php +++ b/app/Views/v2/dialog_sample.php @@ -3,6 +3,13 @@ diff --git a/app/Views/v2/index.php b/app/Views/v2/index.php index 9f0e51b..84d164b 100644 --- a/app/Views/v2/index.php +++ b/app/Views/v2/index.php @@ -209,7 +209,10 @@ return data; }, - // sample dialog + /* + sample dialog + */ + item : [], isDialogSampleOpen : false, openSampleDialog (accessnumber) { @@ -220,6 +223,14 @@ this.isDialogSampleOpen = false; }, + fetchItem(accessnumber){ + this.item = []; + fetch(`${BASEURL}/api/request/${accessnumber}`, { method: 'GET', headers: {'Content-Type': 'application/json'}}) + .then(res => res.json()).then(data => { + this.item = data.data ?? []; + }); + }, + })); });