fix
This commit is contained in:
parent
8666ea2033
commit
e443b1c869
@ -4,8 +4,9 @@ import PatienTabOverview from '@/pages/patients/PatienTabOverview.vue'
|
|||||||
import PatientBioPanel from '@/pages/patients/PatientBioPanel.vue'
|
import PatientBioPanel from '@/pages/patients/PatientBioPanel.vue'
|
||||||
import PrescriptionPanel from '@/pages/patients/PrescriptionPanel.vue'
|
import PrescriptionPanel from '@/pages/patients/PrescriptionPanel.vue'
|
||||||
|
|
||||||
import UserTabNotifications from '@/views/apps/user/view/UserTabNotifications.vue'
|
// import UserTabNotifications from '@/views/apps/user/view/UserTabNotifications.vue'
|
||||||
import { useStore } from 'vuex'
|
import { useStore } from 'vuex'
|
||||||
|
import patientProfile from '../patients/patientprofile.vue'
|
||||||
const patientDtail = ref(null);
|
const patientDtail = ref(null);
|
||||||
|
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
@ -25,6 +26,10 @@ const tabs = [
|
|||||||
icon: 'ri-bookmark-line',
|
icon: 'ri-bookmark-line',
|
||||||
title: 'Prescriptions',
|
title: 'Prescriptions',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon: 'ri-survey-line',
|
||||||
|
title: 'Profile',
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// icon: 'ri-notification-4-line',
|
// icon: 'ri-notification-4-line',
|
||||||
// title: 'Notifications',
|
// title: 'Notifications',
|
||||||
@ -98,8 +103,12 @@ onMounted(async () => {
|
|||||||
<PrescriptionPanel :prescription-data="patientDtail"/>
|
<PrescriptionPanel :prescription-data="patientDtail"/>
|
||||||
</VWindowItem>
|
</VWindowItem>
|
||||||
|
|
||||||
<VWindowItem>
|
<!-- <VWindowItem>
|
||||||
<UserTabNotifications />
|
<UserTabNotifications />
|
||||||
|
</VWindowItem> -->
|
||||||
|
|
||||||
|
<VWindowItem>
|
||||||
|
<patientProfile :patient_id="route.params.id"/>
|
||||||
</VWindowItem>
|
</VWindowItem>
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,9 +17,15 @@ const dob = ref(null);
|
|||||||
const agePatient = ref(null);
|
const agePatient = ref(null);
|
||||||
const isMobile = ref(window.innerWidth <= 768);
|
const isMobile = ref(window.innerWidth <= 768);
|
||||||
const patientId = route.params.patient_id
|
const patientId = route.params.patient_id
|
||||||
|
const props = defineProps({
|
||||||
|
patient_id: {
|
||||||
|
type: Object,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
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) {
|
||||||
@ -28,8 +34,8 @@ onMounted(async () => {
|
|||||||
if (callDiv)
|
if (callDiv)
|
||||||
callDiv.style.padding = '1.5rem';
|
callDiv.style.padding = '1.5rem';
|
||||||
store.dispatch('updateIsLoading', true)
|
store.dispatch('updateIsLoading', true)
|
||||||
await store.dispatch('patientDetial',{id:patientId})
|
await store.dispatch('patientDetial',{id:props.patient_id})
|
||||||
await store.dispatch('getAgentQuestionsAnswers',{patient_id:patientId})
|
await store.dispatch('getAgentQuestionsAnswers',{patient_id:props.patient_id})
|
||||||
username.value = store.getters.getPatientDetail.patient.first_name + ' ' + store.getters.getPatientDetail.patient.last_name;
|
username.value = store.getters.getPatientDetail.patient.first_name + ' ' + store.getters.getPatientDetail.patient.last_name;
|
||||||
email.value = store.getters.getPatientDetail.patient.email
|
email.value = store.getters.getPatientDetail.patient.email
|
||||||
phone.value = store.getters.getPatientDetail.patient.phone_no
|
phone.value = store.getters.getPatientDetail.patient.phone_no
|
||||||
@ -116,7 +122,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>
|
||||||
@ -134,7 +140,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>
|
||||||
@ -153,7 +159,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="">
|
||||||
|
@ -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">
|
||||||
|
@ -138,11 +138,11 @@ export const routes = [
|
|||||||
name: 'admin-provider-profile',
|
name: 'admin-provider-profile',
|
||||||
component: () => import('@/pages/providers/provider-profile.vue'),
|
component: () => import('@/pages/providers/provider-profile.vue'),
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
path: '/admin/providers/patientprofile/:patient_id',
|
// path: '/admin/providers/patientprofile/:patient_id',
|
||||||
name: 'admin-providers-patientprofile',
|
// name: 'admin-providers-patientprofile',
|
||||||
component: () => import('@/pages/patients/patientprofile.vue'),
|
// component: () => import('@/pages/patients/patientprofile.vue'),
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
path: '/apps/email/filter/:filter',
|
path: '/apps/email/filter/:filter',
|
||||||
name: 'apps-email-filter',
|
name: 'apps-email-filter',
|
||||||
|
Loading…
Reference in New Issue
Block a user