修改深加工产线产量及良品率

This commit is contained in:
朱菊兰 2024-01-25 08:59:21 +08:00
parent 820d503d8d
commit 4918008a47

View File

@ -1,5 +1,5 @@
<template>
<div>
<div style="height: 370px;">
<NotMsg v-show="notMsg"/>
<div id="numRateChart" class="num-rate-chart" style="width:900px;height:420px;" v-show='!notMsg'></div>
</div>
@ -52,9 +52,11 @@ export default {
let outputNum = []
let passRate = []
this.productline && this.productline.length > 0 && this.productline.map(item => {
xData.push(item.lineName)
outputNum.push(item.outputNum)
passRate.push(item.passRate?item.passRate*100:null)
if ((item.lineName).includes('D')) {
xData.push(item.lineName)
outputNum.push(item.outputNum)
passRate.push(item.passRate?item.passRate*100:null)
}
})
if (
this.chart !== null &&
@ -65,7 +67,7 @@ export default {
}
this.chart = echarts.init(document.getElementById('numRateChart'));
var option = {
grid: { top: 82, right: 60, bottom: 20, left: 60 },
grid: { top: 82, right: 60, bottom: 20, left: 90 },
tooltip: {
trigger: "axis",
axisPointer: {
@ -146,7 +148,6 @@ export default {
color: "#fff",
fontSize: 12,
formatter: () =>{
console.log(value)
return value ? '{value} %': '-'
}
},