Browse Source

审核比较,显示审批状态

MaiXinRong 5 years ago
parent
commit
895c82904c
1 changed files with 6 additions and 2 deletions
  1. 6 2
      app/view/stage/compare_modal.ejs

+ 6 - 2
app/view/stage/compare_modal.ejs

@@ -8,11 +8,15 @@
             </div>
             <div class="modal-body">
                 <table class="table table-sm">
-                    <tr><th>审批人</th><th width="90">选择</th></tr>
+                    <tr><th>审批人</th><th width="90">选择</th><th></th></tr>
                     <% for (const [i, a] of ctx.stage.auditors.entries()) { %>
                     <% if (a.status === auditConst.status.checked || a.status === auditConst.status.checkNoPre ||
                             (a.status === auditConst.status.checking && a.aid === ctx.session.sessionUser.accountId)) { %>
-                    <tr auditorId="<%- a.aid %>"><td><%- a.name %></td><td><input type="checkbox" audit-order="<%- i + 1 %>"></td></tr>
+                    <tr auditorId="<%- a.aid %>">
+                        <td><%- a.name %></td>
+                        <td><input type="checkbox" audit-order="<%- i + 1 %>"></td>
+                        <td class="text-center <%- auditConst.statusClass[a.status] %>" style="width: 80px"><%- auditConst.statusString[a.status] %></td>
+                    </tr>
                     <% } %>
                     <% } %>
                 </table>