From ef9eb48046f8dfbb3c18b0f45befcbeddbdf6899 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期三, 29 五月 2024 03:56:23 +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