From 32a23d0b7385a0e67eb85d4033bdb1cf42cd8d5a Mon Sep 17 00:00:00 2001 From: Gitea Date: Fri, 19 Nov 2021 18:03:52 +0800 Subject: [PATCH 1/6] modify code --- web_src/js/components/DataAnalysis.vue | 27 +++++++------ web_src/js/components/ProAnalysis.vue | 71 +++++++++++++++++++++++++++++----- web_src/js/components/UserAnalysis.vue | 10 ++++- 3 files changed, 84 insertions(+), 24 deletions(-) diff --git a/web_src/js/components/DataAnalysis.vue b/web_src/js/components/DataAnalysis.vue index 4d771dbb1..931f10e36 100755 --- a/web_src/js/components/DataAnalysis.vue +++ b/web_src/js/components/DataAnalysis.vue @@ -7,10 +7,8 @@ 概览 -
概览.......
-
概览.......
-
概览.......
概览.......
-
概览.......
+
暂无内容.......
+ @@ -20,13 +18,13 @@ 项目分析 - + 用户分析 - + @@ -48,6 +46,7 @@ loading:true, loading1:true, isRouterAlive: true, + isRouterAlive1: true, isSecond:true, isThird:false, @@ -57,24 +56,20 @@ handleClick(tab, event){ if(tab.name=="second"){ this.reload() - //document.getElementById('usr').style.display="none" - //document.getElementById("pro").style.display='block' - - //this.$refs.ProAnalysis.getAllProList("all",7) this.isSecond = true this.isThird = false this.$refs.ProAnalysis.getAllProList("all",7) } if(tab.name=="third"){ - // document.getElementById('usr').style.display="block" - // document.getElementById("pro").style.display='none' - this.reload() + + this.reload1() this.isSecond = false this.isThird = true - this.$refs.UserAnalysis.resetPage() + this.$refs.UserAnalysis.getUpdateTime() this.$refs.UserAnalysis.getUserList("all_usr",7) + } @@ -84,6 +79,10 @@ reload () { this.isRouterAlive = false this.$nextTick(() => (this.isRouterAlive = true)) + }, + reload1 () { + this.isRouterAlive1 = false + this.$nextTick(() => (this.isRouterAlive1 = true)) } }, diff --git a/web_src/js/components/ProAnalysis.vue b/web_src/js/components/ProAnalysis.vue index 882f610a4..eddb7e222 100755 --- a/web_src/js/components/ProAnalysis.vue +++ b/web_src/js/components/ProAnalysis.vue @@ -142,10 +142,12 @@
@@ -153,7 +155,7 @@