Merge branch 'UC-204' into 'master'
[WIP] Изменил хедер страницы расписания See merge request andrusyakka/urban-couscous!281
This commit is contained in:
@@ -27,7 +27,7 @@ html
|
|||||||
width: 100%
|
width: 100%
|
||||||
line-height: normal
|
line-height: normal
|
||||||
body
|
body
|
||||||
background-color: var(--bg-lavender-color)
|
background-color: var(--bg-body-color)
|
||||||
margin: 0
|
margin: 0
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
\:root
|
\:root
|
||||||
--bg-lavender-color: #e9e9f6
|
--bg-lavender-color: #e9e9f6
|
||||||
|
--bg-body-color: #e8e8f3
|
||||||
--bg-ligth-blue-color: #e6eafc
|
--bg-ligth-blue-color: #e6eafc
|
||||||
--font-dark-blue-color: #252850
|
--font-dark-blue-color: #252850
|
||||||
--font-black-color: #090a15
|
--font-black-color: #090a15
|
||||||
@@ -56,3 +57,5 @@
|
|||||||
--pagination-item-shadow: 0 3px 1px -2px rgb(0 0 0 / 20%), 0 2px 2px 0 rgb(0 0 0 / 14%), 0 1px 5px 0 rgb(0 0 0 / 12%)
|
--pagination-item-shadow: 0 3px 1px -2px rgb(0 0 0 / 20%), 0 2px 2px 0 rgb(0 0 0 / 14%), 0 1px 5px 0 rgb(0 0 0 / 12%)
|
||||||
--pagination-current-item-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%)
|
--pagination-current-item-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%)
|
||||||
--bg-disable-grey-color: #f0f0f0
|
--bg-disable-grey-color: #f0f0f0
|
||||||
|
--bg-grey-color: rgba(37, 40, 80, 0.15)
|
||||||
|
--bg-aqua-blue: #55c5e8
|
||||||
|
|||||||
@@ -6,10 +6,11 @@
|
|||||||
:width="60",
|
:width="60",
|
||||||
:height="60"
|
:height="60"
|
||||||
)
|
)
|
||||||
.relative.flex.flex-col.px-6.py-6.h-full.w-full.gap-y-5(v-else)
|
.relative.flex.flex-col.h-full.w-full.gap-y-7px(v-else)
|
||||||
schedule-header(
|
schedule-header(
|
||||||
:start-month="startMonth",
|
:start-month="startMonth",
|
||||||
:change-show-time="changeShowTime",
|
:change-show-time="changeShowTime",
|
||||||
|
:change-show-status="changeShowStatus",
|
||||||
:show-time="showTime",
|
:show-time="showTime",
|
||||||
@switch-previous-month="switchPreviousMonth",
|
@switch-previous-month="switchPreviousMonth",
|
||||||
@switch-next-month="switchNextMonth"
|
@switch-next-month="switchNextMonth"
|
||||||
@@ -129,7 +130,10 @@ export default {
|
|||||||
this.replacementSheet.schedules = e.schedules;
|
this.replacementSheet.schedules = e.schedules;
|
||||||
},
|
},
|
||||||
changeShowTime() {
|
changeShowTime() {
|
||||||
this.showTime = !this.showTime;
|
this.showTime = true;
|
||||||
|
},
|
||||||
|
changeShowStatus() {
|
||||||
|
this.showTime = false;
|
||||||
},
|
},
|
||||||
trimOwnerName(lastName, firstName, patronymic) {
|
trimOwnerName(lastName, firstName, patronymic) {
|
||||||
let checkedFirstName = firstName !== null ? firstName[0] + "." : "";
|
let checkedFirstName = firstName !== null ? firstName[0] + "." : "";
|
||||||
@@ -354,7 +358,6 @@ export default {
|
|||||||
overflow: auto
|
overflow: auto
|
||||||
border-top-left-radius: 4px
|
border-top-left-radius: 4px
|
||||||
border-top-right-radius: 4px
|
border-top-right-radius: 4px
|
||||||
background-color: var(--default-white)
|
|
||||||
|
|
||||||
.schedule-enter-from
|
.schedule-enter-from
|
||||||
opacity: 0
|
opacity: 0
|
||||||
|
|||||||
@@ -1,49 +1,73 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.flex.flex-col.gap-y-5
|
.header.flex
|
||||||
.flex.justify-center.pl-8.pr-20.font-bold.text-xl Планировщик смен
|
|
||||||
.flex.items-center.justify-between.py-3.pl-5.pr-6.h-14.w-full
|
.flex.items-center.justify-between.py-3.pl-5.pr-6.h-14.w-full
|
||||||
.flex
|
.flex.gap-x-4.items-center
|
||||||
q-btn.mr-4(
|
.flex.gap-x-2
|
||||||
text-color="primary",
|
q-btn.w-8.h-8(
|
||||||
color="secondary"
|
@click="previousHandler",
|
||||||
|
style="background: var(--bg-grey-color); color: var(--font-dark-blue-color)",
|
||||||
round,
|
round,
|
||||||
size="14px",
|
size="14px",
|
||||||
dense,
|
dense
|
||||||
@click="previousHandler",
|
|
||||||
)
|
)
|
||||||
q-icon(name="arrow_back_ios", right)
|
q-icon(name="arrow_back_ios", right)
|
||||||
q-btn.mr-6(
|
q-btn.w-8.h-8(
|
||||||
@click="nextHandler",
|
@click="nextHandler",
|
||||||
text-color="primary",
|
style="background: var(--bg-grey-color); color: var(--font-dark-blue-color)",
|
||||||
color="secondary"
|
|
||||||
icon="arrow_forward_ios",
|
icon="arrow_forward_ios",
|
||||||
round,
|
round,
|
||||||
size="14px",
|
size="14px",
|
||||||
dense,
|
dense
|
||||||
)
|
)
|
||||||
.text.flex.items-center(:style="{color: 'var(--font-dark-blue-color)'}")
|
.flex(:style="{width: '180px'}")
|
||||||
.text.font-medium.text-base {{ dateString }}
|
base-input.relative(
|
||||||
.opacity-50.font-bold.text-xxs.ml-2(v-if="isCurrentMonth") Текущий
|
:placeholder="dateString"
|
||||||
.flex.gap-x-4.h-10
|
outlined,
|
||||||
|
)
|
||||||
|
.flex.items-center
|
||||||
|
q-icon(
|
||||||
|
size="20px",
|
||||||
|
name="event",
|
||||||
|
class="cursor-pointer",
|
||||||
|
style="color: var(--font-dark-blue-color)"
|
||||||
|
)
|
||||||
|
q-popup-proxy(
|
||||||
|
cover,
|
||||||
|
transition-show="scale",
|
||||||
|
transition-hide="scale"
|
||||||
|
)
|
||||||
|
q-date(v-model="date", minimal, class="font-input")
|
||||||
|
.toogle.flex
|
||||||
q-btn(
|
q-btn(
|
||||||
:label="textButton",
|
label="Время",
|
||||||
color="primary",
|
size="12px",
|
||||||
no-caps,
|
class="button"
|
||||||
padding="8px 24px",
|
:text-color="showTime ? 'white' : null",
|
||||||
style="width: 174px"
|
:style="{background: showTime ? 'var(--bg-aqua-blue)' : null}",
|
||||||
@click="changeShowTime",
|
@click="changeShowTime"
|
||||||
|
)
|
||||||
|
q-btn(
|
||||||
|
label="Статус",
|
||||||
|
size="12px",
|
||||||
|
class="button",
|
||||||
|
:text-color="showTime ? null : 'white'",
|
||||||
|
:style="{background: showTime ? null : 'var(--bg-aqua-blue)'}",
|
||||||
|
@click="changeShowStatus"
|
||||||
)
|
)
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as moment from "moment";
|
import * as moment from "moment";
|
||||||
|
import BaseInput from "@/components/base/BaseInput.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ScheduleHeader",
|
name: "ScheduleHeader",
|
||||||
|
components: { BaseInput },
|
||||||
props: {
|
props: {
|
||||||
showTime: Boolean,
|
showTime: Boolean,
|
||||||
startMonth: Object,
|
startMonth: Object,
|
||||||
changeShowTime: Function,
|
changeShowTime: Function,
|
||||||
|
changeShowStatus: Function,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -61,9 +85,6 @@ export default {
|
|||||||
})
|
})
|
||||||
.join(" ");
|
.join(" ");
|
||||||
},
|
},
|
||||||
textButton() {
|
|
||||||
return this.showTime ? "Скрыть время" : "Показать время";
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
previousHandler() {
|
previousHandler() {
|
||||||
@@ -82,3 +103,23 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="sass" scoped>
|
||||||
|
.header
|
||||||
|
height: 56px
|
||||||
|
border-radius: 4px
|
||||||
|
background-color: var(--default-white)
|
||||||
|
|
||||||
|
.font-input
|
||||||
|
font-feature-settings: 'pnum' on, 'lnum' on
|
||||||
|
|
||||||
|
.toogle
|
||||||
|
background-color: #eff1f4
|
||||||
|
border-radius: 4px
|
||||||
|
width: 186px
|
||||||
|
height: 40px
|
||||||
|
padding: 4px
|
||||||
|
|
||||||
|
.button
|
||||||
|
width: 89px
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -1,5 +1,23 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.schedule.flex-col(:style="themeCell")
|
.schedule.flex-col(:style="themeCell")
|
||||||
|
.schedule-header.flex.justify-between.py-4.px-6
|
||||||
|
base-input(
|
||||||
|
placeholder="Поиск",
|
||||||
|
outlined
|
||||||
|
)
|
||||||
|
.flex.items-center.cursor-pointer
|
||||||
|
q-icon(name="app:icon-search", size="18px" style="color: var(--font-dark-blue-color)")
|
||||||
|
q-btn(
|
||||||
|
color="primary",
|
||||||
|
padding="8px 25px",
|
||||||
|
no-caps,
|
||||||
|
)
|
||||||
|
q-icon(
|
||||||
|
name="app:icon-plus",
|
||||||
|
size="12px",
|
||||||
|
style="margin-right: 10px",
|
||||||
|
)
|
||||||
|
span Создать смену
|
||||||
schedule-table-header(:result="result")
|
schedule-table-header(:result="result")
|
||||||
schedule-table-body(
|
schedule-table-body(
|
||||||
:serialized="serialized",
|
:serialized="serialized",
|
||||||
@@ -43,6 +61,8 @@ import ScheduleTableHeader from "@/pages/schedule/components/ScheduleTableHeader
|
|||||||
import ScheduleTableBody from "@/pages/schedule/components/ScheduleTableBody.vue";
|
import ScheduleTableBody from "@/pages/schedule/components/ScheduleTableBody.vue";
|
||||||
import ScheduleTableSelect from "@/pages/schedule/components/ScheduleTableSelect.vue";
|
import ScheduleTableSelect from "@/pages/schedule/components/ScheduleTableSelect.vue";
|
||||||
import ScheduleBar from "@/pages/schedule/components/ScheduleBar.vue";
|
import ScheduleBar from "@/pages/schedule/components/ScheduleBar.vue";
|
||||||
|
import BaseSelect from "@/components/base/BaseSelect.vue";
|
||||||
|
import BaseInput from "@/components/base/BaseInput.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ScheduleTable",
|
name: "ScheduleTable",
|
||||||
@@ -51,6 +71,8 @@ export default {
|
|||||||
ScheduleTableBody,
|
ScheduleTableBody,
|
||||||
ScheduleTableSelect,
|
ScheduleTableSelect,
|
||||||
ScheduleBar,
|
ScheduleBar,
|
||||||
|
BaseInput,
|
||||||
|
BaseSelect,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
scheduleList: Array,
|
scheduleList: Array,
|
||||||
@@ -224,7 +246,11 @@ export default {
|
|||||||
border-top: 1.5px solid var(--border-light-grey-color-1)
|
border-top: 1.5px solid var(--border-light-grey-color-1)
|
||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
min-height: 87px
|
min-height: 87px
|
||||||
width: calc(100vw - 136px)
|
// width: calc(100vw - 136px)
|
||||||
|
background-color: var(--default-white)
|
||||||
|
|
||||||
|
.schedule-header
|
||||||
|
height: 72px
|
||||||
|
|
||||||
.show-time
|
.show-time
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
gap: {
|
gap: {
|
||||||
"6px": "6px",
|
"6px": "6px",
|
||||||
|
"7px": "7px",
|
||||||
"11px": "11px",
|
"11px": "11px",
|
||||||
"30px": "30px",
|
"30px": "30px",
|
||||||
43: "43px",
|
43: "43px",
|
||||||
|
|||||||
Reference in New Issue
Block a user