Browse Source

上报审批选择人bug

laiguoran 6 năm trước cách đây
mục cha
commit
65c33a1551
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      app/controller/stage_controller.js

+ 2 - 0
app/controller/stage_controller.js

@@ -804,6 +804,8 @@ module.exports = app => {
                 if (ctx.stage.status === auditConst.status.checking || ctx.stage.status === auditConst.status.checked) {
                     throw '当前不允许添加审核人';
                 }
+
+                ctx.stage.auditorList = await ctx.service.stageAudit.getAuditors(ctx.stage.id, ctx.stage.times);
                 // 检查审核人是否已存在
                 const exist = this.app._.find(ctx.stage.auditorList, {aid: id});
                 if (exist) {