|
|
@@ -597,9 +597,11 @@ $(function() {
|
|
|
'echarts/theme/macarons',
|
|
|
'echarts/chart/line',
|
|
|
'echarts/chart/bar',
|
|
|
- 'echarts/chart/pie'
|
|
|
+ 'echarts/chart/pie',
|
|
|
+ 'echarts/config'
|
|
|
],
|
|
|
function(ec, theme) {
|
|
|
+
|
|
|
// 基于准备好的dom,初始化echarts图表
|
|
|
if (flag) {
|
|
|
year_assess = ec.init(document.getElementById('company-year-assess'), theme);
|
|
|
@@ -610,6 +612,16 @@ $(function() {
|
|
|
check_type = ec.init(document.getElementById('server-check-type'), theme);
|
|
|
people_points = ec.init(document.getElementById('each-people-points'));
|
|
|
|
|
|
+ year_assess.on(ecConfig.EVENT.CLICK, year_c)
|
|
|
+ points_assess.on(ecConfig.EVENT.CLICK, point_c)
|
|
|
+ score_rank.on(ecConfig.EVENT.CLICK, score_c)
|
|
|
+ stationAll_rank.on(ecConfig.EVENT.CLICK, station_c)
|
|
|
+ check_type.on(ecConfig.EVENT.CLICK, check_c)
|
|
|
+ people_points.on(ecConfig.EVENT.CLICK, people_c)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
);
|
|
|
}
|
|
|
@@ -1287,4 +1299,67 @@ $(function() {
|
|
|
}
|
|
|
|
|
|
|
|
|
-});
|
|
|
+});
|
|
|
+
|
|
|
+var ecConfig = require('echarts/config');
|
|
|
+
|
|
|
+function year_c(param) {
|
|
|
+ if (typeof param.seriesIndex == 'undefined') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (param.type == 'click') {
|
|
|
+ // console.log(param)
|
|
|
+ // alert(param.name);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+function point_c(param) {
|
|
|
+ if (typeof param.seriesIndex == 'undefined') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (param.type == 'click') {
|
|
|
+ isnew = false;
|
|
|
+ changePage("/view/statistics/assess_situation.html");
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+function score_c(param) {
|
|
|
+ if (typeof param.seriesIndex == 'undefined') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (param.type == 'click') {
|
|
|
+ // console.log(param)
|
|
|
+ // alert(param.name);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+function station_c(param) {
|
|
|
+ if (typeof param.seriesIndex == 'undefined') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (param.type == 'click') {
|
|
|
+ // console.log(param)
|
|
|
+ // alert(param.name);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+function check_c(param) {
|
|
|
+ if (typeof param.seriesIndex == 'undefined') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (param.type == 'click') {
|
|
|
+ // console.log(param)
|
|
|
+ // alert(param.name);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+function people_c(param) {
|
|
|
+ if (typeof param.seriesIndex == 'undefined') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (param.type == 'click') {
|
|
|
+ // console.log(param)
|
|
|
+ // alert(param.name);
|
|
|
+ }
|
|
|
+}
|