riku
2022-10-28 b45a01a8bee4a9bff5f9c248ead301b8675d1099
pages/m_assessment/gradereport/gradereport.js
@@ -156,7 +156,6 @@
  onReady: function () {
    this.ecComponent = this.selectComponent('#mychart-dom-radar');
    this.initChart()
    this.getDetail()
  },
  /**
@@ -188,6 +187,7 @@
      }],
      value: [100, 100, 80, 5, 67, 82]
    }
    setTimeout(() => {
    this.ecComponent.init((canvas, width, height, dpr) => {
      // 获取组件的 canvas、width、height 后的回调函数
      // 在这里初始化图表
@@ -201,9 +201,12 @@
      // 将图表实例绑定到 this 上,可以在其他成员函数(如 dispose)中访问
      this.chart = chart;
        this.getDetail()
      // 注意这里一定要返回 chart 实例,否则会影响事件处理等
      return chart;
    });
    }, 1000);
  },
  getDetail() {
@@ -279,6 +282,7 @@
          losePoints: losePoints,
          losePointsItem: losePointsItem
        })
        debugger
        setOption(that.chart, classPoints)
      }
    })