fixes
This commit is contained in:
parent
49c1007bfa
commit
8611746758
@ -26,7 +26,7 @@ const tabs = [
|
||||
title: 'Prescriptions',
|
||||
},
|
||||
{
|
||||
icon: 'ri-notification-4-line',
|
||||
icon: 'ri-survey-line',
|
||||
title: 'Profile',
|
||||
},
|
||||
// {
|
||||
|
@ -16,16 +16,10 @@ const address1 = ref(null);
|
||||
const dob = ref(null);
|
||||
const agePatient = ref(null);
|
||||
const isMobile = ref(window.innerWidth <= 768);
|
||||
const patientId = route.params.patient_id
|
||||
const props = defineProps({
|
||||
patient_id: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
const patientId = route.params.id
|
||||
|
||||
onMounted(async () => {
|
||||
console.log('patient id',props.patient_id)
|
||||
// console.log('patient id',props.patient_id)
|
||||
const navbar = document.querySelector('.layout-navbar');
|
||||
const callDiv = document.querySelector('.layout-page-content');
|
||||
if (navbar) {
|
||||
@ -34,8 +28,8 @@ onMounted(async () => {
|
||||
if (callDiv)
|
||||
callDiv.style.padding = '1.5rem';
|
||||
store.dispatch('updateIsLoading', true)
|
||||
await store.dispatch('patientDetial',{id:props.patient_id})
|
||||
await store.dispatch('getAgentQuestionsAnswers',{patient_id:props.patient_id})
|
||||
await store.dispatch('patientDetial',{id:patientId})
|
||||
await store.dispatch('getAgentQuestionsAnswers',{patient_id:patientId})
|
||||
username.value = store.getters.getPatientDetail.patient.first_name + ' ' + store.getters.getPatientDetail.patient.last_name;
|
||||
email.value = store.getters.getPatientDetail.patient.email
|
||||
phone.value = store.getters.getPatientDetail.patient.phone_no
|
||||
|
Loading…
Reference in New Issue
Block a user