Explorar o código

修复显示bug

ellisran hai 11 meses
pai
achega
f796d43ab5
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      app/controller/change_controller.js

+ 4 - 3
app/controller/change_controller.js

@@ -371,10 +371,11 @@ module.exports = app => {
                         for (const au in change.userGroups) {
                             if (change.userGroups[au][0].audit_order !== 0) {
                                 cl['audit_amount_' + change.userGroups[au][0].audit_order] =
-                                    (change.userGroups[au][0].audit_type === auditType.key.and &&
-                                        ctx.helper._.findIndex(change.userGroups[au], { uid: ctx.session.sessionUser.accountId, status: audit.change.status.checked }) !== -1) ||
+                                (change.userGroups[au][0].audit_type === auditType.key.and &&
+                                    ctx.helper._.findIndex(change.userGroups[au], { status: audit.change.status.checking }) !== -1 &&
+                                    ctx.helper._.findIndex(change.userGroups[au], { uid: ctx.session.sessionUser.accountId, status: audit.change.status.checked }) !== -1) ||
                                     (change.shenpiPower && ctx.helper._.findIndex(change.userGroups[au], { uid: ctx.session.sessionUser.accountId }) !== -1) ?
-                                        cl.spamount : (audit_amount[au - 1] !== undefined ? parseFloat(audit_amount[au - 1]) : null);
+                                    cl.spamount : (audit_amount[au - 1] !== undefined ? parseFloat(audit_amount[au - 1]) : null);
                             }
                         }
                         if (change.readOnly && !change.shenpiPower) {