Browse Source

道路养护返回图片

dev
巴林闲侠 2 years ago
parent
commit
f8f592662e
  1. 4
      api/app/lib/controllers/overview/conserve.js

4
api/app/lib/controllers/overview/conserve.js

@ -10,7 +10,7 @@ async function statistic (ctx) {
where: {
reportType: 'conserve',
},
attributes: ['id', 'road', 'time', 'projectType', 'projectType', 'roadSectionStart', 'roadSectionEnd'],
attributes: ['id', 'road', 'time', 'projectType', 'projectType', 'roadSectionStart', 'roadSectionEnd', 'scenePic', 'conserveBeforePic', 'conserveUnderwayPic', 'conserveAfterPic'],
include: [{
model: models.User,
attributes: ['name']
@ -18,9 +18,7 @@ async function statistic (ctx) {
}
if (projectType) {
findOption.where.projectType = projectType;
}
const reportRes = await await models.Report.findAll(findOption)

Loading…
Cancel
Save