[WIP] Добавил отображение рабочего времени, фикс create and update
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user