|
@@ -89,11 +89,6 @@ function first_success(obj, sta) {
|
|
for (i = 1; i <= 3; i++) {
|
|
for (i = 1; i <= 3; i++) {
|
|
load_flows_history_data(i);
|
|
load_flows_history_data(i);
|
|
}
|
|
}
|
|
-
|
|
|
|
- load_table_red_rank();
|
|
|
|
- load_table_black_rank();
|
|
|
|
-
|
|
|
|
-
|
|
|
|
showChart();
|
|
showChart();
|
|
|
|
|
|
lazhang.timer = setInterval(request_data_realtime, 1000);
|
|
lazhang.timer = setInterval(request_data_realtime, 1000);
|
|
@@ -102,7 +97,9 @@ function first_success(obj, sta) {
|
|
|
|
|
|
function request_data_realtime() {
|
|
function request_data_realtime() {
|
|
get_data("fcWorkScheduleLoad/list?scheduleId=" + scheduleId, realtime_success);
|
|
get_data("fcWorkScheduleLoad/list?scheduleId=" + scheduleId, realtime_success);
|
|
- load_flows_history_realtime_data();
|
|
|
|
|
|
+ //load_flows_history_realtime_data();
|
|
|
|
+ load_table_red_rank();
|
|
|
|
+ load_table_black_rank();
|
|
}
|
|
}
|
|
|
|
|
|
function load_flows_history_data(nnm) {
|
|
function load_flows_history_data(nnm) {
|
|
@@ -295,4 +292,26 @@ function realtime_success(obj, sta) {
|
|
}
|
|
}
|
|
updateChart();
|
|
updateChart();
|
|
|
|
|
|
|
|
+ var hhp = 0, hhf = 0, hhs = 0;
|
|
|
|
+ output.list.forEach(function (val,fid,arr){
|
|
|
|
+ hhp += val.passNum;
|
|
|
|
+ hhf += val.failNum;
|
|
|
|
+ hhs += val.due;
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ hispass[0] = hhp;
|
|
|
|
+ hisfail[0] = hhf;
|
|
|
|
+
|
|
|
|
+ if(output.list.length > 0) {
|
|
|
|
+ hisstack[0] = hhs / output.list.length;
|
|
|
|
+ }else{
|
|
|
|
+ hisstack[0] = 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (hispass[0] + hisfail[0] == 0) {
|
|
|
|
+ hisrate[0] = 0;
|
|
|
|
+ } else {
|
|
|
|
+ hisrate[0] = Math.floor(hisfail[0] / (hispass[0] + hisfail[0]) * 10000) / 100;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|