diff --git a/routers/api/v1/repo/repo_dashbord.go b/routers/api/v1/repo/repo_dashbord.go index 60f3620ed..519077af2 100644 --- a/routers/api/v1/repo/repo_dashbord.go +++ b/routers/api/v1/repo/repo_dashbord.go @@ -314,6 +314,7 @@ func GetProjectLatestStatistics(ctx *context.Context) { Mode: mode, PR: pr, RelAvatarLink: contributor.RelAvatarLink, + Email: contributor.Email, } users = append(users, userInfo) 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..6371fa884 100755 --- a/web_src/js/components/ProAnalysis.vue +++ b/web_src/js/components/ProAnalysis.vue @@ -29,8 +29,13 @@
- - 下载报告 + + + + + 下载报告 + 下载报告 +
@@ -142,10 +147,12 @@
@@ -153,7 +160,7 @@