fixes
This commit is contained in:
parent
05ca36f24e
commit
db2ab34cc2
@ -42,16 +42,17 @@ onMounted(async () => {
|
|||||||
store.dispatch('updateIsLoading', true)
|
store.dispatch('updateIsLoading', true)
|
||||||
await store.dispatch('patientList')
|
await store.dispatch('patientList')
|
||||||
// console.log('patientList',store.getters.getPatientList)
|
// console.log('patientList',store.getters.getPatientList)
|
||||||
patientList.value = store.getters.getPatientList
|
// patientList.value = store.getters.getPatientList
|
||||||
store.dispatch('updateIsLoading', false)
|
store.dispatch('updateIsLoading', false)
|
||||||
|
|
||||||
});
|
});
|
||||||
const getPatientList = computed(async () => {
|
const getPatientList = computed(async () => {
|
||||||
return patientList.value.map(history => ({
|
patientList.value = store.getters.getPatientList.map(history => ({
|
||||||
...history,
|
...history,
|
||||||
dob: changeFormat(history.dob),
|
dob: changeFormat(history.dob),
|
||||||
}));
|
}));
|
||||||
// return patientList.value
|
return patientList.value
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
onUnmounted(async () => {});
|
onUnmounted(async () => {});
|
||||||
@ -84,8 +85,9 @@ const headers = [
|
|||||||
key: 'email',
|
key: 'email',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Date Of Birth',
|
|
||||||
key: 'dob',
|
key: 'dob',
|
||||||
|
title: 'Date Of Birth'
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Phone',
|
title: 'Phone',
|
||||||
|
Loading…
Reference in New Issue
Block a user