浏览代码

统计修改

温红权 8 年之前
父节点
当前提交
f24cb5706a

+ 3 - 3
VisualInspection/js/statistics/road_manage_statistics.js

@@ -294,7 +294,7 @@ $(function() {
                     if (months.indexOf(data[i].mth.substr(2))) {
                     if (months.indexOf(data[i].mth.substr(2))) {
                         // 指定位置插入值
                         // 指定位置插入值
                         array_year_score.splice(months.indexOf(data[i].mth.substr(2)), 0,
                         array_year_score.splice(months.indexOf(data[i].mth.substr(2)), 0,
-                            (1000 - (filter_handler(data[i].all_check_score, data[i].checked_num, data[i].people_num, 0))));
+                            (1000 - (filter_handler(data[i].all_check_score, data[i].checked_num, 1.0, 0))));
                     }
                     }
                 }
                 }
             } else {
             } else {
@@ -391,7 +391,7 @@ $(function() {
             array_allStation.length = 0;
             array_allStation.length = 0;
             if (data != null && data.length != 0) {
             if (data != null && data.length != 0) {
                 for (var i = 0; i < data.length; i++) {
                 for (var i = 0; i < data.length; i++) {
-                    array_allStation_score.push((1000 - (filter_handler(data[i].all_check_score, data[i].checked_num, data[i].people_num, 0))));
+                    array_allStation_score.push((1000 - (filter_handler(data[i].all_check_score, data[i].checked_num, 1.0, 0))));
                 }
                 }
             } else {
             } else {
                 array_allStation_score.length = 0;
                 array_allStation_score.length = 0;
@@ -421,7 +421,7 @@ $(function() {
             if (data != null && data.length != 0) {
             if (data != null && data.length != 0) {
                 for (var i = 0; i < data.length; i++) {
                 for (var i = 0; i < data.length; i++) {
                     array_score_order.push(data[i].user.truename + "\n" + "(" + data[i].user.fee_station_name.substr(0, data[i].user.fee_station_name.length - 3) + ")");
                     array_score_order.push(data[i].user.truename + "\n" + "(" + data[i].user.fee_station_name.substr(0, data[i].user.fee_station_name.length - 3) + ")");
-                    array_score_data.push((1000 - filter(data[i].all_check_score, data[i].checked_num, 0)));
+                    array_score_data.push((1000 - filter(data[i].all_check_score, 1.0, 0)));
                 }
                 }
             } else {
             } else {
                 array_score_order.length = 0;
                 array_score_order.length = 0;

+ 2 - 2
VisualInspection/js/statistics/total_company_statistics.js

@@ -256,7 +256,7 @@ $(function() {
                     if (months.indexOf(data[i].mth.substr(2))) {
                     if (months.indexOf(data[i].mth.substr(2))) {
                         // 指定位置插入值
                         // 指定位置插入值
                         array_year_score.splice(months.indexOf(data[i].mth.substr(2)), 0,
                         array_year_score.splice(months.indexOf(data[i].mth.substr(2)), 0,
-                            (1000 - (filter_handler(data[i].all_check_score, data[i].checked_num, data[i].people_num, 0))));
+                            (1000 - (filter_handler(data[i].all_check_score, data[i].checked_num, 1.0, 0))));
                     }
                     }
                 }
                 }
             } else {
             } else {
@@ -338,7 +338,7 @@ $(function() {
             array_allStation.length = 0;
             array_allStation.length = 0;
             for (var i = 0; i < data.length; i++) {
             for (var i = 0; i < data.length; i++) {
                 if (data != '' && data.length != 0) {
                 if (data != '' && data.length != 0) {
-                    array_allStation_score.push((1000 - (filter_handler(data[i].all_check_score, data[i].checked_num, data[i].people_num, 0))));
+                    array_allStation_score.push((1000 - (filter_handler(data[i].all_check_score, data[i].checked_num, 1.0, 0))));
                 } else {
                 } else {
                     array_allStation_score.length = 0;
                     array_allStation_score.length = 0;
                     array_allStation.length = 0;
                     array_allStation.length = 0;