| | |
| | | deptId: storage.get(constant.deptId), |
| | | branchCompanyId: storage.get(constant.branchCompanyId), |
| | | branchCompanyName: storage.get(constant.branchCompanyName), |
| | | oaUserId: storage.get(constant.oaUserId) |
| | | oaUserId: storage.get(constant.oaUserId), |
| | | canCreateTask: storage.get(constant.canCreateTask) |
| | | }, |
| | | |
| | | mutations: { |
| | |
| | | SET_OA_USER_ID: (state, oaUserId) => { |
| | | state.oaUserId = oaUserId |
| | | storage.set(constant.oaUserId, oaUserId) |
| | | }, |
| | | SET_CAN_CREATE_TASK: (state, canCreateTask) => { |
| | | state.canCreateTask = canCreateTask |
| | | storage.set(constant.canCreateTask, canCreateTask) |
| | | } |
| | | }, |
| | | |
| | |
| | | commit('SET_BRANCH_COMPANY_ID', res.branchCompanyId) |
| | | commit('SET_BRANCH_COMPANY_NAME', res.branchCompanyName) |
| | | commit('SET_OA_USER_ID', res.oaUserId) |
| | | commit('SET_CAN_CREATE_TASK', res.canCreateTask) |
| | | resolve(res) |
| | | }).catch(error => { |
| | | reject(error) |