feat 对齐接口字段
This commit is contained in:
@@ -182,7 +182,7 @@ function mapReportStatus(status?: ReportItem['reportStatus']) {
|
|||||||
function mapApiReportItem(item: ReportItem): ReportListRow {
|
function mapApiReportItem(item: ReportItem): ReportListRow {
|
||||||
return {
|
return {
|
||||||
id: item.reportId,
|
id: item.reportId,
|
||||||
title: item.reportNo || item.projectName || '碾压报告',
|
title: item.constructionSection ? `${item.constructionSection}压实作业报告` : '压实作业报告',
|
||||||
deviceCode: item.deviceId || '-',
|
deviceCode: item.deviceId || '-',
|
||||||
status: mapReportStatus(item.reportStatus),
|
status: mapReportStatus(item.reportStatus),
|
||||||
time: formatDateTimeRange(item.workStartTime, item.workEndTime),
|
time: formatDateTimeRange(item.workStartTime, item.workEndTime),
|
||||||
|
|||||||
Reference in New Issue
Block a user