From 4c31aa31a73ccdd35f690c7f587a5f51f90269fd Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Sat, 23 Aug 2025 16:20:45 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=B4=A2=E5=8A=A1=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/store/modules/user.js | 15 +++++++++++++--
src/views/dashboard/index.vue | 2 +-
2 files changed, 14 insertions(+), 3 deletions(-)
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 @@
-
+