fix
This commit is contained in:
parent
d247817d5d
commit
e4ec7789de
@ -33,5 +33,5 @@ export const MEDICINE_DELETE_API = MAIN_DOMAIN + "/api/admin/delete-med/"
|
|||||||
export const PROVIDER_MEETING_LIST_API = MAIN_DOMAIN + "/api/admin/get-meeting-history-with-agent/"
|
export const PROVIDER_MEETING_LIST_API = MAIN_DOMAIN + "/api/admin/get-meeting-history-with-agent/"
|
||||||
|
|
||||||
export const ADMIN_LOGIN_DETAIL = MAIN_DOMAIN + "/api/admin/admin-details"
|
export const ADMIN_LOGIN_DETAIL = MAIN_DOMAIN + "/api/admin/admin-details"
|
||||||
|
export const ADMIN_GET_SITE_SETTING = MAIN_DOMAIN + "/api/admin/site-settings"
|
||||||
|
|
||||||
|
@ -88,7 +88,21 @@ export const routes = [
|
|||||||
name: 'admin-medicines',
|
name: 'admin-medicines',
|
||||||
component: () => import('@/pages/medicines/medicines.vue'),
|
component: () => import('@/pages/medicines/medicines.vue'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/admin/profile',
|
||||||
|
name: 'admin-profile',
|
||||||
|
component: () => import('@/views/pages/account-settings/AccountSettingsAccount.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/admin/change-password',
|
||||||
|
name: 'admin-change-password',
|
||||||
|
component: () => import('@/views/pages/account-settings/AccountSettingsSecurity.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/admin/site-setting',
|
||||||
|
name: 'admin-site-setting',
|
||||||
|
component: () => import('@/views/pages/account-settings/WebsiteSettings.vue'),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/apps/email/filter/:filter',
|
path: '/apps/email/filter/:filter',
|
||||||
name: 'apps-email-filter',
|
name: 'apps-email-filter',
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { createStore } from 'vuex';
|
import { createStore } from 'vuex';
|
||||||
import {
|
import {
|
||||||
|
ADMIN_GET_SITE_SETTING,
|
||||||
ADMIN_LOGIN_DETAIL,
|
ADMIN_LOGIN_DETAIL,
|
||||||
APPOINTMENT_DETAILS_API,
|
APPOINTMENT_DETAILS_API,
|
||||||
LABS_DELETE_API,
|
LABS_DELETE_API,
|
||||||
@ -38,7 +39,8 @@ export default createStore({
|
|||||||
patientNotes: null,
|
patientNotes: null,
|
||||||
medicineList: [],
|
medicineList: [],
|
||||||
questioneriesList: [],
|
questioneriesList: [],
|
||||||
adminDetail:null
|
adminDetail: null,
|
||||||
|
sitSetting:null
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
setLoading(state, payload) {
|
setLoading(state, payload) {
|
||||||
@ -77,8 +79,10 @@ export default createStore({
|
|||||||
},
|
},
|
||||||
setAdminDetail(state, payload) {
|
setAdminDetail(state, payload) {
|
||||||
state.adminDetail = payload
|
state.adminDetail = payload
|
||||||
|
},
|
||||||
|
setSiteSetting(state, payload) {
|
||||||
|
state.sitSetting = payload
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
|
||||||
@ -561,6 +565,24 @@ export default createStore({
|
|||||||
console.error('Error:', error);
|
console.error('Error:', error);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
async siteSetting({ commit }, payload) {
|
||||||
|
commit('setLoading', true)
|
||||||
|
|
||||||
|
await axios.post(ADMIN_GET_SITE_SETTING, {}, {
|
||||||
|
headers: {
|
||||||
|
'Authorization': `Bearer ${localStorage.getItem('admin_access_token')}`,
|
||||||
|
}
|
||||||
|
}) .then(response => {
|
||||||
|
commit('setLoading', false)
|
||||||
|
console.log('Response:', response.data);
|
||||||
|
commit('setSiteSetting',response.data.medicines)
|
||||||
|
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
commit('setLoading', false)
|
||||||
|
console.error('Error:', error);
|
||||||
|
});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {
|
||||||
getIsLoading(state){
|
getIsLoading(state){
|
||||||
@ -600,5 +622,8 @@ export default createStore({
|
|||||||
getAdminDetail(state){
|
getAdminDetail(state){
|
||||||
return state.adminDetail
|
return state.adminDetail
|
||||||
},
|
},
|
||||||
|
getSiteSetting(state){
|
||||||
|
return state.siteSetting
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -121,6 +121,10 @@ const currencies = [
|
|||||||
'HUF',
|
'HUF',
|
||||||
'INR',
|
'INR',
|
||||||
]
|
]
|
||||||
|
onMounted(async () => {
|
||||||
|
await store.dispatch('siteSetting');
|
||||||
|
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
Loading…
Reference in New Issue
Block a user