|
@@ -1,4 +1,509 @@
|
1
|
1
|
$(function () {
|
|
2
|
+ function hexToRgba(hex, opacity) {
|
|
3
|
+ var rgbaColor = "";
|
|
4
|
+ var reg = /^#[\da-f]{6}$/i;
|
|
5
|
+ if (reg.test(hex)) {
|
|
6
|
+ rgbaColor = 'rgba(' + parseInt("0x" + hex.slice(1, 3)) + ',' + parseInt("0x" + hex.slice(3, 5))
|
|
7
|
+ + ',' + parseInt("0x" + hex.slice(5, 7)) + ',' + opacity + ')'
|
|
8
|
+ }
|
|
9
|
+ return rgbaColor;
|
|
10
|
+ }
|
|
11
|
+ function initlargeAnalysisEcharts(s_index,list) {
|
|
12
|
+ var schoolscore = [],
|
|
13
|
+ classscore = [],
|
|
14
|
+ legendlist = [currentclass, "全年级"];
|
|
15
|
+ $.each(list, function (idx, item) {
|
|
16
|
+ if (item.subjectname != "全科") {
|
|
17
|
+ classscore.push(item.classavgscore);
|
|
18
|
+ schoolscore.push(item.gradeavgscore);
|
|
19
|
+ }
|
|
20
|
+ });
|
|
21
|
+ // 求出数组最大值
|
|
22
|
+ let arr = [...schoolscore, ...classscore];
|
|
23
|
+ let arr1 = Math.max.apply(null, arr);
|
|
24
|
+ let maxnum = parseInt((arr1 + 10) / 10) * 10;
|
|
25
|
+ let arrList = [];
|
|
26
|
+ $.each(list, function (idx, item) {
|
|
27
|
+ if (item.subjectname != "全科") {
|
|
28
|
+ let j = {
|
|
29
|
+ name: item.qtypename,
|
|
30
|
+ max: maxnum
|
|
31
|
+ };
|
|
32
|
+ arrList.push(j);
|
|
33
|
+ }
|
|
34
|
+ });
|
|
35
|
+ var option = {
|
|
36
|
+ animation: false,
|
|
37
|
+ color: ["#5C99FF", "#5EC5C8"],
|
|
38
|
+ legend: {
|
|
39
|
+ icon: "rectRound",
|
|
40
|
+ itemWidth: $.UnitUtil.mm2px(2),
|
|
41
|
+ itemHeight: $.UnitUtil.mm2px(2),
|
|
42
|
+ data: legendlist,
|
|
43
|
+ x: "center",
|
|
44
|
+ y: "bottom"
|
|
45
|
+ },
|
|
46
|
+ grid: {
|
|
47
|
+ top: $.UnitUtil.mm2px(10),
|
|
48
|
+ left: 0,
|
|
49
|
+ right: 0,
|
|
50
|
+ bottom: $.UnitUtil.mm2px(8),
|
|
51
|
+ containLabel: true
|
|
52
|
+ },
|
|
53
|
+ radar: {
|
|
54
|
+ radius: "60%",
|
|
55
|
+ center: ["50%", "55%"],
|
|
56
|
+ indicator: arrList
|
|
57
|
+ },
|
|
58
|
+ series: {
|
|
59
|
+ type: "radar",
|
|
60
|
+ tooltip: {
|
|
61
|
+ trigger: "item"
|
|
62
|
+ },
|
|
63
|
+ // areaStyle: {}, //内部阴影
|
|
64
|
+ data: [
|
|
65
|
+ {
|
|
66
|
+ value: classscore,
|
|
67
|
+ label: {
|
|
68
|
+ show: true,
|
|
69
|
+ formatter: function (params) {
|
|
70
|
+ return params.value;
|
|
71
|
+ }
|
|
72
|
+ },
|
|
73
|
+ name: currentclass
|
|
74
|
+ },
|
|
75
|
+ {
|
|
76
|
+ value: schoolscore,
|
|
77
|
+ label: {
|
|
78
|
+ show: true,
|
|
79
|
+ formatter: function (params) {
|
|
80
|
+ return params.value;
|
|
81
|
+ }
|
|
82
|
+ },
|
|
83
|
+ name: "全年级"
|
|
84
|
+ }
|
|
85
|
+ ]
|
|
86
|
+ }
|
|
87
|
+ };
|
|
88
|
+ var myEcharts = echarts.init(
|
|
89
|
+ document.querySelector(".section_3_"+s_index +" #largeAnalysisEcharts")
|
|
90
|
+ );
|
|
91
|
+ myEcharts.clear();
|
|
92
|
+ myEcharts.setOption(option);
|
|
93
|
+ showlargeAnalysistable(list,legendlist,s_index);
|
|
94
|
+ }
|
|
95
|
+
|
|
96
|
+ function showlargeAnalysistable (list,legendlist,s_index) {
|
|
97
|
+ var table = "",goodTableHeadTr1Html = '<th rowspan="2">题型</th><th rowspan="2">对应题号</th><th rowspan="2">分值</th><th rowspan="2">占比</th><th colspan="2">年级</th><th colspan="2">'+currentclass+'</th>',
|
|
98
|
+ goodTableHeadTr2Html = "", trHtml = "";
|
|
99
|
+ $.each(list, function (idx, item) {
|
|
100
|
+ trHtml += "<tr>";
|
|
101
|
+ trHtml+= '<td><div class="my_cell">' +
|
|
102
|
+ item.qtypename +
|
|
103
|
+ '</div></td><td><div class="my_cell">' +
|
|
104
|
+ item.qns +
|
|
105
|
+ '</div></td><td><div class="my_cell">' +
|
|
106
|
+ item.score +
|
|
107
|
+ '</div></td><td><div class="my_cell">' +
|
|
108
|
+ item.srate +
|
|
109
|
+ '%</div></td><td><div class="my_cell">' +
|
|
110
|
+ item.gradeavgscore +
|
|
111
|
+ '</div></td><td><div class="my_cell">' +
|
|
112
|
+ item.gradesrate +
|
|
113
|
+ '%</div></td><td><div class="my_cell">' +
|
|
114
|
+ item.classavgscore +
|
|
115
|
+ '</div></td><td><div class="my_cell">' +
|
|
116
|
+ item.classsrate +
|
|
117
|
+ "%" +
|
|
118
|
+ '</div></td>';
|
|
119
|
+ })
|
|
120
|
+ $.each(legendlist, function (idx, item) {
|
|
121
|
+ goodTableHeadTr2Html+="<th>平均分</th><th>得分率</th>";
|
|
122
|
+ })
|
|
123
|
+ table =' <table border="1" class="my_table"><thead><tr class="goodTableHeadTr1">' +
|
|
124
|
+ goodTableHeadTr1Html +
|
|
125
|
+ '</tr><tr class="goodTableHeadTr2">' +
|
|
126
|
+ goodTableHeadTr2Html +
|
|
127
|
+ '</tr></thead><tbody class="goodTableTbody">' +
|
|
128
|
+ trHtml +
|
|
129
|
+ "</tbody></table>"
|
|
130
|
+ $(".section_3_"+s_index +" .largeAnalysistable").html(table)
|
|
131
|
+ }
|
|
132
|
+
|
|
133
|
+ function initSmallAnalysisEcharts (s_index,list) {
|
|
134
|
+ let legendlist = [currentclass, "全年级"],
|
|
135
|
+ xAxis_data = [],
|
|
136
|
+ schoolscore = [],
|
|
137
|
+ classscore = [],
|
|
138
|
+ curseries = [];
|
|
139
|
+ $.each(list, function (idx, item) {
|
|
140
|
+ xAxis_data.push("第" + item.qn + "题");
|
|
141
|
+ classscore.push(item.classavgscore);
|
|
142
|
+ schoolscore.push(item.gradeavgscore);
|
|
143
|
+ })
|
|
144
|
+ let color = ["#5699FF", "#5EC5C8"];
|
|
145
|
+ curseries = [
|
|
146
|
+ {
|
|
147
|
+ name: currentclass,
|
|
148
|
+ type: "line",
|
|
149
|
+ symbol: "circle", // 默认是空心圆(中间是白色的),改成实心圆
|
|
150
|
+ smooth: false, //折线是否弯曲
|
|
151
|
+ // symbol: "emptyCircle",
|
|
152
|
+ symbolSize: 6,
|
|
153
|
+ itemStyle: {
|
|
154
|
+ normal: {
|
|
155
|
+ color: "#4190FF" // 拐点外圈颜色
|
|
156
|
+ }
|
|
157
|
+ },
|
|
158
|
+ label: {
|
|
159
|
+ normal: {
|
|
160
|
+ show: true,
|
|
161
|
+ align: "center",
|
|
162
|
+ verticalAlign: "bottom",
|
|
163
|
+ position: "top",
|
|
164
|
+ distance: 0,
|
|
165
|
+ formatter: `{c}`
|
|
166
|
+ }
|
|
167
|
+ },
|
|
168
|
+ areaStyle: {
|
|
169
|
+ normal: {
|
|
170
|
+ color: new echarts.graphic.LinearGradient(
|
|
171
|
+ 0,
|
|
172
|
+ 0,
|
|
173
|
+ 0,
|
|
174
|
+ 1,
|
|
175
|
+ [
|
|
176
|
+ {
|
|
177
|
+ offset: 0,
|
|
178
|
+ color: hexToRgba(color[0], 0.3)
|
|
179
|
+ },
|
|
180
|
+ {
|
|
181
|
+ offset: 1,
|
|
182
|
+ color: hexToRgba(color[0], 0)
|
|
183
|
+ }
|
|
184
|
+ ],
|
|
185
|
+ false
|
|
186
|
+ ),
|
|
187
|
+ shadowColor: hexToRgba(color[0], 0),
|
|
188
|
+ shadowBlur: 10
|
|
189
|
+ }
|
|
190
|
+ },
|
|
191
|
+ data: classscore
|
|
192
|
+ },
|
|
193
|
+ {
|
|
194
|
+ name: "全年级",
|
|
195
|
+ type: "line",
|
|
196
|
+ // smooth: true, //是否平滑曲线显示
|
|
197
|
+ symbol: "circle", // 默认是空心圆(中间是白色的),改成实心圆
|
|
198
|
+ smooth: false, //折线是否弯曲
|
|
199
|
+ // symbol: "emptyCircle",
|
|
200
|
+ symbolSize: 6,
|
|
201
|
+ // zlevel: 3,
|
|
202
|
+ itemStyle: {
|
|
203
|
+ normal: {
|
|
204
|
+ color: "#5FCE9E" // 拐点外圈颜色
|
|
205
|
+ }
|
|
206
|
+ },
|
|
207
|
+ label: {
|
|
208
|
+ normal: {
|
|
209
|
+ show: true,
|
|
210
|
+ align: "center",
|
|
211
|
+ verticalAlign: "bottom",
|
|
212
|
+ position: "top",
|
|
213
|
+ distance: 0,
|
|
214
|
+ formatter: `{c}`
|
|
215
|
+ }
|
|
216
|
+ },
|
|
217
|
+ areaStyle: {
|
|
218
|
+ normal: {
|
|
219
|
+ color: new echarts.graphic.LinearGradient(
|
|
220
|
+ 0,
|
|
221
|
+ 0,
|
|
222
|
+ 0,
|
|
223
|
+ 1,
|
|
224
|
+ [
|
|
225
|
+ {
|
|
226
|
+ offset: 0,
|
|
227
|
+ color: hexToRgba(color[1], 0.3)
|
|
228
|
+ },
|
|
229
|
+ {
|
|
230
|
+ offset: 1,
|
|
231
|
+ color: hexToRgba(color[1], 0)
|
|
232
|
+ }
|
|
233
|
+ ],
|
|
234
|
+ false
|
|
235
|
+ ),
|
|
236
|
+ shadowColor: hexToRgba(color[1], 0),
|
|
237
|
+ shadowBlur: 10
|
|
238
|
+ }
|
|
239
|
+ },
|
|
240
|
+ data: schoolscore
|
|
241
|
+ }
|
|
242
|
+ ];
|
|
243
|
+ let option = {
|
|
244
|
+ animation: false,
|
|
245
|
+ color: ["#5699FF", "#5EC5C8"],
|
|
246
|
+ title: {
|
|
247
|
+ text: "分",
|
|
248
|
+ x: "left",
|
|
249
|
+ y: "top",
|
|
250
|
+ textStyle: {
|
|
251
|
+ color: "#5F6E82",
|
|
252
|
+ fontSize: 12,
|
|
253
|
+ fontWeight: 500
|
|
254
|
+ }
|
|
255
|
+ },
|
|
256
|
+ legend: {
|
|
257
|
+ icon: "rectRound",
|
|
258
|
+ itemWidth: $.UnitUtil.mm2px(2),
|
|
259
|
+ itemHeight: $.UnitUtil.mm2px(2),
|
|
260
|
+ data: legendlist,
|
|
261
|
+ x: "center",
|
|
262
|
+ y: "bottom"
|
|
263
|
+ },
|
|
264
|
+ grid: {
|
|
265
|
+ top: $.UnitUtil.mm2px(10),
|
|
266
|
+ left: 0,
|
|
267
|
+ right: 0,
|
|
268
|
+ bottom: $.UnitUtil.mm2px(8),
|
|
269
|
+ containLabel: true
|
|
270
|
+ },
|
|
271
|
+ xAxis: [
|
|
272
|
+ {
|
|
273
|
+ type: "category",
|
|
274
|
+ data: xAxis_data,
|
|
275
|
+ axisLabel: {
|
|
276
|
+ color: "#5F6E82" //更改坐标轴文字颜色
|
|
277
|
+ },
|
|
278
|
+ axisTick: {
|
|
279
|
+ alignWithLabel: true
|
|
280
|
+ },
|
|
281
|
+ boundaryGap: true,
|
|
282
|
+ triggerEvent: true,
|
|
283
|
+ axisLine: {
|
|
284
|
+ show: true, //是否显示轴线
|
|
285
|
+ lineStyle: {
|
|
286
|
+ color: "#DADADA" //刻度线的颜色
|
|
287
|
+ }
|
|
288
|
+ }
|
|
289
|
+ }
|
|
290
|
+ ],
|
|
291
|
+ yAxis: [
|
|
292
|
+ {
|
|
293
|
+ type: "value",
|
|
294
|
+ axisTick: {
|
|
295
|
+ show: false //刻度
|
|
296
|
+ },
|
|
297
|
+ axisLine: {
|
|
298
|
+ show: false, //是否显示轴线
|
|
299
|
+ lineStyle: {
|
|
300
|
+ color: "#DADADA" //刻度线的颜色
|
|
301
|
+ }
|
|
302
|
+ },
|
|
303
|
+ splitLine: {
|
|
304
|
+ //网格线
|
|
305
|
+ lineStyle: {
|
|
306
|
+ type: "dotted" //设置网格线类型 dotted:虚线 solid:实线
|
|
307
|
+ },
|
|
308
|
+ show: true //隐藏或显示
|
|
309
|
+ },
|
|
310
|
+ axisLabel: {
|
|
311
|
+ color: "#5F6E82" //更改坐标轴文字颜色
|
|
312
|
+ }
|
|
313
|
+ }
|
|
314
|
+ ],
|
|
315
|
+ series: curseries
|
|
316
|
+ };
|
|
317
|
+ var myEcharts = echarts.init(
|
|
318
|
+ document.querySelector(".section_3_"+s_index +" #SmallAnalysisEcharts")
|
|
319
|
+ );
|
|
320
|
+ myEcharts.clear();
|
|
321
|
+ myEcharts.setOption(option);
|
|
322
|
+ showSmallSmallAnalysistable(list,legendlist,s_index);
|
|
323
|
+ }
|
|
324
|
+
|
|
325
|
+ function showSmallSmallAnalysistable (list,legendlist,s_index) {
|
|
326
|
+ var table = "",goodTableHeadTr1Html = '<th rowspan="2">题号</th><th rowspan="2">题型</th><th rowspan="2">分值</th><th rowspan="2">难度</th><th colspan="2">年级</th><th colspan="2">'+currentclass+'</th>',
|
|
327
|
+ goodTableHeadTr2Html = "", trHtml = "";
|
|
328
|
+ var complexityarr = ["一", "二", "三", "四", "五"];
|
|
329
|
+ $.each(list, function (idx, item) {
|
|
330
|
+ var complexity = item.complexity ? complexityarr[item.complexity - 1] + "星" : " ";
|
|
331
|
+ trHtml += "<tr>";
|
|
332
|
+ trHtml+= '<td><div class="my_cell">' +
|
|
333
|
+ item.qn +
|
|
334
|
+ '</div></td><td><div class="my_cell">' +
|
|
335
|
+ item.qtypename +
|
|
336
|
+ '</div></td><td><div class="my_cell">' +
|
|
337
|
+ item.score +
|
|
338
|
+ '</div></td><td><div class="my_cell">' +
|
|
339
|
+ complexity +
|
|
340
|
+ '</div></td><td><div class="my_cell">' +
|
|
341
|
+ item.gradeavgscore +
|
|
342
|
+ '</div></td><td><div class="my_cell">' +
|
|
343
|
+ item.gradesrate +
|
|
344
|
+ '%</div></td><td><div class="my_cell">' +
|
|
345
|
+ item.classavgscore +
|
|
346
|
+ '</div></td><td><div class="my_cell">' +
|
|
347
|
+ item.classsrate +
|
|
348
|
+ "%" +
|
|
349
|
+ '</div></td>';
|
|
350
|
+ })
|
|
351
|
+ $.each(legendlist, function (idx, item) {
|
|
352
|
+ goodTableHeadTr2Html+="<th>平均分</th><th>得分率</th>";
|
|
353
|
+ })
|
|
354
|
+ table =' <table border="1" class="my_table"><thead><tr class="goodTableHeadTr1">' +
|
|
355
|
+ goodTableHeadTr1Html +
|
|
356
|
+ '</tr><tr class="goodTableHeadTr2">' +
|
|
357
|
+ goodTableHeadTr2Html +
|
|
358
|
+ '</tr></thead><tbody class="goodTableTbody">' +
|
|
359
|
+ trHtml +
|
|
360
|
+ "</tbody></table>"
|
|
361
|
+ $(".section_3_" + s_index + " .SmallAnalysistable").html(table);
|
|
362
|
+ }
|
|
363
|
+
|
|
364
|
+ function initpointsAnalysisEcharts (s_index, list) {
|
|
365
|
+ if (list.length == 0) return;
|
|
366
|
+ console.log(list);
|
|
367
|
+ var schoolscore = [],
|
|
368
|
+ classscore = [],
|
|
369
|
+ legendlist = [currentclass+"得分率", "年级得分率"];
|
|
370
|
+ $.each(list, function (idx, item) {
|
|
371
|
+ if (item.subjectname != "全科") {
|
|
372
|
+ classscore.push(item.classsrate);
|
|
373
|
+ schoolscore.push(item.gradesrate);
|
|
374
|
+ }
|
|
375
|
+ });
|
|
376
|
+ // 求出数组最大值
|
|
377
|
+ let arr = [...schoolscore, ...classscore];
|
|
378
|
+ let arr1 = Math.max.apply(null, arr);
|
|
379
|
+ let maxnum = parseInt((arr1 + 10) / 10) * 10;
|
|
380
|
+ let arrList = [];
|
|
381
|
+ $.each(list, function (idx, item) {
|
|
382
|
+ if (item.subjectname != "全科") {
|
|
383
|
+ let j = {
|
|
384
|
+ name: item.pointname,
|
|
385
|
+ max: maxnum
|
|
386
|
+ };
|
|
387
|
+ arrList.push(j);
|
|
388
|
+ }
|
|
389
|
+ });
|
|
390
|
+ var option = {
|
|
391
|
+ animation: false,
|
|
392
|
+ color: ["#5C99FF", "#FF5F56"],
|
|
393
|
+ legend: {
|
|
394
|
+ icon: "rectRound",
|
|
395
|
+ itemWidth: $.UnitUtil.mm2px(2),
|
|
396
|
+ itemHeight: $.UnitUtil.mm2px(2),
|
|
397
|
+ data: legendlist,
|
|
398
|
+ x: "center",
|
|
399
|
+ y: "bottom"
|
|
400
|
+ },
|
|
401
|
+ grid: {
|
|
402
|
+ top: $.UnitUtil.mm2px(10),
|
|
403
|
+ left: 0,
|
|
404
|
+ right: 0,
|
|
405
|
+ bottom: $.UnitUtil.mm2px(8),
|
|
406
|
+ containLabel: true
|
|
407
|
+ },
|
|
408
|
+ radar: {
|
|
409
|
+ radius: "60%",
|
|
410
|
+ center: ["50%", "55%"],
|
|
411
|
+ indicator: arrList
|
|
412
|
+ },
|
|
413
|
+ series: {
|
|
414
|
+ type: "radar",
|
|
415
|
+ tooltip: {
|
|
416
|
+ trigger: "item"
|
|
417
|
+ },
|
|
418
|
+ // areaStyle: {}, //内部阴影
|
|
419
|
+ data: [
|
|
420
|
+ {
|
|
421
|
+ value: classscore,
|
|
422
|
+ label: {
|
|
423
|
+ show: true,
|
|
424
|
+ formatter: function (params) {
|
|
425
|
+ return params.value;
|
|
426
|
+ }
|
|
427
|
+ },
|
|
428
|
+ name: currentclass+"得分率"
|
|
429
|
+ },
|
|
430
|
+ {
|
|
431
|
+ value: schoolscore,
|
|
432
|
+ label: {
|
|
433
|
+ show: true,
|
|
434
|
+ formatter: function (params) {
|
|
435
|
+ return params.value;
|
|
436
|
+ }
|
|
437
|
+ },
|
|
438
|
+ name: "年级得分率"
|
|
439
|
+ }
|
|
440
|
+ ]
|
|
441
|
+ }
|
|
442
|
+ };
|
|
443
|
+ var myEcharts = echarts.init(
|
|
444
|
+ document.querySelector(".section_3_"+s_index +" #pointsAnalysisEcharts")
|
|
445
|
+ );
|
|
446
|
+ myEcharts.clear();
|
|
447
|
+ myEcharts.setOption(option);
|
|
448
|
+ showpointsAnalysistable(list,legendlist,s_index);
|
|
449
|
+ }
|
|
450
|
+
|
|
451
|
+ function showpointsAnalysistable (list, legendlist, s_index) {
|
|
452
|
+ var table = "",goodTableHeadTr1Html = '<th rowspan="2">知识点</th><th rowspan="2">对应题号</th><th rowspan="2">分值</th><th rowspan="2">占比</th><th colspan="2">年级</th><th colspan="2">'+currentclass+'</th>',
|
|
453
|
+ goodTableHeadTr2Html = "", trHtml = "";
|
|
454
|
+ $.each(list, function (idx, item) {
|
|
455
|
+ trHtml += "<tr>";
|
|
456
|
+ trHtml+= '<td><div class="my_cell">' +
|
|
457
|
+ item.pointname +
|
|
458
|
+ '</div></td><td><div class="my_cell">' +
|
|
459
|
+ item.qns +
|
|
460
|
+ '</div></td><td><div class="my_cell">' +
|
|
461
|
+ item.score +
|
|
462
|
+ '</div></td><td><div class="my_cell">' +
|
|
463
|
+ item.srate +
|
|
464
|
+ '%</div></td><td><div class="my_cell">' +
|
|
465
|
+ item.gradeavgscore +
|
|
466
|
+ '</div></td><td><div class="my_cell">' +
|
|
467
|
+ item.gradesrate +
|
|
468
|
+ '%</div></td><td><div class="my_cell">' +
|
|
469
|
+ item.classavgscore +
|
|
470
|
+ '</div></td><td><div class="my_cell">' +
|
|
471
|
+ item.classsrate +
|
|
472
|
+ "%" +
|
|
473
|
+ '</div></td>';
|
|
474
|
+ })
|
|
475
|
+ $.each(legendlist, function (idx, item) {
|
|
476
|
+ goodTableHeadTr2Html+="<th>平均分</th><th>得分率</th>";
|
|
477
|
+ })
|
|
478
|
+ table =' <table border="1" class="my_table"><thead><tr class="goodTableHeadTr1">' +
|
|
479
|
+ goodTableHeadTr1Html +
|
|
480
|
+ '</tr><tr class="goodTableHeadTr2">' +
|
|
481
|
+ goodTableHeadTr2Html +
|
|
482
|
+ '</tr></thead><tbody class="goodTableTbody">' +
|
|
483
|
+ trHtml +
|
|
484
|
+ "</tbody></table>"
|
|
485
|
+ $(".section_3_" + s_index + " .pointsAnalysistable").html(table);
|
|
486
|
+ console.log($(".section_3_" + s_index + " .pointsAnalysistable").height());
|
|
487
|
+ var
|
|
488
|
+ }
|
2
|
489
|
var parameter = $(".section_3_html_root").data("page-params");
|
3
|
490
|
parameter = JSON.parse(parameter);
|
|
491
|
+ var html = "";
|
|
492
|
+ $.each(parameter, function (s_index, item) {
|
|
493
|
+ html+='<div class="page_root section_3_'+s_index +'">'+
|
|
494
|
+ (s_index == 0?'<h1 class="section_title_1">第三章 试卷分析</h1><div class="abstract_box"><div class="abstract_left"><img src="/img/img2.png" /></div><div class="abstract_right"><div class="abstract_content">从学科试卷分析,帮我们从宏观的角度了解班级的水平和差异。系统从多个维度的数据进行学科对比分析,<strong>包括大题年级和班级的(平均分、得分率)、小题年级和班级的(平均分、得分率)。</strong></div></div></div>':"")+
|
|
495
|
+ '<h1 class="subjectinfo">'+item.subjectname+'试卷分析</h1><h2 class="section_title_2">1. 大题分析</h2><h3 class="section_title_3">1.1 大题分析</h3><div id="largeAnalysisEcharts" style="margin: 0 4mm 4mm; height: 71mm"></div><h2 class="section_title_3">1.2 大题整体分析</h2><div class="largeAnalysistable"></div></div><div class="page_root section_3_'+
|
|
496
|
+ s_index + '"><h2 class="section_title_2">2. 小题分析</h2><h3 class="section_title_3">2.1 小题分析</h3><div id="SmallAnalysisEcharts" style="margin: 0 4mm 4mm; height: 71mm"></div><h2 class="section_title_3_'+
|
|
497
|
+ s_index +'">2.2 小题整体分析</h2><div class="SmallAnalysistable"></div></div>'+(item.points.length>0?'<div class="page_root section_3_'+
|
|
498
|
+ s_index +'"><h2 class="section_title_2">3. 知识点掌握整体概况</h2><h3 class="section_title_3">3.1 知识点得分率分析</h3><div id="pointsAnalysisEcharts" style="margin: 0 4mm 4mm; height: 90mm"></div><h2 class="section_title_3">3.2 知识点整体分析</h2><div class="pointsAnalysistable"></div></div></div>':"")
|
|
499
|
+ })
|
|
500
|
+ $(".ChapterThree").html(html);
|
|
501
|
+ console.log(parameter);
|
|
502
|
+ $.each(parameter, function (s_index, item) {
|
|
503
|
+ initlargeAnalysisEcharts(s_index, item.types);
|
|
504
|
+ initSmallAnalysisEcharts(s_index, item.questions);
|
|
505
|
+ initpointsAnalysisEcharts(s_index, item.points);
|
|
506
|
+ })
|
|
507
|
+
|
|
508
|
+ document.documentElement.scrollTop = 4000;
|
4
|
509
|
});
|