WIP rework medical card data

This commit is contained in:
andrusyakka
2023-08-15 20:27:33 +03:00
parent cc4ea131f9
commit 6c85c5dcf1
6 changed files with 55 additions and 26 deletions

View File

@@ -124,8 +124,10 @@ export default {
},
methods: {
openMedicalCard(id) {
localStorage.setItem("medicalId", id);
this.$router.push("medical-card");
this.getMedicalCardData({
personId: id,
successCallback: (id) => this.$router.push("medical-card/" + id),
});
},
hidePreview() {
this.internalPreview = false;
@@ -141,7 +143,7 @@ export default {
});
},
...mapActions({
getMedicalCardData: "getMedicalCardData",
getMedicalCardData: "getMedicalCardDataByPersonId",
}),
},
};