소스 검색

修复变更管理员查看bug

ellisran 10 달 전
부모
커밋
2fc434c649
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/controller/change_controller.js

+ 1 - 1
app/controller/change_controller.js

@@ -58,7 +58,7 @@ module.exports = app => {
             const changes = await ctx.service.change.getListByStatus(tender.id, status, 1, sorts, orders, state);
             const total = await ctx.service.change.getCountByStatus(tender.id, status, state);
             let page_total = 0;
-            const tp = await ctx.service.change.getTp(tender.id, status);
+            const tp = await ctx.service.change.getTp(tender.id, status, state);
             if (changes !== null) {
                 for (const c of changes) {
                     if (c.status !== audit.change.status.checked || !c.final_auditor_str) {