Commit 2ea20a3f authored by 李苏's avatar 李苏 💬

优化

parent 80590df7
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</TablePager> </TablePager>
</div> </div>
<div class="chartsbody"> <div class="chartsbody">
<div id="yhtjChart"> <div id="yhtjChart" v-echartResize="resize" >
</div> </div>
</div> </div>
...@@ -98,6 +98,9 @@ ...@@ -98,6 +98,9 @@
} }
}, },
methods: { methods: {
resize(){
this.myChart.resize()
},
getData: function(e) { getData: function(e) {
this.tabData = e this.tabData = e
this.myChart.setOption(this.setOption()); this.myChart.setOption(this.setOption());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment