处理表格数据格式
This commit is contained in:
parent
50c8c0d4d2
commit
449570f171
|
@ -106,14 +106,14 @@ const columns = [
|
||||||
title: 'Conc (uBq/m3)',
|
title: 'Conc (uBq/m3)',
|
||||||
dataIndex: 'conc',
|
dataIndex: 'conc',
|
||||||
customRender: (text) => {
|
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)',
|
title: 'MDC (uBq/m3)',
|
||||||
dataIndex: 'mdc',
|
dataIndex: 'mdc',
|
||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return text && text !== 'null' ? parseFloat(Number(text).toPrecision(6)) : text
|
return text && text !== 'null' ? Number(text).toPrecision(6) : text
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user