Browse Source

fix 单一数据源获取项目信息

dev
巴林闲侠 2 years ago
parent
commit
fc912232e7
  1. 4
      api/app/lib/controllers/workOrder/index.js

4
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,

Loading…
Cancel
Save