diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 5781b13..222708d 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -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 => {
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index 6e7da6f..6ae8fc5 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -40,7 +40,7 @@
-
+