This commit is contained in:
nasir@endelospay.com
2024-06-12 04:10:13 +05:00
parent 526b3c7763
commit 08f559ffed
2 changed files with 7 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ const defaultItem = ref({
const editedItem = ref({ ...defaultItem.value });
const editedIndex = ref(-1);
const patientMeetingList = ref([]);
const patientLabList = ref([]);
const isLoading = ref(false);
// Status options
@@ -70,21 +70,21 @@ const formatDate = (date) => {
return `${formattedDate} `;
};
// Fetch and process the patient meeting list
const getPatientMeetingList = async () => {
const getPatientLabList = async () => {
//store.dispatch('updateIsLoading', true);
//await store.dispatch('patientMeetingList', { id: route.params.id });
// store.dispatch('updateIsLoading', false);
let list = props.userData.labkit;
patientMeetingList.value = list
patientLabList.value = list
console.log(list);
};
// Lifecycle hooks
onBeforeMount(() => {});
onMounted(async () => {
await getPatientMeetingList();
await getPatientLabList();
});
onUnmounted(() => {});
@@ -130,7 +130,7 @@ const getStatusColor = (status) => {
<template>
<v-row>
<v-col cols="12" md="12">
<v-col cols="12" md="12" >
<v-card title="Lab Kits">
<v-card-text>
<v-row>
@@ -150,7 +150,7 @@ const getStatusColor = (status) => {
</v-card-text>
<v-data-table
:headers="headers"
:items="patientMeetingList"
:items="patientLabList"
:search="search"
:items-per-page="5"
class="text-no-wrap"