diff --git a/src/assets/sass/variables.sass b/src/assets/sass/variables.sass
index 8bcbcbd..b057174 100644
--- a/src/assets/sass/variables.sass
+++ b/src/assets/sass/variables.sass
@@ -24,6 +24,7 @@
--bg-btn-icons-color: rgba(215, 217, 255, 0.6)
--font-grey-color: #9294a7
--font-grey-color-0: #85858b
+ --font-dark-grey-color: #7a88a8
--border-grey-color: #c2c2c2
--border-light-grey-color: #d3d4dc
--bg-light-grey: #eff1f4
diff --git a/src/components/base/BaseDownload.vue b/src/components/base/BaseDownload.vue
index 3139b34..550232d 100644
--- a/src/components/base/BaseDownload.vue
+++ b/src/components/base/BaseDownload.vue
@@ -2,18 +2,6 @@
label.download.flex.cursor-pointer.relative.items-center.justify-center.rounded(
:style="{height: `${height}px`, width: width ? `${width}px` : '100%'}"
)
- q-icon.absolute(
- v-if="withIcon",
- name="app:download",
- size="24px"
- )
- .flex.flex-col.items-center.justify-center.absolute.font-medium.text-smm.w-full(
- v-else,
- :style="{color: 'var(--font-grey-color)'}"
- )
- span {{`Загрузите ${titleType}`}}
- label(:style="{color: 'var(--btn-blue-color)'}") с компьютера
- span или перетащите его в это поле
base-input(
@change="(e) => addNewFiles(e)",
doc,
@@ -24,6 +12,18 @@
borderless,
:multiple="multiple"
)
+ q-icon.absolute(
+ v-if="withIcon",
+ name="app:download",
+ :size="sizeIcon"
+ )
+ .flex.flex-col.items-center.justify-center.absolute.font-medium.text-smm.w-full(
+ v-else,
+ :style="{color: 'var(--font-grey-color)'}"
+ )
+ span {{`Загрузите ${titleType}`}}
+ label.pointer-events-none.cursor-pointer(:style="{color: 'var(--btn-blue-color)'}") с компьютера
+ span или перетащите его в это поле
-
-
diff --git a/src/store/modules/medicalCard.js b/src/store/modules/medicalCard.js
index 554b1ff..be8913b 100644
--- a/src/store/modules/medicalCard.js
+++ b/src/store/modules/medicalCard.js
@@ -128,7 +128,7 @@ const state = () => ({
},
],
protocolData: null,
- healthState: getters.getHealthStateData(),
+ healthState: null,
});
const getters = {
@@ -396,49 +396,22 @@ const getters = {
id: 1,
date: "2023-02-22",
pictures: [],
- comments: [
- {
- text: "Пациент склонен к преувеличению фактов",
- },
- {
- text: "Пациент отказывался заполнять карту",
- },
- {
- text: "Тяжело идет на контакт",
- },
- ],
+ comment:
+ "Пациент склонен к преувеличению фактов\nПациент отказывался заполнять карту\nТяжело идет на контакт",
},
{
id: 2,
date: "2022-02-22",
pictures: [],
- comments: [
- {
- text: "Пациент склонен к преувеличению фактов",
- },
- {
- text: "Пациент отказывался заполнять карту",
- },
- {
- text: "Тяжело идет на контакт",
- },
- ],
+ comment:
+ "Пациент склонен к преувеличению фактов\nПациент отказывался заполнять карту\nТяжело идет на контакт",
},
{
id: 3,
date: "2021-02-22",
pictures: [],
- comments: [
- {
- text: "Пациент склонен к преувеличению фактов",
- },
- {
- text: "Пациент отказывался заполнять карту",
- },
- {
- text: "Тяжело идет на контакт",
- },
- ],
+ comment:
+ "Пациент склонен к преувеличению фактов\nПациент отказывался заполнять карту\nТяжело идет на контакт",
},
];
},
@@ -448,6 +421,9 @@ const actions = {
deleteItemData({ commit }, props) {
commit("setDataWithouDeleted", props);
},
+ addNewListData({ commit }, props) {
+ commit("setNewListData", props);
+ },
getBenefitData({ commit }) {
fetchWrapper.get("general/benefit/").then((res) => {
commit("setBenefitData", res.results);
@@ -474,6 +450,7 @@ const actions = {
commit("setDocumentsData");
commit("setAllergiesData");
commit("setConfidantData");
+ commit("setHealthStateData");
commit("setEventsPersonData", res.person.id);
});
},
@@ -519,6 +496,9 @@ const mutations = {
(item) => item.id !== props.itemId
);
},
+ setNewListData(state, props) {
+ state[props.stateKey] = [...state[props.stateKey], props.data];
+ },
setBenefitData(state, data) {
state.benefitData = data;
},
@@ -561,6 +541,11 @@ const mutations = {
}
}
},
+ setHealthStateData(state) {
+ state.healthState = JSON.parse(
+ JSON.stringify(this.getters.getHealthStateData)
+ );
+ },
};
export default {