Kaynağa Gözat

计量期,解锁调整

MaiXinRong 1 gün önce
ebeveyn
işleme
ac433aca8b
1 değiştirilmiş dosya ile 1 ekleme ve 4 silme
  1. 1 4
      app/view/stage/audit_btn.ejs

+ 1 - 4
app/view/stage/audit_btn.ejs

@@ -55,10 +55,7 @@
         <a href="#del-qi" data-toggle="modal" data-target="#del-qi" class="btn btn-outline-danger btn-sm btn-block mt-5">删除本期</a>
     <% } %>
     <% if (ctx.stage.auditLocked && ctx.stage.auditLocked.length > 0) { %>
-        <% if (ctx.session.sessionUser.is_admin) { %>
-            <button class="btn btn-outline-danger btn-sm btn-block mt-5" id="sp-unlock-list">解锁</button>
-        <% } %>
-        <% if (ctx.stage.auditLocked.find(x => { return x.aid === ctx.session.sessionUser.accountId; })) { %>
+        <% if (ctx.session.sessionUser.is_admin || ctx.stage.auditLocked.find(x => { return x.aid === ctx.session.sessionUser.accountId; })) { %>
             <button class="btn btn-outline-danger btn-sm btn-block mt-5" id="sp-unlock">解锁</button>
         <% } %>
     <% } %>