Merge branch 'ASTRA-121' into 'master'
Фикс модального окна создания тэга, стилей See merge request andrusyakka/urban-couscous!463
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
.header.w-full.flex.gap-x-2px.text-sm
|
.header.w-full.flex.gap-x-2px.text-sm
|
||||||
.first-item.color-black.justify-center.gap-x-2(:class="timeClass")
|
.first-item.color-black.justify-center.gap-x-2(:class="timeClass")
|
||||||
span.font-semibold.color-black(v-if="expandedType || expandedTime") {{ recordTime }}
|
span.font-semibold.color-black(v-if="expandedType || expandedTime") {{ recordTime }}
|
||||||
q-icon(
|
q-icon.cursor-pointer(
|
||||||
name="arrow_back_ios_new",
|
name="arrow_back_ios_new",
|
||||||
size="10px",
|
size="10px",
|
||||||
v-if="expandedTime",
|
v-if="expandedTime",
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
.header.flex.mb-6
|
.header.flex.mb-6
|
||||||
.title.font-bold.text-xl.color-dark-blue Запись на {{ date }}, {{ time }}
|
.title.font-bold.text-xl.color-dark-blue Запись на {{ date }}, {{ time }}
|
||||||
.icons.flex.items-center.gap-x-3.-mt-5.-mr-4.p-1
|
.icons.flex.items-center.gap-x-3.-mt-5.-mr-4.p-1
|
||||||
q-icon(name="app:dots", size="18px", color="dark")
|
q-icon.cursor-pointer(name="app:dots", size="18px", color="dark")
|
||||||
q-icon(name="app:cancel", size="18px", color="dark", @click="hidePreview")
|
q-icon.cursor-pointer(name="app:cancel", size="18px", color="dark", @click="hidePreview")
|
||||||
.body.gap-y-4.text.text-sm
|
.body.gap-y-4.text.text-sm
|
||||||
.flex.items-center.gap-x-3(v-for="field in previewConfig", :key="field?.title")
|
.flex.items-center.gap-x-3(v-for="field in previewConfig", :key="field?.title")
|
||||||
.field.color-grey.flex.items-center.justify-start.font-semibold {{ field?.title }}:
|
.field.color-grey.flex.items-center.justify-start.font-semibold {{ field?.title }}:
|
||||||
|
|||||||
@@ -63,7 +63,8 @@
|
|||||||
.flex.h-10.w-10.absolute.right-4.bottom-4
|
.flex.h-10.w-10.absolute.right-4.bottom-4
|
||||||
q-btn(@click="showModal = true", color="primary", dense, padding="4px 12px")
|
q-btn(@click="showModal = true", color="primary", dense, padding="4px 12px")
|
||||||
q-icon(name="app:icon-plus", size="17px")
|
q-icon(name="app:icon-plus", size="17px")
|
||||||
tag-creation-form(:show-modal="showModal", :close-modal="closeModal", :create-tag="createTag")
|
base-modal(v-model="showModal", title="Создание тега", modal-padding)
|
||||||
|
tag-creation-form(:close-modal="closeModal", :create-tag="createTag")
|
||||||
.flex.gap-x-20.w-full(v-if="change || fillInspection")
|
.flex.gap-x-20.w-full(v-if="change || fillInspection")
|
||||||
.flex.flex-col.gap-y-3.w-full(v-for="file in protocolData[data.state].files")
|
.flex.flex-col.gap-y-3.w-full(v-for="file in protocolData[data.state].files")
|
||||||
.title.text-smm.font-semibold {{file.name}}
|
.title.text-smm.font-semibold {{file.name}}
|
||||||
@@ -101,15 +102,23 @@ import MedicalFormWrapper from "@/pages/newMedicalCard/components/MedicalFormWra
|
|||||||
import TagCreationForm from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/TagCreationForm.vue";
|
import TagCreationForm from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/TagCreationForm.vue";
|
||||||
import BaseButton from "@/components/base/BaseButton.vue";
|
import BaseButton from "@/components/base/BaseButton.vue";
|
||||||
import BaseInput from "@/components/base/BaseInput.vue";
|
import BaseInput from "@/components/base/BaseInput.vue";
|
||||||
|
import BaseModal from "@/components/base/BaseModal.vue";
|
||||||
import { mapState } from "vuex";
|
import { mapState } from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "DataForm",
|
name: "DataForm",
|
||||||
components: { MedicalFormWrapper, BaseButton, BaseInput, TagCreationForm },
|
components: {
|
||||||
|
MedicalFormWrapper,
|
||||||
|
BaseButton,
|
||||||
|
BaseInput,
|
||||||
|
TagCreationForm,
|
||||||
|
BaseModal,
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
abc: Array,
|
abc: Array,
|
||||||
data: Object,
|
data: Object,
|
||||||
fillInspection: Boolean,
|
fillInspection: Boolean,
|
||||||
|
|
||||||
inspection: Boolean,
|
inspection: Boolean,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -50,7 +50,8 @@
|
|||||||
.flex.h-10.w-10.absolute.right-4.bottom-4
|
.flex.h-10.w-10.absolute.right-4.bottom-4
|
||||||
q-btn(@click="showModal = true", color="primary", dense, padding="4px 12px")
|
q-btn(@click="showModal = true", color="primary", dense, padding="4px 12px")
|
||||||
q-icon(name="app:icon-plus", size="17px")
|
q-icon(name="app:icon-plus", size="17px")
|
||||||
tag-creation-form(:show-modal="showModal", :close-modal="closeModal", :create-tag="createTag")
|
base-modal(v-model="showModal", title="Создание тега", modal-padding)
|
||||||
|
tag-creation-form(:close-modal="closeModal", :create-tag="createTag")
|
||||||
.flex(v-if="data.title === 'Осмотр полости рта' && (fillInspection || change)", :style="{color: 'var(--btn-blue-color)'}")
|
.flex(v-if="data.title === 'Осмотр полости рта' && (fillInspection || change)", :style="{color: 'var(--btn-blue-color)'}")
|
||||||
q-btn(no-caps, flat padding="2px 4px")
|
q-btn(no-caps, flat padding="2px 4px")
|
||||||
q-icon(left, name="app:plus", size="11px")
|
q-icon(left, name="app:plus", size="11px")
|
||||||
@@ -62,6 +63,7 @@ import BaseButton from "@/components/base/BaseButton.vue";
|
|||||||
import BaseInput from "@/components/base/BaseInput.vue";
|
import BaseInput from "@/components/base/BaseInput.vue";
|
||||||
import MedicalFormWrapper from "@/pages/newMedicalCard/components/MedicalFormWrapper.vue";
|
import MedicalFormWrapper from "@/pages/newMedicalCard/components/MedicalFormWrapper.vue";
|
||||||
import TagCreationForm from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/TagCreationForm.vue";
|
import TagCreationForm from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/TagCreationForm.vue";
|
||||||
|
import BaseModal from "@/components/base/BaseModal.vue";
|
||||||
import { mapState } from "vuex";
|
import { mapState } from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -69,6 +71,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
BaseButton,
|
BaseButton,
|
||||||
BaseInput,
|
BaseInput,
|
||||||
|
BaseModal,
|
||||||
MedicalFormWrapper,
|
MedicalFormWrapper,
|
||||||
TagCreationForm,
|
TagCreationForm,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
base-modal(v-model="showModal", title="Создание тега", modal-padding)
|
|
||||||
.flex.flex-col
|
.flex.flex-col
|
||||||
.flex.flex-col.justify-between.py-6(:style="{height: '194px'}")
|
.flex.flex-col.justify-between.py-6(:style="{height: '194px'}")
|
||||||
.flex.flex-col(class="gap-y-1.5")
|
.flex.flex-col(class="gap-y-1.5")
|
||||||
@@ -30,7 +29,7 @@
|
|||||||
q-icon(name="app:icon-plus", size="10px",)
|
q-icon(name="app:icon-plus", size="10px",)
|
||||||
span Добавить категорию
|
span Добавить категорию
|
||||||
.flex.flex-col(class="gap-x-1.5")
|
.flex.flex-col(class="gap-x-1.5")
|
||||||
base-input(v-model="model.tag", label="Текст тега", placeholder="Введите тэг", outlined)
|
base-input(v-model="model.tag", label="Текст тега", placeholder="Введите тег", outlined)
|
||||||
.buttons-group.flex
|
.buttons-group.flex
|
||||||
q-btn(
|
q-btn(
|
||||||
@click="closeModal",
|
@click="closeModal",
|
||||||
@@ -43,6 +42,7 @@
|
|||||||
padding="10px 24px"
|
padding="10px 24px"
|
||||||
)
|
)
|
||||||
q-btn(
|
q-btn(
|
||||||
|
:disable="!(model.category && model.tag)",
|
||||||
@click="createTag(model)",
|
@click="createTag(model)",
|
||||||
color="primary",
|
color="primary",
|
||||||
size="16px",
|
size="16px",
|
||||||
@@ -55,15 +55,13 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import BaseInput from "@/components/base/BaseInput.vue";
|
import BaseInput from "@/components/base/BaseInput.vue";
|
||||||
import BaseModal from "@/components/base/BaseModal.vue";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TagCreationForm",
|
name: "TagCreationForm",
|
||||||
components: { BaseInput, BaseModal },
|
components: { BaseInput },
|
||||||
props: {
|
props: {
|
||||||
closeModal: Function,
|
closeModal: Function,
|
||||||
createTag: Function,
|
createTag: Function,
|
||||||
showModal: Boolean,
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user