Browse Source

当前审批人,未审批通过时,应能选择比较自己的数据

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

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

@@ -10,8 +10,8 @@
                 <table class="table table-sm">
                     <tr><th>审批人</th><th width="90">选择</th></tr>
                     <% for (const a of ctx.stage.auditors) { %>
-                    <% if (a.status === auditConst.status.checked) { %>
-                    <tr auditorId="<%- a.id %>"><td><%- a.name %></td><td><input type="checkbox"></td></tr>
+                    <% if (a.status === auditConst.status.checked || a.aid === ctx.session.sessionUser.accountId) { %>
+                    <tr auditorId="<%- a.aid %>"><td><%- a.name %></td><td><input type="checkbox"></td></tr>
                     <% } %>
                     <% } %>
                 </table>