From 04af70f4163666378822361c3c4de681659853ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Fri, 28 Jun 2024 14:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/produceLineBarTarget.vue | 33 ++++++++++--------- src/views/report/comprehensiveData.vue | 6 ++-- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/views/report/components/produceLineBarTarget.vue b/src/views/report/components/produceLineBarTarget.vue index e53d4cf..d7deb12 100644 --- a/src/views/report/components/produceLineBarTarget.vue +++ b/src/views/report/components/produceLineBarTarget.vue @@ -1,7 +1,7 @@ @@ -36,7 +36,7 @@ export default { color: [], // color: ["#8EF0AB", "#63BDFF", "#288AFF"], grid: { - left: '12%', + left: 50, right: 0, bottom: 31, top: 30, @@ -172,14 +172,14 @@ export default { }, }, - gridLeft(val) { - if (val === false) { - this.option.grid.left = '12%' - } else { - this.option.grid.left = -80 - } - this.canvasReset() - }, + // gridLeft(val) { + // if (val === false) { + // this.option.grid.left = 100 + // } else { + // this.option.grid.left = -80 + // } + // this.canvasReset() + // }, type() { this.canvasReset(); }, @@ -204,11 +204,7 @@ export default { }, getMes() { console.log(this.gridLeft) - if (this.gridLeft === false) { - this.option.grid.left = '12%' - } else { - this.option.grid.left = -80 - } + // console.log('222222', this.chartMsg); if (this.myChart) { this.myChart.dispose(); @@ -217,12 +213,17 @@ export default { this.myChart = echarts.init(chartDom); this.option.color = this.chartMsg.color; this.option.xAxis.data = this.chartMsg.xData + if (this.gridLeft === false) { + this.option.grid.left = 50 + } else { + this.option.grid.left = -80 + } // this.option.yAxis.name = this.chartMsg.yName; // this.option.yAxis.axisLabel = this.chartMsg.yAxisLabel; this.option.series = this.chartMsg.series; this.option.yAxis = this.chartMsg.yAxis; - + console.log(this.option.grid); this.myChart.setOption(this.option); }, }, diff --git a/src/views/report/comprehensiveData.vue b/src/views/report/comprehensiveData.vue index a2b4fac..8984324 100644 --- a/src/views/report/comprehensiveData.vue +++ b/src/views/report/comprehensiveData.vue @@ -1,7 +1,7 @@ @@ -473,8 +473,8 @@ export default { // dataArr[3].factory = item.factory === 1 ? '邯郸' : '瑞昌' dataArr[1]['' + m + ''] = item.chipInput dataArr[2]['' + m + ''] = item.chipYield - dataArr[3]['' + m + ''] = item.chipAveragePower - dataArr[4]['' + m + ''] = item.chipYieldRate + dataArr[3]['' + m + ''] = item.chipYieldRate + dataArr[4]['' + m + ''] = item.chipAveragePower dataArr[5]['' + m + ''] = item.chipTotalPower dataArr[6]['' + m + ''] = item.chipCssMarriageRate dataArr[7]['' + m + ''] = item.chipOee