WIP Поправил данные стора Термометрии
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template lang="pug">
|
||||
medical-form-wrapper(:title="data.title", :is-edit="isEdit", :open-edit="openEdit", :cancel="cancelEdit")
|
||||
.thermometry-wrapper.grid.gap-x-20.gap-y-5
|
||||
.flex.flex-col.gap-y-4.items-start(v-if="isEdit" v-for="(thermometry, key) in thermometryData")
|
||||
.flex.flex-col.gap-y-4.items-start(v-if="isEdit" v-for="(thermometry, key) in protocol[data.key]")
|
||||
span.font-semibold.text-smm {{ data.config.temperature[key].title }}
|
||||
base-input.w-full(
|
||||
v-model="thermometry.temperature",
|
||||
@@ -28,7 +28,7 @@
|
||||
v-model="thermometry.result"
|
||||
:val="result.value"
|
||||
:label="result.value"
|
||||
size="30px"
|
||||
size="40px"
|
||||
dense
|
||||
checked-icon="check_box"
|
||||
unchecked-icon="check_box_outline_blank"
|
||||
@@ -36,7 +36,7 @@
|
||||
.alert-icon.flex.justify-center.items-center.rounded.w-6.h-6(v-if="result.colorWarning")
|
||||
q-icon(size="13px" name="warning_amber")
|
||||
.flex.flex-col.gap-y-2.items-start(v-else)
|
||||
.flex.gap-x-1.h-8(v-for="(thermometry, key) in thermometryData")
|
||||
.flex.gap-x-1.h-8(v-for="(thermometry, key) in protocol[data.key]")
|
||||
.flex.h-full.w-20.justify-center.items-center.gap-x-1.rounded(
|
||||
:style="{'background-color': data.config.temperature[key].bg, 'color': data.config.temperature[key].color}"
|
||||
)
|
||||
@@ -69,7 +69,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
thermometryData: (state) => state.medical.protocolThermometry,
|
||||
protocol: (state) => state.medical.protocolData,
|
||||
}),
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -130,15 +130,15 @@ const state = () => ({
|
||||
bite: "distal bite",
|
||||
hygieneIndex: 2,
|
||||
KPUIndex: 3,
|
||||
},
|
||||
protocolThermometry: {
|
||||
cold: {
|
||||
temperature: 22,
|
||||
result: "Нет реакции",
|
||||
},
|
||||
heat: {
|
||||
temperature: 50,
|
||||
result: "Повышенная чувствительность",
|
||||
thermometry: {
|
||||
cold: {
|
||||
temperature: 22,
|
||||
result: "Нет реакции",
|
||||
},
|
||||
heat: {
|
||||
temperature: 50,
|
||||
result: "Повышенная чувствительность",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user