Parcourir la source

加载数据相关

MaiXinRong il y a 1 an
Parent
commit
2fb0229385
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      app/middleware/stage_check.js
  2. 2 2
      app/service/stage.js

+ 2 - 2
app/middleware/stage_check.js

@@ -92,8 +92,8 @@ module.exports = options => {
                 stage.curTimes = stage.times;
                 stage.curOrder = _.max(_.map(stage.auditors, 'order'));
             } else {
-                const ass = stage.auditAssists.find(x => { return stage.curAuditorIds.indexOf(x.user_id) >= 0 && x.ass_user_id === accountId; });
-                stage.readOnly = stage.curAuditorIds.indexOf(accountId) < 0 && !ass;
+                const ass = stage.auditAssists.find(x => { return stage.flowAuditorIds.indexOf(x.user_id) >= 0 && x.ass_user_id === accountId; });
+                stage.readOnly = stage.flowAuditorIds.indexOf(accountId) < 0 && !ass;
                 stage.curTimes = stage.times;
                 if (!stage.readOnly) {
                     stage.assist = ass;

+ 2 - 2
app/service/stage.js

@@ -157,8 +157,8 @@ module.exports = app => {
                 stage.curTimes = stage.times;
                 stage.curOrder = _.max(_.map(stage.auditors, 'order'));
             } else {
-                const ass = stage.auditAssists.find(x => { return stage.curAuditorIds.indexOf(x.user_id) >= 0 && x.ass_user_id === accountId; });
-                stage.readOnly = stage.curAuditorIds.indexOf(accountId) < 0 && !ass;
+                const ass = stage.auditAssists.find(x => { return stage.flowAuditorIds.indexOf(x.user_id) >= 0 && x.ass_user_id === accountId; });
+                stage.readOnly = stage.flowAuditorIds.indexOf(accountId) < 0 && !ass;
                 stage.curTimes = stage.times;
                 if (!stage.readOnly) {
                     stage.assist = ass;