From 32a95699e59c5c65e18c08643266c9cbfa380ee4 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期五, 07 六月 2024 09:56:05 +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