From 1e9c7a02ec2b8caf7dda6000d7f0f79849df6b45 Mon Sep 17 00:00:00 2001
From: 朱佳吉 <1527963051@qq.com>
Date: 星期四, 09 五月 2024 14:15:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/components/view/b4-inspection-item-statistics.vue |   26 ++++++++++++++++----------
 1 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/src/components/view/b4-inspection-item-statistics.vue b/src/components/view/b4-inspection-item-statistics.vue
index 86e6156..293245b 100644
--- a/src/components/view/b4-inspection-item-statistics.vue
+++ b/src/components/view/b4-inspection-item-statistics.vue
@@ -129,7 +129,7 @@
         },
         chartData2:{
           title:'浠婃棩椤圭洰鍚堟牸鐜�',
-          percentage:'68%',
+          percentage:'0',
           color:['#1CCAB8','#E1E4E8'],
           data:[
             {
@@ -150,16 +150,16 @@
         },
         chartData3:{
           title:'浠婃棩椤圭洰瀹屾垚鐜�',
-          percentage:'68%',
+          percentage:'0',
           color:['#FBB647','#E1E4E8'],
           data:[
             {
               name:'瀹屾垚',
-              value:'68'
+              value:'0'
             },
             {
               name:'鏈畬鎴�',
-              value:'32'
+              value:'0'
             },
           ]
         },
@@ -171,25 +171,28 @@
         },
         chartData4:{
           title:'浠婃棩椤瑰欢鏈熺巼',
-          percentage:'68%',
+          percentage:'0',
           color:['#FF3838','#E1E4E8'],
           data:[
             {
               name:'寤舵湡',
-              value:'68'
+              value:'0'
             },
             {
               name:'鏈欢鏈�',
-              value:'32'
+              value:'0'
             },
           ]
         },
         loading:false,
-        pageData:{}
+        pageData:{},
+        timers:null
       }
     },
     mounted(){
-      this.init()
+      // this.init()
+      this.timers&&clearInterval(this.timers);
+      setInterval(this.init,1000*60*5)
     },
     methods:{
       init(){
@@ -227,7 +230,7 @@
         this.chartConfig3.isLoading = true
         this.chartConfig4.isLoading = true
       })
-    },
+      },
       handleData(val){
         if(val){
           return Math.abs(val)*100;
@@ -235,6 +238,9 @@
           return '0'
         }
       }
+    },
+    deactivated(){
+      this.timers&&clearInterval(this.timers);
     }
   }
   </script>

--
Gitblit v1.9.3