[WIP] Фикс пропсов

This commit is contained in:
megavrilinvv
2023-05-12 18:41:08 +03:00
parent 8907e156ba
commit a51b2b6508
3 changed files with 37 additions and 67 deletions

View File

@@ -103,6 +103,7 @@ export default {
name: "DataForm", name: "DataForm",
components: { MedicalFormWrapper, BaseButton, BaseInput }, components: { MedicalFormWrapper, BaseButton, BaseInput },
props: { props: {
abc: Array,
data: Object, data: Object,
fillInspection: Boolean, fillInspection: Boolean,
inspection: Boolean, inspection: Boolean,
@@ -132,39 +133,6 @@ export default {
], ],
}, },
selected: [], selected: [],
abc: [
"А",
"Б",
"В",
"Г",
"Д",
"Е",
"Ё",
"Ж",
"З",
"И",
"Й",
"К",
"Л",
"М",
"Н",
"О",
"П",
"Р",
"С",
"Т",
"У",
"Ф",
"Х",
"Ц",
"Ч",
"Ш",
"Щ",
"Ы",
"Э",
"Ю",
"Я",
],
docData: [], docData: [],
scanData: [], scanData: [],
iconDictionary: { iconDictionary: {

View File

@@ -57,6 +57,7 @@ export default {
name: "MedicalFormTag", name: "MedicalFormTag",
components: { BaseButton, BaseInput, MedicalFormWrapper }, components: { BaseButton, BaseInput, MedicalFormWrapper },
props: { props: {
abc: Array,
list: Array, list: Array,
fillInspection: Boolean, fillInspection: Boolean,
openCard: Function, openCard: Function,
@@ -65,39 +66,6 @@ export default {
data() { data() {
return { return {
selected: [], selected: [],
abc: [
"А",
"Б",
"В",
"Г",
"Д",
"Е",
"Ё",
"Ж",
"З",
"И",
"Й",
"К",
"Л",
"М",
"Н",
"О",
"П",
"Р",
"С",
"Т",
"У",
"Ф",
"Х",
"Ц",
"Ч",
"Ш",
"Щ",
"Ы",
"Э",
"Ю",
"Я",
],
}; };
}, },
methods: { methods: {

View File

@@ -25,12 +25,13 @@
medical-form-tag( medical-form-tag(
v-if="inspection || fillInspection", v-if="inspection || fillInspection",
:list="list", :list="list",
:abc="abc",
:fill-inspection="fillInspection" :fill-inspection="fillInspection"
:open-card="openCard", :open-card="openCard",
:close-card="closeCard" :close-card="closeCard"
) )
div(v-for="form in protocolForms", :key="form.key") div(v-for="form in protocolForms", :key="form.key")
component(v-bind:is="form.component", :data="form", :fill-inspection="fillInspection") component(v-bind:is="form.component", :data="form", :fill-inspection="fillInspection", :abc="abc")
.protocol.flex.justify-between.p-6(v-if="fillInspection") .protocol.flex.justify-between.p-6(v-if="fillInspection")
.flex.h-fit.w-fit.gap-2 .flex.h-fit.w-fit.gap-2
base-button.text-base.font-semibold(outlined, :size="40") Отменить base-button.text-base.font-semibold(outlined, :size="40") Отменить
@@ -102,6 +103,39 @@ export default {
], ],
}, },
], ],
abc: [
"А",
"Б",
"В",
"Г",
"Д",
"Е",
"Ё",
"Ж",
"З",
"И",
"Й",
"К",
"Л",
"М",
"Н",
"О",
"П",
"Р",
"С",
"Т",
"У",
"Ф",
"Х",
"Ц",
"Ч",
"Ш",
"Щ",
"Ы",
"Э",
"Ю",
"Я",
],
}; };
}, },
methods: { methods: {