Browse Source

修复游客bug

laiguoran 4 years ago
parent
commit
ecaf37cf2c
2 changed files with 1 additions and 2 deletions
  1. 1 1
      app/service/stage.js
  2. 0 1
      app/view/stage/audit_modal.ejs

+ 1 - 1
app/service/stage.js

@@ -267,7 +267,7 @@ module.exports = app => {
             }
             if (stages.length !== 0) {
                 const lastStage = stages[0];
-                if (lastStage.status === auditConst.status.uncheck && lastStage.user_id === this.ctx.session.sessionUser.accountId && !this.ctx.tender.isTourist) {
+                if (lastStage.status === auditConst.status.uncheck && lastStage.user_id !== this.ctx.session.sessionUser.accountId && !this.ctx.tender.isTourist) {
                     stages.splice(0, 1);
                 }
             }

+ 0 - 1
app/view/stage/audit_modal.ejs

@@ -47,7 +47,6 @@
                                 <li class="list-group-item" auditorId="<%- ctx.stage.auditorList[i].aid %>">
                                     <% if ((ctx.tender.info.shenpi.stage === shenpiConst.sp_status.sqspr ||
                                             (ctx.tender.info.shenpi.stage === shenpiConst.sp_status.gdzs && i+1 !== iLen)) && ctx.session.sessionUser.accountId === ctx.stage.user_id && !ctx.tender.isTourist) { %>
-                                    <% console.log(ctx.session.sessionUser.accountId === ctx.stage.user_id && !ctx.tender.isTourist); %>
                                     <a href="javascript: void(0)" class="text-danger pull-right">移除</a>
                                     <% } %>
                                     <span><%- ctx.stage.auditorList[i].order %> <%- ctx.stage.auditorList[i].name %></span>