diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini
index ce5367d98..79e43f437 100755
--- a/options/locale/locale_zh-CN.ini
+++ b/options/locale/locale_zh-CN.ini
@@ -470,6 +470,11 @@ static.encyclopediascount=百科页面贡献次数
static.createrepocount=创建项目数
static.openiindex=OpenI指数
static.registdate=用户注册时间
+static.CloudBrainTaskNum=云脑任务数
+static.CloudBrainRunTime=云脑运行时间(小时)
+static.CommitDatasetNum=上传(提交)数据集文件数
+static.CommitModelCount=提交模型数
+static.UserIndex=用户指数
static.countdate=系统统计时间
static.all=所有
static.public.user_business_analysis_current_month=本月
diff --git a/routers/repo/user_data_analysis.go b/routers/repo/user_data_analysis.go
index b4adfc347..15bb55e84 100755
--- a/routers/repo/user_data_analysis.go
+++ b/routers/repo/user_data_analysis.go
@@ -54,7 +54,12 @@ func queryUserDataPage(ctx *context.Context, tableName string, queryObj interfac
"N1": ctx.Tr("user.static.createrepocount"),
"O1": ctx.Tr("user.static.openiindex"),
"P1": ctx.Tr("user.static.registdate"),
- "Q1": ctx.Tr("user.static.countdate"),
+ "Q1": ctx.Tr("user.static.CloudBrainTaskNum"),
+ "R1": ctx.Tr("user.static.CloudBrainRunTime"),
+ "S1": ctx.Tr("user.static.CommitDatasetNum"),
+ "T1": ctx.Tr("user.static.CommitModelCount"),
+ "U1": ctx.Tr("user.static.UserIndex"),
+ "V1": ctx.Tr("user.static.countdate"),
}
for k, v := range dataHeader {
//设置单元格的值
@@ -89,8 +94,14 @@ func queryUserDataPage(ctx *context.Context, tableName string, queryObj interfac
formatTime := userRecord.RegistDate.Format("2006-01-02 15:04:05")
xlsx.SetCellValue(sheetName, "P"+rows, formatTime[0:len(formatTime)-3])
+ xlsx.SetCellValue(sheetName, "Q"+rows, userRecord.CloudBrainTaskNum)
+ xlsx.SetCellValue(sheetName, "R"+rows, userRecord.CloudBrainRunTime)
+ xlsx.SetCellValue(sheetName, "S"+rows, userRecord.CommitDatasetNum)
+ xlsx.SetCellValue(sheetName, "T"+rows, userRecord.CommitModelCount)
+ xlsx.SetCellValue(sheetName, "U"+rows, userRecord.UserIndex)
+
formatTime = userRecord.DataDate
- xlsx.SetCellValue(sheetName, "Q"+rows, formatTime)
+ xlsx.SetCellValue(sheetName, "V"+rows, formatTime)
}
indexTotal += PAGE_SIZE
diff --git a/web_src/js/components/UserAnalysis.vue b/web_src/js/components/UserAnalysis.vue
index 682dbc78c..71a2de096 100755
--- a/web_src/js/components/UserAnalysis.vue
+++ b/web_src/js/components/UserAnalysis.vue
@@ -133,7 +133,37 @@
{{scope.row.RegistDate | transformTimestamp}}
+
+
+
+
+
+
+
+
+
+