|
@@ -44,7 +44,6 @@ export default {
|
|
window.addEventListener("resize", this.echartsAllSize);
|
|
window.addEventListener("resize", this.echartsAllSize);
|
|
},
|
|
},
|
|
destroyed() {
|
|
destroyed() {
|
|
- console.log("报告页面销毁了");
|
|
|
|
window.removeEventListener("resize", this.echartsAllSize);
|
|
window.removeEventListener("resize", this.echartsAllSize);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -144,10 +143,9 @@ export default {
|
|
],
|
|
],
|
|
};
|
|
};
|
|
pieData && option && myChart.setOption(option);
|
|
pieData && option && myChart.setOption(option);
|
|
- window.onresize = function () {
|
|
|
|
- console.log("111111111111饼状图大小变化了吗");
|
|
|
|
|
|
+
|
|
myChart.resize();
|
|
myChart.resize();
|
|
- };
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
pieDataHandle(param) {
|
|
pieDataHandle(param) {
|
|
this.pieData = [];
|
|
this.pieData = [];
|