[WIP] Добавил отображение рабочего времени, фикс create and update

This commit is contained in:
megavrilinvv
2022-12-30 17:17:11 +03:00
parent c6d13dc26e
commit 76a6099fe7
3 changed files with 94 additions and 56 deletions

View File

@@ -29,7 +29,13 @@
.text.flex.items-center
.text.font-medium.text-base {{ dateString }}
.opacity-50.font-bold.text-xxs.ml-2(v-if="isCurrentMonth") Текущий
base-button.font-semibold(:size="40", @click="openForm") Замена смен
.flex.gap-x-4
base-button.font-semibold(
:size="40",
:style="{minWidth: '176px'}",
@click="changeShowTime"
) {{textButton}}
base-button.font-semibold(:size="40", @click="openForm") Замена смен
</template>
<script>
@@ -43,6 +49,8 @@ export default {
props: {
startMonth: Object,
timesShift: Object,
changeShowTime: Function,
showTime: Boolean,
},
data() {
return {
@@ -61,6 +69,9 @@ export default {
})
.join(" ");
},
textButton() {
return this.showTime ? "Скрыть время" : "Показать время";
},
},
methods: {
openForm() {