dataReport.js
3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import * as types from '../constants/ActionTypes';
const initialState = {
// formDefind :[],
// providerList :{},
// recruitProviderList:{},
// providerDel :{},
// is_import :'init',
// errorMeg :'',
// provider_is_ok :'init',
// providerAccount :{},
outSouringList : {},
overviewCrmData: null,
overviewRecruitData: null,
overviewEmpmgmData: null,
overviewPayrollData: null,
overviewPsiorderData: null,
overviewContractData: null,
newAdResumeList:[],
resumes_sum:"",
newAdResumepage: "",
admin_count:"",
};
export default function environment(state = initialState,action) {
switch(action.type) {
// case types.DETAIL_RANGE_AGENTS:
// return Object.assign({}, state, {
// agentDetailList: action.agentDetailList,
// total_direct: action.total_direct,
// total_bylower: action.total_bylower,
// total_count: action.total_count,
// });
case types.LIST_JOB_SEEKER_INFO:
return Object.assign({}, state, {
jobSeekerInfoList: action.jobSeekerInfoList,
});
case types.LIST_RECRUIT_DATA_INFO:
return Object.assign({}, state, {
recruitDataInfoList: action.recruitDataInfoList,
});
case types.RECRUIT_DATA_SUM:
return Object.assign({}, state, {
sumDataRecruit: action.sumDataRecruit,
});
case types.OVERVIEW_CRM_DATA:
return Object.assign({}, state, {
overviewCrmData: action.overviewCrmData,
});
case types.OVERVIEW_RECRUIT_DATA:
return Object.assign({}, state, {
overviewRecruitData: action.overviewRecruitData,
});
case types.OVERVIEW_EMPMGM_DATA:
return Object.assign({}, state, {
overviewEmpmgmData: action.overviewEmpmgmData,
});
case types.OVERVIEW_PAYROLL_DATA:
return Object.assign({}, state, {
overviewPayrollData: action.overviewPayrollData,
});
case types.OVERVIEW_PSIORDER_DATA:
return Object.assign({}, state, {
overviewPsiorderData: action.overviewPsiorderData,
});
case types.OVERVIEW_CONTRACT_DATA:
return Object.assign({}, state, {
overviewContractData: action.overviewContractData,
});
case types.NEWADRESUMELIST:
return Object.assign({}, state, {
newAdResumeList: action.newAdResumeList,
resumes_sum: action.resumes_sum,
admin_count: action.admin_count,
});
case types.NEWADRESUMEPAGEACTION:
return Object.assign({}, state, {
newAdResumepage: action.newAdResumepage,
});
case types.LIST_RECRUIT_ANALYZE_DATA_TOTAL_INFO:
return Object.assign({}, state, {
recruitAnalyzeTotalDataInfoList: action.recruitAnalyzeTotalDataInfoList,
});
case types.STATISTICS_PERFORMANCE_LIST:
return Object.assign({}, state, {
statisticsPerformanceList: action.statisticsPerformanceList,
});
case types.STATISTICS_SOURCE_LIST:
return Object.assign({}, state, {
statisticsSourceList: action.statisticsSourceList,
});
case types.STATISTICS_RECOMMENDER_LIST:
return Object.assign({}, state, {
statisticsRecommenderList: action.statisticsRecommenderList,
});
default:
return state;
}
}