WIP Подтянула данные в форму мед.карты
This commit is contained in:
@@ -260,20 +260,20 @@ export default {
|
||||
openModal() {
|
||||
this.showModal = true;
|
||||
},
|
||||
async handlerClickPopup(action, id) {
|
||||
async handlerClickPopup(action, clientId, medicalId) {
|
||||
this.modalConfig = this.modalConfig.map((el) => {
|
||||
return el.name === action
|
||||
? { ...el, view: true }
|
||||
: { ...el, view: false };
|
||||
});
|
||||
this.clientId = clientId;
|
||||
if (action === "delete") {
|
||||
this.clientId = id;
|
||||
this.titleModal = "Удалить клиента";
|
||||
this.openModal();
|
||||
}
|
||||
if (action === "medical") {
|
||||
if (id) {
|
||||
localStorage.setItem("medicalId", id);
|
||||
if (medicalId) {
|
||||
localStorage.setItem("medicalId", medicalId);
|
||||
this.$router.push("medical-card");
|
||||
} else {
|
||||
this.titleModal = "Создать мед.карту";
|
||||
@@ -281,8 +281,8 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
createMedicalCard(id) {
|
||||
this.selectedClientId = id;
|
||||
createMedicalCard() {
|
||||
this.selectedClientId = this.clientId;
|
||||
this.showMedicalCard = true;
|
||||
this.closeModal();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user