|
|
|
|
@ -51,7 +51,11 @@ const mutations = {
|
|
|
|
|
},
|
|
|
|
|
SET_ISADMIN: (state, is_admin) => {
|
|
|
|
|
state.is_admin = is_admin
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
SET_ISDASHBOARDSHOW: (state, is_dashboard_show) => {
|
|
|
|
|
state.is_dashboard_show = is_dashboard_show
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const actions = {
|
|
|
|
|
@ -102,6 +106,11 @@ const actions = {
|
|
|
|
|
if(k.name==='系统管理员'||k.name==='财务部'){
|
|
|
|
|
response["is_admin"] = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(k.name==='系统管理员'||k.name==='首页财务数据'){
|
|
|
|
|
response["is_dashboard_show"] = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
const {
|
|
|
|
|
roles,
|
|
|
|
|
@ -110,7 +119,8 @@ const actions = {
|
|
|
|
|
login_id,
|
|
|
|
|
area_id,
|
|
|
|
|
auth_type,
|
|
|
|
|
is_admin
|
|
|
|
|
is_admin,
|
|
|
|
|
is_dashboard_show
|
|
|
|
|
} = response
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -122,6 +132,7 @@ const actions = {
|
|
|
|
|
commit('SET_AREAID', area_id)
|
|
|
|
|
commit('SET_AUTHTYPE', auth_type)
|
|
|
|
|
commit('SET_ISADMIN', is_admin)
|
|
|
|
|
commit('SET_ISDASHBOARDSHOW', is_dashboard_show)
|
|
|
|
|
|
|
|
|
|
resolve(response)
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
|