$(function () { function initaveragescoreEcharts (list,s_index) { var itemStyle = { normal: { label: { show: true, //开启显示数值 position: "top" //数值在上方显示 } } }; var avgscore = [],xAxis_data=[],totalScore = 0; var curlegend = [ "平均分"]; $.each(list.pjf, function (idx, item) { totalScore += item.classavgscore; avgscore.push(item.classavgscore); xAxis_data.push(item.classname) }) var gradeAvgScore = Math.floor(totalScore / xAxis_data.length); var curseries = [ { name: "平均分", type: "bar", barWidth: $.UnitUtil.mm2px(5), // 柱状图最小高度 barMinHeight: $.UnitUtil.mm2px(2), barGap: 0, data: avgscore, itemStyle: itemStyle, markLine: { precision: 0, data: [{ type: "average", name: "平均值" }], itemStyle: { normal: { lineStyle: { color: "#ff001e", type: "dotted" }, label: { show: true, color: "#ff001e", position: "insideEndTop", formatter: function () { return "年级平均分:" + gradeAvgScore; } } } }, large: true }, z: 10 } ]; var option = { animation: false, color: ["#5C99FF", "#FF5F56", "#5EC5C8", "#f1982b"], title: { text: "分", x: "left", y: "top", textStyle: { color: "#5F6E82", fontSize: $.UnitUtil.mm2px(3), fontWeight: 500 } }, legend: { itemWidth: $.UnitUtil.mm2px(2), itemHeight: $.UnitUtil.mm2px(2), top: "bottom", data: curlegend }, grid: { top: $.UnitUtil.mm2px(10), left: 0, right: 0, bottom: $.UnitUtil.mm2px(8), containLabel: true }, xAxis: [ { type: "category", data: xAxis_data, axisLabel: { color: "#5F6E82" //更改坐标轴文字颜色 }, axisTick: { alignWithLabel: true }, boundaryGap: true, triggerEvent: true, axisLine: { show: true, //是否显示轴线 lineStyle: { color: "#DADADA" //刻度线的颜色 } } } ], yAxis: [ { type: "value", axisTick: { show: false //刻度 }, axisLine: { show: false, //是否显示轴线 lineStyle: { color: "#DADADA" //刻度线的颜色 } }, splitLine: { //网格线 lineStyle: { type: "dotted" //设置网格线类型 dotted:虚线 solid:实线 }, show: true //隐藏或显示 }, axisLabel: { color: "#5F6E82" //更改坐标轴文字颜色 } } ], series: curseries }; var myEcharts = echarts.init( document.querySelector(".section2.sectiontwo_"+s_index+" #averagescoreEcharts") ); myEcharts.clear(); myEcharts.setOption(option); } function achievementdistributiontable (list,s_index) { var table = "", goodTableHeadTr1Html = '等级排名(年级/名)人数详情', trHtml = ""; $.each(list.djtj, function (idx, item) { var stujson = JSON.parse(item.stujson),stuarr = ""; $.each(stujson, function (index, items) { stuarr+=items.studentname+"("+items.schoolrank+"名)、" }) stuarr = stuarr.substr(0, stuarr.length - 1); trHtml += '' + item.rankname + "类" + item.rankrange + "" + item.stunum+""+stuarr+""; }) table = '' + goodTableHeadTr1Html + '' + trHtml + '
' $(".section2.sectiontwo_"+s_index+" .achievementdistribution").html(table) } function progresstable (list,s_index) { var table = "", trHtml={1:"",2:""}; var cjdjheight = $(".section2_1.sectiontwo_"+s_index+" .cjdjheight").height() - 454; var surplus = pageheight - cjdjheight; //本页剩余高度 var height = 0,page = {1:"",2:""},ispage = false; $.each(list.dfjb, function (idx, item) { if (idx % 2 == 0) { height += 27.5; if (height > surplus && surplus - height < 27.5) { ispage = true; } if (ispage) { trHtml[2] += '' + (idx+1) + '' + item.username + '' + item.score + '分第' + item.classrank + '名进步' + item.classrankpre + '名'; } else { trHtml[1] += '' + (idx+1) + '' + item.username + '' + item.score + '分第' + item.classrank + '名进步' + item.classrankpre + '名'; } } else { if (ispage) { trHtml[2]+= '' + (idx+1) + '' + item.username + '' + item.score + '分第' + item.classrank + '名进步' + item.classrankpre + '名'; } else { trHtml[1] += '' + (idx+1) + '' + item.username + '' + item.score + '分第' + item.classrank + '名进步' + item.classrankpre + '名'; } } }) for (var i = 1; i < 3; i++){ page[i]='' + trHtml[i] + '
' } $(".section2_1.sectiontwo_"+s_index+" .progress").html(page[1]) if (ispage) { //添加第二页 $(".section2_1.sectiontwo_"+s_index).after( '
' ); $(".section2_2.sectiontwo_"+s_index).html(page[2]); } } function retrogression (list,s_index) { var trHtml = "", table = ""; $.each(list.dftb, function (idx, item) { item.classrankpre = Math.abs(item.classrankpre) if (idx % 2 == 0) { trHtml += '' + (idx+1) + '' + item.username + '' + item.score + '分第' + item.classrank + '名退步' + item.classrankpre + '名'; } else { trHtml += '' + (idx+1) + '' + item.username + '' + item.score + '分第' + item.classrank + '名退步' + item.classrankpre + '名'; } }) var table ='' + trHtml + '
' $(".section2.sectiontwo_"+s_index+" .retrogression").html(table) } function critical (list,s_index) { var trHtml = "", table = ""; $.each(list.ljs, function (idx, item) { if (idx % 2 == 0) { trHtml += '' + (idx+1) + '' + item.username + '' + item.score + '分第' + item.classrank + '分' + item.classrankpre + '分'; } else { trHtml += '' + (idx+1) + '' + item.username + '' + item.score + '分第' + item.classrank + '分' + item.classrankpre + '分'; } }) var table ='' + trHtml + '
' $(".section2.sectiontwo_"+s_index+" .critical").html(table) } function wave (list,s_index) { var trHtml = "", table = ""; $.each(list.bds, function (idx, item) { var curdata = { class: "red", name :"退步" } if (item.classrankpre > 0) { curdata = { class: "green", name :"进步" } } item.classrankpre = Math.abs(item.classrankpre) if (idx % 2 == 0) { trHtml += '' + (idx+1) + '' + item.username + '' + item.score + '分' + item.classrank + '分'+curdata.name + item.classrankpre + '名'; } else { trHtml += '' + (idx+1) + '' + item.username + '' + item.score + '分' + item.classrank + '分'+curdata.name + item.classrankpre + '名'; } }) var table ='' + trHtml + '
' $(".section2.sectiontwo_"+s_index+" .wave").html(table) } function errquestion (list,s_index) { var table = "", goodTableHeadTr1Html = '题号题型知识点班级得分率年级得分率高频错误项', trHtml = ""; $.each(list.gpctList, function (idx, item) { item.answer = JSON.parse(item.answer); var pointnames = item.pointnames[0] || ""; var erroroption = item.erroroption|| "--"; trHtml += '第' + item.qn + "题" + item.eptname + "" + pointnames+""+item.classsrate+'%'+item.gradesrate+'%'+erroroption+""; }) table = '' + goodTableHeadTr1Html + '' + trHtml + '
' $(".section2.sectiontwo_"+s_index+" .errquestion").html(table) } var parameter = $(".section_2_html_root").data("page-params"); parameter = JSON.parse(parameter); var html = ""; $.each(parameter, function (s_index, item) { html+='
'+ (s_index === 0 ?'

第二章 单科概况

从学校和数据的角度分析整体科目、整体班级及各科各班之间的水平和差异情况,系统从多个维度的数据进行对比分析,包括 满分、最高分、平均分、最低分、四率、参考人数、标准差。
':"")+ '

'+item.subjectname+'概况

本次报告是结合学生语文学科成绩,进行深层分析,很好地反映了全部学生阶段性的教学成果和存在的问题。学生整体表现大致如下:

1.总览

平均分
平均分排名
%
优秀率
%
及格率
最高分
全校平均分:全校最高分:

2.学科平均分对比

3.成绩等级分布

4.需关注学生

4.1 大幅进步分布

4.2 大幅退步分布

4.3 临界生分布

4.4 波动生分布

5.高频错题分析

' console.log(item); }) $(".ChapterTwo").html(html) $.each(parameter, function (s_index, item) { $(".section2.sectiontwo_"+s_index+" .classavgscore").text(item.classavgscore); $(".section2.sectiontwo_"+s_index+" .classavgscorerank").text(item.classavgscorerank); $(".section2.sectiontwo_"+s_index+" .yxrate").text(item.yxrate); $(".section2.sectiontwo_"+s_index+" .jgrate").text(item.jgrate); $(".section2.sectiontwo_"+s_index+" .classmaxscore").text(item.classmaxscore); $(".section2.sectiontwo_"+s_index+" .schoolavgscore").text(item.schoolavgscore); $(".section2.sectiontwo_"+s_index+" .schoolmaxscore").text(item.schoolmaxscore); initaveragescoreEcharts(item,s_index); achievementdistributiontable(item,s_index); progresstable(item,s_index); retrogression(item,s_index); critical(item,s_index); wave(item,s_index); errquestion(item,s_index) }) document.documentElement.scrollTop = 13500; });