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

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

parent 5e88d0ac
......@@ -351,11 +351,11 @@ export default {
getProLineMonitor() {
const myChartAge = echarts.init(document.getElementById('dataCharts_proLineMonitor'))
const _this = this
const colors = ['#209DFF', '#BC2C29', '#FF8919']
const colors = ['#209DFF', '#BC2C29']
const xData = [] // x轴显示
const defectQtyData = [] // y不良数量
const inputData = [] // y计划生产数量
const failureProportionData = [] // y不良占比 || 误测次数
const failureProportionData = [] // y累计占比
let dataTemp = []
let maxNum1 = 0
this.dataList.forEach(item => {
......@@ -365,11 +365,11 @@ export default {
xData.push(item.typeSimple)
}
defectQtyData.push(item.defectQty)
if (_this.choseType === 'day' || _this.choseType === 'week' || _this.choseType === 'month') {
inputData.push(item.inPut)
}
// if (_this.choseType === 'day' || _this.choseType === 'week' || _this.choseType === 'month') {
// inputData.push(item.inPut)
// }
// if (this.choseType === 'day' || this.choseType === 'week' || this.choseType === 'month') {
failureProportionData.push(item.failureProportion)
failureProportionData.push(item.cumulativeProportion)
// } else {
// failureProportionData.push(item.errorNum)
// }
......@@ -454,15 +454,15 @@ export default {
barGap: 0,
data: defectQtyData
},
// {
// name: '生产完成数量',
// type: 'bar',
// barWidth: 18,
// barGap: 0,
// data: inputData
// },
{
name: '生产完成数量',
type: 'bar',
barWidth: 18,
barGap: 0,
data: inputData
},
{
name: '不良占比',
name: '累计占比',
type: 'line',
yAxisIndex: 1,
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