fix:集中告警保留三位小数 #126

Merged
xiaojinfei merged 1 commits from dev-xjf into master 1 day ago
  1. 4
      src/views/warn/alarm/alarm.data.ts

4
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)),
]);
},
},

Loading…
Cancel
Save