修改 不良率写死

master
wangh 2 years ago
parent 07e4082f96
commit 828748abdf

@ -580,14 +580,14 @@
const total = data[0]
const flaw = data[1]
const rate = flaw / total
console.log(data)
rejectRatioChart.setOption({
series: [
{
name: '不良率',
data: [
{value: 22, name: `3%`},
{value: 78, name: ''},
{value: flaw, name: rate.toFixed(2)+'%'},
{value: total-flaw, name: ''},
],
}
]

Loading…
Cancel
Save