| | |
| | | } |
| | | }, |
| | | deep:true |
| | | } |
| | | }, |
| | | "TreeDataPool.showTreeBox":{ |
| | | handler:function(val,oldVal){ |
| | | if(val !== oldVal){ |
| | | this.handleResize() |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | series: [ |
| | | { |
| | | type: 'pie', |
| | | height: "100%", |
| | | radius: 40, |
| | | center: ['20%', '50%'], |
| | | encode: { |
| | |
| | | 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() { |
| | | |