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