diff --git a/src/pages/newMedicalCard/components/MedicalProtocolsInspection.vue b/src/pages/newMedicalCard/components/MedicalProtocolsInspection.vue index 1dfada1..f24b1d1 100644 --- a/src/pages/newMedicalCard/components/MedicalProtocolsInspection.vue +++ b/src/pages/newMedicalCard/components/MedicalProtocolsInspection.vue @@ -57,7 +57,7 @@ export default { { id: 2, change: false, - name: "Алергологический анамнез", + name: "Аллергологический анамнез", tags: [], }, { diff --git a/src/pages/newMedicalCard/components/MedicalProtocolsList.vue b/src/pages/newMedicalCard/components/MedicalProtocolsList.vue index 43cd14c..aff2c9e 100644 --- a/src/pages/newMedicalCard/components/MedicalProtocolsList.vue +++ b/src/pages/newMedicalCard/components/MedicalProtocolsList.vue @@ -27,7 +27,7 @@ @click="invertSorting" ) .flex.py-4.w-full.color-grey.text-base.justify-center - span.opacity-50 {{ `Осмотров: ${protocolsData?.length}` }} + span.opacity-50 {{ `Осмотров: ${sortingProtocols?.length}` }} .flex.flex-col.gap-y-2 medical-protocol-card( v-for="protocol in sortingProtocols", :key="protocol.id", @@ -91,8 +91,8 @@ export default { .map((elem) => { return elem?.start.slice(0, 4); }) - .sort((first, second) => first - second); - return [...new Set(years)]; + .sort((first, second) => second - first); + return this.sorting ? [...new Set(years.reverse())] : [...new Set(years)]; }, sortingProtocols() { if (!this.protocolsData) return [];