暂态事件-暂降幅值是0正常显示
This commit is contained in:
@@ -64,7 +64,10 @@ const tableStore: any = new TableStore({
|
|||||||
title: '暂降幅值(%)',
|
title: '暂降幅值(%)',
|
||||||
minWidth: 100,
|
minWidth: 100,
|
||||||
formatter: (row: any) => {
|
formatter: (row: any) => {
|
||||||
row.cellValue = row.cellValue ? row.cellValue.toFixed(2) : '/'
|
row.cellValue = row.cellValue + '' ? row.cellValue.toFixed(2) : '/'
|
||||||
|
if (String(row.cellValue).split('.')[1] == '00') {
|
||||||
|
row.cellValue = String(row.cellValue).split('.')[0]
|
||||||
|
}
|
||||||
return row.cellValue
|
return row.cellValue
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user