Добавил пациента в store

This commit is contained in:
dderbentsov
2022-12-24 17:12:55 +03:00
parent 1d8eb0a294
commit 7c44bab78e
3 changed files with 23 additions and 7 deletions

View File

@@ -552,6 +552,9 @@ export default {
this.isOpenPopup = !this.isOpenPopup;
},
openDetailInfo(e) {
if (!this.isOpenDetailInfo)
this.$store.state.currentPatient = this.client;
else this.$store.state.currentPatient = {};
this.isOpenDetailInfo = !this.isOpenDetailInfo;
this.isOpenDetailInfo && this.fetchClientDetail(e.currentTarget.id);
},