From fc912232e78d57b601526c2936ece57fb2d5ae49 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Thu, 1 Jun 2023 15:55:49 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=8D=95=E4=B8=80=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E8=8E=B7=E5=8F=96=E9=A1=B9=E7=9B=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/workOrder/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app/lib/controllers/workOrder/index.js b/api/app/lib/controllers/workOrder/index.js index a78fda0..4479687 100644 --- a/api/app/lib/controllers/workOrder/index.js +++ b/api/app/lib/controllers/workOrder/index.js @@ -47,7 +47,7 @@ async function basicDataAllProject (ctx) { }) let pepProjectIds = new Set() - for (let p of proRes.rows) { + for (let p of proRes) { if (p.pepProjectId) { pepProjectIds.add(p.pepProjectId) } @@ -66,7 +66,7 @@ async function basicDataAllProject (ctx) { ).toPromise() || [] : [] - const list = proRes.map(p => { + const list = proRes.map(p => { const corPro = pepProjectRes.find(pp => pp.id == p.pepProjectId) || {} return { value: p.id,