[WIP] Фикс стилей
This commit is contained in:
@@ -237,5 +237,4 @@ export default {
|
|||||||
|
|
||||||
.schedule-wrapper
|
.schedule-wrapper
|
||||||
background-color: var(--default-white)
|
background-color: var(--default-white)
|
||||||
height: calc(100vh - 64px)
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
.flex.flex-col.gap-y-6
|
.flex.flex-col.gap-y-6
|
||||||
.flex.flex-col.gap-y-2
|
.flex.flex-col.gap-y-2
|
||||||
span.text-smm.font-semibold Дата
|
span.text-smm.font-semibold Дата
|
||||||
base-input-date.input-date
|
base-input-date
|
||||||
.flex.flex-col(class="gap-y-1.5")
|
.flex.flex-col(class="gap-y-1.5")
|
||||||
span.text-smm.font-semibold Текущий сотрудник
|
span.text-smm.font-semibold Текущий сотрудник
|
||||||
base-custom-select.h-10(v-model="currentEmployee")
|
base-custom-select.h-10(v-model="currentEmployee")
|
||||||
@@ -58,7 +58,4 @@ export default {
|
|||||||
height: 40px
|
height: 40px
|
||||||
border: 1.5px solid var(--border-light-grey-color)
|
border: 1.5px solid var(--border-light-grey-color)
|
||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
|
|
||||||
.input-date
|
|
||||||
border: 1.5px solid var(--border-light-grey-color)
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ export default {
|
|||||||
height: 224px
|
height: 224px
|
||||||
border: 1.5px solid var(--border-light-grey-color-1)
|
border: 1.5px solid var(--border-light-grey-color-1)
|
||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
|
width: calc(100vw - 136px)
|
||||||
|
|
||||||
.time-wrapper
|
.time-wrapper
|
||||||
height: 102px
|
height: 102px
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.schedule.flex-col(:style="themeCell")
|
.schedule.flex-col(:style="themeCell")
|
||||||
.table-header.flex.w-full
|
.table-header.flex.w-full.pr-2
|
||||||
.flex.items-center.justify-center.pl-11(
|
.flex.items-center.justify-center.pl-11(
|
||||||
:style="{width: 'calc(25% + 44px)'}"
|
:style="{width: 'calc(25% + 40px)'}"
|
||||||
)
|
)
|
||||||
.text.font-bold Сотрудник
|
.text.font-bold Сотрудник
|
||||||
.column-wrapper.flex
|
.column-wrapper.flex
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
.text.flex.font-bold(
|
.text.flex.font-bold(
|
||||||
:style="{opacity: changeOpacity(day)}"
|
:style="{opacity: changeOpacity(day)}"
|
||||||
) {{day.format("ddd")}}
|
) {{day.format("ddd")}}
|
||||||
.flex.w-full.flex-col(:style="{overflowY: 'scroll', maxHeight: '351px'}")
|
.schedule-wrapper.flex.w-full.flex-col
|
||||||
.schedule-body.flex.w-full(v-for="schedule in serialized", :key="schedule.id")
|
.schedule-body.flex.w-full(v-for="schedule in serialized", :key="schedule.id")
|
||||||
.edit.flex.items-center.justify-center.h-11.w-11
|
.edit.flex.items-center.justify-center.h-11.w-11
|
||||||
.flex.icon-edit
|
.flex.icon-edit
|
||||||
@@ -33,8 +33,8 @@
|
|||||||
.flex(
|
.flex(
|
||||||
:class="{'cell-work': choiceState(day, schedule.id).status}"
|
:class="{'cell-work': choiceState(day, schedule.id).status}"
|
||||||
) {{choiceDay(day, schedule.id) ? choiceWorks(day, schedule) : ''}}
|
) {{choiceDay(day, schedule.id) ? choiceWorks(day, schedule) : ''}}
|
||||||
.schedule-body.flex.w-full(v-if="clearEmployee", :style="{height: '44px'}")
|
.schedule-select.flex.w-full.pr-2(v-if="clearEmployee")
|
||||||
.edit.flex.items-center.justify-center.h-11.w-11(:style="{borderBottom: 'none'}")
|
.edit.flex.items-center.justify-center.h-11.w-11(v-if="currentEmployee.label")
|
||||||
.flex.icon-edit(v-if="currentEmployee.label")
|
.flex.icon-edit(v-if="currentEmployee.label")
|
||||||
//- base-button(
|
//- base-button(
|
||||||
//- confirm,
|
//- confirm,
|
||||||
@@ -45,25 +45,22 @@
|
|||||||
//- v-if="currentEmployee.label"
|
//- v-if="currentEmployee.label"
|
||||||
//- )
|
//- )
|
||||||
//- .icon-ok.text-xsm(class="pt-[3px]")
|
//- .icon-ok.text-xsm(class="pt-[3px]")
|
||||||
.name.flex.justify-center.items-center.cursor-pointer(
|
.name.flex.justify-center.items-center.cursor-pointer(:class="{'select-name': currentEmployee.label}")
|
||||||
v-if="currentEmployee.label"
|
|
||||||
)
|
|
||||||
span {{currentEmployee.label}}
|
|
||||||
.name.flex(v-if="!currentEmployee.label")
|
|
||||||
base-custom-select(
|
base-custom-select(
|
||||||
|
v-if="!currentEmployee.label",
|
||||||
:items="ownersList",
|
:items="ownersList",
|
||||||
v-model="currentEmployee",
|
v-model="currentEmployee",
|
||||||
placeholder="Добавить сотрудника",
|
placeholder="Добавить сотрудника",
|
||||||
:style="{border: 'none', justifyContent: 'center'}"
|
:style="{border: 'none', justifyContent: 'center'}"
|
||||||
)
|
)
|
||||||
|
.flex.justify-center(v-else) {{currentEmployee.label}}
|
||||||
.cell.flex.flex-col.items-center.justify-center.w-11.h-11.cursor-pointer(
|
.cell.flex.flex-col.items-center.justify-center.w-11.h-11.cursor-pointer(
|
||||||
v-if="currentEmployee.label",
|
v-if="currentEmployee.label",
|
||||||
v-for="day in result",
|
v-for="day in result",
|
||||||
:key="day",
|
:key="day",
|
||||||
:id="currentEmployee.id + day",
|
:id="currentEmployee.id + day",
|
||||||
@click="choiceCell(day, currentEmployee.id)",
|
@click="choiceCell(day, currentEmployee.id)",
|
||||||
:class="choiceState(day, currentEmployee.id)",
|
:class="choiceState(day, currentEmployee.id)"
|
||||||
:style="{borderBottom: 'none'}"
|
|
||||||
)
|
)
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -289,9 +286,14 @@ export default {
|
|||||||
border: 1.5px solid var(--border-light-grey-color-1)
|
border: 1.5px solid var(--border-light-grey-color-1)
|
||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
border-right: none
|
border-right: none
|
||||||
|
border-bottom: none
|
||||||
min-height: 87px
|
min-height: 87px
|
||||||
width: calc(100vw - 136px)
|
width: calc(100vw - 136px)
|
||||||
|
|
||||||
|
.schedule-wrapper
|
||||||
|
overflow-y: scroll
|
||||||
|
max-height: 351px
|
||||||
|
|
||||||
.schedule-body
|
.schedule-body
|
||||||
&:hover
|
&:hover
|
||||||
background-color: var(--border-light-grey-color-1)
|
background-color: var(--border-light-grey-color-1)
|
||||||
@@ -303,8 +305,14 @@ export default {
|
|||||||
border-top-left-radius: 2px
|
border-top-left-radius: 2px
|
||||||
border-top-right-radius: 2px
|
border-top-right-radius: 2px
|
||||||
|
|
||||||
|
.schedule-select
|
||||||
|
border-top: 1.5px solid var(--border-light-grey-color-1)
|
||||||
|
&:hover
|
||||||
|
background-color: var(--border-light-grey-color-1)
|
||||||
|
|
||||||
.column-wrapper
|
.column-wrapper
|
||||||
overflow: auto
|
overflow: auto
|
||||||
|
overflow-x: hidden
|
||||||
|
|
||||||
.column-color
|
.column-color
|
||||||
background-color: var(--bg-white-color-1)
|
background-color: var(--bg-white-color-1)
|
||||||
@@ -317,9 +325,13 @@ export default {
|
|||||||
border-bottom: 1.5px solid var(--border-light-grey-color-1)
|
border-bottom: 1.5px solid var(--border-light-grey-color-1)
|
||||||
|
|
||||||
.name
|
.name
|
||||||
|
color: var(--btn-blue-color)
|
||||||
|
border-bottom: 1.5px solid var(--border-light-grey-color-1)
|
||||||
|
border-right: 1.5px solid var(--border-light-grey-color-1)
|
||||||
|
|
||||||
|
.select-name
|
||||||
width: 25%
|
width: 25%
|
||||||
border-right: 1.5px solid var(--border-light-grey-color-1)
|
border-right: 1.5px solid var(--border-light-grey-color-1)
|
||||||
color: var(--btn-blue-color)
|
|
||||||
|
|
||||||
.name-employee
|
.name-employee
|
||||||
width: 25%
|
width: 25%
|
||||||
@@ -347,11 +359,11 @@ export default {
|
|||||||
content: var(--text-status)
|
content: var(--text-status)
|
||||||
|
|
||||||
.from-date
|
.from-date
|
||||||
background-color: limegreen
|
background-color: limegreen !important
|
||||||
|
|
||||||
.to-date
|
.to-date
|
||||||
background-color: red
|
background-color: red !important
|
||||||
|
|
||||||
.middle-dates
|
.middle-dates
|
||||||
background-color: yellow
|
background-color: yellow !important
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user