WIP Подключил store для мед карты, поправил форму Основных данных
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<script>
|
||||
import MedicalCardHeader from "@/pages/newMedicalCard/components/MedicalCardHeader.vue";
|
||||
import MedicalCardBaseInfo from "@/pages/newMedicalCard/components/MedicalCardBaseInfo.vue";
|
||||
import { mapState } from "vuex";
|
||||
export default {
|
||||
name: "TheMedicalCard",
|
||||
components: { MedicalCardHeader, MedicalCardBaseInfo },
|
||||
@@ -18,5 +19,11 @@ export default {
|
||||
currentMenuItem: "MedicalCardBaseInfo",
|
||||
};
|
||||
},
|
||||
computed: mapState({
|
||||
medical: (state) => state.medical.medicalCard,
|
||||
}),
|
||||
created() {
|
||||
this.$store.dispatch("getMedicalCardData");
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user