Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.5.1^2
zouap 3 years ago
parent
commit
a6123b542d
2 changed files with 2 additions and 10 deletions
  1. +0
    -8
      routers/repo/user_data_analysis.go
  2. +2
    -2
      web_src/js/components/UserTrend.vue

+ 0
- 8
routers/repo/user_data_analysis.go View File

@@ -315,14 +315,6 @@ func queryMetrics(ctx *context.Context, tableName string, startTime time.Time, e
}
func getTimeFileName(t time.Time) string {
t = t.Local()
// month := fmt.Sprint(int(t.Month()))
// if t.Month() < 10 {
// month = "0" + month
// }
// day := fmt.Sprint(t.Day())
// if t.Day() < 10 {
// day = "0" + day
// }
return t.Format("20060102")
}



+ 2
- 2
web_src/js/components/UserTrend.vue View File

@@ -24,8 +24,8 @@
</el-col>
<el-col :span="8" :style="{ height: '180px'}" v-if="ys_count>0">
<span class="yesterday_blk yesterday_title" >注册用户数 </span>
<span class="yesterday_blk yesterday_color1 yesterday_pdrt yesterday_text">未激活:<span class="bold_num">{{ tableDataYesterday.TotalActivateRegistUser}} </span>人 </span>
<span class="yesterday_blk yesterday_color2 yesterday_pdrt yesterday_text">已激活:<span class="bold_num">{{ tableDataYesterday.TotalNotActivateRegistUser }} </span>人</span>
<span class="yesterday_blk yesterday_color2 yesterday_pdrt yesterday_text">未激活:<span class="bold_num">{{ tableDataYesterday.TotalNotActivateRegistUser }} </span>人</span>
<span class="yesterday_blk yesterday_color1 yesterday_pdrt yesterday_text">已激活:<span class="bold_num">{{ tableDataYesterday.TotalActivateRegistUser}} </span>人 </span>
<span class="yesterday_blk yesterday_pdrt yesterday_text">有贡献活动:<span class="bold_num"> {{ tableDataYesterday.TotalHasActivityUser}} </span>人</span>
</el-col>


Loading…
Cancel
Save