From 3662019a02d0d3d9d5ba4f176ab55297e0cbd53b Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期二, 30 四月 2024 17:38:48 +0800 Subject: [PATCH] qxtj --- src/views/index.vue | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index dcbe83a..aa18226 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -190,6 +190,7 @@ if (response.data) { if (response.data.tjdj.length === 0) { + this.PieChart = [] this.PieChart = [ { @@ -231,6 +232,9 @@ type: 'pie', radius: ['16%', '54%'], center: ["50%", "43%"], + avoidLabelOveralap:false, + startAngle:180, + minAngle:10, data: this.PieChart, emphasis: { itemStyle: { @@ -242,7 +246,17 @@ }] }) - if (response.data.tjyc.length === 0) { + if(response.data.tjyc == 0){ + this.PieChart2 = [] + this.PieChart2 = [ + { + "name": "浣撴缁撴灉寮傚父浜烘暟鍒嗗竷", + "count": 1, + "value": 10 + }, + + ] + }else if (response.data.tjyc.length === 0) { this.PieChart2 = [] this.PieChart2 = [ { @@ -283,6 +297,9 @@ type: 'pie', radius: ['16%', '54%'], center: ["50%", "43%"], + avoidLabelOveralap:false, + startAngle:180, + minAngle:10, data: this.PieChart2, emphasis: { itemStyle: { -- Gitblit v1.8.0