WIP Подтянула данные в форму мед.карты
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
.schedule.flex-col(:style="themeCell")
|
||||
.table-header.flex.w-full.pr-2
|
||||
.flex.items-center.justify-center.pl-11(
|
||||
:style="{width: 'calc(25% + 40px)'}"
|
||||
:style="{width: 'calc(25% + 43px)'}"
|
||||
)
|
||||
.text.font-bold Сотрудник
|
||||
.column-wrapper.flex
|
||||
.schedule-column.flex.flex-col.items-center.justify-center.w-11(
|
||||
v-for="day in result",
|
||||
:class="{'column-color': changelColumnColor(day)}",
|
||||
:style="{width: `calc(100% / ${result.length})`}"
|
||||
)
|
||||
.text.flex.font-bold(
|
||||
:style="{opacity: changeOpacity(day)}"
|
||||
@@ -22,18 +23,19 @@
|
||||
.flex.icon-edit
|
||||
.name-employee.flex.justify-center.items-center.cursor-pointer
|
||||
span {{trimOwnerName(schedule.last_name, schedule.first_name, schedule.patronymic)}}
|
||||
.cell.flex.flex-col.items-center.justify-center.w-11.h-11.cursor-pointer(
|
||||
v-for="day in result",
|
||||
:key="day",
|
||||
:id="schedule.id + day",
|
||||
@click="choiceCell(day, schedule.id, schedule); clearSelect(selectEmployee)",
|
||||
:class="choiceState(day, schedule.id)",
|
||||
:style="{backgroundColor: choiceDay(day, schedule.id) ? choiceColor(day, schedule) : ''}"
|
||||
)
|
||||
.flex(
|
||||
:class="{'cell-work': choiceState(day, schedule.id).status, 'show-time': showTime}"
|
||||
) {{choiceDay(day, schedule.id) ? choiceWorks(day, schedule) : ''}}
|
||||
.schedule-select.flex.w-full.pr-2(v-if="clearEmployee")
|
||||
.row.flex
|
||||
.cell.flex.flex-col.items-center.justify-center.w-11.h-11.cursor-pointer.transition(
|
||||
v-for="day in result",
|
||||
:key="day",
|
||||
:id="schedule.id + day",
|
||||
@click="choiceCell(day, schedule.id, schedule); clearSelect(selectEmployee)",
|
||||
:class="choiceState(day, schedule.id)",
|
||||
:style="{backgroundColor: choiceDay(day, schedule.id) ? choiceColor(day, schedule) : '', width: `calc(100% / ${result.length})`}"
|
||||
)
|
||||
.flex(
|
||||
:class="{'cell-work': choiceState(day, schedule.id).status, 'show-time': showTime}"
|
||||
) {{choiceDay(day, schedule.id) ? choiceWorks(day, schedule) : ''}}
|
||||
.schedule-select.flex.w-full(v-if="clearEmployee")
|
||||
.edit.flex.items-center.justify-center.h-11.w-11(v-if="selectEmployee.label")
|
||||
.flex.icon-edit(v-if="selectEmployee.label")
|
||||
//- base-button(
|
||||
@@ -54,14 +56,16 @@
|
||||
:style="{border: 'none', justifyContent: 'center'}"
|
||||
)
|
||||
.flex.justify-center(v-else) {{selectEmployee.label}}
|
||||
.cell.flex.flex-col.items-center.justify-center.w-11.h-11.cursor-pointer(
|
||||
v-if="selectEmployee.label",
|
||||
v-for="day in result",
|
||||
:key="day",
|
||||
:id="selectEmployee.id + day",
|
||||
@click="choiceCell(day, selectEmployee.id)",
|
||||
:class="choiceState(day, selectEmployee.id)"
|
||||
)
|
||||
.row.flex
|
||||
.cell.flex.flex-col.items-center.justify-center.w-11.h-11.cursor-pointer(
|
||||
v-if="selectEmployee.label",
|
||||
v-for="day in result",
|
||||
:key="day",
|
||||
:id="selectEmployee.id + day",
|
||||
@click="choiceCell(day, selectEmployee.id)",
|
||||
:class="choiceState(day, selectEmployee.id)",
|
||||
:style="{width: `calc(100% / ${result.length})`}"
|
||||
)
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -302,6 +306,8 @@ export default {
|
||||
.schedule-wrapper
|
||||
overflow-y: scroll
|
||||
max-height: 351px
|
||||
&::-webkit-scrollbar-track
|
||||
border-radius: 0
|
||||
|
||||
.schedule-body
|
||||
&:hover
|
||||
@@ -315,12 +321,14 @@ export default {
|
||||
border-top-right-radius: 2px
|
||||
|
||||
.schedule-select
|
||||
border-right: 8px solid var(--bg-ligth-blue-color)
|
||||
&:hover
|
||||
background-color: var(--border-light-grey-color-1)
|
||||
|
||||
.column-wrapper
|
||||
overflow: auto
|
||||
overflow-x: hidden
|
||||
width: calc(75% - 44px)
|
||||
|
||||
.column-color
|
||||
background-color: var(--bg-white-color-1)
|
||||
@@ -332,6 +340,9 @@ export default {
|
||||
border-right: 1.5px solid var(--border-light-grey-color-1)
|
||||
border-bottom: 1.5px solid var(--border-light-grey-color-1)
|
||||
|
||||
.row
|
||||
width: calc(75% - 44px)
|
||||
|
||||
.select-name
|
||||
width: 25%
|
||||
border-right: 1.5px solid var(--border-light-grey-color-1)
|
||||
@@ -346,6 +357,8 @@ export default {
|
||||
.cell
|
||||
border-right: 1.5px solid var(--border-light-grey-color-1)
|
||||
border-bottom: 1.5px solid var(--border-light-grey-color-1)
|
||||
&:last-child
|
||||
border-right: none
|
||||
|
||||
.show-time
|
||||
text-align: center
|
||||
|
||||
Reference in New Issue
Block a user