prework x
This commit is contained in:
parent
c69043cfbf
commit
e8849e20d0
@ -3,6 +3,13 @@
|
||||
<div class="modal-box w-2/3 max-w-5xl">
|
||||
<p class='text-right'><button class="btn btn-xs btn-neutral" @click="closeSampleDialog()">X</button></p>
|
||||
|
||||
<div class="table">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Patient Name </td> <td x-text="':'+item.PatName"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</dialog>
|
||||
|
||||
@ -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 ?? [];
|
||||
});
|
||||
},
|
||||
|
||||
}));
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user