From f68fa3bc5fc0a286c88d82ee6eb95e8ad6be0d16 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期四, 27 六月 2024 15:21:55 +0800
Subject: [PATCH] qxtj

---
 src/views/index.vue |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index bc94f0d..a31432c 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -189,7 +189,18 @@
       getPieChart().then((response) => {
         if (response.data) {
 
-          if (response.data.tjdj.length === 0) {
+          if(response.data.tjdj == 0){
+            this.PieChart = []
+            this.PieChart = [
+              {
+                "name": "浣撴鐧昏浜烘暟鍒嗗竷",
+                "count": 1,
+                "value": 10
+              },
+
+            ]
+          }else if (response.data.tjdj.length === 0) {
+
             this.PieChart = []
             this.PieChart = [
               {
@@ -245,7 +256,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 = [
               {
@@ -302,10 +323,10 @@
         }
 
 
-        // window.onresize = function () {
-        //   myChart2.resize()
-        //   myChart3.resize()
-        // }
+        window.onresize = function () {
+          myChart2.resize()
+          myChart3.resize()
+        }
         this.loading = false;
       });
 

--
Gitblit v1.8.0