处理表格数据格式

This commit is contained in:
任珮宇 2023-11-03 17:05:45 +08:00
parent 50c8c0d4d2
commit 449570f171

View File

@ -106,14 +106,14 @@ const columns = [
title: 'Conc (uBq/m3)',
dataIndex: 'conc',
customRender: (text) => {
return text && text !== 'null' ? parseFloat(Number(text).toPrecision(6)) : text
return text && text !== 'null' ? Number(text).toPrecision(6) : text
},
},
{
title: 'MDC (uBq/m3)',
dataIndex: 'mdc',
customRender: (text) => {
return text && text !== 'null' ? parseFloat(Number(text).toPrecision(6)) : text
return text && text !== 'null' ? Number(text).toPrecision(6) : text
},
},
]