|
@@ -120,7 +120,7 @@ $(function () {
|
120
|
120
|
}
|
121
|
121
|
]
|
122
|
122
|
};
|
123
|
|
- var myEcharts = echarts.init(document.querySelector(".section_2_lin_all #classCriticalRankEcharts"));
|
|
123
|
+ var myEcharts = echarts.init(document.querySelector(".section_2_lin #classCriticalRankEcharts"));
|
124
|
124
|
myEcharts.clear();
|
125
|
125
|
myEcharts.setOption(option);
|
126
|
126
|
}
|
|
@@ -245,13 +245,50 @@ $(function () {
|
245
|
245
|
}
|
246
|
246
|
]
|
247
|
247
|
};
|
248
|
|
- var myEcharts = echarts.init(document.querySelector(".section_2_lin_all #classCriticalScoreEcharts"));
|
|
248
|
+ var myEcharts = echarts.init(document.querySelector(".section_2_lin #classCriticalScoreEcharts"));
|
249
|
249
|
myEcharts.clear();
|
250
|
250
|
myEcharts.setOption(option);
|
251
|
251
|
}
|
252
|
|
- var parameter = $(".section_2_html_root .section_2_lin_all_html_root").data("page-params");
|
|
252
|
+ var parameter = $(".section_2_html_root .section_2_lin_html_root").data("page-params");
|
253
|
253
|
parameter = JSON.parse(parameter);
|
254
|
|
- console.log(".section_2_lin_all_html_root:parameter", parameter);
|
|
254
|
+ var subjectInfo = [];
|
|
255
|
+ var subjectid_ranktype = {};
|
|
256
|
+ for(var sid_3 in parameter[3]) {
|
|
257
|
+ if (sid_3 === "zf") {
|
|
258
|
+ subjectInfo.unshift({
|
|
259
|
+ subjectid: sid_3,
|
|
260
|
+ subjectname: "全科"
|
|
261
|
+ });
|
|
262
|
+ } else {
|
|
263
|
+ subjectInfo.push({
|
|
264
|
+ subjectid: sid_3,
|
|
265
|
+ subjectname: parameter[3][sid_3].subjectname
|
|
266
|
+ });
|
|
267
|
+ }
|
|
268
|
+ if (!subjectid_ranktype[sid_3]) {
|
|
269
|
+ subjectid_ranktype[sid_3] = {};
|
|
270
|
+ }
|
|
271
|
+ subjectid_ranktype[sid_3][3] = parameter[3][sid_3];
|
|
272
|
+ }
|
|
273
|
+ for(var sid_4 in parameter[4]) {
|
|
274
|
+ if (!subjectid_ranktype[sid_4]) {
|
|
275
|
+ subjectid_ranktype[sid_4] = {};
|
|
276
|
+ }
|
|
277
|
+ subjectid_ranktype[sid_4][4] = parameter[4][sid_4];
|
|
278
|
+ }
|
|
279
|
+ console.log("subjectid_ranktype", subjectid_ranktype);
|
|
280
|
+ var singleRootHtml = "";
|
|
281
|
+ $.each(subjectInfo, function(s_index, s_item) {
|
|
282
|
+ if (s_index === 0) {
|
|
283
|
+ console.log("s_index", s_index);
|
|
284
|
+ console.log("s_item", s_item);
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+ }
|
|
290
|
+ });
|
|
291
|
+ $(".section_2_lin_root").html(singleRootHtml);
|
255
|
292
|
initClassCriticalRankEcharts();
|
256
|
293
|
initClassCriticalScoreEcharts();
|
257
|
294
|
});
|