暂态事件-暂降幅值是0正常显示

This commit is contained in:
zhujiyan
2024-10-30 15:40:11 +08:00
parent 45942b3205
commit 22344541c4

View File

@@ -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
} }
}, },