Merge branch 'dev' of https://git.codelfi.com/TelemedPro/hgh_admin into dev
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
ADMIN_LAB_KIT_LIST_API,
|
||||
ADMIN_LAB_KIT_UPDATE_API,
|
||||
ADMIN_LOGIN_DETAIL,
|
||||
ADMIN_PATIENT_DETAIL_API,
|
||||
ADMIN_UPDATE_PASSWORD,
|
||||
ADMIN_UPDATE_SITE_SETTING,
|
||||
APPOINTMENT_DETAILS_API,
|
||||
@@ -61,12 +62,13 @@ export default createStore({
|
||||
showMessage: null,
|
||||
timeout: null,
|
||||
checkLoginExpire: false,
|
||||
labKitList:[]
|
||||
labKitList: [],
|
||||
patientDetail:null
|
||||
},
|
||||
mutations: {
|
||||
setLoading(state, payload) {
|
||||
console.log('payload');
|
||||
state.isLoading = payload
|
||||
state.isLoading = payload
|
||||
},
|
||||
setCheckLoginExpire(state, payload) {
|
||||
console.log('payload');
|
||||
@@ -95,6 +97,10 @@ export default createStore({
|
||||
},
|
||||
setSubcriptions(state, payload) {
|
||||
state.subcriptions = payload
|
||||
},
|
||||
setPatientDetail(state, payload) {
|
||||
console.log('payload');
|
||||
state.patientDetail = payload
|
||||
},
|
||||
setPtientList(state, payload) {
|
||||
state.patientList = payload
|
||||
@@ -960,6 +966,24 @@ export default createStore({
|
||||
console.error('Error:', error);
|
||||
});
|
||||
},
|
||||
async patientDetial({ commit }, payload) {
|
||||
commit('setLoading', true)
|
||||
|
||||
await axios.post(ADMIN_PATIENT_DETAIL_API+payload.id, {}, {
|
||||
headers: {
|
||||
'Authorization': `Bearer ${localStorage.getItem('admin_access_token')}`,
|
||||
}
|
||||
}) .then(response => {
|
||||
commit('setLoading', false)
|
||||
console.log('Response:', response.data);
|
||||
commit('setPatientDetail',response.data)
|
||||
|
||||
})
|
||||
.catch(error => {
|
||||
commit('setLoading', false)
|
||||
console.error('Error:', error);
|
||||
});
|
||||
},
|
||||
},
|
||||
getters: {
|
||||
getIsLoading(state){
|
||||
@@ -1031,5 +1055,8 @@ export default createStore({
|
||||
getLabKitList(state) {
|
||||
return state.labKitList
|
||||
},
|
||||
getPatientDetail(state) {
|
||||
return state.patientDetail
|
||||
},
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user