修改深加工产线产量及良品率
This commit is contained in:
parent
820d503d8d
commit
4918008a47
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div style="height: 370px;">
|
||||||
<NotMsg v-show="notMsg"/>
|
<NotMsg v-show="notMsg"/>
|
||||||
<div id="numRateChart" class="num-rate-chart" style="width:900px;height:420px;" v-show='!notMsg'></div>
|
<div id="numRateChart" class="num-rate-chart" style="width:900px;height:420px;" v-show='!notMsg'></div>
|
||||||
</div>
|
</div>
|
||||||
@ -52,9 +52,11 @@ export default {
|
|||||||
let outputNum = []
|
let outputNum = []
|
||||||
let passRate = []
|
let passRate = []
|
||||||
this.productline && this.productline.length > 0 && this.productline.map(item => {
|
this.productline && this.productline.length > 0 && this.productline.map(item => {
|
||||||
xData.push(item.lineName)
|
if ((item.lineName).includes('D')) {
|
||||||
outputNum.push(item.outputNum)
|
xData.push(item.lineName)
|
||||||
passRate.push(item.passRate?item.passRate*100:null)
|
outputNum.push(item.outputNum)
|
||||||
|
passRate.push(item.passRate?item.passRate*100:null)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
if (
|
if (
|
||||||
this.chart !== null &&
|
this.chart !== null &&
|
||||||
@ -65,7 +67,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.chart = echarts.init(document.getElementById('numRateChart'));
|
this.chart = echarts.init(document.getElementById('numRateChart'));
|
||||||
var option = {
|
var option = {
|
||||||
grid: { top: 82, right: 60, bottom: 20, left: 60 },
|
grid: { top: 82, right: 60, bottom: 20, left: 90 },
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: "axis",
|
trigger: "axis",
|
||||||
axisPointer: {
|
axisPointer: {
|
||||||
@ -146,7 +148,6 @@ export default {
|
|||||||
color: "#fff",
|
color: "#fff",
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
formatter: () =>{
|
formatter: () =>{
|
||||||
console.log(value)
|
|
||||||
return value ? '{value} %': '-'
|
return value ? '{value} %': '-'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user