Compare commits

..

3 Commits

Author SHA1 Message Date
Inshal
8611746758 fixes 2024-06-11 01:56:29 +05:00
Inshal
49c1007bfa Merge branch 'dev' of ssh://git.codelfi.com:2202/TelemedPro/hgh_admin into dev 2024-06-11 01:52:53 +05:00
Inshal
e443b1c869 fix 2024-06-11 01:48:23 +05:00
3 changed files with 5 additions and 16 deletions

View File

@ -26,7 +26,7 @@ const tabs = [
title: 'Prescriptions', title: 'Prescriptions',
}, },
{ {
icon: 'ri-notification-4-line', icon: 'ri-survey-line',
title: 'Profile', title: 'Profile',
}, },
// { // {

View File

@ -18,9 +18,8 @@ const agePatient = ref(null);
const isMobile = ref(window.innerWidth <= 768); const isMobile = ref(window.innerWidth <= 768);
const patientId = route.params.id const patientId = route.params.id
onMounted(async () => { onMounted(async () => {
// console.log('patient id',props.patient_id)
const navbar = document.querySelector('.layout-navbar'); const navbar = document.querySelector('.layout-navbar');
const callDiv = document.querySelector('.layout-page-content'); const callDiv = document.querySelector('.layout-page-content');
if (navbar) { if (navbar) {
@ -117,7 +116,7 @@ const calculateAge = (dateOfBirth) => {
<template> <template>
<v-row class='mb-2'> <v-row class='mb-2'>
<VCol cols="12" md="12" class="mb-4 " v-if="username || phone" style="font-size: 16px;"> <!-- <VCol cols="12" md="12" class="mb-4 " v-if="username || phone" style="font-size: 16px;">
<VCard> <VCard>
<VCardText> <VCardText>
<h3 class="mb-2"> {{ username }}</h3> <h3 class="mb-2"> {{ username }}</h3>
@ -135,7 +134,7 @@ const calculateAge = (dateOfBirth) => {
</div> </div>
<div class="mb-2"> <div class="mb-2">
<VTooltip location="left" activator="parent" transition="scroll-x-transition"> <VTooltip location="left" activator="parent" transition="scroll-x-transition">
Date of birth Date of Birth
</VTooltip> </VTooltip>
<VIcon icon="ri-calendar-line" size="20" class="me-2" />{{ dob }} <VIcon icon="ri-calendar-line" size="20" class="me-2" />{{ dob }}
</div> </div>
@ -154,7 +153,7 @@ const calculateAge = (dateOfBirth) => {
</div> </div>
</VCardText> </VCardText>
</VCard> </VCard>
</VCol> </VCol> -->
<v-col cols="12" md="12"> <v-col cols="12" md="12">
<VList class=""> <VList class="">
<VListItem class=""> <VListItem class="">

View File

@ -47,7 +47,6 @@ const headers = [
{ key: 'start_time', title: 'Start Time' }, { key: 'start_time', title: 'Start Time' },
{ key: 'end_time', title: 'End Time' }, { key: 'end_time', title: 'End Time' },
{ key: 'duration', title: 'Duration' }, { key: 'duration', title: 'Duration' },
{ title: 'Actions', key: 'profile' }, // Add this line
]; ];
function totalCallDuration(start_time, end_time) { function totalCallDuration(start_time, end_time) {
@ -111,11 +110,6 @@ const historyDetail = (item, value) => {
if(value == 'prescription') if(value == 'prescription')
router.push('/admin/patient/meeting/prescription/' + route.params.id + '/' + item.id); 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 = [ const menusVariant = [
'primary' 'primary'
@ -164,10 +158,6 @@ const options = [
> >
<template #item.id="{ item }">{{ item.id }}</template> <template #item.id="{ item }">{{ item.id }}</template>
<template #item.duration="{ item }">{{ item.duration }}</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 --> <!-- Actions -->
<template #item.actions="{ item }"> <template #item.actions="{ item }">
<div class="demo-space-x"> <div class="demo-space-x">