MaiXinRong 4 lat temu
rodzic
commit
14fa623715
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/controller/setting_controller.js

+ 1 - 1
app/controller/setting_controller.js

@@ -769,7 +769,7 @@ module.exports = app => {
                 for (const t of tenders) {
                     t.measure_type_str = t.measure_type === measureType.tz.value ? measureType.tz.title : measureType.gcl.title;
                     const stages = await ctx.service.stage.getAllDataByCondition({ where: { tid: t.id } });
-                    t.stage_count_str = `第${stages.count || 0}期`;
+                    t.stage_count_str = `第${stages.length || 0}期`;
                     const user = await ctx.service.projectAccount.getAccountInfoById(t.user_id);
                     t.user_str = user.name + '-' + user.company;
                     t.show_time = stages.length > 0 ? stages[stages.length - 1].cache_time_r || stages[stages.length - 1].in_time : t.create_time;