From 1b2d579e740ac8d05c4157cec5987996705e7cd9 Mon Sep 17 00:00:00 2001 From: DwCay Date: Thu, 22 Jun 2023 15:12:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D1=8E=20=D0=B2=D1=82=D0=BE=D1=80=D0=BE=D0=B3=D0=BE=20=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D1=83=D0=BB=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/ToothFormula/ToothFormulaTable.vue | 39 ++++++++++--------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue index d90c447..8e391a6 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue @@ -21,28 +21,31 @@ :form-config="formConfig" ) .flex(v-else) - .cell.flex.flex-col.gap-y-7px.py-11px.items-center.justify-around( + .cell.flex( v-for="cell in config.columns", - :class="{'flex-col-reverse': config.name === 'upper'}" :style="{'width': '6.25%', 'minWidth': '55px'}", ) - span.text-smm.font-medium {{cell.tooth_number}} - .flex.items-center.justify-center( - :style="{'width': '35px', 'height': '35px'}" - ) - detailed-tooth-svg( - part-tooth="crown", - :tooth-config="cell", - :data="getToothImageConfig(data.formula[cell.tooth_number].dental_condition)" - :view="data.formula[cell.tooth_number].dental_condition.general === 'И' ? 'artificial': 'native'", - ) - detailed-tooth-svg( - part-tooth="general", - :view="data.formula[cell.tooth_number].dental_condition.general === 'И' ? 'artificial': 'native'", - :tooth-config="cell", - :jaw-position="config.name", - :data="getToothImageConfig(data.formula[cell.tooth_number].dental_condition)" + .flex.flex-col.w-full.h-full.gap-y-7px.py-11px.items-center.justify-around( + v-if="filtredTooths.includes(cell.tooth_number)", + :class="{'flex-col-reverse': config.name === 'upper'}" ) + span.text-smm.font-medium {{cell.tooth_number}} + .flex.items-center.justify-center( + :style="{'width': '35px', 'height': '35px'}" + ) + detailed-tooth-svg( + part-tooth="crown", + :tooth-config="cell", + :data="getToothImageConfig(data.formula[cell.tooth_number].dental_condition)" + :view="data.formula[cell.tooth_number].dental_condition.general === 'И' ? 'artificial': 'native'", + ) + detailed-tooth-svg( + part-tooth="general", + :view="data.formula[cell.tooth_number].dental_condition.general === 'И' ? 'artificial': 'native'", + :tooth-config="cell", + :jaw-position="config.name", + :data="getToothImageConfig(data.formula[cell.tooth_number].dental_condition)" + )