|
@@ -18,11 +18,8 @@ var n = 0;
|
|
var sectorID = [];
|
|
var sectorID = [];
|
|
var namedata = [];
|
|
var namedata = [];
|
|
var lazhang = {};
|
|
var lazhang = {};
|
|
-var goodColor = [];
|
|
|
|
-var badColor = [];
|
|
|
|
var scheduleId = utils_get_param("scheduleId");
|
|
var scheduleId = utils_get_param("scheduleId");
|
|
var flowId = utils_get_param("flowId");
|
|
var flowId = utils_get_param("flowId");
|
|
-var userIDs = [];
|
|
|
|
|
|
|
|
function first_success(obj, sta) {
|
|
function first_success(obj, sta) {
|
|
let output = first_parse(this, obj);
|
|
let output = first_parse(this, obj);
|
|
@@ -47,10 +44,10 @@ function first_success(obj, sta) {
|
|
});
|
|
});
|
|
|
|
|
|
if (output.list.length > 0) {
|
|
if (output.list.length > 0) {
|
|
- sectorID[0] = output.list[0].sectorId;
|
|
|
|
|
|
+ sectorID[0] = getSectorId(output.list[0].spotId);
|
|
|
|
|
|
for (i = 1; i < output.list.length; i++) {
|
|
for (i = 1; i < output.list.length; i++) {
|
|
- var thisUid = output.list[i].sectorId;
|
|
|
|
|
|
+ var thisUid = getSectorId(output.list[i].spotId);
|
|
x = 0;
|
|
x = 0;
|
|
for (j = 0; j < sectorID.length; j++) {
|
|
for (j = 0; j < sectorID.length; j++) {
|
|
if (sectorID[j] === thisUid) {
|
|
if (sectorID[j] === thisUid) {
|
|
@@ -72,7 +69,7 @@ function first_success(obj, sta) {
|
|
failNumber[k] = 0;
|
|
failNumber[k] = 0;
|
|
stackeverynum[k] = 0;
|
|
stackeverynum[k] = 0;
|
|
for (i = 0; i < output.list.length; i++) {
|
|
for (i = 0; i < output.list.length; i++) {
|
|
- if (uid === output.list[i].sectorId) {
|
|
|
|
|
|
+ if (uid === getSectorId(output.list[i].spotId)) {
|
|
passNumber[k] = output.list[i].passNum + passNumber[j];
|
|
passNumber[k] = output.list[i].passNum + passNumber[j];
|
|
failNumber[k] = output.list[i].failNum + failNumber[j];
|
|
failNumber[k] = output.list[i].failNum + failNumber[j];
|
|
stackeverynum[k] = output.list[i].due + stackeverynum[j];
|
|
stackeverynum[k] = output.list[i].due + stackeverynum[j];
|
|
@@ -110,11 +107,13 @@ function request_data_realtime() {
|
|
}
|
|
}
|
|
|
|
|
|
function load_flows_history_data(nnm) {
|
|
function load_flows_history_data(nnm) {
|
|
- get_data("fcBiFlowDaily/list?scheduleId="+scheduleId+"&type=" + nnm + "&flowId=" + flowId, history_success);
|
|
|
|
|
|
+ // 请注意type必须在结尾
|
|
|
|
+ get_data("fcBiFlowDaily/list?scheduleId="+scheduleId+ "&flowId=" + flowId+"&type=" + nnm , history_success);
|
|
}
|
|
}
|
|
|
|
|
|
function load_flows_history_realtime_data() {
|
|
function load_flows_history_realtime_data() {
|
|
- get_data("fcBiFlowDaily/list?type=1&flowId=" + flowId, history_success);
|
|
|
|
|
|
+ // 请注意type必须在结尾
|
|
|
|
+ get_data("fcBiFlowDaily/list?flowId=" + flowId +"&type=1", history_success);
|
|
}
|
|
}
|
|
function get_stop_scheudle1() {
|
|
function get_stop_scheudle1() {
|
|
var out = confirm("真的要下班吗?");
|
|
var out = confirm("真的要下班吗?");
|
|
@@ -174,7 +173,7 @@ function realtime_success(obj, sta) {
|
|
|
|
|
|
|
|
|
|
if (output.list.length > 0) {
|
|
if (output.list.length > 0) {
|
|
- sectorID[0] = output.list[0].sectorId;
|
|
|
|
|
|
+ sectorID[0] = getSectorId(output.list[0].spotId);
|
|
passNumber[0] = 0;
|
|
passNumber[0] = 0;
|
|
failNumber[0] = 0;
|
|
failNumber[0] = 0;
|
|
stackeverynum[0] = 0;
|
|
stackeverynum[0] = 0;
|
|
@@ -201,7 +200,7 @@ function realtime_success(obj, sta) {
|
|
failNumber[k] = 0;
|
|
failNumber[k] = 0;
|
|
stackeverynum[k] = 0;
|
|
stackeverynum[k] = 0;
|
|
for (i = 0; i < output.list.length; i++) {
|
|
for (i = 0; i < output.list.length; i++) {
|
|
- if (uid === output.list[i].sectorId) {
|
|
|
|
|
|
+ if (uid === getSectorId(output.list[i].spotId)) {
|
|
passNumber[k] = output.list[i].passNum + passNumber[k];
|
|
passNumber[k] = output.list[i].passNum + passNumber[k];
|
|
failNumber[k] = output.list[i].failNum + failNumber[k];
|
|
failNumber[k] = output.list[i].failNum + failNumber[k];
|
|
stackeverynum[k] = output.list[i].due + stackeverynum[k];
|
|
stackeverynum[k] = output.list[i].due + stackeverynum[k];
|
|
@@ -229,5 +228,3 @@ function realtime_success(obj, sta) {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-var schedulepass = 0, schedulefail = 0, schedulestack = 0;
|
|
|
|
-
|
|
|