WIP Обновила конфиг

This commit is contained in:
Daria Golova
2023-05-12 13:52:15 +03:00
parent 8d64c400c5
commit 3eb58099a0
3 changed files with 52 additions and 0 deletions

View File

@@ -30,6 +30,8 @@
:open-card="openCard",
:close-card="closeCard"
)
div(v-for="form in protocolForms", :key="form.key")
component(v-bind:is="form.component", :data="form")
.protocol.flex.justify-between.p-6(v-if="fillInspection")
.flex.h-fit.w-fit.gap-2
base-button.text-base.font-semibold(outlined, :size="40") Отменить
@@ -42,16 +44,20 @@
<script>
import MedicalFormTagWrapper from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTagWrapper.vue";
import BaseButton from "@/components/base/BaseButton.vue";
import IndexForm from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/IndexForm.vue";
import { protocolForms } from "@/pages/newMedicalCard/utils/medicalConfig.js";
export default {
name: "MedicalProtocolsInspection",
components: {
MedicalFormTagWrapper,
BaseButton,
IndexForm,
},
props: { inspection: Boolean, fillInspection: Boolean },
data() {
return {
protocolForms: protocolForms,
list: [
{
id: 1,