Compare commits

..

No commits in common. "02f5a51fa704a367c369032c2e688253f6a16f55" and "83459a1ea8287eeacd04db597922079e8d561e6e" have entirely different histories.

5 changed files with 48 additions and 190 deletions

View File

@ -1,131 +1,55 @@
<script setup> <script setup>
import AnalyticsAward from '@/views/dashboards/analytics/AnalyticsAward.vue' import LogisticsCardStatistics from '@/views/apps/logistics/LogisticsCardStatistics.vue'
import AnalyticsDepositWithdraw from '@/views/dashboards/analytics/AnalyticsDepositWithdraw.vue' import LogisticsDeliveryExpectations from '@/views/apps/logistics/LogisticsDeliveryExpectations.vue'
import AnalyticsPerformance from '@/views/dashboards/analytics/AnalyticsPerformance.vue' import LogisticsDeliveryPerformance from '@/views/apps/logistics/LogisticsDeliveryPerformance.vue'
import AnalyticsSalesByCountries from '@/views/dashboards/analytics/AnalyticsSalesByCountries.vue' import LogisticsOrderByCountries from '@/views/apps/logistics/LogisticsOrderByCountries.vue'
import AnalyticsSessionBarCharts from '@/views/dashboards/analytics/AnalyticsSessionsBarCharts.vue' import LogisticsOverviewTable from '@/views/apps/logistics/LogisticsOverviewTable.vue'
import AnalyticsTotalEarning from '@/views/dashboards/analytics/AnalyticsTotalEarning.vue' import LogisticsShipmentStatistics from '@/views/apps/logistics/LogisticsShipmentStatistics.vue'
import AnalyticsTotalProfit from '@/views/dashboards/analytics/AnalyticsTotalProfit.vue' import LogisticsVehicleOverview from '@/views/apps/logistics/LogisticsVehicleOverview.vue'
import AnalyticsTransactions from '@/views/dashboards/analytics/AnalyticsTransactions.vue'
import AnalyticsUserTable from '@/views/dashboards/analytics/AnalyticsUserTable.vue'
import AnalyticsWeeklyOverview from '@/views/dashboards/analytics/AnalyticsWeeklyOverview.vue'
const totalProfit = {
title: 'Total Profit',
color: 'secondary',
icon: 'ri-pie-chart-2-line',
stats: '$25.6k',
change: 42,
subtitle: 'Weekly Project',
}
const newProject = {
title: 'New Project',
color: 'primary',
icon: 'ri-file-word-2-line',
stats: '862',
change: -18,
subtitle: 'Yearly Project',
}
</script> </script>
<template> <template>
<VRow class="match-height"> <VRow class="match-height">
<VCol cols="12">
<LogisticsCardStatistics />
</VCol>
<VCol <VCol
cols="12" cols="12"
md="4" md="6"
> >
<AnalyticsAward /> <LogisticsVehicleOverview />
</VCol> </VCol>
<VCol <VCol
cols="12" cols="12"
md="8" md="6"
> >
<AnalyticsTransactions /> <LogisticsShipmentStatistics />
</VCol>
<VCol
cols="12"
md="4"
sm="6"
>
<AnalyticsWeeklyOverview />
</VCol>
<VCol
cols="12"
md="4"
sm="6"
>
<AnalyticsTotalEarning />
</VCol> </VCol>
<VCol <VCol
cols="12" cols="12"
md="4" md="4"
> >
<VRow class="match-height"> <LogisticsDeliveryPerformance />
<VCol
cols="12"
sm="6"
>
<AnalyticsTotalProfit />
</VCol>
<VCol
cols="12"
sm="6"
>
<CardStatisticsVertical v-bind="totalProfit" />
</VCol>
<VCol
cols="12"
sm="6"
>
<CardStatisticsVertical v-bind="newProject" />
</VCol>
<VCol
cols="12"
sm="6"
>
<AnalyticsSessionBarCharts />
</VCol>
</VRow>
</VCol> </VCol>
<VCol <VCol
cols="12" cols="12"
md="4" md="4"
> >
<AnalyticsPerformance /> <LogisticsDeliveryExpectations />
</VCol>
<VCol
cols="12"
md="8"
>
<AnalyticsDepositWithdraw />
</VCol> </VCol>
<VCol <VCol
cols="12" cols="12"
md="4" md="4"
> >
<AnalyticsSalesByCountries /> <LogisticsOrderByCountries />
</VCol> </VCol>
<VCol <VCol cols="12">
cols="12" <LogisticsOverviewTable />
md="8"
>
<AnalyticsUserTable />
</VCol> </VCol>
</VRow> </VRow>
</template> </template>
<style lang="scss">
@use "@core-scss/template/libs/apex-chart.scss";
</style>

View File

