WIP Поправила меню и формы
This commit is contained in:
@@ -73,7 +73,6 @@ export default {
|
||||
|
||||
.card-container
|
||||
width: 374px
|
||||
height: 82px
|
||||
border-radius: 4px
|
||||
border: 1px solid var(--border-light-grey-color-1)
|
||||
</style>
|
||||
|
||||
@@ -325,7 +325,11 @@ export default {
|
||||
el.username !== this.dataClient.phone.username
|
||||
)
|
||||
updateContacts.push(this.dataClient.phone);
|
||||
else if (this.dataClient.phone.username.length < 18) {
|
||||
else if (
|
||||
el.kind === "PHONE" &&
|
||||
this.dataClient.phone.username &&
|
||||
this.dataClient.phone.username.length < 18
|
||||
) {
|
||||
this.dataClient.phone.username =
|
||||
this.client.contacts.find((el) => el.kind === "PHONE")?.username ||
|
||||
"";
|
||||
@@ -334,7 +338,6 @@ export default {
|
||||
"Введите мобильный номер состоящий из 11 цифр"
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
el.kind === "EMAIL" &&
|
||||
el.username !== this.dataClient.email.username
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
:rule="[wrongData => !!wrongData]",
|
||||
v-model="user.username",
|
||||
placeholder="Введите ваш логин",
|
||||
label="Логин"
|
||||
label="Логин",
|
||||
outlined
|
||||
)
|
||||
base-input(
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<template lang="pug">
|
||||
.flex.flex-col.gap-y-6.pt-6.pb-7.px-8.event-form.fixed.right-6.bottom-6(
|
||||
v-click-outside="closeForm"
|
||||
)
|
||||
.flex.flex-col.gap-y-6.pt-6.pb-7.px-8.event-form.fixed.right-6.bottom-6
|
||||
.flex.justify-between
|
||||
span.title.text-xl.font-bold Замена смен
|
||||
.flex.pt-2
|
||||
@@ -48,12 +46,21 @@ import BaseInput from "@/components/base/BaseInput.vue";
|
||||
export default {
|
||||
name: "FormChangeShift",
|
||||
components: { BaseSelect, BaseInput },
|
||||
props: { closeForm: Function, timesShift: Object },
|
||||
emits: ["update:model-value"],
|
||||
props: {
|
||||
timesShift: Object,
|
||||
modelValue: Boolean,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
currentEmployee: { label: "", id: null },
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
closeForm() {
|
||||
this.$emit("update:model-value", false);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
<template lang="pug">
|
||||
.flex.flex-col.gap-y-5
|
||||
.flex.justify-center.pl-8.pr-20.font-bold.text-xl Планировщик смен
|
||||
transition(name="form")
|
||||
form-change-shift(
|
||||
v-if="showForm",
|
||||
:close-form="closeForm",
|
||||
:times-shift="timesShift"
|
||||
)
|
||||
.flex
|
||||
.calendar-header-wrapper.flex.items-center.justify-between.py-3.pl-5.pr-6
|
||||
.flex
|
||||
@@ -45,8 +39,12 @@
|
||||
color="primary",
|
||||
no-caps,
|
||||
padding="8px 24px",
|
||||
@click="openForm",
|
||||
)
|
||||
q-menu(v-model="showForm")
|
||||
form-change-shift(
|
||||
v-model="showForm",
|
||||
:times-shift="timesShift"
|
||||
)
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -87,9 +85,6 @@ export default {
|
||||
openForm() {
|
||||
this.showForm = true;
|
||||
},
|
||||
closeForm() {
|
||||
this.showForm = false;
|
||||
},
|
||||
previousHandler() {
|
||||
this.$emit("switch-previous-month");
|
||||
},
|
||||
@@ -126,25 +121,6 @@ export default {
|
||||
.text
|
||||
color: var(--font-dark-blue-color)
|
||||
|
||||
.form-enter-from
|
||||
opacity: 0
|
||||
transform: translateY(300px)
|
||||
pointer-events: none
|
||||
|
||||
.form-enter-active
|
||||
transition: 0.5s ease
|
||||
|
||||
.form-leave-to
|
||||
opacity: 0
|
||||
transform: translateY(300px)
|
||||
pointer-events: none
|
||||
|
||||
.form-leave-active
|
||||
transition: 0.5s ease
|
||||
|
||||
.form-move
|
||||
transition: 0.5s ease
|
||||
|
||||
.secondary
|
||||
background-color: var(--btn-blue-sec-color)
|
||||
border: 1px solid var(--btn-blue-sec-color)
|
||||
|
||||
Reference in New Issue
Block a user