|
@@ -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>
|
|
<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.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>
|
|
<button class="btn btn-outline-danger btn-sm btn-block mt-5" id="sp-unlock">解锁</button>
|
|
|
<% } %>
|
|
<% } %>
|
|
|
<% } %>
|
|
<% } %>
|