diff --git a/ruoyi-ui/src/store/getters.js b/ruoyi-ui/src/store/getters.js index 943fa617..c389ae9b 100644 --- a/ruoyi-ui/src/store/getters.js +++ b/ruoyi-ui/src/store/getters.js @@ -11,6 +11,7 @@ const getters = { avatar: state => state.user.avatar, userId: state => state.user.userId, name: state => state.user.name, + nickname: state => state.user.nickname, dept:state=>state.user.dept, introduction: state => state.user.introduction, roles: state => state.user.roles, diff --git a/ruoyi-ui/src/store/modules/user.js b/ruoyi-ui/src/store/modules/user.js index b8297c74..b9cb2481 100644 --- a/ruoyi-ui/src/store/modules/user.js +++ b/ruoyi-ui/src/store/modules/user.js @@ -6,6 +6,7 @@ const user = { token: getToken(), userId:'', name: '', + nickname: '', avatar: '', dept:null, roles: [], @@ -22,6 +23,9 @@ const user = { SET_NAME: (state, name) => { state.name = name }, + SET_NICKNAME: (state, nickname) => { + state.nickname = nickname + }, SET_AVATAR: (state, avatar) => { state.avatar = avatar }, @@ -68,6 +72,7 @@ const user = { } commit('SET_USER_ID', user.userId) commit('SET_NAME', user.userName) + commit('SET_NICKNAME', user.nickName) commit("SET_DEPT",user.dept); commit('SET_AVATAR', avatar) resolve(res) diff --git a/ruoyi-ui/src/views/flowable/definition/index.vue b/ruoyi-ui/src/views/flowable/definition/index.vue index 19d2416f..80df81ed 100644 --- a/ruoyi-ui/src/views/flowable/definition/index.vue +++ b/ruoyi-ui/src/views/flowable/definition/index.vue @@ -86,7 +86,7 @@ 搜索 重置 - 批量提交 + + + 新增 + + + 数据同步 + + + + 批量提交 + + + + + + + - + - + + +