|
|
@ -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: ''},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|