前置管理

This commit is contained in:
sjl
2025-10-17 09:55:43 +08:00
parent d9def45a8b
commit 1211277a0d
6 changed files with 825 additions and 102 deletions

View File

@@ -56,6 +56,7 @@ const tableStore: any = new TableStore({
title: '持续时间(s)',
minWidth: 100,
formatter: (row: any) => {
console.log('row.cellValue', row.cellValue)
row.cellValue = row.cellValue ? row.cellValue.toFixed(2) : '/'
return row.cellValue
}, sortable: true
@@ -65,7 +66,8 @@ const tableStore: any = new TableStore({
title: '暂降(聚升)幅值(%)',
width: 100,
formatter: (row: any) => {
row.cellValue = row.cellValue + '' ? row.cellValue.toFixed(2) : '/'
//row.cellValue = row.cellValue + '' ? row.cellValue.toFixed(2) : '/'
row.cellValue = row.cellValue != null ? Number(row.cellValue).toFixed(2) : '/'
if (String(row.cellValue).split('.')[1] == '00') {
row.cellValue = String(row.cellValue).split('.')[0]
}