修改bug
This commit is contained in:
@@ -499,6 +499,8 @@ export default {
|
||||
this.listQuery.reportTime = []
|
||||
this.listQuery.end = null
|
||||
this.listQuery.start = null
|
||||
this.listQuery.startDate = null
|
||||
this.listQuery.endDate = null
|
||||
},
|
||||
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
||||
let spanOneArr = [], concatOne = 0;
|
||||
@@ -650,7 +652,7 @@ export default {
|
||||
let i = index + 1
|
||||
let m = 'value' + i
|
||||
ele.productionSituationDataVOList.forEach((item) => {
|
||||
maxData.push(item.ftoInput, item.chipYield, item.componentYield)
|
||||
// maxData.push(item.ftoInput, item.chipYield, item.componentYield)
|
||||
this.dataArr[0]['' + m + ''] = item.ftoInput
|
||||
// this.dataArr[3].factory = item.factory == 1 ? '邯郸' : '瑞昌'
|
||||
this.dataArr[1]['' + m + ''] = item.chipYield
|
||||
@@ -661,19 +663,32 @@ export default {
|
||||
this.dataArr[3]['' + m + ''] = item.bipvProductOutput
|
||||
}
|
||||
})
|
||||
this.chartMsg.yAxis.max = Math.ceil(Math.max(...maxData) / 100) * 100
|
||||
this.chartMsgTarget.yAxis.max = Math.ceil(Math.max(...maxData) / 100) * 100
|
||||
this.chartMsg.yAxis.min = Math.ceil(Math.min(...maxData) / 100) * 100
|
||||
this.chartMsgTarget.yAxis.min = Math.ceil(Math.min(...maxData) / 100) * 100
|
||||
this.chartMsg.yAxis.interval = (this.chartMsg.yAxis.max - this.chartMsg.yAxis.min) / 4
|
||||
this.chartMsgTarget.yAxis.interval = (this.chartMsgTarget.yAxis.max - this.chartMsgTarget.yAxis.min) / 4
|
||||
|
||||
// ele.titleValue
|
||||
// .push({
|
||||
// label: ele.titleValue,
|
||||
// props: 'value' + index + 1,
|
||||
// })
|
||||
})
|
||||
if (this.listQuery.type === 2) {
|
||||
res.data.list.slice(0, res.data.list.length - 1).forEach((ele, index) => {
|
||||
ele.productionSituationDataVOList.forEach((item) => {
|
||||
maxData.push(item.ftoInput, item.chipYield, item.componentYield)
|
||||
})
|
||||
})
|
||||
} else {
|
||||
res.data.list.forEach((ele, index) => {
|
||||
ele.productionSituationDataVOList.forEach((item) => {
|
||||
maxData.push(item.ftoInput, item.chipYield, item.componentYield)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
this.chartMsg.yAxis.max = Math.ceil(Math.max(...maxData))
|
||||
this.chartMsgTarget.yAxis.max = Math.ceil(Math.max(...maxData))
|
||||
this.chartMsg.yAxis.min = Math.ceil(Math.min(...maxData))
|
||||
this.chartMsgTarget.yAxis.min = Math.ceil(Math.min(...maxData))
|
||||
this.chartMsg.yAxis.interval = (this.chartMsg.yAxis.max - this.chartMsg.yAxis.min) / 4
|
||||
this.chartMsgTarget.yAxis.interval = (this.chartMsgTarget.yAxis.max - this.chartMsgTarget.yAxis.min) / 4
|
||||
if (this.listQuery.type === 2) {
|
||||
if (res.data.list.length === 3) {
|
||||
this.gridLeft = false
|
||||
@@ -706,7 +721,7 @@ export default {
|
||||
}
|
||||
})
|
||||
})
|
||||
this.chartMsgTarget.xData.push(res.data.list[res.data.list.length - 2].titleValue)
|
||||
this.chartMsgTarget.xData.push(res.data.list[res.data.list.length - 2].titleValue.slice(0, res.data.list[res.data.list.length - 2].titleValue.length - 3))
|
||||
// this.chartMsgTarget.series = [{
|
||||
// name: "FTO投入",
|
||||
// data: [
|
||||
@@ -987,7 +1002,7 @@ export default {
|
||||
})
|
||||
})
|
||||
console.log(this.chartMsg.series[0]);
|
||||
this.chartMsgTarget.xData.push(res.data.list[res.data.list.length - 1].titleValue)
|
||||
this.chartMsgTarget.xData.push(res.data.list[res.data.list.length - 1].titleValue.slice(0, res.data.list[res.data.list.length - 1].titleValue.length - 3))
|
||||
// this.chartMsgTarget.series = [{
|
||||
// name: "FTO投入",
|
||||
// data: [
|
||||
|
||||
Reference in New Issue
Block a user