|
@@ -15,7 +15,7 @@
|
|
|
var pageId = getQueryString("pageId");
|
|
|
var reportId = getQueryString("reportId"); //报告id
|
|
|
var fileName = chineseUrlDecodeURI(getQueryString("fileName")); //报告名称
|
|
|
-
|
|
|
+ var dayInterval = getQueryString("dayInterval"); //日区间
|
|
|
var type = getQueryString("type"); //报告类型00:excel 01:word
|
|
|
var typeId = getQueryString("typeId"); //报告类型id
|
|
|
|
|
@@ -32,7 +32,7 @@
|
|
|
success : function(data) {
|
|
|
var reportDataJsonStr = data.data.data;
|
|
|
var excelList = eval('(' + reportDataJsonStr + ')');
|
|
|
- reportTable(excelList, typeId);
|
|
|
+ reportTable(excelList, typeId,true);
|
|
|
},
|
|
|
error : function(data2) {
|
|
|
$.ErrorAlert(data2.MINErrorMessage);
|
|
@@ -43,28 +43,30 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
- function reportTable(excelList, typeId, isEdit) {
|
|
|
+ function reportTable(excelList, typeId,isType,isEdit) {
|
|
|
var html = '';
|
|
|
+ if(isType){
|
|
|
+ html = '<tr><td colspan = "'+excelList[1].length+'">'+excelList[0]+'</td></tr>';
|
|
|
+ }
|
|
|
for (var i = 0; i < excelList.length; i ++) {
|
|
|
+ if(i==0){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
html += '<tr>';
|
|
|
var excelChildList = excelList[i];
|
|
|
for (var j = 0; j < excelChildList.length; j ++) {
|
|
|
// 合计列增加穿透
|
|
|
- if ((j == excelChildList.length - 1)) {
|
|
|
+ if (j==6) {
|
|
|
// 台区停电次数
|
|
|
- if (i == 2) {
|
|
|
- html += '<td style="cursor: pointer" onclick="tqtd0()">' + excelChildList[j] + '</td>';
|
|
|
- // 2个月停电3次及以上台区
|
|
|
- } else if (i == 5) {
|
|
|
- html += '<td style="cursor: pointer" onclick="tqtd1()">' + excelChildList[j] + '</td>';
|
|
|
- // 2个月停电3次及以上台区且昨日停电
|
|
|
- } else if (i == 6) {
|
|
|
- html += '<td style="cursor: pointer" onclick="tqtd2()">' + excelChildList[j] + '</td>';
|
|
|
- } else if (i == 7) {
|
|
|
- html += '<td style="cursor: pointer" onclick="tqtd3()">' + excelChildList[j] + '</td>';
|
|
|
- } else {
|
|
|
+ if(excelChildList[7]>=15&excelChildList[7]<48){
|
|
|
+ html += '<td style="background: #c74141">' + excelChildList[j] + '</td>';
|
|
|
+ }else if(excelChildList[7]>=48){
|
|
|
+ html += '<td style="background: #ff8204">' + excelChildList[j] + '</td>';
|
|
|
+ }else{
|
|
|
html += '<td>' + excelChildList[j] + '</td>';
|
|
|
}
|
|
|
+
|
|
|
+ // 2个月停电3次及以上台区
|
|
|
} else {
|
|
|
html += '<td>' + excelChildList[j] + '</td>';
|
|
|
}
|