[WIP] Fixed bugs
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
title="Пациенты на сегодня",
|
||||
:quantity="patientsData.length",
|
||||
:link="redirectCalendar",
|
||||
title-link="Календарь"
|
||||
title-link="В календарь"
|
||||
)
|
||||
.form-wrapper.flex.flex-col.overflow-y-auto(
|
||||
@scroll="scrollTo",
|
||||
@@ -19,7 +19,7 @@
|
||||
img.h-11.w-11.object-cover.rounded-full(:src="patient.avatar")
|
||||
.flex.flex-col.justify-center.gap-y-1
|
||||
.name.flex.relative {{trimName(patient.last_name, patient.first_name, patient.patronymic)}}
|
||||
.grey-color.text-smm {{patient.birthday}}
|
||||
.grey-color.text-smm {{trimBirthday(patient.birthday)}}
|
||||
.flex.flex-col.justify-center.w-full(:style="{width: '140px'}")
|
||||
.text-m.font-bold {{patient.time.from + " - " + patient.time.to}}
|
||||
.grey-color.font-medium.text-smm(
|
||||
@@ -62,6 +62,9 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
trimBirthday(birthday) {
|
||||
return moment(birthday, "DD MM YYYY").format("DD MMMM YYYY") + " г.";
|
||||
},
|
||||
trimName(last, first, patronymic) {
|
||||
let fullName = last + " " + first + " " + patronymic;
|
||||
if (fullName.length > 30) return fullName.slice(0, 30);
|
||||
@@ -140,7 +143,7 @@ export default {
|
||||
margin-right: 0px
|
||||
border-right: none
|
||||
&:last-child
|
||||
border-bottom: 1px solid var(--gray-scondary)
|
||||
border-bottom: 1px solid var(--gray-secondary)
|
||||
|
||||
.default-form
|
||||
margin-right: 0px
|
||||
@@ -155,7 +158,7 @@ export default {
|
||||
left: 0
|
||||
|
||||
.btn
|
||||
border: 1px solid var(--gray-scondary)
|
||||
border: 1px solid var(--gray-secondary)
|
||||
color: var(--font-grey-color)
|
||||
background: var(--bg-light-grey)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user