Просмотр исходного кода

feat(weapp): 更新仪表盘数据结构,添加项目名称和ID

lanjianrong 3 дней назад
Родитель
Сommit
22910cfdae
2 измененных файлов с 3 добавлено и 1 удалено
  1. 1 1
      app/controller/weapp_dashboard_controller.js
  2. 2 0
      mise.toml

+ 1 - 1
app/controller/weapp_dashboard_controller.js

@@ -92,7 +92,7 @@ module.exports = app => {
                 }
 
                 const auditRevise = await DashboardStats.auditSet(ctx, allAuditRevise, subProjects, dashboardStatus, 'revise');
-                dashboardShenpis.push(...(auditRevise.map(item => ({ ...item, type: 'revise', subType: 'revise' }))));
+                dashboardShenpis.push(...(auditRevise.map(item => ({ ...item, type: 'revise', subType: 'revise', name: item.t_name, tid: item.t_id }))));
                 const auditMaterial = await DashboardStats.auditSet(ctx, allAuditMaterial, subProjects, dashboardStatus, 'material');
                 for (const item of auditMaterial) {
                   let sp = null;

+ 2 - 0
mise.toml

@@ -0,0 +1,2 @@
+[tools]
+node = "16"