From 021f489555f796e1241cc9078648e5913566b2ad Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 31 十月 2024 17:40:38 +0800
Subject: [PATCH] 测试完成
---
src/store/modules/user.js | 81 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 80 insertions(+), 1 deletions(-)
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index ab0a6fe..d5b94fa 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -6,8 +6,76 @@
token: getToken(),
name: '',
avatar: '',
+ belongWards:[],
+ belongDepts:[],
roles: [],
- permissions: []
+ permissions: [],
+ // 鏈嶅姟绫诲瀷
+ Serviceauthority: [
+ {
+ value: "1",
+ label: "鎮h�呮姤鍛�",
+ route: "followvisit/QuestionnaireTask",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ {
+ value: "2",
+ label: "鐩戞祴璇勪及",
+ route: "followvisit/QuestionnaireTask",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ {
+ value: "3",
+ label: "澶嶈瘖绠$悊",
+ route: "followvisit/particty",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ {
+ value: "4",
+ label: "瀹f暀鍏虫��",
+ route: "followvisit/Missioncreation",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ {
+ value: "5",
+ label: "鍑洪櫌闅忚",
+ route: "followvisit/particty",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ {
+ value: "6",
+ label: "闂ㄨ瘖闅忚",
+ route: "followvisit/particty",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ {
+ value: "7",
+ label: "閫氱煡鏈嶅姟",
+ route: "followvisit/Missioncreation",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ ],
},
mutations: {
@@ -25,6 +93,15 @@
},
SET_PERMISSIONS: (state, permissions) => {
state.permissions = permissions
+ },
+ SET_Serviceauthority: (state, Serviceauthority) => {
+ state.Serviceauthority = Serviceauthority
+ },
+ SET_leavehospitaldistrictcodes: (state, belongWards) => {
+ state.belongWards = belongWards
+ },
+ SET_leaveldeptcodes: (state, belongDepts) => {
+ state.belongDepts = belongDepts
}
},
@@ -59,6 +136,8 @@
commit('SET_ROLES', ['ROLE_DEFAULT'])
}
commit('SET_NAME', user.userName)
+ commit('SET_leavehospitaldistrictcodes', user.belongWards)
+ commit('SET_leaveldeptcodes', user.belongDepts)
commit('SET_AVATAR', avatar)
resolve(res)
}).catch(error => {
--
Gitblit v1.9.3