dataReport.js 3.7 KB
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;
    }
}