Skip to content

Commit

Permalink
Merge pull request #4399 from mikhailprivalov/chambers-v2.6.1
Browse files Browse the repository at this point in the history
Chambers v2.6.1
  • Loading branch information
urchinpro authored Oct 17, 2024
2 parents 21ac3c3 + 2e9bfed commit 0fa0a75
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions l2-frontend/src/pages/ManageChambers/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@
<div>
Койки
(Кол-во: {{ bedInformationCounter.bed }},
Занятых: {{ bedInformationCounter.occupied }},
М: {{ bedInformationCounter.man }},
Ж: {{ bedInformationCounter.women }})
Занято: {{ bedInformationCounter.occupied }},
М-{{ bedInformationCounter.man }},
Ж-{{ bedInformationCounter.women }},
О-{{ bedInformationCounter.waiting }})
</div>
<div class="filter-width">
<Treeselect
Expand Down Expand Up @@ -385,6 +386,7 @@ const bedInformationCounter = computed(() => {
let women = 0;
let man = 0;
let occupied = 0;
let waiting = 0;
let bed = 0;
for (let i = 0; i < chambers.value.length; i++) {
for (let j = 0; j < chambers.value[i].beds.length; j++) {
Expand All @@ -400,10 +402,13 @@ const bedInformationCounter = computed(() => {
}
}
}
waiting = withOutBeds.value.length;
return {
women,
man,
occupied,
waiting,
bed,
};
});
Expand Down

0 comments on commit 0fa0a75

Please sign in to comment.