diff --git a/src/views/warn/alarm/alarm.data.ts b/src/views/warn/alarm/alarm.data.ts index f57d156..eb29d09 100644 --- a/src/views/warn/alarm/alarm.data.ts +++ b/src/views/warn/alarm/alarm.data.ts @@ -55,8 +55,8 @@ export const columns: BasicColumn[] = [ // 将 JSX 改为 h 函数调用 customRender: ({ record }) => { return h('div', [ - h('div', { style: 'color: #006400;font-weight:bold' },'实时值:'+record.pointValue.toFixed(3)), - h('div', { style: 'color: #0960BD;font-weight:bold' },'重构值:'+record.outputPointValue.toFixed(3)), + h('div', { style: 'color: #006400;font-weight:bold' },'实时值:'+Number(record.pointValue).toFixed(3)), + h('div', { style: 'color: #0960BD;font-weight:bold' },'重构值:'+Number(record.outputPointValue).toFixed(3)), ]); }, },