feat(HRM): 新增HRM办公审批模块及相关功能组件
新增HRM办公审批模块,包括审批中心、抄送我的、我的申请等功能页面和组件。主要变更包括: 1. 添加审批相关API接口文件 2. 新增审批详情展示组件 3. 实现审批流程操作功能 4. 添加Vuex状态管理 5. 新增相关静态资源图片 6. 配置页面路由 7. 实现审批列表展示和筛选功能 8. 添加审批操作弹窗和状态管理
This commit is contained in:
@@ -19,4 +19,6 @@ export default {
|
||||
storeReinstall: (state) => state.user.reinstall,
|
||||
storeProgress: (state) => state.user.progress,
|
||||
storeAuthData: (state) => state.user.authData,
|
||||
storeOaId: (state) => state.oa.id,
|
||||
storeOaName: (state) => state.oa.userName,
|
||||
};
|
||||
|
||||
@@ -6,6 +6,7 @@ import conversation from "./modules/conversation";
|
||||
import message from "./modules/message";
|
||||
import cache from './modules/cache.js'
|
||||
import getters from "./getters";
|
||||
import oa from './modules/oa.js'
|
||||
|
||||
Vue.use(Vuex);
|
||||
|
||||
@@ -15,7 +16,8 @@ const store = new Vuex.Store({
|
||||
contact,
|
||||
conversation,
|
||||
message,
|
||||
cache
|
||||
cache,
|
||||
oa
|
||||
},
|
||||
getters,
|
||||
});
|
||||
|
||||
24
store/modules/oa.js
Normal file
24
store/modules/oa.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const state = {
|
||||
id: undefined,
|
||||
nickName: undefined,
|
||||
userName: undefined,
|
||||
roles: [],
|
||||
dept: undefined,
|
||||
}
|
||||
|
||||
const mutations = {
|
||||
SET_STATE(state, value) {
|
||||
state.id = value.userId;
|
||||
state.nickName = value.nickName;
|
||||
state.userName = value.userName;
|
||||
state.dept = value.dept.deptName;
|
||||
},
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state,
|
||||
mutations,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user