Bläddra i källkod

fix: 紧急修复

Tony Kang 4 veckor sedan
förälder
incheckning
f51eb7aeb9
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      app/controller/report_controller.js

+ 4 - 4
app/controller/report_controller.js

@@ -253,7 +253,7 @@ module.exports = app => {
                 }
                 const roleList = await ctx.service.signatureRole.getSignatureRolesByTenderId(tender.id);
                 const usedList = await ctx.service.signatureUsed.getSignatureUsedByTenderId(tender.id);
-                const prjAccList = this._getPrjAccList(ctx, pageShow);
+                const prjAccList = await this._getPrjAccList(ctx, pageShow);
 
                 // 分类列表
                 const categoryData = await this.ctx.service.category.getAllCategory(ctx.subProject);
@@ -435,7 +435,7 @@ module.exports = app => {
                 const archiveList = [];
                 const roleList = await ctx.service.signatureRole.getSignatureRolesByTenderId(tender.id);
                 const usedList = await ctx.service.signatureUsed.getSignatureUsedByTenderId(tender.id);
-                const prjAccList = this._getPrjAccList(ctx, pageShow);
+                const prjAccList = await this._getPrjAccList(ctx, pageShow);
                 // 分类列表 todo 支付审批 目前没有所属子项目,自定义分类暂无法按所属子项目取值
                 const categoryData = await this.ctx.service.category.getAllCategory(this.ctx.subProject.id);
                 // 获取用户权限
@@ -577,7 +577,7 @@ module.exports = app => {
                 const archiveList = [];
                 const roleList = [];
                 const usedList = [];
-                const prjAccList = this._getPrjAccList(ctx, pageShow);
+                const prjAccList = await this._getPrjAccList(ctx, pageShow);
                 // 分类列表
                 const categoryData = await this.ctx.service.category.getAllCategory(ctx.subProject);
                 // 获取用户权限
@@ -782,7 +782,7 @@ module.exports = app => {
 
                 const roleList = [];
                 const usedList = await ctx.service.signatureUsed.getSignatureUsedByTenderId(tenderId);
-                const prjAccList = this._getPrjAccList(ctx, pageShow);
+                const prjAccList = await this._getPrjAccList(ctx, pageShow);
                 // 分类列表
                 const categoryData = await this.ctx.service.category.getAllCategory(ctx.subProject);
                 // 获取用户权限