WIP Доделала модалку
This commit is contained in:
@@ -23,6 +23,7 @@ export default createStore({
|
||||
? state.url + state.userData[key]
|
||||
: "";
|
||||
});
|
||||
data.job_title = "Ортодонт";
|
||||
return data;
|
||||
},
|
||||
},
|
||||
|
||||
@@ -293,7 +293,6 @@ const actions = {
|
||||
commit("setBenefitData", res.results);
|
||||
});
|
||||
},
|
||||
|
||||
getMedicalCardData({ commit }) {
|
||||
fetchWrapper
|
||||
.get(
|
||||
@@ -337,6 +336,11 @@ const actions = {
|
||||
localStorage.removeItem("medicalId");
|
||||
});
|
||||
},
|
||||
createProtocol({ commit, rootGetters, state }, data) {
|
||||
data.employee = rootGetters.getUserData;
|
||||
data.id = state.protocolsData.length + 1;
|
||||
commit("setProtocolsData", data);
|
||||
},
|
||||
};
|
||||
|
||||
const mutations = {
|
||||
@@ -366,6 +370,9 @@ const mutations = {
|
||||
state.events = res.events;
|
||||
});
|
||||
},
|
||||
setProtocolsData(state, data) {
|
||||
state.protocolsData = [...state.protocolsData, data];
|
||||
},
|
||||
};
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user