import request from "@/utils/request";
import {BASE_URL} from '@/config'


export const getOnlineAnalysis = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/compare/online/analysis`,
        data:{
            ...data,
            stage:3
        }
    });
};


export const getSchoolAnalysis = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/nowExamSortAnalysisDistrict`,
        data:{
            ...data,
            stage:3
        }
    });
};


export const getSchoolPercentAnalysis = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/nowExamLimitRateAnalysisDistrict`,
        data:{
            ...data,
            stage:3
        }
    });
};




export const getTopStudentAnalysis = (data) => {
    
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/nowExamAnalysisStudent`,
        data:{
            ...data,
            stage:3
        }
    });
}


export const getCriticalStudentAnalysis = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/nowExamAnalysisStudentLj`,
        data:{
            ...data,
            stage:3
        }
    });
}


export const getBadSubjectStudentAnalysis = (data) => {

    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/nowExamAnalysisStudentYslk`,
        data:{
            ...data,
            stage:3
        }
    });
}

export const getRashStudentAnalysis = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/nowExamAnalysisStudentMjs`,
        data:{
            ...data,
            stage:3
        }
    });
}



export const getTeacherAnalysis = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamTeacherSub`,
        data:{
            ...data,
            stage:3
        }
    });
}

export const getTeacherZScoreAnalysis = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamTeacherZscore`,
        data:{
            ...data,
            stage:3
        }
    });
}

export const getTeacherTrace = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamsTeacher`,
        data:{
            ...data,
            stage:3
        }
    });
}

export const getTeacherGrade = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamsTeacherGrade`,
        data:{
            ...data,
            stage:3
        }
    });
}


export const getKnowledgePoint = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamSubjectKnowledge`,
        data:{
            ...data,
            stage:3
        }
    });
}

export const getQuestionParams = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamSubjectQuestion`,
        data:{
            ...data,
            stage:3
        }
    });
}

export const getAnswerRate = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamSubjectQuestionAnswer`,
        data:{
            ...data,
            stage:3
        }
    });
}

export const getLittleQuestion = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamSubjectQuestionDifficult`,
        data:{
            ...data,
            stage:3
        }
    });
}

//科目分布
export const getSubjectDistribution = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamSubjectDistribution`,
        data:{
            ...data,
            stage:3
        }
    });
}
//组合分布
export const getCombinationDistribution = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamSubjectCombinationDistribution`,
        data:{
            ...data,
            stage:3
        }
    });
}
//选考分析
export const getSelectedDistribution = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamSubjectCombinationAvg`,
        data:{
            ...data,
            stage:3
        }
    });
}
// 赋分分析
export const getAssignDistribution = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamSubjectElectiveLevel`,
        data:{
            ...data,
            stage:3
        }
    });
}


//获取学生群体
export const getStudentGroup = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/nowExamAnalysisStudentList`,
        data:{
            ...data,
            stage:3
        }
    });
};



//获取学生学情追踪
export const getStudentHistory = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/nowExamAnalysisStudentHistory`,
        data:{
            ...data,
            stage:3
        }
    });
};

//获取学生成绩册
export const getStudentBook = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamStudentSub`,
        data:{
            ...data,
            stage:3
        }
    });
};


//获取学生各小题
export const getStudentTopic = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamStudentQuestion`,
        data:{
            ...data,
            stage:3
        }
    });
};


//获取学生知识点
export const getStudentKnowledge = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamStudentQuestionGroup`,
        data:{
            ...data,
            stage:3
        }
    });
};


//教师群体排名分析
export const getTeacherSort = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamTeacherSort`,
        data:{
            ...data,
            stage:3
        }
    });
};

//教师群体均分分析
export const getTeacherAvg = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamTeacherAvg`,
        data:{
            ...data,
            stage:3
        }
    });
};


//当前情况基本参数分析
export const getSchoolParams = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/nowExamAnalysisDistrict`,
        data:{
            ...data,
            stage:3
        }
    });
};



//教师个人的Z值分析
export const getSingleTeacherZ = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamTeacherSingleZscore`,
        data:{
            ...data,
            stage:3
        }
    });
};

// 上线分数线
export const getOnlineScoreAnalysis = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/nowExamSortAnalysisDistrictWithScore`,
        data:{
            ...data,
            stage:3
        }
    });
};


