From 93a26507f76156fa65aead1515c430688c089e1d Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期一, 22 二月 2021 15:49:01 +0800
Subject: [PATCH] 新版目录树样式调试及状态更新调试;朔黄批量导入列表调试;视频检索页面添加处理参数,添加标注接口添加参数;分页器展示优化,默认检索时间调整;转储设备接口调试

---
 src/pages/visual/components/eCharts/mutPie.vue |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/pages/visual/components/eCharts/mutPie.vue b/src/pages/visual/components/eCharts/mutPie.vue
index 17ba8b2..b73e15b 100644
--- a/src/pages/visual/components/eCharts/mutPie.vue
+++ b/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() {
     

--
Gitblit v1.8.0