调整运行图预览尺寸

This commit is contained in:
joylink_fanyuhong 2020-02-27 16:52:48 +08:00
parent 0bd0da3af7
commit 040636e2ce

View File

@ -244,7 +244,7 @@
this.myChart = echarts.init(document.getElementById(this.runPlanId)); this.myChart = echarts.init(document.getElementById(this.runPlanId));
if (this.myChart) { if (this.myChart) {
this.myChart.setOption(this.option); this.myChart.setOption(this.option);
this.reSize({ width: this.$store.state.runPlan.width, height: this.$store.state.runPlan.height }); this.reSize({ width: document.documentElement.clientWidth, height: document.documentElement.clientHeight - 55 });
this.myChart.on('click', this.mouseClick); this.myChart.on('click', this.mouseClick);
} }
resolve(true); resolve(true);