U 优化工作台应用部署图表百分比显示

pull/103/head
vapao 2020-05-15 10:30:12 +08:00
parent 0b870654d1
commit 1a86c44bd8
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ export default class AlarmTrend extends React.Component {
<Label
content="percent"
formatter={(val, item) => {
return item.point.name + ": " + val;
const percent = (item.point['percent'] * 100).toFixed(2) + '%';
return item.point.name + ": " + percent;
}}
/>
</Geom>