|
|
|
@ -15,6 +15,7 @@ const user = {
|
|
|
|
pcId: null,
|
|
|
|
pcId: null,
|
|
|
|
itemIds: null,
|
|
|
|
itemIds: null,
|
|
|
|
voteIds: null,
|
|
|
|
voteIds: null,
|
|
|
|
|
|
|
|
deptId: null,
|
|
|
|
roles: [],
|
|
|
|
roles: [],
|
|
|
|
permissions: []
|
|
|
|
permissions: []
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -44,6 +45,9 @@ const user = {
|
|
|
|
SET_VOTEIDS: (state, voteIds) => {
|
|
|
|
SET_VOTEIDS: (state, voteIds) => {
|
|
|
|
state.voteIds = voteIds
|
|
|
|
state.voteIds = voteIds
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
SET_DEPTID: (state, deptId) => {
|
|
|
|
|
|
|
|
state.deptId = deptId
|
|
|
|
|
|
|
|
},
|
|
|
|
SET_ROLES: (state, roles) => {
|
|
|
|
SET_ROLES: (state, roles) => {
|
|
|
|
state.roles = roles
|
|
|
|
state.roles = roles
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -92,6 +96,7 @@ const user = {
|
|
|
|
commit('SET_PCID', user.pcId)
|
|
|
|
commit('SET_PCID', user.pcId)
|
|
|
|
commit('SET_ITEMIDS', user.itemIds)
|
|
|
|
commit('SET_ITEMIDS', user.itemIds)
|
|
|
|
commit('SET_VOTEIDS', user.voteIds)
|
|
|
|
commit('SET_VOTEIDS', user.voteIds)
|
|
|
|
|
|
|
|
commit('SET_DEPTID', user.deptId)
|
|
|
|
/* 初始密码提示 */
|
|
|
|
/* 初始密码提示 */
|
|
|
|
/*if(res.isDefaultModifyPwd) {
|
|
|
|
/*if(res.isDefaultModifyPwd) {
|
|
|
|
MessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
|
|
|
MessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
|
|
|
|