diff --git a/weapp/package/inspectionReport/inspectionReport.js b/weapp/package/inspectionReport/inspectionReport.js index 51faf5a..e12e4c8 100644 --- a/weapp/package/inspectionReport/inspectionReport.js +++ b/weapp/package/inspectionReport/inspectionReport.js @@ -81,7 +81,7 @@ Page({ Request.get(getPatrolReport(params)).then(res => { wx.hideLoading(); this.setData({ - report: res.rows.map(r => { + report: res.rows?.filter(i=>i?.project?.type==='管廊')?.map(r => { const fileName = r.excelPath.substring(r.excelPath.lastIndexOf('/') + 1); return { ...r, fileName, inspectTm: moment(r.inspectTm).format('YYYY-MM-DD HH:mm:ss') } })