From e8849e20d07dff3774fb9cfadd1b595d7aec45d4 Mon Sep 17 00:00:00 2001
From: mahdahar <89adham@gmail.com>
Date: Mon, 1 Dec 2025 06:32:22 +0700
Subject: [PATCH] prework x
---
app/Views/v2/dialog_sample.php | 7 +++++++
app/Views/v2/index.php | 13 ++++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
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 ?? [];
+ });
+ },
+
}));
});