fix
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user