From 142ba3ed00220dcadf2a94e59664d5f1f027dbf4 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 05 六月 2024 14:58:26 +0800
Subject: [PATCH] 新增附件上传

---
 src/components/view/b4-inspection-item-statistics.vue |   24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/src/components/view/b4-inspection-item-statistics.vue b/src/components/view/b4-inspection-item-statistics.vue
index 86e6156..bc0a983 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.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