系统常用数据

store

store是全局的,参考文档 https://vuex.vuejs.org/zh/guide/state.html

key 类型 使用 说明
user_info Obj this.$store.getters.user_info 登录员工的信息
employee_map Obj this.$store.getters.employee_map 当前公司员工的索引对象,通过员工ID可以在这个对象中找到对应的员工信息
point_types Obj this.$store.getters.point_types 当前公司启用的积分类型列表

localStorage

key 类型 说明
account_info Obj 公司信息
menu Arr 获取到的路由列表
site_info Obj 公司信息
refreshTime Str 存入当前操作时间(15天内不重新登录)
SET_EMPLOYEE_MAP Obj 在职员工列表
SET_EMPLOYEE_MAP_JX Obj 所有员工列表(包含离职)(现只在绩效模块使用)
user_info Obj 当前登录者信息
SET_POINT_TYPES Arr 积分类型
userInfo_jx Obj 绩效模块用户详情
role Str 绩效系统数据(当前角色)
文档更新时间: 2021-05-13 08:46   作者:程健