src/views/SignMachineNest/MachineLeft/InspectionRaskDetails.vue
@@ -109,7 +109,7 @@ }, ], } import _ from 'lodash' // chart.setOption(option); const pieOption = { @@ -138,7 +138,7 @@ tarValue = data[i].value } } let percentage = ((tarValue / total) * 100).toFixed(1) let percentage = total ? _.round(((tarValue / total) * 100),1) : 0 return `${name} ${percentage}%` }, },