|
|
@@ -116,7 +116,7 @@
|
|
|
}
|
|
|
|
|
|
function getTotalHtml(data) {
|
|
|
- var html = "<tr><td>合计</td><td></td><td></td><td>" + data.totalMan + "</td><td>" + data.totalcheckedMan + "</td><td>" + data.totalcheckedCount + "</td><td>" + data.total0 + "</td><td>" + data.total15 + "</td><td>" + data.total50 + "</td><td>" + data.totalOver50 + "</td><td>" + data.totalAll + "</td><td>-</td><td>-</td></tr>";
|
|
|
+ var html = "<tr><td>合计</td><td></td><td>" + data.totalMan + "</td><td>" + data.totalcheckedMan + "</td><td>" + data.totalcheckedCount + "</td><td>" + data.total0 + "</td><td>" + data.total15 + "</td><td>" + data.total50 + "</td><td>" + data.totalOver50 + "</td><td>" + data.totalAll + "</td><td>-</td></tr>";
|
|
|
return html;
|
|
|
}
|
|
|
/**
|
|
|
@@ -134,62 +134,61 @@
|
|
|
rank.length = 0;
|
|
|
// 把收费站得分分别添加到3个数组
|
|
|
for (i = 0; i < data.length; i++) {
|
|
|
- if (i >= 0 && i <= 6)
|
|
|
- lianyungang_Station.push(filterByZeroHandle(filterJudge(data[i].all_check_score, data[i].checked_num), '0'));
|
|
|
- else if (i > 6 && i <= 12)
|
|
|
- yancheng_Station.push(filterByZeroHandle(filterJudge(data[i].all_check_score, data[i].checked_num), '0'));
|
|
|
- else
|
|
|
- nantong_Station.push(filterByZeroHandle(filterJudge(data[i].all_check_score, data[i].checked_num), '0'));
|
|
|
+ // if (i >= 0 && i <= 6)
|
|
|
+ lianyungang_Station.push(filterByZeroHandle(caculatescore(data[i].all_check_score, data[i].all_check_deptw_score), '0'));
|
|
|
+ // else if (i > 6 && i <= 12)
|
|
|
+ // yancheng_Station.push(filterByZeroHandle(filterJudge(data[i].all_check_score, data[i].checked_num), '0'));
|
|
|
+ // else
|
|
|
+ // nantong_Station.push(filterByZeroHandle(filterJudge(data[i].all_check_score, data[i].checked_num), '0'));
|
|
|
}
|
|
|
// 得分转化为3个排名数组
|
|
|
- for (var i = 1; i <= 3; i++) {
|
|
|
- station_rank(i);
|
|
|
- }
|
|
|
+ // for (var i = 1; i <= 3; i++) {
|
|
|
+ station_rank(1);
|
|
|
+ // }
|
|
|
// 将3个排名数组合并成一个数组
|
|
|
- rank = r1.concat(r2).concat(r3);
|
|
|
+ rank = r1;
|
|
|
}
|
|
|
|
|
|
function gethtml(data, i) {
|
|
|
var strTbody = "";
|
|
|
- if (i == 0 || i == 7 || i == 13) {
|
|
|
- var ranking;
|
|
|
- var name = "";
|
|
|
- var rowspan = 0;
|
|
|
- if (i == 0) {
|
|
|
- name = "连云港";
|
|
|
- rowspan = 7;
|
|
|
- ranking = rank[i];
|
|
|
- } else if (i == 7) {
|
|
|
- name = "盐城";
|
|
|
- rowspan = 6;
|
|
|
- ranking = rank[i];
|
|
|
- } else if (i == 13) {
|
|
|
- name = "南通";
|
|
|
- rowspan = 9;
|
|
|
- ranking = rank[i];
|
|
|
- }
|
|
|
+ // if (i == 0 || i == 7 || i == 13) {
|
|
|
+ // var ranking;
|
|
|
+ // var name = "";
|
|
|
+ // var rowspan = 0;
|
|
|
+ // // if (i == 0) {
|
|
|
+ // // name = "连云港";
|
|
|
+ // // rowspan = 7;
|
|
|
+ // // ranking = rank[i];
|
|
|
+ // // } else if (i == 7) {
|
|
|
+ // // name = "盐城";
|
|
|
+ // // rowspan = 6;
|
|
|
+ // // ranking = rank[i];
|
|
|
+ // // } else if (i == 13) {
|
|
|
+ // // name = "南通";
|
|
|
+ // // rowspan = 9;
|
|
|
+ // ranking = rank[i];
|
|
|
+ // // }
|
|
|
|
|
|
- strTbody += "<tr><td rowspan=" + rowspan + " width='10%'>" + name + "</td>";
|
|
|
- strTbody += "<td width='7%'>" + ranking + "</td><td width='8%'>" + data.name + "</td><td width='8%'>" + filter(data.people_num, 0) +
|
|
|
- "</td><td width='6%'>" + filter(data.checked_people_num, 0) + "</td><td width='6%'>" + filter(data.checked_num, 0) +
|
|
|
- "</td><td width='7%'>" + (data.checked_people_num - (data.score_fifteen + data.score_fifty + data.score_over_fifty)) +
|
|
|
- "</td><td width='7%'>" + data.score_fifteen + "</td><td width='7%'>" + data.score_fifty + "</td><td width='7%'>" +
|
|
|
- data.score_over_fifty + "</td><td width='7%'>" + data.all_check_score + "</td><td width='7%'>" +
|
|
|
- filterByZeroHandle(filterJudge(data.all_check_score, data.checked_num), '0') + "</td><td width='7%'>" +
|
|
|
- filterByZeroHandle((1000 - filterJudge(data.all_check_score, data.checked_num)), '1000') + "</td>";
|
|
|
- strTbody += "</tr>";
|
|
|
- } else {
|
|
|
- strTbody += "<tr>"
|
|
|
- strTbody += "<td width='7%'>" + rank[i] + "</td><td width='8%'>" + data.name + "</td><td width='8%'>" + filter(data.people_num, '0') +
|
|
|
- "</td><td width='6%'>" + filter(data.checked_people_num, 0) + "</td><td width='6%'>" + filter(data.checked_num, '0') +
|
|
|
- "</td><td width='6%'>" + (data.checked_people_num - (data.score_fifteen + data.score_fifty + data.score_over_fifty)) +
|
|
|
- "</td><td width='7%'>" + data.score_fifteen + "</td><td width='7%'>" + data.score_fifty + "</td><td width='7%'>" +
|
|
|
- data.score_over_fifty + "</td><td width='7%'>" + data.all_check_score + "</td><td width='7%'>" +
|
|
|
- filterByZeroHandle(filterJudge(data.all_check_score, data.checked_num), '0') + "</td><td width='7%'>" +
|
|
|
- filterByZeroHandle((1000 - filterJudge(data.all_check_score, data.checked_num)), '1000') + "</td>";
|
|
|
- strTbody += "</tr>";
|
|
|
+ // // strTbody += "<tr><td rowspan=" + rowspan + " width='10%'>" + name + "</td>";
|
|
|
+ // strTbody += "<td width='7%'>" + ranking + "</td><td width='8%'>" + data.name + "</td><td width='8%'>" + filter(data.people_num, 0) +
|
|
|
+ // "</td><td width='6%'>" + filter(data.checked_people_num, 0) + "</td><td width='6%'>" + filter(data.checked_num, 0) +
|
|
|
+ // "</td><td width='7%'>" + (data.checked_people_num - (data.score_fifteen + data.score_fifty + data.score_over_fifty)) +
|
|
|
+ // "</td><td width='7%'>" + data.score_fifteen + "</td><td width='7%'>" + data.score_fifty + "</td><td width='7%'>" +
|
|
|
+ // data.score_over_fifty + "</td><td width='7%'>" + data.all_check_score + "</td><td width='7%'>" +
|
|
|
+ // filterByZeroHandle(filterJudge(data.all_check_score, data.checked_num), '0') + "</td><td width='7%'>" +
|
|
|
+ // filterByZeroHandle((1000 - filterJudge(data.all_check_score, data.checked_num)), '1000') + "</td>";
|
|
|
+ // strTbody += "</tr>";
|
|
|
+ // } else {
|
|
|
+ strTbody += "<tr>"
|
|
|
+ strTbody += "<td width='7%'>" + rank[i] + "</td><td width='8%'>" + data.name + "</td><td width='8%'>" + filter(data.people_num, '0') +
|
|
|
+ "</td><td width='6%'>" + filter(data.checked_people_num, 0) + "</td><td width='6%'>" + filter(data.checked_num, '0') +
|
|
|
+ "</td><td width='6%'>" + (data.checked_people_num - (data.score_fifteen + data.score_fifty + data.score_over_fifty)) +
|
|
|
+ "</td><td width='7%'>" + data.score_fifteen + "</td><td width='7%'>" + data.score_fifty + "</td><td width='7%'>" +
|
|
|
+ data.score_over_fifty + "</td><td width='7%'>" + caculatescore(data.all_check_score, data.all_check_deptw_score) + "</td><td width='7%'>" +
|
|
|
+ filterByZeroHandle((100 - caculatescore(data.all_check_score, data.all_check_deptw_score)), '100') + "</td>";
|
|
|
+ strTbody += "</tr>";
|
|
|
|
|
|
- }
|
|
|
+ // }
|
|
|
return strTbody;
|
|
|
}
|
|
|
|
|
|
@@ -212,13 +211,13 @@
|
|
|
* @param {*} type
|
|
|
*/
|
|
|
function station_rank(type) {
|
|
|
- if (type == 1) {
|
|
|
- station_rank_method(lianyungang_Station, r1);
|
|
|
- } else if (type == 2) {
|
|
|
- station_rank_method(yancheng_Station, r2);
|
|
|
- } else if (type == 3) {
|
|
|
- station_rank_method(nantong_Station, r3);
|
|
|
- }
|
|
|
+ // if (type == 1) {
|
|
|
+ station_rank_method(lianyungang_Station, r1);
|
|
|
+ // } else if (type == 2) {
|
|
|
+ // station_rank_method(yancheng_Station, r2);
|
|
|
+ // } else if (type == 3) {
|
|
|
+ // station_rank_method(nantong_Station, r3);
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
function filter(value, default_display_value) {
|
|
|
@@ -247,6 +246,10 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ function caculatescore(totalsc, wsc) {
|
|
|
+ return totalsc - wsc + (wsc >= 20 ? 2 : wsc < 10 ? 0 : 1)
|
|
|
+ }
|
|
|
+
|
|
|
function filterJudge(num1, num2) {
|
|
|
if (num2 == 0) {
|
|
|
return 0;
|
|
|
@@ -271,4 +274,4 @@
|
|
|
start_date = start.Format("yyyy-MM-dd HH:mm:ss");
|
|
|
}
|
|
|
window.open(getserveraddr() + "/file/score/info?start_date=" + start_date + "&end_date=" + end_date);
|
|
|
- }
|
|
|
+ }
|