Merge branch 'dev' of ssh://git.codelfi.com:2202/TelemedPro/hgh_admin into dev

This commit is contained in:
Inshal 2024-06-12 03:14:18 +05:00
commit 33b817aabe
8 changed files with 46 additions and 34 deletions

View File

@ -22,7 +22,7 @@ const hideTitleAndBadge = configStore.isVerticalNavMini()
<template> <template>
<li <li
v-if="can(item.action, item.subject)" v-if="can(item.action, item.subject)"
class="nav-link 22" class="nav-link"
:class="{ disabled: item.disable }" :class="{ disabled: item.disable }"
> >
<Component <Component

View File

@ -47,7 +47,7 @@ export default [
}, },
{ {
title: 'Medicines', title: 'Prodcuts',
icon: { icon: 'ri-medicine-bottle-line' }, icon: { icon: 'ri-medicine-bottle-line' },
to: 'admin-medicines', to: 'admin-medicines',
}, },

View File

@ -74,10 +74,10 @@ const headers = [
title: 'Title', title: 'Title',
key: 'title', key: 'title',
}, },
{ // {
title: 'Slug', // title: 'Slug',
key: 'slug', // key: 'slug',
}, // },
{ {
title: 'Price', title: 'Price',
key: 'price', key: 'price',
@ -371,14 +371,14 @@ onMounted(() => {
<template> <template>
<v-row> <v-row>
<v-col cols="12" md="12" v-if="getmedicineList"> <v-col cols="12" md="12" v-if="getmedicineList">
<VCard title="Medicines"> <VCard title="Products">
<VCardText > <VCardText >
<VRow> <VRow>
<VCol cols="12" md="8" class="d-flex align-center"> <VCol cols="12" md="8" class="d-flex align-center">
<VBtn color="primary" prepend-icon="ri-add-line" @click="addDialog = true" style="display: none;"> <VBtn color="primary" prepend-icon="ri-add-line" @click="addDialog = true" style="display: none;">
New Medicine New Product
</VBtn> </VBtn>
</VCol> </VCol>
<VCol cols="12" md="4" class="d-flex justify-end"> <VCol cols="12" md="4" class="d-flex justify-end">

View File

@ -47,7 +47,7 @@ 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: 'actions' }, // { title: 'ACTIONS', key: 'actions' },
]; ];

View File

@ -1,4 +1,6 @@
<script setup> <script setup>
const profile = ref(0)
const color = ref(0)
const props = defineProps({ const props = defineProps({
userData: { userData: {
type: Object, type: Object,
@ -66,7 +68,18 @@ const resolveUserRoleVariant = role => {
const lines = props.userData.plans.list_two_title.split(',') const lines = props.userData.plans.list_two_title.split(',')
return lines.slice(0, 3) return lines.slice(0, 3)
}) })
onMounted(async () => {
profile.value = props.userData.patient.profile_completion_Percentage
if (profile.value <= 50) {
color.value="rgb(var(--v-theme-error))"
}
if (profile.value >= 80) {
color.value="rgb(var(--v-theme-success))"
}
if (profile.value > 50 && profile.value < 80) {
color.value="rgb(var(--v-theme-warning))"
}
});
</script> </script>
<template> <template>
@ -100,25 +113,29 @@ const resolveUserRoleVariant = role => {
</h5> </h5>
<!-- 👉 Role chip --> <!-- 👉 Role chip -->
<VChip
:color="resolveUserRoleVariant('Patient').color"
size="small" <div class="mt-3">
class="text-capitalize mt-4" <span class="font-weight-medium" style="float: left;">
> Profile Status:
Patient </span>
</VChip> <VProgressLinear
<VChip v-model="profile"
size="small" :color="color"
:color="resolveUserStatusVariant('active')" height="14"
class="text-capitalize mt-4" striped
> >
Active <template #default="{ value }">
</VChip> <span>{{ Math.ceil(value) }}%</span>
</template>
</VProgressLinear>
</div>
</VCardText> </VCardText>
<!-- 👉 Details --> <!-- 👉 Details -->
<VCardText class="pb-6"> <VCardText class="pb-6">
<h5 class="text-h5"> <h5 class="text-h5">
Details Details

View File

@ -95,20 +95,14 @@ const resolveUserRoleVariant = role => {
</h5> </h5>
<!-- 👉 Role chip --> <!-- 👉 Role chip -->
<VChip
:color="resolveUserRoleVariant('Provider').color" <!-- <VChip
size="small"
class="text-capitalize mt-4"
>
Provider
</VChip>
<VChip
:color="resolveUserStatusVariant(props.userData.telemed.status==1?'Active':'InActive')" :color="resolveUserStatusVariant(props.userData.telemed.status==1?'Active':'InActive')"
size="small" size="small"
class="text-capitalize mt-4" class="text-capitalize mt-4"
> >
{{ props.userData.telemed.status==1?"Active":'InActive' }} {{ props.userData.telemed.status==1?"Active":'InActive' }}
</VChip> </VChip>-->
</VCardText> </VCardText>

View File

@ -109,7 +109,7 @@ export const routes = [
component: () => import('@/pages/labs/labs-kit.vue'), component: () => import('@/pages/labs/labs-kit.vue'),
}, },
{ {
path: '/admin/medicines', path: '/admin/products',
name: 'admin-medicines', name: 'admin-medicines',
component: () => import('@/pages/medicines/medicines.vue'), component: () => import('@/pages/medicines/medicines.vue'),
}, },

View File

@ -157,6 +157,7 @@
"Fleet": "Fleet", "Fleet": "Fleet",
"Widgets": "Widgets", "Widgets": "Widgets",
"Patients": "Patients", "Patients": "Patients",
"Lab Kites": "Lab Kites",
"Providers": "Providers", "Providers": "Providers",
"Labs": "Labs", "Labs": "Labs",
"Medicines": "Medicines", "Medicines": "Medicines",