@ -58,18 +58,7 @@ const formatDateDate = (date) => {
}; };
return messageDate.toLocaleDateString('en-US', options).replace(/\//g, '-'); return messageDate.toLocaleDateString('en-US', options).replace(/\//g, '-');
}; };
const breadcrums = [
{
title: 'Meeting',
disabled: false,
to: '/admin/patient/meetings/'+patientId,
},
{
title: 'Notes',
disabled: false,
}
];
const downloadFile = (fileUrl) => { const downloadFile = (fileUrl) => {
const link = document.createElement('a'); const link = document.createElement('a');
link.href = fileUrl; link.href = fileUrl;
@ -81,70 +70,32 @@ const downloadFile = (fileUrl) => {
</script> </script>
<template> <template>
<v-breadcrumbs :items="breadcrums" class="text-primary pt-0 pb-0 mb-5"> <VCard title="Notes">
<template v-slot:divider style="padding-top:0px; padding-bottom:0px"> <VList class="pb-0" lines="two" v-if="notes.length > 0">
>
</template>
</v-breadcrumbs>
<VCard title="Notes">
<VCardText>
<VTimeline
side="end"
align="start"
line-inset="8"
truncate-line="both"
density="compact"
>
<!-- SECTION Timeline Item: Flight -->
<template v-for="(p_note, index) in notes" :key="index"> <template v-for="(p_note, index) in notes" :key="index">
<VTimelineItem <VListItem class="pb-0">
dot-color="primary" <VListItemTitle>
size="x-small" <span class="pb-0">{{ p_note.note }}</span>
> <span v-if="p_note.file_url" style="font-size: 12px;float: right;">
<!-- 👉 Header --> <a type="button" @click="downloadFile(p_note.file_url)">
<div class="d-flex justify-space-between align-center gap-2 flex-wrap"> <VIcon>ri-file-download-line</VIcon>
<span class="app-timeline-title"> </a>
{{p_note.note}} </span>
</span> <p class="text-start fs-5 mb-0 pb-0 text-grey">
<span class="app-timeline-meta">{{ p_note.date }}</span> <small>{{ p_note.doctor }}</small>
<!-- <span></span> --> </p>
</div> <p class="text-end fs-5 mb-0 pb-0 text-grey"><small>{{ p_note.date }}</small></p>
</VListItemTitle>
<!-- 👉 Content --> </VListItem>
<div class="app-timeline-text mb-1"> <VDivider v-if="index !== notes.length - 1" />
<span>{{ p_note.doctor }}</span>
<VIcon
size="20"
icon="tabler-arrow-right"
class="mx-2 flip-in-rtl"
/>
<!-- <span>Heathrow Airport, London</span> -->
</div>
<!-- <p class="app-timeline-meta mb-2">
6:30 AM
</p> -->
<!-- <div class="app-timeline-text d-flex align-center gap-2">
<div>
<VImg
:src="pdf"
:width="22"
/>
</div>
<span>booking-card.pdf</span>
</div> -->
</VTimelineItem>
</template> </template>
</VList>
<template v-else>
<!-- !SECTION --> <VCard>
<VAlert border="start" color="#003152" variant="tonal">
<!-- !SECTION --> <div class="text-center">No data found</div>
</VTimeline> </VAlert>
</VCardText> </VCard>
</VCard> </template>
</VCard>
</template> </template>

View File

@ -136,25 +136,8 @@ const close = () => {
prescriptionIndex.value = -1 prescriptionIndex.value = -1
prescriptionItem.value = { ...defaultItem.value } prescriptionItem.value = { ...defaultItem.value }
} }
const breadcrums = [
{
title: 'Meeting',
disabled: false,
to: '/admin/patient/meetings/'+patientId,
},
{
title: 'Prescription',
disabled: false,
}
];
</script> </script>
<template> <template>
<v-breadcrumbs :items="breadcrums" class="text-primary pt-0 pb-0 mb-5">
<template v-slot:divider style="padding-top:0px; padding-bottom:0px">
>
</template>
</v-breadcrumbs>
<v-row> <v-row>
<v-col cols="12" md="12" v-if="itemsPrescriptions"> <v-col cols="12" md="12" v-if="itemsPrescriptions">
<v-card title="Prescriptions" v-if="prescription"> <v-card title="Prescriptions" v-if="prescription">

View File

@ -162,7 +162,7 @@ const options = [
> >
<template #activator="{ props }"> <template #activator="{ props }">
<i class="ri-more-2-line cursor-pointer" style="font-size: 32px;" v-bind="props"></i> <i class="ri-more-2-line cursor-pointer" v-bind="props"></i>
</template> </template>

View File

@ -36,7 +36,7 @@ export const routes = [
{ {
path: '/admin/dashboard', path: '/admin/dashboard',
name: 'admin-dashboard', name: 'admin-dashboard',
component: () => import('@/pages/dashboards/analytics.vue'), component: () => import('@/pages/dashboards/crm.vue'),
}, },
{ {
path: '/admin/patients', path: '/admin/patients',