Commit effa7f1b authored by 张伯涛's avatar 张伯涛

维修统计echarts图不要生产完成数量了,添加累计占比

parent 5e88d0ac
...@@ -351,11 +351,11 @@ export default { ...@@ -351,11 +351,11 @@ export default {
getProLineMonitor() { getProLineMonitor() {
const myChartAge = echarts.init(document.getElementById('dataCharts_proLineMonitor')) const myChartAge = echarts.init(document.getElementById('dataCharts_proLineMonitor'))
const _this = this const _this = this
const colors = ['#209DFF', '#BC2C29', '#FF8919'] const colors = ['#209DFF', '#BC2C29']
const xData = [] // x轴显示 const xData = [] // x轴显示
const defectQtyData = [] // y不良数量 const defectQtyData = [] // y不良数量
const inputData = [] // y计划生产数量 const inputData = [] // y计划生产数量
const failureProportionData = [] // y不良占比 || 误测次数 const failureProportionData = [] // y累计占比
let dataTemp = [] let dataTemp = []
let maxNum1 = 0 let maxNum1 = 0
this.dataList.forEach(item => { this.dataList.forEach(item => {
...@@ -365,11 +365,11 @@ export default { ...@@ -365,11 +365,11 @@ export default {
xData.push(item.typeSimple) xData.push(item.typeSimple)
} }
defectQtyData.push(item.defectQty) defectQtyData.push(item.defectQty)
if (_this.choseType === 'day' || _this.choseType === 'week' || _this.choseType === 'month') { // if (_this.choseType === 'day' || _this.choseType === 'week' || _this.choseType === 'month') {
inputData.push(item.inPut) // inputData.push(item.inPut)
} // }
// if (this.choseType === 'day' || this.choseType === 'week' || this.choseType === 'month') { // if (this.choseType === 'day' || this.choseType === 'week' || this.choseType === 'month') {
failureProportionData.push(item.failureProportion) failureProportionData.push(item.cumulativeProportion)
// } else { // } else {
// failureProportionData.push(item.errorNum) // failureProportionData.push(item.errorNum)
// } // }
...@@ -454,15 +454,15 @@ export default { ...@@ -454,15 +454,15 @@ export default {
barGap: 0, barGap: 0,
data: defectQtyData data: defectQtyData
}, },
// {
// name: '生产完成数量',
// type: 'bar',
// barWidth: 18,
// barGap: 0,
// data: inputData
// },
{ {
name: '生产完成数量', name: '累计占比',
type: 'bar',
barWidth: 18,
barGap: 0,
data: inputData
},
{
name: '不良占比',
type: 'line', type: 'line',
yAxisIndex: 1, yAxisIndex: 1,
data: failureProportionData, data: failureProportionData,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment