This commit is contained in:
Inshal
2024-06-11 00:05:46 +05:00
parent 3f33811956
commit 84a0dc7186
9 changed files with 1738 additions and 7 deletions

View File

@@ -47,13 +47,9 @@ const headers = [
{ key: 'start_time', title: 'Start Time' },
{ key: 'end_time', title: 'End Time' },
{ key: 'duration', title: 'Duration' },
// { title: 'ACTIONS', key: 'actions' },
{ title: 'Actions', key: 'profile' }, // Add this line
];
function totalCallDuration(start_time, end_time) {
const startMoment = moment(start_time);
const endMoment = moment(end_time);
@@ -115,6 +111,12 @@ const historyDetail = (item, value) => {
if(value == 'prescription')
router.push('/admin/patient/meeting/prescription/' + route.params.id + '/' + item.id);
}
const viewProfile = (item) => {
console.log('Viewing profile for', item);
// Navigate to the profile page (modify the route as per your application structure)
router.push('/admin/providers/patientprofile/' + item.patient_id);
}
const menusVariant = [
'primary'
];
@@ -162,6 +164,10 @@ const options = [
>
<template #item.id="{ item }">{{ item.id }}</template>
<template #item.duration="{ item }">{{ item.duration }}</template>
<!-- Profile Button -->
<template #item.profile="{ item }">
<v-btn class="text-capitalize text-white" @click="viewProfile(item)">Profile</v-btn>
</template>
<!-- Actions -->
<template #item.actions="{ item }">
<div class="demo-space-x">