Browse Source

第一部分 等级比例分析

gzb
guozhongbo 1 year ago
parent
commit
7a77baf88d
3 changed files with 1176 additions and 54 deletions
  1. 4
    5
      js/index.js
  2. 1085
    2
      js/section_1.js
  3. 87
    47
      sections/section_1.html

+ 4
- 5
js/index.js View File

3
 
3
 
4
     var loadHtmlArr = [
4
     var loadHtmlArr = [
5
       // "cover", //封面
5
       // "cover", //封面
6
-      "preface", //前言
7
-      // "section_1",
6
+      // "preface", //前言
7
+      "section_1",
8
       // "section_2",
8
       // "section_2",
9
       // "section_3",
9
       // "section_3",
10
       // "section_4",
10
       // "section_4",
20
       } else if (htmlName === "preface") {
20
       } else if (htmlName === "preface") {
21
         $("." + htmlName + "_html_root").data("page-params", JSON.stringify(sectionsData));
21
         $("." + htmlName + "_html_root").data("page-params", JSON.stringify(sectionsData));
22
       } else if (htmlName === "section_1") {
22
       } else if (htmlName === "section_1") {
23
-        $("." + htmlName + "_html_root").data("page-params", JSON.stringify(sectionsData.ksgk));
23
+        $("." + htmlName + "_html_root").data("page-params", JSON.stringify(sectionsData));
24
       } else if (htmlName === "section_2") {
24
       } else if (htmlName === "section_2") {
25
         $("." + htmlName + "_html_root").data("page-params", JSON.stringify({
25
         $("." + htmlName + "_html_root").data("page-params", JSON.stringify({
26
           cjfx: sectionsData.cjfx,
26
           cjfx: sectionsData.cjfx,
39
   // 请求接口前缀
39
   // 请求接口前缀
40
   var _pdfBaseurl = "https://schoolapitest.xhkjedu.com/";
40
   var _pdfBaseurl = "https://schoolapitest.xhkjedu.com/";
41
   // 47.1.1pdf报告
41
   // 47.1.1pdf报告
42
-  var _sexam_ers_pdf = _pdfBaseurl + "sexam/ers/pdf";
42
+  var _sexam_ers_pdf = _pdfBaseurl + "sexam/erc/pdf";
43
   $.ajax({
43
   $.ajax({
44
     type: "POST",
44
     type: "POST",
45
     url: _sexam_ers_pdf,
45
     url: _sexam_ers_pdf,
51
     contentType: "application/json; charset=utf-8",
51
     contentType: "application/json; charset=utf-8",
52
     success: function (data) {
52
     success: function (data) {
53
       if (data.code === 0) {
53
       if (data.code === 0) {
54
-        console.log(data.obj)
55
         loadSectionHtml(data.obj);
54
         loadSectionHtml(data.obj);
56
       } else {
55
       } else {
57
         alert(data.msg);
56
         alert(data.msg);

+ 1085
- 2
js/section_1.js
File diff suppressed because it is too large
View File


+ 87
- 47
sections/section_1.html View File

22
           </div>
22
           </div>
23
         </div>
23
         </div>
24
       </div>
24
       </div>
25
-      <h2 class="section_title_2">1.总览</h2>
26
-      <div class="section_list">
27
-        <div class="section_item">
28
-          <div class="item_num"><span class="classnum"></span>个</div>
29
-          <div class="item_title">班级数量</div>
30
-        </div>
31
-        <div class="section_item">
32
-          <div class="item_num"><span class="stunum"></span>人</div>
33
-          <div class="item_title">学生数量</div>
34
-        </div>
35
-        <div class="section_item">
36
-          <div class="item_num"><span class="missnum"></span>人</div>
37
-          <div class="item_title">缺考人数</div>
38
-        </div>
39
-        <div class="section_item">
40
-          <div class="item_num"><span class="subjectnum"></span>科</div>
41
-          <div class="item_title">科目数量</div>
42
-        </div>
43
-        <div class="section_item">
44
-          <div class="item_num"><span class="maxscore"></span>分</div>
45
-          <div class="item_title">最高分</div>
46
-        </div>
47
-        <div class="section_item">
48
-          <div class="item_num"><span class="avgscore"></span>分</div>
49
-          <div class="item_title">平均分</div>
50
-        </div>
51
-        <div class="section_item" style="margin-right: 0">
52
-          <div class="item_num"><span class="mixscore"></span>分</div>
53
-          <div class="item_title">最低分</div>
54
-        </div>
55
-      </div>
56
-      <h2 class="section_title_2">2.成绩概况</h2>
25
+      <h2 class="section_title_2">1.学科成绩对比</h2>
57
       <h3 class="section_title_3">
26
       <h3 class="section_title_3">
58
-        2.1 各科满分、最高分、最低分、平均分对比分析
27
+        1.1 各科满分、最高分、最低分、平均分对比分析
59
       </h3>
28
       </h3>
60
       <div
29
       <div
61
         id="averagescoreEcharts"
30
         id="averagescoreEcharts"
62
-        style="margin: 0 4mm 4mm; height: 80mm"
31
+        style="margin: 0 4mm 4mm; height: 70mm"
63
       ></div>
32
       ></div>
64
       <div class="echarts_result">
33
       <div class="echarts_result">
65
         <div>上图统计结果表示:</div>
34
         <div>上图统计结果表示:</div>
66
         <div class="echarts_result_content">
35
         <div class="echarts_result_content">
67
-          <span class="yj" style="background-color: #ff5d41"></span>满分人数最多科目:<span class="mfclass"></span>
36
+          <span class="yj" style="background-color: #ff5d41"></span
37
+          >满分人数最多科目:<span class="mfclass"></span>
68
         </div>
38
         </div>
69
       </div>
39
       </div>
70
-    </div>
71
-    <div class="page_root section1">
72
       <h3 class="section_title_3">
40
       <h3 class="section_title_3">
73
-        2.2 各科优秀率、良好率、及格率、低分率对比分析
41
+        1.2 各科优秀率、良好率、及格率、低分率对比分析
74
       </h3>
42
       </h3>
75
       <div
43
       <div
76
         id="excellencerateEcharts"
44
         id="excellencerateEcharts"
77
-        style="margin: 0 4mm 4mm; height: 80mm"
45
+        style="margin: 0 4mm 4mm; height: 70mm"
78
       ></div>
46
       ></div>
47
+    </div>
48
+    <div class="page_root section1">
79
       <div class="echarts_result">
49
       <div class="echarts_result">
80
         <div>上图统计结果表示:</div>
50
         <div>上图统计结果表示:</div>
81
         <div class="echarts_result_content">
51
         <div class="echarts_result_content">
82
-          <span class="yj" style="background-color: #5c99ff"></span>优秀率最高的科目:<span class="yxclass"></span>
52
+          <span class="yj" style="background-color: #5c99ff"></span
53
+          >优秀率最高的科目:<span class="yxclass"></span>
54
+        </div>
55
+        <div
56
+          class="echarts_result_content"
57
+          style="margin-top: 0; padding-top: 0"
58
+        >
59
+          <span class="yj" style="background-color: #ff5f56"></span
60
+          >良好率最高的科目:<span class="lhclass"></span>
83
         </div>
61
         </div>
84
         <div
62
         <div
85
           class="echarts_result_content"
63
           class="echarts_result_content"
86
           style="margin-top: 0; padding-top: 0"
64
           style="margin-top: 0; padding-top: 0"
87
         >
65
         >
88
-          <span class="yj" style="background-color: #ff5f56"></span>及格率最低的科目:<span class="jgclass"></span>
66
+          <span class="yj" style="background-color: #5ec5c8"></span
67
+          >及格率最高的科目:<span class="jgclass"></span>
68
+        </div>
69
+        <div
70
+          class="echarts_result_content"
71
+          style="margin-top: 0; padding-top: 0"
72
+        >
73
+          <span class="yj" style="background-color: #f1982b"></span
74
+          >低分率最高的科目:<span class="dfclass"></span>
89
         </div>
75
         </div>
90
       </div>
76
       </div>
91
-      <h3 class="section_title_3">2.3 各科实考人数、缺考人数分析</h3>
77
+      <h3 class="section_title_3">1.3 各科实考人数、缺考人数分析</h3>
92
       <div id="examnumEcharts" style="margin: 0 4mm 4mm; height: 80mm"></div>
78
       <div id="examnumEcharts" style="margin: 0 4mm 4mm; height: 80mm"></div>
93
       <div class="echarts_result">
79
       <div class="echarts_result">
94
         <div>上图统计结果表示:</div>
80
         <div>上图统计结果表示:</div>
104
           >缺考人数最多的科目:<span class="qkclass"></span>
90
           >缺考人数最多的科目:<span class="qkclass"></span>
105
         </div>
91
         </div>
106
       </div>
92
       </div>
93
+      <h3 class="section_title_3">1.4 各科标准差分析</h3>
94
+      <div id="bzcEcharts" style="margin: 0 4mm 4mm; height: 80mm"></div>
107
     </div>
95
     </div>
108
     <div class="page_root section1">
96
     <div class="page_root section1">
109
-      <h3 class="section_title_3">2.4 各科标准差分析</h3>
110
-      <div id="bzcEcharts" style="margin: 0 4mm 4mm; height: 80mm"></div>
111
-      <h3 class="section_title_3">2.5 成绩整体分析</h3>
97
+      <h3 class="section_title_3">1.5 学科成绩整体分析</h3>
112
       <table border="1" class="my_table">
98
       <table border="1" class="my_table">
113
         <thead>
99
         <thead>
114
           <tr>
100
           <tr>
126
             <th class="w12mm">标准差</th>
112
             <th class="w12mm">标准差</th>
127
           </tr>
113
           </tr>
128
         </thead>
114
         </thead>
129
-        <tbody class="tbody">
130
-        </tbody>
115
+        <tbody class="tbody"></tbody>
131
       </table>
116
       </table>
117
+      <h2 class="section_title_2">2.平均分对比</h2>
118
+      <div
119
+        id="examaverageEcharts"
120
+        style="margin: 0 4mm 4mm; height: 80mm"
121
+      ></div>
122
+      <div class="echarts_result">
123
+        <div>上图统计结果表示:</div>
124
+        <div class="echarts_result_content">
125
+          <span class="yj" style="background-color: #5c99ff"></span
126
+          >考的较好的科目:<span class="goodclass"></span>
127
+        </div>
128
+        <div
129
+          class="echarts_result_content"
130
+          style="margin-top: 0; padding-top: 0"
131
+        >
132
+          <span class="yj" style="background-color: #ff5f56"></span
133
+          >考的较差的科目:<span class="badclass"></span>
134
+        </div>
135
+      </div>
136
+      <h2 class="section_title_2">3.分数等级统计</h2>
137
+      <h3 class="section_title_3">3.1 各科等级分析</h3>
138
+      <div id="scoreGradeEcharts" style="margin: 0 4mm 4mm; height: 70mm"></div>
139
+    </div>
140
+    <div class="page_root section1">
141
+      <h3 class="section_title_3">3.2 各科等级比例分析</h3>
142
+      <div class="gradescale">
143
+        <table border="1" class="my_table">
144
+          <thead>
145
+            <tr class="goodTableHeadTr1"></tr>
146
+            <tr class="goodTableHeadTr2"></tr>
147
+          </thead>
148
+          <tbody class="goodTableTbody"></tbody>
149
+        </table>
150
+      </div>
151
+      <div class="echarts_result">
152
+        <div>
153
+          上图各等级上线统计结果为:<span class="result_collect"></span>:
154
+        </div>
155
+        <div class="echarts_result_content">
156
+          <div>
157
+            <span class="bg_5699FF"></span><i class="A_collect"></i>
158
+          </div>
159
+          <div>
160
+            <span class="bg_FF5F56"></span><i class="B_collect"></i>
161
+          </div>
162
+          <div>
163
+            <span class="bg_5EC5C8"></span><i class="C_collect"></i>
164
+          </div>
165
+          <div>
166
+            <span class="bg_F1982B"></span><i class="D_collect"></i>
167
+          </div>
168
+          <div>
169
+            <span class="bg_F1982B"></span><i class="E_collect"></i>
170
+          </div>
171
+        </div>
132
     </div>
172
     </div>
133
     <script src="../js/section_1.js"></script>
173
     <script src="../js/section_1.js"></script>
134
   </body>
174
   </body>

Loading…
Cancel
Save