Browse Source

接口设置,提交遗漏

MaiXinRong 4 years ago
parent
commit
cf6322161f
2 changed files with 2 additions and 1 deletions
  1. 1 0
      app/controller/setting_controller.js
  2. 1 1
      app/view/setting/s2b.ejs

+ 1 - 0
app/controller/setting_controller.js

@@ -772,6 +772,7 @@ module.exports = app => {
                     t.stage_count_str = `第${stages.count || 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;
                 }
                 await this.layout('setting/s2b.ejs', {
                     projectData,

+ 1 - 1
app/view/setting/s2b.ejs

@@ -32,7 +32,7 @@
                             <td><%- t.measure_type_str %></td>
                             <td><%- t.stage_count_str %></td>
                             <td><%- t.user_str %></td>
-                            <td><%- ctx.moment(t.show_time).format('YYY-MM-DD HH:mm:ss') %></td>
+                            <td><%- ctx.moment(t.show_time).format('YYYY-MM-DD HH:mm:ss') %></td>
                             <td class="text-center">
                                 <form action="api/update?tid=<%= t.id %>&gxbyCheck=<%- (t.s2b_gxby_check ? 0 : 1) %>" method="post">
                                     <div class="form-check form-check-inline">