修改 不良率写死

master
wangh 2 years ago
parent 07e4082f96
commit 828748abdf

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

Loading…
Cancel
Save