Browse Source

用户分析相关问题修改。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.5.2^2
zouap 3 years ago
parent
commit
f4795f39ea
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      options/locale/locale_en-US.ini
  2. +1
    -1
      options/locale/locale_zh-CN.ini
  3. +1
    -1
      routers/repo/user_data_analysis.go

+ 1
- 1
options/locale/locale_en-US.ini View File

@@ -530,7 +530,7 @@ static.public.user_business_analysis_last30_day=Last_30_day
static.public.user_business_analysis_last_month=Last_Month
static.public.user_business_analysis_yesterday=Yesterday
static.public.user_business_analysis_all=All
static.downloadinfo=Due to the large amount of data generated in the customized time period and long calculation time, please download and export the data from the following address and export the data download address:
metrics.sheetname=User Trend Analysis
metrics.date=Count Date
metrics.newregistuser=New registered user


+ 1
- 1
options/locale/locale_zh-CN.ini View File

@@ -535,7 +535,7 @@ static.public.user_business_analysis_last30_day=近30天
static.public.user_business_analysis_last_month=上月
static.public.user_business_analysis_yesterday=昨天
static.public.user_business_analysis_all=所有
static.downloadinfo=因自定义时间段产生的数据量比较大,计算时间比较长,请您从如下地址下载导出数据,\n导出数据下载地址:
metrics.sheetname=用户趋势分析
metrics.date=日期
metrics.newregistuser=新增注册用户


+ 1
- 1
routers/repo/user_data_analysis.go View File

@@ -601,7 +601,7 @@ func QueryUserStaticDataPage(ctx *context.Context) {
filename := sheetName + "_" + startDate + "_" + endDate + ".xlsx"
os.Remove(setting.AppDataPath + Excel_File_Path + filename)
go writeFileToDisk(ctx, count, re, filename)
ctx.JSON(http.StatusOK, setting.AppURL+"api/v1/download_user_define_file?filename="+filename)
ctx.JSON(http.StatusOK, ctx.Tr("user.static.downloadinfo")+setting.AppURL+"api/v1/download_user_define_file?filename="+filename)
} else {
mapInterface := make(map[string]interface{})
re, count := models.QueryUserStaticDataPage(pageOpts)


Loading…
Cancel
Save