修改bug
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: zhp
 | 
			
		||||
 * @Date: 2024-06-20 16:13:36
 | 
			
		||||
 * @LastEditTime: 2024-06-28 14:34:13
 | 
			
		||||
 * @LastEditTime: 2024-06-28 14:54:33
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
@@ -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);
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: zhp
 | 
			
		||||
 * @Date: 2024-04-15 10:49:13
 | 
			
		||||
 * @LastEditTime: 2024-06-28 14:40:15
 | 
			
		||||
 * @LastEditTime: 2024-06-28 14:43:36
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user