wangziqian 5 年之前
父节点
当前提交
d573b39579
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/views/quality/components/childCharts.vue

+ 3 - 0
src/views/quality/components/childCharts.vue

@@ -71,6 +71,9 @@ export default {
     },
     changeBarOrPie(type) { // 饼图柱状图切换
       if (!this.childChartData) return
+      if (this.childChartData.xaxis && this.childChartData.xaxis.length === 0) {
+        this.visible = false
+      }
       if (type === 'bar') {
         this.childOption = {
           color: ['#3AA1FF'],