|
|
@@ -270,7 +270,6 @@
|
|
|
label="气电比"
|
|
|
align="center"
|
|
|
prop="gasElectricityRatio"
|
|
|
- :formatter="gasElectricityRatioFormatter"
|
|
|
:min-width="columnWidths.gasElectricityRatio.width"
|
|
|
resizable
|
|
|
/>
|
|
|
@@ -840,12 +839,6 @@ const nonProductionRateFormatter = (row: any) => {
|
|
|
return (nonProductionRate * 100).toFixed(2) + '%'
|
|
|
}
|
|
|
|
|
|
-const gasElectricityRatioFormatter = (row: any) => {
|
|
|
- const gasElectricityRatio = row?.gasElectricityRatio ?? 0
|
|
|
-
|
|
|
- return (gasElectricityRatio * 100).toFixed(2) + '%'
|
|
|
-}
|
|
|
-
|
|
|
// 计算文本宽度
|
|
|
const getTextWidth = (text: string, fontSize = 12) => {
|
|
|
const span = document.createElement('span')
|