WIP Перемещен инпут
This commit is contained in:
@@ -14,33 +14,25 @@
|
||||
.w-32.justify-start
|
||||
.label-field.font-sm.text-sm.whitespace-nowrap {{ `Аллерген ${index+1}:` }}
|
||||
.flex.min-w-64.gap-2.w-full.items-center
|
||||
base-input(
|
||||
base-input(
|
||||
:readonly="!isEdit"
|
||||
v-model="allergy.name"
|
||||
@update:model-value="checkChangeInput"
|
||||
name="name"
|
||||
:rule="configData.name.rules"
|
||||
no-error-icon
|
||||
:width="350"
|
||||
placeholder="Аллерген"
|
||||
type="text"
|
||||
:standout="!isEdit"
|
||||
:outlined="isEdit"
|
||||
text-color="black"
|
||||
)
|
||||
size="M"
|
||||
)
|
||||
base-input.w-full(
|
||||
:readonly="!isEdit"
|
||||
v-model="allergy.title"
|
||||
@update:model-value="checkChangeInput"
|
||||
name="title"
|
||||
:rule="configData.title.rules"
|
||||
no-error-icon
|
||||
placeholder="Проявление аллергии"
|
||||
type="text"
|
||||
:standout="!isEdit"
|
||||
:outlined="isEdit"
|
||||
text-color="black"
|
||||
)
|
||||
placeholder="Проявление аллергии",
|
||||
size="M"
|
||||
)
|
||||
.delete-contact.icon-cancel.text-xxs.cursor-pointer(
|
||||
v-if="isEdit"
|
||||
@click="() => deleteAllergy(index)"
|
||||
@@ -60,7 +52,6 @@
|
||||
|
||||
<script>
|
||||
import MedicalFormWrapper from "@/pages/newMedicalCard/components/MedicalFormWrapper.vue";
|
||||
import BaseInput from "@/components/base/BaseInput.vue";
|
||||
import TheNotificationProvider from "@/components/Notifications/TheNotificationProvider.vue";
|
||||
import { getFieldsNameUnvalidated } from "@/shared/utils/changesObjects";
|
||||
import { addNotification } from "@/components/Notifications/notificationContext";
|
||||
@@ -68,6 +59,7 @@ import { checkChangeData } from "@/shared/utils/changesObjects";
|
||||
import { allergiesConfig } from "@/pages/newMedicalCard/utils/medicalConfig";
|
||||
import { mapState, mapGetters } from "vuex";
|
||||
import { getRequestArrayData } from "@/shared/utils/wrapperRequestChangeData";
|
||||
import BaseInput from "@/components/base/BaseInput.vue";
|
||||
|
||||
export default {
|
||||
name: "AllergiesForm",
|
||||
|
||||
Reference in New Issue
Block a user