diff --git a/web/client/src/sections/patrolManage/containers/patrolRecord.js b/web/client/src/sections/patrolManage/containers/patrolRecord.js index ebad27a..dee8f12 100644 --- a/web/client/src/sections/patrolManage/containers/patrolRecord.js +++ b/web/client/src/sections/patrolManage/containers/patrolRecord.js @@ -95,7 +95,7 @@ const PatrolRecord = (props) => { dataIndex: 'describe', showInDetail: true, key: 'describe', - render: (text, record, index) => moment(record.lastInspectionTime).format('YYYY-MM-DD HH:mm:ss') || '--' + render: (text, record, index) => record.lastInspectionTime ? moment(record.lastInspectionTime).format('YYYY-MM-DD HH:mm:ss') : '--' }, { title: '本次巡检日期', dataIndex: 'describe', @@ -217,8 +217,8 @@ const PatrolRecord = (props) => { dataArr.push( <> - {k} : - + {k} : + { inspectContent[k].isNormal ? '正常' : @@ -227,7 +227,7 @@ const PatrolRecord = (props) => { 巡查详情 : {inspectContent[k].msgInp} 严重等级 : - {inspectContent[k].level} + {inspectContent[k].level} 现场照片 :