|
|
@ -373,17 +373,26 @@ |
|
|
|
dataIndex: 'energyType', |
|
|
|
width: 100, |
|
|
|
ellipsis: true, |
|
|
|
customRender: (text: any) => { |
|
|
|
return text.text !== undefined ? text : '-'; |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '计量单位', |
|
|
|
className: 'unitName', |
|
|
|
dataIndex: 'unitName', |
|
|
|
width: 100, |
|
|
|
customRender: (text: any) => { |
|
|
|
return text.text !== undefined ? text : '-'; |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '全年', |
|
|
|
dataIndex: 'yearly', |
|
|
|
width: 100, |
|
|
|
customRender: (text: any) => { |
|
|
|
return text.text !== undefined ? text : '-'; |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '1月', |
|
|
@ -394,11 +403,11 @@ |
|
|
|
let color; |
|
|
|
switch (value.record.janFlag) { |
|
|
|
case 1: |
|
|
|
text = value.record.jan ? value.record.jan : ''; |
|
|
|
text = value.record.jan ? value.record.jan : '-'; |
|
|
|
color = 'rgba(243, 97, 99, 1)'; |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
text = value.record.jan ? value.record.jan : ''; |
|
|
|
text = value.record.jan ? value.record.jan : '-'; |
|
|
|
color = 'rgba(57, 215, 187, 1)'; |
|
|
|
break; |
|
|
|
} |
|
|
@ -415,11 +424,11 @@ |
|
|
|
let color; |
|
|
|
switch (value.record.febFlag) { |
|
|
|
case 1: |
|
|
|
text = value.record.feb ? value.record.feb : ''; |
|
|
|
text = value.record.feb ? value.record.feb : '-'; |
|
|
|
color = 'rgba(243, 97, 99, 1)'; |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
text = value.record.feb ? value.record.feb : ''; |
|
|
|
text = value.record.feb ? value.record.feb : '-'; |
|
|
|
color = 'rgba(57, 215, 187, 1)'; |
|
|
|
break; |
|
|
|
} |
|
|
@ -436,11 +445,11 @@ |
|
|
|
let color; |
|
|
|
switch (value.record.marFlag) { |
|
|
|
case 1: |
|
|
|
text = value.record.mar ? value.record.mar : ''; |
|
|
|
text = value.record.mar ? value.record.mar : '-'; |
|
|
|
color = 'rgba(243, 97, 99, 1)'; |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
text = value.record.mar ? value.record.mar : ''; |
|
|
|
text = value.record.mar ? value.record.mar : '-'; |
|
|
|
color = 'rgba(57, 215, 187, 1)'; |
|
|
|
break; |
|
|
|
} |
|
|
@ -457,11 +466,11 @@ |
|
|
|
let color; |
|
|
|
switch (value.record.aprFlag) { |
|
|
|
case 1: |
|
|
|
text = value.record.apr ? value.record.apr : ''; |
|
|
|
text = value.record.apr ? value.record.apr : '-'; |
|
|
|
color = 'rgba(243, 97, 99, 1)'; |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
text = value.record.apr ? value.record.apr : ''; |
|
|
|
text = value.record.apr ? value.record.apr : '-'; |
|
|
|
color = 'rgba(57, 215, 187, 1)'; |
|
|
|
break; |
|
|
|
} |
|
|
@ -478,11 +487,11 @@ |
|
|
|
let color; |
|
|
|
switch (value.record.mayFlag) { |
|
|
|
case 1: |
|
|
|
text = value.record.may ? value.record.may : ''; |
|
|
|
text = value.record.may ? value.record.may : '-'; |
|
|
|
color = 'rgba(243, 97, 99, 1)'; |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
text = value.record.may ? value.record.may : ''; |
|
|
|
text = value.record.may ? value.record.may : '-'; |
|
|
|
color = 'rgba(57, 215, 187, 1)'; |
|
|
|
break; |
|
|
|
} |
|
|
@ -499,11 +508,11 @@ |
|
|
|
let color; |
|
|
|
switch (value.record.junFlag) { |
|
|
|
case 1: |
|
|
|
text = value.record.jun ? value.record.jun : ''; |
|
|
|
text = value.record.jun ? value.record.jun : '-'; |
|
|
|
color = 'rgba(243, 97, 99, 1)'; |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
text = value.record.jun ? value.record.jun : ''; |
|
|
|
text = value.record.jun ? value.record.jun : '-'; |
|
|
|
color = 'rgba(57, 215, 187, 1)'; |
|
|
|
break; |
|
|
|
} |
|
|
@ -520,11 +529,11 @@ |
|
|
|
let color; |
|
|
|
switch (value.record.julFlag) { |
|
|
|
case 1: |
|
|
|
text = value.record.jul ? value.record.jul : ''; |
|
|
|
text = value.record.jul ? value.record.jul : '-'; |
|
|
|
color = 'rgba(243, 97, 99, 1)'; |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
text = value.record.jul ? value.record.jul : ''; |
|
|
|
text = value.record.jul ? value.record.jul : '-'; |
|
|
|
color = 'rgba(57, 215, 187, 1)'; |
|
|
|
break; |
|
|
|
} |
|
|
@ -541,11 +550,11 @@ |
|
|
|
let color; |
|
|
|
switch (value.record.augFlag) { |
|
|
|
case 1: |
|
|
|
text = value.record.aug ? value.record.aug : ''; |
|
|
|
text = value.record.aug ? value.record.aug : '-'; |
|
|
|
color = 'rgba(243, 97, 99, 1)'; |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
text = value.record.aug ? value.record.aug : ''; |
|
|
|
text = value.record.aug ? value.record.aug : '-'; |
|
|
|
color = 'rgba(57, 215, 187, 1)'; |
|
|
|
break; |
|
|
|
} |
|
|
@ -562,11 +571,11 @@ |
|
|
|
let color; |
|
|
|
switch (value.record.sepFlag) { |
|
|
|
case 1: |
|
|
|
text = value.record.sep ? value.record.sep : ''; |
|
|
|
text = value.record.sep ? value.record.sep : '-'; |
|
|
|
color = 'rgba(243, 97, 99, 1)'; |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
text = value.record.sep ? value.record.sep : ''; |
|
|
|
text = value.record.sep ? value.record.sep : '-'; |
|
|
|
color = 'rgba(57, 215, 187, 1)'; |
|
|
|
break; |
|
|
|
} |
|
|
@ -583,11 +592,11 @@ |
|
|
|
let color; |
|
|
|
switch (value.record.octFlag) { |
|
|
|
case 1: |
|
|
|
text = value.record.oct ? value.record.oct : ''; |
|
|
|
text = value.record.oct ? value.record.oct : '-'; |
|
|
|
color = 'rgba(243, 97, 99, 1)'; |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
text = value.record.oct ? value.record.oct : ''; |
|
|
|
text = value.record.oct ? value.record.oct : '-'; |
|
|
|
color = 'rgba(57, 215, 187, 1)'; |
|
|
|
break; |
|
|
|
} |
|
|
@ -604,11 +613,11 @@ |
|
|
|
let color; |
|
|
|
switch (value.record.novFlag) { |
|
|
|
case 1: |
|
|
|
text = value.record.nov ? value.record.nov : ''; |
|
|
|
text = value.record.nov ? value.record.nov : '-'; |
|
|
|
color = 'rgba(243, 97, 99, 1)'; |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
text = value.record.nov ? value.record.nov : ''; |
|
|
|
text = value.record.nov ? value.record.nov : '-'; |
|
|
|
color = 'rgba(57, 215, 187, 1)'; |
|
|
|
break; |
|
|
|
} |
|
|
@ -625,11 +634,11 @@ |
|
|
|
let color; |
|
|
|
switch (value.record.decFlag) { |
|
|
|
case 1: |
|
|
|
text = value.record.dece ? value.record.dece : ''; |
|
|
|
text = value.record.dece ? value.record.dece : '-'; |
|
|
|
color = 'rgba(243, 97, 99, 1)'; |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
text = value.record.dece ? value.record.dece : ''; |
|
|
|
text = value.record.dece ? value.record.dece : '-'; |
|
|
|
color = 'rgba(57, 215, 187, 1)'; |
|
|
|
break; |
|
|
|
} |
|
|
|