ZZJ
2021-11-09 ccee429d379e0108b7445f72ade8d97c110a6fb3
src/pages/visual/components/eCharts/mutPie.vue
@@ -50,7 +50,14 @@
        }
      },
      deep:true
    }
    },
    "TreeDataPool.showTreeBox":{
      handler:function(val,oldVal){
        if(val !== oldVal){
          this.handleResize()
        }
      }
    },
  },
  data() {
    return {
@@ -85,6 +92,7 @@
        series: [
          {
            type: 'pie',
            height: "100%",
            radius: 40,
            center: ['20%', '50%'],
            encode: {
@@ -169,11 +177,15 @@
  methods: {
    init(){
      this.myChart.setOption(this.options)
    },
    handleResize(){
      this.myChart.resize()
    }
  },
  mounted() {
    this.myChart = this.$echarts.init(document.getElementById('myChartMutiPie'))
    this.myChart.setOption(this.options)
    this.myChart = this.$echarts.init(document.getElementById('myChartMutiPie'));
    this.myChart.setOption(this.options);
    this.myChart.resize();
  },
  created() {